From owner-freebsd-python@FreeBSD.ORG Tue Mar 20 17:40:11 2012 Return-Path: Delivered-To: freebsd-python@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 588C41065678 for ; Tue, 20 Mar 2012 17:40:11 +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 29BCE8FC18 for ; Tue, 20 Mar 2012 17:40:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2KHeAeR074315 for ; Tue, 20 Mar 2012 17:40:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2KHeA9x074314; Tue, 20 Mar 2012 17:40:10 GMT (envelope-from gnats) Date: Tue, 20 Mar 2012 17:40:10 GMT Message-Id: <201203201740.q2KHeA9x074314@freefall.freebsd.org> To: freebsd-python@FreeBSD.org From: Mel Flynn Cc: Subject: Re: ports/165545: [patch]: net-mgmt/collectd5 doesn't compile against lang/python[23]* X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mel Flynn List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Mar 2012 17:40:11 -0000 The following reply was made to PR ports/165545; it has been noted by GNATS. From: Mel Flynn To: bug-followup@FreeBSD.org, pgollucci@FreeBSD.org Cc: Subject: Re: ports/165545: [patch]: net-mgmt/collectd5 doesn't compile against lang/python[23]* Date: Tue, 20 Mar 2012 18:37:18 +0100 This is a multi-part message in MIME format. --------------000606070509010808020602 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, could you drop attached in place of the port's files/patch-configure.in to see if the app still works? It changes static to dynamic linking, fixes build for me, but since I don't use the application I can't tell if it removes functionality. -- Mel --------------000606070509010808020602 Content-Type: text/plain; name="net-mgmt__collectd5__files__patch-configure.in" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="net-mgmt__collectd5__files__patch-configure.in" --- configure.in.orig 2011-10-14 12:49:49.000000000 -0800 +++ configure.in 2012-03-20 08:09:25.000000000 -0800 @@ -98,7 +98,7 @@ fi # Where to install .pc files. -pkgconfigdir="${libdir}/pkgconfig" +pkgconfigdir="${prefix}/libdata/pkgconfig" AC_SUBST(pkgconfigdir) # Check for standards compliance mode @@ -1745,9 +1745,6 @@ [with_libgcrypt="yes"], [with_libgcrypt="no (symbol gcry_md_hash_buffer not found)"]) - if test "$with_libgcrypt" != "no"; then - AM_PATH_LIBGCRYPT(1:1.2.0,,with_libgcrypt="no (version 1.2.0+ required)") - fi fi CPPFLAGS="$SAVE_CPPFLAGS" @@ -3165,7 +3162,7 @@ if test "x$with_python" = "xyes" then AC_MSG_CHECKING([for Python LIBS]) - python_library_flags=`echo "import distutils.sysconfig;import sys;sys.stdout.write(distutils.sysconfig.get_config_vars(\"BLDLIBRARY\").__getitem__(0))" | "$with_python_prog" 2>&1` + python_library_flags=`echo "import distutils.sysconfig;import sys;sys.stdout.write(distutils.sysconfig.get_config_var(\"LINKFORSHARED\")+\" -L\"+distutils.sysconfig.get_config_vars(\"LIBDIR\").__getitem__(0)+\" -l\"+distutils.sysconfig.get_config_vars(\"BLDLIBRARY\").__getitem__(0).replace(\"lib\", \"\").replace(\".a\", \"\"))" | "$with_python_prog" 2>&1` python_config_status=$? if test "$python_config_status" -ne 0 || test "x$python_library_flags" = "x" @@ -3180,7 +3177,7 @@ if test "x$with_python" = "xyes" then LDFLAGS="-L$python_library_path $LDFLAGS" - LIBS="$python_library_flags $LIBS" + LIBS="$python_library_flags $LIBS -lm -lpthread -lutil" AC_CHECK_FUNC(PyObject_CallFunction, [with_python="yes"], --------------000606070509010808020602--