From bart@muon.jukie.net Wed Jul 16 20:10:12 2003 Date: Wed, 16 Jul 2003 20:11:48 -0400 From: Bart Trojanowski To: debian-x86-64@lists.debian.org Cc: debian-devel@lists.debian.org, debian-dpkg@lists.debian.org, debian-s390@lists.debian.org Subject: dpkg subarch patch --XK4NhNJ9GVfup2vH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello all: Note that this is intended as temporary measure that allows for amd64 and i386 packages to co-exist in Debian. Adam Heath is planning a solution that, in his opinion, will suit the Debian and dpkg policies better. However, the amd64 porting project is currently in a desperate need of something that does allow for i386/amd64 split system (mostly due to the /lib vs /lib64 problem). To that end, I've patched dpkg to support sub-architectures in a way similar to the way it's done on RPM. * Where to get it? Patches can be found here [1]. [1] http://www.jukie.net/~bart/debian/amd64/patches/dpkg/ My patch (dpkg-1.10.10+lib64+subarch.clean.patch) contains the lib64 patch from Gerhard Tonn, which is available separately from his site [2]. [2] http://people.debian.org/~gt/lib64/dpkg-lib64.patch Both patches are made against dpkg=3D1.10.10. * How it works? The config file is located in /usr/share/dpkg/subarchtable. It is parsed at runtime so it can be modified by users for their needs. The format is as follows: # comment : ... An can have multiple 's, where a package compiled for a can be installed on . Simple example of the x86 subarch relationship: amd64: i686 i686: i586 i586: i486 i486: i386 Note that the list is tested recursively. The following rules are implied: : # a .deb can always be installed natively i386: all # an _all.deb can be installed anywhere * Other uses? The patch also addresses 32/64 bit problems on sparc and s390 architectures. Feel free to test that theory :) Finally this can be used to generate optimized packages for other subarchitectures (like glibc compiled with -mcpu=3Di686). This is not something I was trying to address and would likely require more work (like fixing the archtable and dpkg-architecture for one). If there are any problems, please let me know. Regards, Bart. --=20 WebSig: http://www.jukie.net/~bart/sig/ --XK4NhNJ9GVfup2vH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE/FenE/zRZ1SKJaI8RAtSHAKC+oDGG3KnKoq3hf10ANHdI0nAJegCgnR4Z FmoC7HV48b/FpxiuTrGoYyk= =R7mh -----END PGP SIGNATURE----- --XK4NhNJ9GVfup2vH--