Bug#379004: dpkg-cross: symlinks in linux-header packages are not converted
reopen 379004
found 379004 1.30
tag 379004 patch
thanks
Sorry, but that patch did NOT fix the problem. I don't know why I thought
otherwise.
The problem is this:
# Non-existsing destination allowed only if it is .so link,
# or if both source and destination is under /usr/src
next unless (/.*\.so$/ ||
(/\/usr\/src\// && $lv =~ /\/usr\/src\//)\
Now for the original symlink
/usr/src/linux-headers-2.6.17-2-ixp4xx/arch/arm/Makefile
the destination path $lv will be
/usr/arm-linux-gnu/src/linux-headers-2.6.17-2/arch/arm/Makefile
which is not under /usr/src. So the above condition should be relaxed a bit.
The attached patch fixes the problem.
Thanks,
Marcus
--- dpkg-cross
+++ dpkg-cross
@@ -609,7 +609,7 @@
# Non-existsing destination allowed only if it is .so link,
# or if both source and destination is under /usr/src
next unless (/.*\.so$/ ||
- (/\/usr\/src\// && $lv =~ /\/usr\/src\//));
+ (/\/usr\/src\// && $lv =~ /\/usr\//));
}
# Calculate corresponding SOURCE path
Reply to: