ports/60557: print/cups port lacks of building tunables
Seva Gluschenko
gvs at rinet.ru
Thu Dec 25 13:20:17 UTC 2003
>Number: 60557
>Category: ports
>Synopsis: print/cups port lacks of building tunables
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Dec 25 05:20:14 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Seva Gluschenko
>Release: FreeBSD 5.2-CURRENT i386
>Organization:
Yandex LLC
>Environment:
System: FreeBSD road.yandex.ru 5.2-CURRENT FreeBSD 5.2-CURRENT #2: Mon Dec 22 19:53:00 MSK 2003 root@:/local/obj/local/usr/src/sys/ROAD i386
>Description:
CUPS (common UNIX printing system) has the following configure switches:
--with-perl Enable Perl interpreter interface
--with-php Enable PHP interpreter interface
--with-python Enable Python interpreter interface
which neither can be selected by port building tunables. Proposed patch
addresses this problem.
Also, while stating WANT_AUTOCONF_VER=253 clause in Makefile, CUPS doesn't
really need autoconf to be built.
>How-To-Repeat:
CVSup the latest print/cups (and print/cups-base) port and try to make cups-base,
then break the build at the configure stage, cd to work/cups-* and try
./configure --help. You'll notice the tunables described above.
>Fix:
Apply patch below, then cd to print/cups-base and type make WITH_PERL=yes or
WITH_PHP=yes or WITH_PYTHON=yes (whatever you might find suitable for your
environment).
Apply patch:
cd /usr/ports
patch < /path/to/this_message
The patch itself follows.
N.B.: I haven't PHP installed, just guessing it has "php" executable, so
actual RUN_DEPENDS for WITH_PHP tunable might differ.
--- print/cups/Makefile.common.orig Thu Dec 25 15:55:35 2003
+++ print/cups/Makefile.common Thu Dec 25 16:06:16 2003
@@ -47,7 +47,22 @@
png.5:${PORTSDIR}/graphics/png \
tiff.4:${PORTSDIR}/graphics/tiff
-WANT_AUTOCONF_VER= 253
+.if defined(WITH_PERL)
+CONFIGURE_ARGS+= --with-perl
+RUN_DEPENDS+= perl:${PORTSDIR}/lang/perl5
+.endif
+
+.if defined(WITH_PHP)
+CONFIGURE_ARGS+= --with-php
+RUN_DEPENDS+= php:${PORTSDIR}/lang/php4
+.endif
+
+.if defined(WITH_PYTHON)
+CONFIGURE_ARGS+= --with-python
+RUN_DEPENDS+= python:${PORTSDIR}/lang/python23
+.endif
+
+#WANT_AUTOCONF_VER= 253
USE_BZIP2= yes
USE_GMAKE= yes
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list