From owner-freebsd-ports Sun Jul 2 3:26:10 2000 Delivered-To: freebsd-ports@freebsd.org Received: from smtp10.atl.mindspring.net (smtp10.atl.mindspring.net [207.69.200.246]) by hub.freebsd.org (Postfix) with ESMTP id AC88C37B67E; Sun, 2 Jul 2000 03:26:04 -0700 (PDT) (envelope-from asami@cs.berkeley.edu) Received: from silvia.hip.berkeley.edu (sji-ca14-12.ix.netcom.com [205.186.215.12]) by smtp10.atl.mindspring.net (8.9.3/8.8.5) with ESMTP id GAA10835; Sun, 2 Jul 2000 06:26:02 -0400 (EDT) Received: (from asami@localhost) by silvia.hip.berkeley.edu (8.9.3/8.6.9) id DAA71750; Sun, 2 Jul 2000 03:26:00 -0700 (PDT) To: Maxim Sobolev Cc: ports@FreeBSD.org Subject: Re: cvs commit: ports/net/ucd-snmp Makefile References: <200006180936.CAA97894@freefall.freebsd.org> From: asami@FreeBSD.org (Satoshi - Ports Wraith - Asami) Date: 02 Jul 2000 03:25:58 -0700 In-Reply-To: Maxim Sobolev's message of "Sun, 18 Jun 2000 02:36:13 -0700 (PDT)" Message-ID: Lines: 53 X-Mailer: Gnus v5.7/Emacs 20.6 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * sobomax 2000/06/18 02:36:13 PDT * The port assigns PLIST_SUB after is included, so substitution * of %%PREFIX%% for ldconfig didn't work. * Revision Changes Path * 1.48 +3 -3 ports/net/ucd-snmp/Makefile Yikes. This is a bug in bsd.port.mk, it shouldn't require anything to be defined in Makefiles with +=. Will the following fix the problem? (Note this is a hand-edited patch -- don't worry about the extra context....) Satoshi ------- Index: bsd.port.mk =================================================================== RCS file: /usr/cvs/ports/Mk/bsd.port.mk,v retrieving revision 1.340 diff -u -r1.340 bsd.port.mk --- bsd.port.mk 2000/06/16 21:52:40 1.340 +++ bsd.port.mk 2000/07/02 10:21:45 @@ -608,12 +611,10 @@ .endif .if defined(USE_X_PREFIX) PREFIX?= ${X11BASE} .else PREFIX?= ${LOCALBASE} .endif -PLIST_SUB+= PREFIX=%D LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} - .if defined(USE_OPENSSL) .if ${OSVERSION} >= 400014 .if !exists(/usr/lib/libcrypto.so) @@ -682,14 +685,15 @@ .else WRKSRC?= ${WRKDIR}/${DISTNAME} .endif + +PLIST_SUB+= OSREL=${OSREL} PREFIX=%D LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} -PLIST_SUB+= OSREL=${OSREL} CONFIGURE_ENV+= PORTOBJFORMAT=${PORTOBJFORMAT} SCRIPTS_ENV+= PORTOBJFORMAT=${PORTOBJFORMAT} MAKE_ENV+= PORTOBJFORMAT=${PORTOBJFORMAT} PLIST_SUB+= PORTOBJFORMAT=${PORTOBJFORMAT} .if defined(MANCOMPRESSED) .if ${MANCOMPRESSED} != yes && ${MANCOMPRESSED} != no && \ ${MANCOMPRESSED} != maybe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message