From owner-freebsd-python@FreeBSD.ORG Wed Feb 19 17:45:54 2014 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 29D237C9 for ; Wed, 19 Feb 2014 17:45:54 +0000 (UTC) Received: from mail-qa0-x22a.google.com (mail-qa0-x22a.google.com [IPv6:2607:f8b0:400d:c00::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DC1251132 for ; Wed, 19 Feb 2014 17:45:53 +0000 (UTC) Received: by mail-qa0-f42.google.com with SMTP id k4so1018798qaq.15 for ; Wed, 19 Feb 2014 09:45:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=g6WLY6OKs2qPqMzcBoP8iitdIXN44Oy24iK57DP5ZoY=; b=Ah3EkjiDA52ox0ZJjKKgaQUFHRs+v1v08EcDP11JQRcxgx5IjqbLY7ZKDxLH5V8/hj zCgk4WH0eZe4oEnuHQM8DsfmXmEG/QBnpKZKwRNU/XSE0EypTnf0KO2b4LyKYtxT6zW8 iZX3bvXUl7kjIS7gj45USfKXpOsB+skDGnlDJFkCj8etxL+08BLEzuSX/M7hzAOg5XLP PeicMXWbpPU4zGc1CTvzmUOEj5zLpHo+yhGEvKxgsO7SEfpA8XtL1mUaCLrnaH7VXVH4 CKiWaS/RLr/3+VVaXv+mdTqD3NnVZ0w7EUBs0DDKMUvb7oc9LA75vtU6+QTJ/5s2/oCP psaQ== MIME-Version: 1.0 X-Received: by 10.236.113.115 with SMTP id z79mr45335967yhg.8.1392831953019; Wed, 19 Feb 2014 09:45:53 -0800 (PST) Sender: antoine.brodin.freebsd@gmail.com Received: by 10.170.80.11 with HTTP; Wed, 19 Feb 2014 09:45:52 -0800 (PST) Date: Wed, 19 Feb 2014 18:45:52 +0100 X-Google-Sender-Auth: i7UPwryA8CGsn7at2PLr0zVXgSw Message-ID: Subject: Python and clang 3.4 From: Antoine Brodin To: python@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Feb 2014 17:45:54 -0000 Hi there, Clang 3.4 was imported in head 3 days ago. A few python extensions are broken because clang now refuses flags it doesn't know. For instance -R is not recognized, which breaks py-sqlite3, py-ldap2 and a few others. Some failure logs are available at http://package21.nyi.freebsd.org/bulk/head-default-baseline/2014-02-18_15h22m08s/logs/errors/py27-sqlite3-2.7.6_3.log and http://package21.nyi.freebsd.org/bulk/head-default-baseline/2014-02-18_15h22m08s/logs/errors/py27-ldap2-2.4.13.log Below is a possible fix for python27: Index: lang/python27/Makefile =================================================================== --- lang/python27/Makefile (revision 345118) +++ lang/python27/Makefile (working copy) @@ -3,7 +3,7 @@ PORTNAME= python27 PORTVERSION= 2.7.6 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= lang python ipv6 MASTER_SITES= PYTHON MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} Index: lang/python27/files/patch-Lib__distutils__unixccompiler.py =================================================================== --- lang/python27/files/patch-Lib__distutils__unixccompiler.py (revision 0) +++ lang/python27/files/patch-Lib__distutils__unixccompiler.py (working copy) @@ -0,0 +1,11 @@ +--- ./Lib/distutils/unixccompiler.py.orig 2013-11-10 07:36:40.000000000 +0000 ++++ ./Lib/distutils/unixccompiler.py 2014-02-19 15:41:48.000000000 +0000 +@@ -228,6 +228,8 @@ + if sys.platform[:6] == "darwin": + # MacOSX's linker doesn't understand the -R flag at all + return "-L" + dir ++ elif sys.platform[:7] == "freebsd": ++ return "-Wl,-rpath=" + dir + elif sys.platform[:5] == "hp-ux": + if self._is_gcc(compiler): + return ["-Wl,+s", "-L" + dir] Cheers, Antoine