Re: autoconf and setting prefix
Oliver Kurth <[EMAIL PROTECTED]> writes: > > Specifying prefix on the make command line should work and not try to > > install to /usr (though he appears to be using it incorrectly so > > probably won't get what he wants). > > Using prefix is dangerous, because it may be compiled into the code or > scripts. It may work with most packages, but not all. prefix is meant > to be the final destination. No, its use for this purpose is well defined (and required by the GNU coding standards). You probably already know this, but for anyone that doesn't: if you want to install to a prefix that's different than the one compiled into the program, you must do `make' and `make install prefix=...' as two separate steps. The G.C.S. require that any package that embeds paths must do so only at compile time, not at install time, thus the above usage is safe. > If DESTDIR is not supported, we should make it to support it, and send > the fix to upstream. As with bugs in the handling of prefix. -Miles -- In New York, most people don't have cars, so if you want to kill a person, you have to take the subway to their house. And sometimes on the way, the train is delayed and you get impatient, so you have to kill someone on the subway. [George Carlin]
Re: autoconf and setting prefix
On Tue, Sep 09, 2003 at 10:45:15AM +0900, Miles Bader wrote: > James Michael Greenhalgh <[EMAIL PROTECTED]> writes: > > > (cd build && $(MAKE) install prefix=$(CURDIR)/debian/gcc4arm/usr) > > > > Dunno about 'prefix=' ... I've always used 'DESTDIR='? > > Specifying prefix on the make command line should work and not try to > install to /usr (though he appears to be using it incorrectly so > probably won't get what he wants). Using prefix is dangerous, because it may be compiled into the code or scripts. It may work with most packages, but not all. prefix is meant to be the final destination. > DESTDIR is convenient, but not supported by as many packages (gcc does > support it though). If DESTDIR is not supported, we should make it to support it, and send the fix to upstream. Greetings, Oliver -- .''`. : :' :Oliver Kurth [EMAIL PROTECTED] `. `' Debian GNU/Linux maintainer - www.debian.org `- When sending passwords, please use my gpg key. That's what it's good for. pgpsKmrm2JVU2.pgp Description: PGP signature
[OFF TOPIC] Re: autoconf and setting prefix
On Mon, 9 Sep 2003, Miles Bader wrote: > -- > "Whatever you do will be insignificant, but it is very important that > you do it." Mahatma Ghandi AAARGH it's Gandhi not Ghandi. Gan*dh*i! Sorry it's the third or fourth time I've seen that today. -- Jaldhar (not Jhaldar) H. Vyas <[EMAIL PROTECTED]>
Re: autoconf and setting prefix
James Michael Greenhalgh <[EMAIL PROTECTED]> writes: > > (cd build && $(MAKE) install prefix=$(CURDIR)/debian/gcc4arm/usr) > > Dunno about 'prefix=' ... I've always used 'DESTDIR='? Specifying prefix on the make command line should work and not try to install to /usr (though he appears to be using it incorrectly so probably won't get what he wants). DESTDIR is convenient, but not supported by as many packages (gcc does support it though). -Miles -- "Whatever you do will be insignificant, but it is very important that you do it." Mahatma Ghandi
Re: autoconf and setting prefix
Actually after saying that, I had an epiphany. Why don't I just look at the gcc debian package source. Everyone can ignore that last message David -- David Meggy Engineering Technical Solutions Inc. Unit #1 7157 Honeyman St Delta BC Canada, V4G 1E2 www.techsol.ca eMail: [EMAIL PROTECTED] Tel: 604 946 TECH (8324) Fax: 604 946 6445
Re: autoconf and setting prefix
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On September 08, 2003 20:28, David Meggy wrote: > from debian/rules install line > (cd build && $(MAKE) install prefix=$(CURDIR)/debian/gcc4arm/usr) > Hi David, Dunno about 'prefix=' ... I've always used 'DESTDIR='? - -James - -- James Michael Greenhalgh [EMAIL PROTECTED] https://opendoorsoftware.com open minds providing open source solutions -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/XSRPgZMynI5GLOURAtWOAJwLcoZ6UWXE5UKchRQRkEeaRdj99wCgi/ZI z75tRs1yiOjMbQgZji9W3ac= =/iOM -END PGP SIGNATURE-