[arch-projects] [PATCH 2/4] fhs: disallow libraries in /lib

Tom Gundersen teg at jklm.no
Sun Feb 26 08:56:55 EST 2012


We want to empty /lib over time. This explicitly allows the subdirs that
we don't yet have a plan for emptying, and disallows everything else.

This will in particular throw warnings for /lib/*.so* and for /lib/systemd/*.
The former is intentional, and the latter can be moved to /usr/lib/systemd
(upstream supports some stuff in /usr/lib and some in /lib, so no need for a
flag day).

We might want to explicitly allow the linker, but I conjecture that Allan
will not be intimidated by a namcap warning into moving it, so we should be
safe.

Signed-off-by: Tom Gundersen <teg at jklm.no>
---
 Namcap/rules/fhs.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Namcap/rules/fhs.py b/Namcap/rules/fhs.py
index 28cb30f..3c1d599 100644
--- a/Namcap/rules/fhs.py
+++ b/Namcap/rules/fhs.py
@@ -26,7 +26,9 @@ class FHSRule(TarballRule):
 	description = "Checks for standard directories."
 	def analyze(self, pkginfo, tar):
 		valid_paths = [
-				'bin/', 'etc/', 'lib/', 'sbin/', 'opt/', 'srv/',
+				'bin/', 'etc/', 'opt/', 'sbin/', 'srv/',
+				'lib/depmod.d', 'lib/firmware', 'lib/initcpio',
+				'lib/modprobe.d', 'lib/modules', 'lib/security', 'lib/udev',
 				'usr/bin/', 'usr/include/', 'usr/lib/', 'usr/lib32/',
 				'usr/sbin/', 'usr/share/',
 				'var/cache/', 'var/lib/', 'var/log/', 'var/opt/',
-- 
1.7.9.2



More information about the arch-projects mailing list