[packages/adapter] - add python module to no-attr pattern; but keep dynamic loader and libc.so.* executable

qboosh qboosh at pld-linux.org
Fri Apr 3 19:22:56 CEST 2026


commit 4a205e63c77db3595b476055c86f0fea599b68f8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Apr 3 19:23:19 2026 +0200

    - add python module to no-attr pattern; but keep dynamic loader and libc.so.* executable

 adapter.awk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/adapter.awk b/adapter.awk
index 0116e82..d4e41c5 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -1626,7 +1626,8 @@ function use_files_macros(	i, n, t, a, l)
 	}
 
 	# remove attrs from man pages and libraries
-	if ((/%{_mandir}/ || /lib.+\.so/ || /%{perl_vendorarch}.*\.so$/) && /^%attr/) {
+	# beware to keep dynamic loader (ld*.so.*) executable; glibc libc.so.* is executable too
+	if ((/%{_mandir}/ || /%{perl_vendorarch}.*\.so$/ || /%{py3?_site(script)?dir}.*so$/ || (/lib[^\/{}]+\.so/ && !/libc\.so\./)) && /^%attr/) {
 		sub("^%attr\\(.*\\) *", "")
 	}
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/4a205e63c77db3595b476055c86f0fea599b68f8



More information about the pld-cvs-commit mailing list