pkgstripfiles: md5sum incorrect when doc dir is a symlink
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pkgbinarymangler (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt |
Bug Description
pkgstripfiles doesn't update the md5sum if /usr/share/doc/$pkg is a symlink to another dir inside the same pacakge.
For example in perl-base contains the following files:
-rw-r--r-- root/root 163 2011-11-28 20:05 ./usr/share/
-rw-r--r-- root/root 1483 2011-11-28 20:05 ./usr/share/
-rw-r--r-- root/root 87099 2011-11-28 20:05 ./usr/share/
-rw-r--r-- root/root 19009 2011-09-26 09:44 ./usr/share/
-rw-r--r-- root/root 3329 2011-12-16 12:38 ./usr/share/
lrwxrwxrwx root/root 0 2011-12-16 12:38 ./usr/share/
pkgstripfiles reports:
> pkgstripfiles: Truncating usr/share/
So it modifies usr/share/
Related branches
Changed in pkgbinarymangler (Ubuntu): | |
status: | In Progress → Fix Committed |
I have some really hard trouble reproducing this in a small test case, or even understanding how this could possibly hit with perl. The doc/perl-base -> perl symlink wouldn't even be valid in a debian/perl-base/ build tree, as it cannot be resolved. pkgstripfiles just ignores invalid symlinks.
But I'm fairly convinced that this specific instance is a perl specific problem. It does some really nasty manual shell hacks to install documentation (no debhelper at all), and I added a test case with a similar scenario which it handles just fine.