From owner-freebsd-ports Tue Aug 11 04:50:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA19338 for freebsd-ports-outgoing; Tue, 11 Aug 1998 04:50:08 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA19330 for ; Tue, 11 Aug 1998 04:50:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id EAA17144; Tue, 11 Aug 1998 04:50:01 -0700 (PDT) Date: Tue, 11 Aug 1998 04:50:01 -0700 (PDT) Message-Id: <199808111150.EAA17144@freefall.freebsd.org> To: freebsd-ports@FreeBSD.ORG From: asami@FreeBSD.ORG (Satoshi Asami) Subject: Re: ports/7572 Reply-To: asami@FreeBSD.ORG (Satoshi Asami) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR ports/7572; it has been noted by GNATS. From: asami@FreeBSD.ORG (Satoshi Asami) To: andreas@klemm.gtn.com Cc: cracauer@cons.org, FreeBSD-gnats-submit@FreeBSD.ORG, andreas@FreeBSD.ORG Subject: Re: ports/7572 Date: Tue, 11 Aug 1998 04:45:40 -0700 (PDT) (Quoting in full to put it in audit-trail of correct PR.) Andreas: * Hmm, I think you triggered the trap by defining PREFIX explicitely * in /etc/make.conf. * * Normally this shouldn't happen, because the port defines * USE_X_PREFIX in Makefile. If you dig into bsd.ports.mk: * * .if defined(USE_X_PREFIX) * USE_X11= yes * .endif * .if defined(USE_X_PREFIX) * PREFIX?= ${X11BASE} * .else * PREFIX?= ${LOCALBASE} * .endif * * You should see, that PREFIX will be set to ${X11BASE} * * But you are right, the port will be broken, if somebody sets his * own PREFIX variable. That's because the port uses both PREFIX and X11BASE. It should use PREFIX only it is equal to X11BASE in this case. X11BASE is for non-X ports that need to refer to /usr/X11R6 or its equivalent. (Similarly, LOCALBASE is for X ports to refer to /usr/local or its equivalent.) * So, what's the real use of defining USE_X_PREFIX, instead of using * directly X11BASE instead of PREFIX ?! * * I think of cases, where people want their X11 stuff still live * in /usr/X11R6 but local ports in /local or something else ... Satoshi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message