[Bug 923430] Re: pkgstripfiles: md5sum incorrect when doc dir is a symlink

Martin Pitt martin.pitt at ubuntu.com
Tue Jan 31 17:22:56 UTC 2012


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.

** Changed in: pkgbinarymangler (Ubuntu)
   Importance: Undecided => Medium

** Changed in: pkgbinarymangler (Ubuntu)
       Status: New => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pkgbinarymangler in Ubuntu.
https://bugs.launchpad.net/bugs/923430

Title:
  pkgstripfiles: md5sum incorrect when doc dir is a symlink

Status in “pkgbinarymangler” package in Ubuntu:
  In Progress

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/doc/perl/Documentation
  -rw-r--r-- root/root      1483 2011-11-28 20:05 ./usr/share/doc/perl/README.Debian
  -rw-r--r-- root/root     87099 2011-11-28 20:05 ./usr/share/doc/perl/copyright
  -rw-r--r-- root/root     19009 2011-09-26 09:44 ./usr/share/doc/perl/AUTHORS.gz
  -rw-r--r-- root/root      3329 2011-12-16 12:38 ./usr/share/doc/perl/changelog.Debian.gz
  lrwxrwxrwx root/root         0 2011-12-16 12:38 ./usr/share/doc/perl-base -> perl

  pkgstripfiles reports:
  > pkgstripfiles: Truncating usr/share/doc/perl-base/changelog.Debian.gz to topmost ten records

  So it modifies usr/share/doc/perl-base/changelog.Debian.gz which
  really is usr/share/doc/perl/changelog.Debian.gz and thus tries to
  update the wrong file in md5sums.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pkgbinarymangler/+bug/923430/+subscriptions




More information about the foundations-bugs mailing list