ports/165545: [patch]: net-mgmt/collectd5 doesn't compile
against lang/python[23]*
Mel Flynn
rflynn at acsalaska.net
Tue Mar 20 17:40:11 UTC 2012
The following reply was made to PR ports/165545; it has been noted by GNATS.
From: Mel Flynn <rflynn at acsalaska.net>
To: bug-followup at FreeBSD.org, pgollucci at 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--
More information about the freebsd-python
mailing list