[Bug 899520] Re: pkgstriptranslations creates policy-incompliant symlinks

Launchpad Bug Tracker 899520 at bugs.launchpad.net
Mon Dec 12 11:30:12 UTC 2011


This bug was fixed in the package pkgbinarymangler - 110

---------------
pkgbinarymangler (110) precise; urgency=low

  [ Martin Pitt ]
  * pkgstripfiles: Log how many seconds the PNG optimization took.
  * pkgstripfiles: Skip PNG optimization for -doc packages. They sometimes
    take an inordinate amount of build time and are much less important as we
    do not ship them on CD images.

  [ Evan Broder ]
  * pkgstriptranslations: Use a copy of the code from dh_link to make sure
    pkgstriptranslations creates symlinks compliant with Debian
    Policy. (LP: #899520)
  * test/run: Adjust tests to expect relative symlinks.
 -- Martin Pitt <martin.pitt at ubuntu.com>   Mon, 12 Dec 2011 12:19:21 +0100

** Changed in: pkgbinarymangler (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
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/899520

Title:
  pkgstriptranslations creates policy-incompliant symlinks

Status in “pkgbinarymangler” package in Ubuntu:
  Fix Released

Bug description:
  When pkgstriptranslations replaces files in /usr/share/help,
  /usr/share/gnome/help, etc. with symlinks to their -langpack
  counterparts, it creates absolute symlinks.

  Since the symlinks will link two files in the same top-level
  directory, they will always be a violation of Debian Policy Section
  10.5 - Symbolic links (http://www.debian.org/doc/debian-policy/ch-
  files.html#s10.5).

  According to data extracted from http://lintian.ubuntuwire.org, there
  are currently about 22,500 symlinks that violate this policy in the
  Ubuntu archive:

    udd=# CREATE TABLE ubuntu_only_lintian AS SELECT * FROM ubuntu_lintian EXCEPT SELECT * FROM lintian;
    SELECT 156482
    udd=# SELECT COUNT(tag) AS count FROM ubuntu_only_lintian WHERE tag='symlink-should-be-relative' AND information LIKE '%-langpack%';
     count 
    -------
     22509
    (1 row)

  (http://lintian.ubuntuwire.org/tags/symlink-should-be-relative.html
  has the list of all emissions of this tag, though not all of those are
  unique to Ubuntu and not all of the ones unique to Ubuntu are from
  pkgstriptranslations)

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




More information about the foundations-bugs mailing list