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

Re: Unpleasant bug in dpkg-cross



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> I've just found one more bug in dpkg-cross -b, that unfortunately
> affects as important package as linux-kernel-headers, at least on arm
> architecture.
>
> The problem is that symlinks pointing to directories are not preserved.
> linux-kernel-headers on arm provides /usr/include/asm/arch symlink,
> pointing to another directory in the same package. This is not preserved
> by dpkg-cross, so #include <asm/arch/...>, which is used in some kernel
> headers, fails while cross-compiling.
>
> Bad thing is that current approach used in dpkg-cross (first list files,
> than extract only needed) can't handle this: it's not possible to find a
> symlink this way. So seems that there is no other way than changing that
> to (extract all, then process). It's a major change.

I've done rewriting dpkg-cross -b procedure using different logic.
Now it first completely unpacks the spirce deb, and then analyses it's 
contents. Analysis logic is documented in comments in the code.

New procedure is tested on a set of about 100 packages: I've converted 
those using old and new dpkg-cross, and manually checked the difference.
Everything seems to be correct.

I've commited fix to CVS on alioth, and also updated dpkg-cross package in 
my repository to 1.14.7

Nikita
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAw5I4sTbPknTfAB4RAkwcAJ9F4UCnC3d4B5ffqN9BFaniwFwb4QCggVvm
Wc5Mdlv0eyc70zaFO6zfOoE=
=g9PB
-----END PGP SIGNATURE-----



Reply to: