On Thu, May 08, 2003 at 08:56:26PM +0200, Ralf S. Engelschall wrote:
...
>I think the --program-prefix=g approach is the most reasonable, because
>similar to "uname", other things can break, too. I've now added a
>package option "with_prefix" (with default value "yes") which if enabled
>uses --program-prefix=g. Thanks for the feedback.

This works, but on non-Linux systems still leaves problems where the RPM
program uses options to programs line chown, chmod, chgrp, and cp which
aren't understood by the host system.  I ran into this on FreeBSD after
updating the coreutils, and did a Crude Hack(tm) making some symlinks to
the non-g-prefix names in %{l_prefix}/bin so they would be seen.

This brings me back to my contention that the gnu-ish versions of chown,
chmod, chgrp, cp, and probably install, belong in %{l_prefix}/lib/openpkg,
and that the corresponding RPM macros reference these programs.

One way to do this that might help in trimming the size of the bootstrap
package as well would be to build them using the ``busybox'' code that's
used in many embedded Linux systems.  I'm not sure how busybox ports to
non-Linux systems, but my guess is that it's not difficult.  It's designed
for static linking, is quite small by comparison, and should provide the
needed programs.

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Systems, Inc.
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

``Fix reason firmly in her seat and call to her tribunal every fact,
every opinion. Question with boldness even the existence of a God;
because, if there is one, he must more approve of the homage of 
reason, than that of blindfolded fear.''  --Thomas Jefferson
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   [EMAIL PROTECTED]

Reply via email to