Date: Wed, 8 Aug 2007 12:31:56 +0200 (CEST) From: Michael Nottebrock <lofi@lofi.dyndns.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/115307: s/TARGETDIR/PREFIX Message-ID: <200708081031.l78AVu13092334@lofi.dyndns.org> Resent-Message-ID: <200708081320.l78DK1Yw009692@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 115307 >Category: ports >Synopsis: s/TARGETDIR/PREFIX >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Aug 08 13:20:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Michael Nottebrock >Release: FreeBSD 6.2-RELEASE-p2 i386 >Organization: >Environment: System: FreeBSD lofi.dyndns.org 6.2-RELEASE-p2 FreeBSD 6.2-RELEASE-p2 #8: Tue Mar 6 13:58:27 CET 2007 root@lofi.dyndns.org:/usr/obj/usr/src/sys/LOFI.4BSD i386 >Description: The jabberd Makefile uses an undefined variable TARGETDIR. As a result JABBER_ETCDIR ends up being /etc/jabberd (probably not intended) and USE_LDCONFIG ends up being /lib/jabberd (wrong unless PREFIX is /). The attached patch changes TARGETDIR to PREFIX. >How-To-Repeat: >Fix: --- jabberd.diff begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/net-im/jabberd/Makefile,v retrieving revision 1.43 diff -u -r1.43 Makefile --- Makefile 2 Aug 2007 08:34:42 -0000 1.43 +++ Makefile 8 Aug 2007 10:25:12 -0000 @@ -32,7 +32,7 @@ USE_OPENSSL= yes USE_ICONV= yes USE_RC_SUBR= jabberd -USE_LDCONFIG= ${TARGETDIR}/lib/jabberd +USE_LDCONFIG= ${PREFIX}/lib/jabberd CONFIGURE_ARGS+= --localstatedir=/var \ --sysconfdir=${PREFIX}/etc/jabberd \ --enable-ssl --enable-mio=poll \ @@ -44,7 +44,7 @@ JABBER_UID= 93 JABBER_GROUP= ${JABBER_USER} JABBER_GID= ${JABBER_UID} -JABBER_ETCDIR= "${TARGETDIR}/etc/jabberd" +JABBER_ETCDIR= "${PREFIX}/etc/jabberd" JABBER_RUNDIR= "/var/jabberd" SUB_LIST+= JABBER_USER=${JABBER_USER} JABBER_UID=${JABBER_UID} \ --- jabberd.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708081031.l78AVu13092334>