[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Compiling true amd64 binaries on woody?



I'm still stuck on/in woody on all my systems. Can't change just
yet (I'm working on it), but in the meantime I'm trying to
create packages that's true amd64.

The kernel is from sarge (true amd64 kernel), but the rest
of the system is pure woody.

I was hoping that all I had to do was to get dpkg recompiled,
and that worked somewhat. 


Looking at what's happening when 'debuild' is building a package,
I found 'dpkg-architecture -qDEB_HOST_ARCH' (which is run by
'dpkg-gencontrol'). Running 'dpkg-architecture' without params
will give me:

----- s n i p -----
DEB_BUILD_ARCH=amd64
DEB_BUILD_GNU_CPU=x86_64
DEB_BUILD_GNU_SYSTEM=linux
DEB_BUILD_GNU_TYPE=x86_64-linux
DEB_HOST_ARCH=i386
DEB_HOST_GNU_CPU=i386
DEB_HOST_GNU_SYSTEM=linux
DEB_HOST_GNU_TYPE=i386-linux
----- s n i p -----

So, is there a trick to fool 'dpkg-architecture' ('debuild' or
'dpkg-gencontrol' etc) that it should use the 'DEB_BUILD_ARCH'
instead?


I guess I _could_ hack '/usr/lib/dpkg/controllib.pl:findarch()'
to retreive the 'DEB_BUILD_ARCH' value instead of the current
'DEB_HOST_ARCH' but I was hoping for something smarter...
-- 
AK-47 Panama 747 Ortega Noriega Albanian critical nuclear security
toluene counter-intelligence Serbian ammunition cracking BATF
[See http://www.aclu.org/echelonwatch/index.html for more about this]



Reply to: