Your message dated Mon, 23 Aug 2021 01:06:50 +0200
with message-id <[email protected]>
and subject line Re: Bug#960846: The "path-exclude" and "path-include"
configurations are not taken into account on package removals
has caused the Debian Bug report #960846,
regarding The "path-exclude" and "path-include" configurations are not taken
into account on package removals
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
960846: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=960846
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dpkg
Version: 1.19.7
Dear Maintainers,
The "path-exclude" and "path-include" configurations in
"/etc/dpkg/dpkg.cfg.d/00path-exclude-and-include" are not taken into
account on package removals.
To reproduce you can for example:
- Install the package "xfwm4".
- Add "path-exclude /usr/share/themes/*" to
"/etc/dpkg/dpkg.cfg.d/00path-exclude-and-include".
- Remove or reinstall the package "xfwm4".
- See that "xfwm4" themes in "/usr/share/themes/*" are gone.
This is obviously problematic when one wants to modify some files from a
given package while preserving their names/paths. Then any update,
reinstall or removal of the given package removes also the customized
files even if those files are excluded using the "path-exclude"
configurations in "/etc/dpkg/dpkg.cfg.d/00path-exclude-and-include".
Currently I need to use custom workaround scripts to periodically
restore the such modifications and try to minimize such modifications,
but still it would be nice if the current "path-exclude" and
"path-include" mechanisms could be improved in this regard.
Regards,
Bakhelit
--- End Message ---
--- Begin Message ---
Control: tag -1 wontfix
[ See below for the reason. :) ]
Hi!
On Sun, 2020-05-17 at 13:33:53 +0000, [email protected] wrote:
> Package: dpkg
> Version: 1.19.7
> The "path-exclude" and "path-include" configurations in
> "/etc/dpkg/dpkg.cfg.d/00path-exclude-and-include" are not taken into account
> on package removals.
Yes, as documented. The intention of these options was to avoid
installing pathnames, not to make them invisible to dpkg for any
other operation
> To reproduce you can for example:
>
> - Install the package "xfwm4".
>
> - Add "path-exclude /usr/share/themes/*" to
> "/etc/dpkg/dpkg.cfg.d/00path-exclude-and-include".
>
> - Remove or reinstall the package "xfwm4".
>
> - See that "xfwm4" themes in "/usr/share/themes/*" are gone.
Yes, this works as expected.
> This is obviously problematic when one wants to modify some files from a
> given package while preserving their names/paths. Then any update, reinstall
> or removal of the given package removes also the customized files even if
> those files are excluded using the "path-exclude" configurations in
> "/etc/dpkg/dpkg.cfg.d/00path-exclude-and-include".
I think what you actually want instead are dpkg diversions (see man
dpkg-divert(8)), which seem to match what you are intending to do here.
> Currently I need to use custom workaround scripts to periodically restore
> the such modifications and try to minimize such modifications, but still it
> would be nice if the current "path-exclude" and "path-include" mechanisms
> could be improved in this regard.
See above. And I'm thus closing this report.
Thanks,
Guillem
--- End Message ---