Package: base-files
Version: 10.1
Severity: normal

When a package gets installed and later uninstalled that places files in
/opt (or /etc/opt), that directory gets removed because it was only used
by that package and not owned by any. As a consequence, in-house
packages (which can reasonably install to /opt/) can not pass piuparts
as that complains about /opt and /etc/opt going away.

Now this could be fixed at several places (eg. dpkg could keep them
around, or piupats could mask them), but keeping such directories around
is typically done by base-files. The reason given in the FAQ for /opt
just being added in postinst is that it should be possible for an admin
to rmdir those -- a valid point, but causing inconvenience to packages
going there.

The fix I'd suggest is to have a base-files-fhs package recommended by
base-files but not required, which can be uninstalled if an admin wants
those files gone.


Thanks for your consideration
chrysn

-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.14.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages base-files depends on:
ii  gawk [awk]  1:4.1.4+dfsg-1
ii  mawk [awk]  1.3.3-17+b3

base-files recommends no packages.

base-files suggests no packages.

-- no debconf information

-- 
To use raw power is to make yourself infinitely vulnerable to greater powers.
  -- Bene Gesserit axiom

Attachment: signature.asc
Description: PGP signature

Reply via email to