From owner-freebsd-hackers Thu Dec 20 10:31:50 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from tomts14-srv.bellnexxia.net (tomts14.bellnexxia.net [209.226.175.35]) by hub.freebsd.org (Postfix) with ESMTP id 8D16337B417; Thu, 20 Dec 2001 10:31:39 -0800 (PST) Received: from khan.anarcat.dyndns.org ([65.94.189.35]) by tomts16-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011220183113.WUZQ19575.tomts16-srv.bellnexxia.net@khan.anarcat.dyndns.org>; Thu, 20 Dec 2001 13:31:13 -0500 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id B6551189D; Thu, 20 Dec 2001 13:31:10 -0500 (EST) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 7A13F20ACB; Thu, 20 Dec 2001 13:31:05 -0500 (EST) Date: Thu, 20 Dec 2001 13:31:04 -0500 From: The Anarcat To: freebsd-arch@freebsd.org Cc: freebsd-hackers@freebsd.org Subject: making /usr/share/mk apps PREFIX-independant??? Message-ID: <20011220183103.GH2956@shall.anarcat.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8w3uRX/HFJGApMzv" Content-Disposition: inline User-Agent: Mutt/1.3.24i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --8w3uRX/HFJGApMzv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [posted to -arch, and CC'd to hackers since I have no idea as to where this belongs, please redirect if necessary] Hi. As a developper working in the FreeBSD/ports paradigm, and developping exclusively for FreeBSD through the libh project, it has come to my attention that applications developped through /usr/share/mk Makefiles (in particular bsd.prog.mk and bsd.lib.mk) do not respect PREFIX.=20 That is, the libh Makefiles, as set now, install in /usr no matter what. There is no real alternative. Setting DESTDIR will install in /${DESTDIR}/usr, without changing the PREFIX (/usr).=20 In other words, apps developped using /usr/share/mk makefiles are incompatible with the ports collection PREFIX-independance paradigm. That sucks. This is a problem which must be solved. As a hack, the libh port uses a custom install target in the ports skeleton (ie, it doesn't use libh install targets). How I see it, the .mk files must be hacked. One could try such a replace pattern, I guess: s!install(.*)${DESTDIR}!install\1${PREFIX}/${DESTDIR}! I tried to produce a significant patch, and I failed. I do not understand how some files end up in /bin and some other in /usr/bin. If someone can help me with that, I will happily start hacking on the mk files, but in the meantime, I'm lost. thanks, A. --8w3uRX/HFJGApMzv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjwiLmcACgkQttcWHAnWiGdNfwCeN0cuYhJ8DEoNicPu4uwubr3X I9wAnAzmbCChXhqDPgF5u3fiHDrmPptd =zkxs -----END PGP SIGNATURE----- --8w3uRX/HFJGApMzv-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message