Date: Mon, 17 Mar 2014 19:51:04 GMT From: Eero Hänninen <fax@nohik.ee> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/187674: [PATCH] sysutils/syslog-ng missing dependecy Message-ID: <201403171951.s2HJp4FQ024029@cgiserv.freebsd.org> Resent-Message-ID: <201403172000.s2HK004q078827@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403171951.s2HJp4FQ024029>