From owner-freebsd-ports Wed Apr 25 8:23:35 2001 Delivered-To: freebsd-ports@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 65D5337B422 for ; Wed, 25 Apr 2001 08:23:28 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 74206 invoked by uid 100); 25 Apr 2001 15:23:27 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15078.60399.363268.263357@guru.mired.org> Date: Wed, 25 Apr 2001 10:23:27 -0500 To: ports@freebsd.org Subject: RFD: How about tagging packages as "Portable"? X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org One of the problems with the package system is that pkg_add will gladly set the prefix on a package it's adding, even if the resulting install breaks. How about adding yet another magic comment to the PLIST, along with a flag for pkg_create to set it and a variable in the bsd.port.mk to uset the flag? This one would be a boolean called "RELOCATABLE" (or something similar) to indicate that the compiled binaries can be move without breaking them. If it's not in the pkg then pkg_add would treat using the p flag as an error, and exit unless the f flag were set. pkg_create would get a new flag (R seems to be free) to cause it to add a "relocatable" flag to the package. Finally, bsd.port.mk would need a hook to add that flag to PKG_ARGS if the appropriate make variable (RELOCATABLE ?) were set in the ports Makefile. I'm not enough of a pkg_install maven to know if there's a better method than another comment in the PLIST, but it all seems straightforward to implement. I don't really see a downside, unless port authors don't ever bother marking their ports as RELOCATABLE. I'm sufficiently buried that I wanted to get feedback from others - hopefully including someone who'll implement this - before starting on it myself. Thanx, http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message