ports/187674: [PATCH] sysutils/syslog-ng missing dependecy
Eero Hänninen
fax at nohik.ee
Mon Mar 17 20:00:01 UTC 2014
>Number: 187674
>Category: ports
>Synopsis: [PATCH] sysutils/syslog-ng missing dependecy
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Mar 17 20:00:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Eero Hänninen
>Release: 10.0-RELEASE
>Organization:
>Environment:
FreeBSD labakinnas 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root at snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
syslog-ng requires python for build amqp module. Python dependency is missing from syslog-ng port Makefile. Fortunately glib20 pulls python dependency in, but there is still problem when you try build things against python3.
checking if compiler accepts '-fno-common'... yes
checking if compiler accepts '-fvisibility=hidden'... yes
checking if linker accepts '-no-undefined'... yes
checking for a Python interpreter with version >= 2.5... python3.3
checking for python3.3... /usr/local/bin/python3.3
checking for python3.3 version... 3.3
checking for python3.3 platform... freebsd10
checking for python3.3 script directory... ${prefix}/lib/python3.3/site-packages
checking for python3.3 extension module directory... ${exec_prefix}/lib/python3.3/site-packages
checking python3.3 module: json... yes
checking for 2to3... no
configure: error: Unable to find 2to3 python utility
configure: error: ./configure.gnu failed for modules/afamqp/rabbitmq-c
===> Script "configure" failed unexpectedly.
>How-To-Repeat:
take clean enviroment
add default versions line to make.conf
DEFAULT_VERSIONS=python=3.3 python3=3.3
make -C /usr/ports/sysutils/syslog-ng
>Fix:
Add 2to3 utility to build dependency, and it provider lang/python which will provide correct links to right default version python.
Patch attached
Patch attached with submission follows:
diff -ruN syslog-ng.orig/Makefile syslog-ng/Makefile
--- syslog-ng.orig/Makefile 2014-03-04 22:52:09.000000000 +0200
+++ syslog-ng/Makefile 2014-03-17 16:14:48.000000000 +0200
@@ -39,6 +39,8 @@
LIB_DEPENDS= libevtlog.so:${PORTSDIR}/sysutils/eventlog
+USE_PYTHON= yes
+BUILD_DEPENDS= 2to3:${PORTSDIR}/lang/python
USE_LDCONFIG= yes
USE_RC_SUBR= syslog-ng
GNU_CONFIGURE= yes
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list