dpkg -V does not consider path-exclude config, fails on ubuntu-minimal

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

dpkg -V does not consider path-exclude config, fails on ubuntu-minimal

Andreas Hasenack-5
Hi,

I noticed that `dpkg -V` does not take into consideration potential
exclusions defined in its configuration.

An ubuntu-minimal image, for example, has this:
```
$ 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.*
```

Which results in a lot of noise when `dpkg -V` is run:
```
$ dpkg -V | head
??5??????   /usr/share/doc/python3-pkg-resources/pkg_resources.txt.gz
??5??????   /usr/share/doc/fonts-ubuntu-console/README
??5??????   /usr/share/doc/cryptsetup-bin/NEWS.Debian.gz
??5??????   /usr/share/man/man8/cryptsetup-reencrypt.8.gz
??5??????   /usr/share/man/man8/cryptsetup.8.gz
??5??????   /usr/share/man/man8/integritysetup.8.gz
??5??????   /usr/share/man/man8/veritysetup.8.gz
??5??????   /usr/share/doc/python3-distutils/README.Debian
??5??????   /usr/share/doc/libip4tc2/NEWS.Debian.gz
??5??????   /usr/share/doc/libksba8/AUTHORS
...
```

Shouldn't `dpkg -V` take the path-{exclude,include} into
consideration? Is this just a bug (which I can file), or was it a
conscious decision?

--
ubuntu-devel mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel
Reply | Threaded
Open this post in threaded view
|

Re: dpkg -V does not consider path-exclude config, fails on ubuntu-minimal

Balint Reczey
Hi Andreas,

On Fri, Nov 20, 2020 at 3:29 PM Andreas Hasenack <[hidden email]> wrote:

>
> Hi,
>
> I noticed that `dpkg -V` does not take into consideration potential
> exclusions defined in its configuration.
>
> An ubuntu-minimal image, for example, has this:
> ```
> $ 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.*
> ```
>
> Which results in a lot of noise when `dpkg -V` is run:
> ```
> $ dpkg -V | head
> ??5??????   /usr/share/doc/python3-pkg-resources/pkg_resources.txt.gz
> ??5??????   /usr/share/doc/fonts-ubuntu-console/README
> ??5??????   /usr/share/doc/cryptsetup-bin/NEWS.Debian.gz
> ??5??????   /usr/share/man/man8/cryptsetup-reencrypt.8.gz
> ??5??????   /usr/share/man/man8/cryptsetup.8.gz
> ??5??????   /usr/share/man/man8/integritysetup.8.gz
> ??5??????   /usr/share/man/man8/veritysetup.8.gz
> ??5??????   /usr/share/doc/python3-distutils/README.Debian
> ??5??????   /usr/share/doc/libip4tc2/NEWS.Debian.gz
> ??5??????   /usr/share/doc/libksba8/AUTHORS
> ...
> ```
>
> Shouldn't `dpkg -V` take the path-{exclude,include} into
> consideration? Is this just a bug (which I can file), or was it a
> conscious decision?

IMO this is just a dpkg bug, observable on Sid, too.

This is not the only related dpkg bug, see for example:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=859646

Cheers,
Balint

--
ubuntu-devel mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel
Reply | Threaded
Open this post in threaded view
|

Re: dpkg -V does not consider path-exclude config, fails on ubuntu-minimal

Andreas Hasenack-5
Hi,

On Fri, Nov 20, 2020 at 1:25 PM Balint Reczey
<[hidden email]> wrote:
>
> Hi Andreas,
>
> On Fri, Nov 20, 2020 at 3:29 PM Andreas Hasenack <[hidden email]> wrote:
> > Shouldn't `dpkg -V` take the path-{exclude,include} into
> > consideration? Is this just a bug (which I can file), or was it a
> > conscious decision?
>
> IMO this is just a dpkg bug, observable on Sid, too.


Thanks, I filed https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=975338

--
ubuntu-devel mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel