The FHS says that directories /bin, /sbin and their counterparts in /usr don't contain any subdirectories: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s04.html#requirements2 https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s16.html#requirements8 https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s04.html#requirements9a https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s10.html#requirements10a Packages that need specific subdirs for binaries should install them in /usr/lib* or /usr/libexec.
Created attachment 867981 [details, diff] Patch for policy guide
Created attachment 867982 [details, diff] metadata/install-qa-check.d: Check for subdirs in /bin and its friends
QA team, please vote on the update of the policy.
(In reply to Ulrich Müller from comment #3) > QA team, please vote on the update of the policy. Yes.
Yes.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/policy-guide.git/commit/?id=f49883323267b30ec167257002be8324a5c524cf commit f49883323267b30ec167257002be8324a5c524cf Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2023-08-16 17:05:10 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2023-08-17 20:55:16 +0000 filesystem: Disallow subdirs in /bin and its friends (PG 0201) The FHS says that directories /bin, /sbin and their counterparts in /usr don't contain any subdirectories: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s04.html#requirements2 https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s16.html#requirements8 https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s04.html#requirements9a https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s10.html#requirements10a Packages that need specific subdirs for binaries should install them in /usr/lib or /usr/libexec. Bug: https://bugs.gentoo.org/912354 Signed-off-by: Ulrich Müller <ulm@gentoo.org> filesystem.rst | 4 ++++ 1 file changed, 4 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c755c274a4bd82e5881c315e3cfad05cc371179 commit 2c755c274a4bd82e5881c315e3cfad05cc371179 Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2023-08-16 17:07:09 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2023-08-17 21:49:37 +0000 metadata/install-qa-check.d: Check for subdirs in /bin and its friends Bug: https://bugs.gentoo.org/912354 Signed-off-by: Ulrich Müller <ulm@gentoo.org> metadata/install-qa-check.d/08gentoo-paths | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
yes
Accepted unanimously.