From owner-freebsd-ports-bugs@FreeBSD.ORG Tue May 24 20:30:12 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 65A221065673 for ; Tue, 24 May 2011 20:30:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3E1BF8FC18 for ; Tue, 24 May 2011 20:30:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p4OKUCcK021022 for ; Tue, 24 May 2011 20:30:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p4OKUCXI021018; Tue, 24 May 2011 20:30:12 GMT (envelope-from gnats) Resent-Date: Tue, 24 May 2011 20:30:12 GMT Resent-Message-Id: <201105242030.p4OKUCXI021018@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, David Naylor Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E18EE106564A for ; Tue, 24 May 2011 20:21:49 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id D19998FC15 for ; Tue, 24 May 2011 20:21:49 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p4OKLnmm019873 for ; Tue, 24 May 2011 20:21:49 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p4OKLnBf019872; Tue, 24 May 2011 20:21:49 GMT (envelope-from nobody) Message-Id: <201105242021.p4OKLnBf019872@red.freebsd.org> Date: Tue, 24 May 2011 20:21:49 GMT From: David Naylor To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/157300: [patch] archivers/py-liblzma: fix build with python2.7 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2011 20:30:12 -0000 >Number: 157300 >Category: ports >Synopsis: [patch] archivers/py-liblzma: fix build with python2.7 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Tue May 24 20:30:11 UTC 2011 >Closed-Date: >Last-Modified: >Originator: David Naylor >Release: FreeBSD >Organization: Private >Environment: FreeBSD dragon.dg 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Sat May 21 22:12:29 SAST 2011 root@dragon.dg:/tmp/home/freebsd9/src/sys/DRAGON amd64 >Description: Link with -lpythonX.Y otherwise one gets: ImportError: /usr/local/lib/python2.7/site-packages/lzma.so: Undefined symbol "PyOS_mystricmp" See for details: https://bugs.launchpad.net/pyliblzma/+bug/594919 >How-To-Repeat: python -c "import lzma" >Fix: See attached for patch Patch attached with submission follows: diff -ru /usr/ports/archivers/py-liblzma/files/patch-setup.py py-liblzma/files/patch-setup.py --- /usr/ports/archivers/py-liblzma/files/patch-setup.py 2009-02-15 22:09:41.000000000 +0200 +++ py-liblzma/files/patch-setup.py 2011-05-24 22:16:53.000000000 +0200 @@ -9,7 +9,16 @@ descr = "Python bindings for liblzma" long_descr = """PylibLZMA provides a python interface for the liblzma library -@@ -74,7 +74,6 @@ +@@ -54,6 +54,8 @@ + pc_libs = subprocess.Popen("pkg-config --libs liblzma", shell=True, stdout=subprocess.PIPE, close_fds=True).stdout.readline().strip() + if(pc_libs): + link_args.extend(pc_libs.split(' ')) ++link_args.append('-L%s/lib' % os.environ["LOCALBASE"]) ++link_args.append('-lpython%i.%i' % sys.version_info[:2]) + + extens=[Extension('lzma', c_files, extra_compile_args=compile_args, extra_link_args=link_args, define_macros=version_define)] + +@@ -74,7 +76,6 @@ ], py_modules = modules, ext_modules = extens, >Release-Note: >Audit-Trail: >Unformatted: