Re: autoconf and setting prefix

2003-09-09 Thread Oliver Kurth
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


Re: autoconf and setting prefix

2003-09-09 Thread Miles Bader
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]




autoconf and setting prefix

2003-09-08 Thread David Meggy
Hi, I don't know if this has been asked before or not, but I couldn't
find anything using google.

I'm trying to build a gcc 3.3.1 cross compiler package for woody, so I
use the following line in debian/rules
(cd build  ../configure --target=arm-linux --enable-target-optspace
--enable-languages=c,c++,java --disable-multilib --disable-threads
--with-gnu-ld --disable-nls --disable-shared --host=$(DEB_HOST_GNU_TYPE)
--build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr
--includedir=\$${prefix}/arm-linux/include
--mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info )

from debian/rules install line
(cd build  $(MAKE) install prefix=$(CURDIR)/debian/gcc4arm/usr)

When I get to this install line, it tries to install includes to
/usr/arm-linux/include, instead of
$(CURDIR)/debian/gcc4arm/usr/arm-linux/include

Is this a problem with autoconf/automake?  Has anyone run into this
before?

I've already made cross compiling packages for binutils, kernel headers,
and a C library, which all use /usr/arm-linux as the base for arm
libraries  headers, and I'm currently trying to get the c++ and java
cross compilers built.


-- 

 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

2003-09-08 Thread James Michael Greenhalgh
-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-




Re: autoconf and setting prefix

2003-09-08 Thread David Meggy
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

2003-09-08 Thread Miles Bader
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




[OFF TOPIC] Re: autoconf and setting prefix

2003-09-08 Thread Jaldhar H. Vyas
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]