Re: progress info
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 05 June 2003 21:06, Jeffrey W. Baker wrote:
> I noticed that http://www.arndb.de/debian/packages/ has a shedload of
> packages. Looks like someone has been busy. Have you been modifying
> dpkg? I am suddenly in a pickle and I need to build a 64-bit mysql
> right away. I hacked it into submission but only by ignoring
> dpkg-architecture output. Building mysql requires 64-bit perl,
> libstdc++, zlib, and openssl. Each of these build scripts calls
> dpkg-architecture to find its arch.
Are you sure that perl needs to be 64 bit? Perl is kind of difficult besides
needing libdb4.0-dev libgdbmg1-dev. I'll try to see what I can do about
openssl, maybe you can find a way to build mysql without a native perl.
> What is the best way to modify this build system to get the arch you
> want? Add a switch dpkg-architecture --64, that will emit amd64 instead
> of i386?
No, that switch is not needed. dpkg-architecture finds the host architecture
by running the compiler and works correctly if gcc is configured for amd64.
You can get there by replacing the /usr/bin/gcc symlink with a trivial
script like the one below (you also need 'export CFLAGS64=-m64' for that).
The packaged dpkg-architecture needs a simple entry for amd64 as in the
patch.
Arnd <><
- --- /dev/null
+++ /usr/bin/gcc
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec $0-3.3 ${CFLAGS64} ${1+"$@"}
+
- --- /usr/bin/dpkg-architecture.orig
+++ /usr/bin/dpkg-architecture
@@ -69,7 +69,8 @@
'freebsd-i386', 'i386-freebsd',
'netbsd-i386', 'i386-netbsdelf-gnu',
'darwin-powerpc', 'powerpc-darwin',
- - 'darwin-i386', 'i386-darwin');
+ 'darwin-i386', 'i386-darwin',
+ 'amd64', 'x86_64-linux');
sub usageversion {
print STDERR
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+37DB5t5GS2LDRf4RAilkAKCM7PwsgJx9xmzd9rkNVqfFeHqgQACfW1yP
koR7HSeA4sqyyzl+/BZLRU8=
=2kaI
-----END PGP SIGNATURE-----
Reply to: