From owner-freebsd-ports-bugs@FreeBSD.ORG Mon May 31 23:01:02 2004 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 C22FF16A4CE for ; Mon, 31 May 2004 23:01:02 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5E7543D48 for ; Mon, 31 May 2004 23:01:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i5160iZJ007416 for ; Mon, 31 May 2004 23:00:44 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i5160iml007412; Mon, 31 May 2004 23:00:44 -0700 (PDT) (envelope-from gnats) Resent-Date: Mon, 31 May 2004 23:00:44 -0700 (PDT) Resent-Message-Id: <200406010600.i5160iml007412@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, Hiroki Sato Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C9B6316A4CE for ; Mon, 31 May 2004 22:50:30 -0700 (PDT) Received: from smtp.eos.ocn.ne.jp (eos.ocn.ne.jp [211.6.83.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA90B43D4C for ; Mon, 31 May 2004 22:50:29 -0700 (PDT) (envelope-from hrs@allbsd.org) Received: from delta.allbsd.org (p44247-adsao12honb4-acca.tokyo.ocn.ne.jp [219.114.51.247]) by smtp.eos.ocn.ne.jp (Postfix) with ESMTP id CF0F713AE for ; Tue, 1 Jun 2004 14:50:19 +0900 (JST) Received: from alph.allbsd.org (alph.allbsd.org [192.168.0.10]) by delta.allbsd.org (8.12.9p2/8.12.9) with ESMTP id i515ncA2026041 for ; Tue, 1 Jun 2004 14:49:38 +0900 (JST) (envelope-from hrs@alph.d.allbsd.org) Received: from alph.allbsd.org (localhost [127.0.0.1]) by alph.allbsd.org (8.12.11/8.12.11) with ESMTP id i515nb5R052841 for ; Tue, 1 Jun 2004 14:49:37 +0900 (JST) (envelope-from hrs@alph.d.allbsd.org) Received: (from hrs@localhost) by alph.allbsd.org (8.12.11/8.12.11/Submit) id i515nbi1052761; Tue, 1 Jun 2004 14:49:37 +0900 (JST) (envelope-from hrs) Message-Id: <200406010549.i515nbi1052761@alph.allbsd.org> Date: Tue, 1 Jun 2004 14:49:37 +0900 (JST) From: Hiroki Sato To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/67436: patch for bsd.port.mk: GNU_CONFIGURE_PREFIX_SUBDIR X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Hiroki Sato List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2004 06:01:02 -0000 >Number: 67436 >Category: ports >Synopsis: patch for bsd.port.mk: GNU_CONFIGURE_PREFIX_SUBDIR >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon May 31 23:00:44 PDT 2004 >Closed-Date: >Last-Modified: >Originator: Hiroki Sato >Release: FreeBSD 4.9-STABLE i386 >Organization: Tokyo University of Science >Environment: System: FreeBSD alph.allbsd.org 4.9-STABLE FreeBSD 4.9-STABLE #2: Fri Mar 19 04:20:12 JST 2004 hrs@alph.allbsd.org:/usr/obj/usr/src/sys/ALPH i386 >Description: When GNU_CONFIGURE is set, the last component of CONFIGURE_ARGS always becomes --prefix=${PREFIX} ${CONFIGURE_TARGET}. However, it is a problem for ports (such as sort of suite software) which should be installed into a single directory like ${PREFIX}/somewhere. Currently, such ports redefine CONFIGURE_ARGS after including bsd.port.mk (net-mgmt/bigsister) or use HAS_CONFIGURE and CONFIGURE_ARGS (cad/alliance) manually. I suggest adding GNU_CONFIGURE_PREFIX_SUBDIR (or the like. This name is too long) and making CONFIGURE_ARGS respect it. >How-To-Repeat: N/A >Fix: Index: bsd.port.mk =================================================================== RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v retrieving revision 1.489 diff -d -u -I\$FreeBSD:.*\$ -I\$NetBSD:.*\$ -I\$OpenBSD:.*\$ -I\$DragonFly:.*\$ -I\$Id:.*\$ -I\$hrs:.*\$ -r1.489 bsd.port.mk --- bsd.port.mk 27 May 2004 11:29:06 -0000 1.489 +++ bsd.port.mk 1 Jun 2004 04:03:16 -0000 @@ -665,6 +665,9 @@ # configure stage will not do anything if this is not set. # GNU_CONFIGURE - Set if you are using GNU configure (optional). Implies # HAS_CONFIGURE. +# GNU_CONFIGURE_PREFIX_SUBDIR - +# Set if you want to use a subdirectory under default prefix +# as the prefix. See also CONFIGURE_ARGS. # PERL_CONFIGURE - Configure using Perl's MakeMaker. Implies USE_PERL5. # CONFIGURE_WRKSRC - Directory to run configure in (default: ${WRKSRC}). # CONFIGURE_SCRIPT - Name of configure script, relative to ${CONFIGURE_WRKSRC} @@ -674,7 +677,11 @@ # defined (default: ${MACHINE_ARCH}-portbld-freebsd${OSREL}). # CONFIGURE_ARGS - Pass these args to configure if ${HAS_CONFIGURE} is set # (default: "--prefix=${PREFIX} ${CONFIGURE_TARGET}" if -# GNU_CONFIGURE is set, "CC=${CC} CCFLAGS=${CFLAGS} +# GNU_CONFIGURE is set, +# "--prefix=${PREFIX}/${GNU_CONFIGURE_PREFIX_SUBDIR} +# ${CONFIGURE_TARGET}" if both of GNU_CONFIGURE and +# GNU_CONFIGURE_PREFIX_SUBDIR are set, +# "CC=${CC} CCFLAGS=${CFLAGS} # PREFIX=${PREFIX} INSTALLPRIVLIB=${PREFIX}/lib # INSTALLARCHLIB=${PREFIX}/lib" if PERL_CONFIGURE is set, # empty otherwise). @@ -2355,7 +2362,11 @@ CONFIGURE_MAX_CMD_LEN!= /usr/sbin/sysctl -n kern.argmax .endif .endif +.if defined(GNU_CONFIGURE_PREFIX_SUBDIR) +CONFIGURE_ARGS+= --prefix=${PREFIX}/${GNU_CONFIGURE_PREFIX_SUBDIR} ${CONFIGURE_TARGET} +.else CONFIGURE_ARGS+= --prefix=${PREFIX} ${CONFIGURE_TARGET} +.endif CONFIGURE_ENV+= lt_cv_sys_max_cmd_len=${CONFIGURE_MAX_CMD_LEN} HAS_CONFIGURE= yes .endif >Release-Note: >Audit-Trail: >Unformatted: