From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Dec 25 05:20:17 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C38816A4CE for ; Thu, 25 Dec 2003 05:20:17 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B936943D3F for ; Thu, 25 Dec 2003 05:20:14 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) hBPDKEFR009967 for ; Thu, 25 Dec 2003 05:20:14 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id hBPDKETx009966; Thu, 25 Dec 2003 05:20:14 -0800 (PST) (envelope-from gnats) Resent-Date: Thu, 25 Dec 2003 05:20:14 -0800 (PST) Resent-Message-Id: <200312251320.hBPDKETx009966@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Seva Gluschenko Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9DEE616A4CE for ; Thu, 25 Dec 2003 05:11:12 -0800 (PST) Received: from road.yandex.ru (road.yandex.ru [213.180.193.165]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05B7543D1F for ; Thu, 25 Dec 2003 05:11:11 -0800 (PST) (envelope-from gvs@road.yandex.ru) Received: from road.yandex.ru (localhost [127.0.0.1]) by road.yandex.ru (8.12.10/8.12.10) with ESMTP id hBPDDnRD022968 for ; Thu, 25 Dec 2003 16:13:49 +0300 (MSK) (envelope-from gvs@road.yandex.ru) Received: (from root@localhost) by road.yandex.ru (8.12.10/8.12.10/Submit) id hBPDDnEj022967; Thu, 25 Dec 2003 16:13:49 +0300 (MSK) (envelope-from gvs) Message-Id: <200312251313.hBPDDnEj022967@road.yandex.ru> Date: Thu, 25 Dec 2003 16:13:49 +0300 (MSK) From: Seva Gluschenko To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/60557: print/cups port lacks of building tunables X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Dec 2003 13:20:17 -0000 >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: