[Bug 1905302] [NEW] dpkg -V should consider path-exclude/path-include
Andreas Hasenack
1905302 at bugs.launchpad.net
Mon Nov 23 17:09:06 UTC 2020
Public bug reported:
Copy of the bug filed in Debian:
I noticed that dpkg -V doesn't seem to take into account the
path-exclude configuration setting.
This config, for example:
$ cat /etc/dpkg/dpkg.cfg.d/excludes
# Drop all man pages
path-exclude=/usr/share/man/*
# Drop all translations
path-exclude=/usr/share/locale/*/LC_MESSAGES/*.mo
# Drop all documentation ...
path-exclude=/usr/share/doc/*
# ... except copyright files ...
path-include=/usr/share/doc/*/copyright
# ... and Debian changelogs
path-include=/usr/share/doc/*/changelog.Debian.*
A fresh sid container has a clean dpkv -V. I then create the excludes
file above, and install some packages:
# apt install man slapd
....
dpkg -V is now unhappy:
root at sid:~# dpkg -V|head
??5?????? /usr/share/doc/slapd/NEWS.Debian.gz
??5?????? /usr/share/doc/slapd/README.DB_CONFIG.gz
??5?????? /usr/share/doc/slapd/README.Debian.gz
??5?????? /usr/share/doc/slapd/TODO.Debian
??5?????? /usr/share/doc/slapd/changelog.gz
??5?????? /usr/share/doc/slapd/examples/DB_CONFIG
??5?????? /usr/share/doc/slapd/examples/slapd.backup
??5?????? /usr/share/doc/slapd/examples/slapd.conf.gz
??5?????? /usr/share/man/man5/slapd-bdb.5.gz
??5?????? /usr/share/man/man5/slapd-config.5.gz
Since dpkg knows these files are being excluded, it should not warn
about them in the -V operation.
** Affects: dpkg (Ubuntu)
Importance: Undecided
Status: New
** Affects: dpkg (Debian)
Importance: Unknown
Status: Unknown
** Bug watch added: Debian Bug tracker #975338
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=975338
** Also affects: dpkg (Debian) via
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=975338
Importance: Unknown
Status: Unknown
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dpkg in Ubuntu.
https://bugs.launchpad.net/bugs/1905302
Title:
dpkg -V should consider path-exclude/path-include
Status in dpkg package in Ubuntu:
New
Status in dpkg package in Debian:
Unknown
Bug description:
Copy of the bug filed in Debian:
I noticed that dpkg -V doesn't seem to take into account the
path-exclude configuration setting.
This config, for example:
$ cat /etc/dpkg/dpkg.cfg.d/excludes
# Drop all man pages
path-exclude=/usr/share/man/*
# Drop all translations
path-exclude=/usr/share/locale/*/LC_MESSAGES/*.mo
# Drop all documentation ...
path-exclude=/usr/share/doc/*
# ... except copyright files ...
path-include=/usr/share/doc/*/copyright
# ... and Debian changelogs
path-include=/usr/share/doc/*/changelog.Debian.*
A fresh sid container has a clean dpkv -V. I then create the excludes
file above, and install some packages:
# apt install man slapd
....
dpkg -V is now unhappy:
root at sid:~# dpkg -V|head
??5?????? /usr/share/doc/slapd/NEWS.Debian.gz
??5?????? /usr/share/doc/slapd/README.DB_CONFIG.gz
??5?????? /usr/share/doc/slapd/README.Debian.gz
??5?????? /usr/share/doc/slapd/TODO.Debian
??5?????? /usr/share/doc/slapd/changelog.gz
??5?????? /usr/share/doc/slapd/examples/DB_CONFIG
??5?????? /usr/share/doc/slapd/examples/slapd.backup
??5?????? /usr/share/doc/slapd/examples/slapd.conf.gz
??5?????? /usr/share/man/man5/slapd-bdb.5.gz
??5?????? /usr/share/man/man5/slapd-config.5.gz
Since dpkg knows these files are being excluded, it should not warn
about them in the -V operation.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1905302/+subscriptions
More information about the foundations-bugs
mailing list