Date: Wed, 17 Mar 1999 05:28:00 -0700 From: Brandon Gillespie <brandon@roguetrader.com> To: freebsd-hackers@freeBSD.org Subject: global Makefile(s) BINDIR inconsistency with DESTDIR Message-ID: <19990317052800.A1102@ice.cold.org>
next in thread | raw e-mail | index | archive | help
--9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Forgive me if this is incorrect, but there appears to be a major inconsistency in the use of ${BINDIR} througout the heirarchy, in regard to ${DESTDIR} and installation. I am not fully certain what the role of BINDIR is, but it appears people are also using it as a destination install directory--without at least prefixing ${DESTDIR}. I am trying to build a 4.0/CURRENT tree and install it onto a jaz drive (or really any alternate drive)--so I can boot it without effecting the stability of the primary OS due to my changes. I am building it ala: make buildworld && make DESTDIR=/jaz installworld Everything is fine, except for not everything pays attention to DESTDIR. The problem is that BINDIR is not defined using DESTDIR, which is OK, but then in some cases people use it as if it should. If you doubt, cd to your source directory and type: fgrep BINDIR */*/Makefile This probably would not have been a problem, but i am low on space on my root partition, and when one of the things (dhclient) was installing into /sbin instead of ${DESTDIR}/sbin, it filled up /. Suggested fix? I suppose we (I?) can scan the source for all offending usages, which I am willing to do if this is really a problem. My suggestion would be to make a DESTBIN which is simply defined at the same time as BINDIR, as ${DESTDIR}${BINDIR}. If it is a prob, I can submit a bug report. -Brandon Gillespie --9amGYk9869ThD9tj Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use MessageID: a61IgqP/JDdU0jmFq9aoYd/zYsBk6Zot iQA/AwUBNu+fz0v5XoQiMgn6EQLH8gCgzDuGwgThxdwYAFxkm3bdigSegWMAn2FL V8ZE2vxIhJYUHxPnwCfb3tP1 =dOBs -----END PGP SIGNATURE----- --9amGYk9869ThD9tj-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990317052800.A1102>