Re: How to detect 32 or 64 bit at build time?

2009-09-10 Thread Felipe Sateler
Laurent Guignard wrote: On Tue, 08 Sep 2009 00:05:55 -0400, Felipe Sateler wrote: Sven Joachim wrote: On 2009-09-07 12:54 +0200, Sven Joachim wrote: How about DEB_HOST_ARCH_BITS? This needs dpkg 1.15.4, though. Sorry, that should have been DEB_BUILD_ARCH_BITS. As Neil would

Re: How to detect 32 or 64 bit at build time?

2009-09-08 Thread Mike Hommey
On Tue, Sep 08, 2009 at 12:05:55AM -0400, Felipe Sateler wrote: Sven Joachim wrote: On 2009-09-07 12:54 +0200, Sven Joachim wrote: How about DEB_HOST_ARCH_BITS? This needs dpkg 1.15.4, though. Sorry, that should have been DEB_BUILD_ARCH_BITS. As Neil would have pointed out if he

Re: How to detect 32 or 64 bit at build time?

2009-09-08 Thread Jakub Wilk
* Mike Hommey m...@glandium.org, 2009-09-08, 08:47: Note it's always a pain that dpkg-architecture and autoconf use the same word for an opposite meaning. autoconf dpkg-architecture host DEB_BUILD_ target DEB_HOST_ Wrong, they don't. autoconf-build == DEB_BUILD_* (the

Re: How to detect 32 or 64 bit at build time?

2009-09-08 Thread Boyd Stephen Smith Jr.
In 20090908085536.gb3...@jwilk.net, Jakub Wilk wrote: autoconf-build == DEB_BUILD_* (the machine the package is built *on*). autoconf-host == DEB_HOST_* (the machine the package is built *for*). autoconf-target should be irrelevant as long as you don't (cross-)compile compilers. Even then it

Re: How to detect 32 or 64 bit at build time?

2009-09-08 Thread Laurent Guignard
On Tue, 08 Sep 2009 00:05:55 -0400, Felipe Sateler wrote: Sven Joachim wrote: On 2009-09-07 12:54 +0200, Sven Joachim wrote: How about DEB_HOST_ARCH_BITS? This needs dpkg 1.15.4, though. Sorry, that should have been DEB_BUILD_ARCH_BITS. As Neil would have pointed out if he were

Re: How to detect 32 or 64 bit at build time?

2009-09-07 Thread David Paleino
On Mon, 7 Sep 2009 12:32:27 +0200, Andreas Tille wrote: Hi, Hello Andreas :) the new version of arb I want to package requires to set a variable ARB_64=0/11=compile 64 bit version to specify whether it will be compiled on 32 or 64 bit architecture. Is there any safe way

Re: How to detect 32 or 64 bit at build time?

2009-09-07 Thread Sven Joachim
On 2009-09-07 12:32 +0200, Andreas Tille wrote: Hi, the new version of arb I want to package requires to set a variable ARB_64=0/11=compile 64 bit version to specify whether it will be compiled on 32 or 64 bit architecture. Is there any safe way to set this variable

Re: How to detect 32 or 64 bit at build time?

2009-09-07 Thread Sven Joachim
On 2009-09-07 12:54 +0200, Sven Joachim wrote: How about DEB_HOST_ARCH_BITS? This needs dpkg 1.15.4, though. Sorry, that should have been DEB_BUILD_ARCH_BITS. Sven -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact

Re: How to detect 32 or 64 bit at build time?

2009-09-07 Thread Andreas Tille
On Mon, Sep 07, 2009 at 10:50:54AM +, Bart Martens wrote: I guess that you're looking for: dpkg --print-architecture No. The result is equivalent to dpkg-architecture | grep -w DEB_BUILD_ARCH I'm locking for something that responds with 0 for 32 bit architectures and 1 for 64 bit

Re: How to detect 32 or 64 bit at build time?

2009-09-07 Thread Andreas Tille
On Mon, Sep 07, 2009 at 12:58:59PM +0200, Sven Joachim wrote: How about DEB_HOST_ARCH_BITS? This needs dpkg 1.15.4, though. Sorry, that should have been DEB_BUILD_ARCH_BITS. Cool, the version in unstable is the key. Thanks for the hint Andreas. -- http://fam-tille.de Klarmachen

Re: How to detect 32 or 64 bit at build time?

2009-09-07 Thread Steffen Moeller
Andreas Tille wrote: On Mon, Sep 07, 2009 at 12:58:59PM +0200, Sven Joachim wrote: How about DEB_HOST_ARCH_BITS? This needs dpkg 1.15.4, though. Sorry, that should have been DEB_BUILD_ARCH_BITS. Cool, the version in unstable is the key. This is nice, indeed. $ dpkg-architecture

Re: How to detect 32 or 64 bit at build time?

2009-09-07 Thread Felipe Sateler
Sven Joachim wrote: On 2009-09-07 12:54 +0200, Sven Joachim wrote: How about DEB_HOST_ARCH_BITS? This needs dpkg 1.15.4, though. Sorry, that should have been DEB_BUILD_ARCH_BITS. As Neil would have pointed out if he were still subscribed to -mentors, DEB_BUILD_* is almost always the

Re: How to detect 32 or 64 bit at build time?

2009-09-07 Thread Sven Joachim
On 2009-09-08 06:05 +0200, Felipe Sateler wrote: Sven Joachim wrote: On 2009-09-07 12:54 +0200, Sven Joachim wrote: How about DEB_HOST_ARCH_BITS? This needs dpkg 1.15.4, though. Sorry, that should have been DEB_BUILD_ARCH_BITS. As Neil would have pointed out if he were still