From owner-freebsd-ports Thu Jun 7 9:32:23 2001 Delivered-To: freebsd-ports@freebsd.org Received: from victor.teaser.fr (victor.teaser.fr [213.91.2.241]) by hub.freebsd.org (Postfix) with ESMTP id 7743337B403; Thu, 7 Jun 2001 09:32:20 -0700 (PDT) (envelope-from lwa@victor.teaser.fr) Received: by victor.teaser.fr (Postfix, from userid 1000) id DC54F32608; Thu, 7 Jun 2001 18:32:14 +0200 (CEST) Date: Thu, 7 Jun 2001 18:32:14 +0200 From: Laurent Wacrenier To: markp@FreeBSD.org Cc: lwa@victor.teaser.fr, freebsd-ports@FreeBSD.org Subject: Re: ports/20601: DESTDIR and /etc/shells Message-ID: <20010607183214.A72332@victor.teaser.fr> Reply-To: lwa@victor.teaser.fr References: <200106071451.f57EpG068632@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200106071451.f57EpG068632@freefall.freebsd.org>; from markp@FreeBSD.org on Thu, Jun 07, 2001 at 07:51:16AM -0700 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org markp@FreeBSD.org wrote: > Synopsis: DESTDIR and /etc/shells > > State-Changed-From-To: open->closed > State-Changed-By: markp > State-Changed-When: Thu Jun 7 07:47:11 PDT 2001 > State-Changed-Why: > /etc/shells is special, changing ${PREFIX}/etc/shells is invalid. > > http://www.FreeBSD.org/cgi/query-pr.cgi?pr=20601 I does not understand how special it is to allow wrong informations in its contents. I did not wrote about ${PREFIX} but ${DESTDIR} wich are different macros with different semantics. DESTDIR is, for example, a chroot jail or a NFS mounted system. Updating /etc/shell is an Bad Thing in all case when DESTDIR is defined and is not "/". According /usr/share/mk/bsd.README : The variable DESTDIR works as before. It's not set anywhere but will change the tree where the file gets installed. According /usr/src/etc/Makefile, /etc/shells is not special in the FreeBSD source tree : BIN1= ... shells ... distribution: ... ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message