[packages/adapter] - remove attrs from libraries

baggins baggins at pld-linux.org
Sun Sep 28 13:58:37 CEST 2025


commit 2baeea73cbb6e7d8236e4846e73ba728455d3610
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Sep 28 15:54:17 2025 +0200

    - remove attrs from libraries
    
    .so libs do not need to be executabe and %attrs() causes rpm 4 / rpm 6
    to complain that they are not applicable to symlinks.

 adapter.awk | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index ac79aaa..00a351f 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -1617,16 +1617,8 @@ function use_files_macros(	i, n, t, a, l)
 		}
 	}
 
-	if (/lib.+\.so\b/ && !/\.so$/ && !/^%attr.*/ && !/%exclude/) {
-		$0 = "%attr(755,root,root) " $0
-	}
-
-	if (/%{perl_vendorarch}.*\.so$/ && !/^%attr.*/) {
-		$0 = "%attr(755,root,root) " $0
-	}
-
-	# remove attrs from man pages
-	if (/%{_mandir}/ && /^%attr/) {
+	# remove attrs from man pages and libraries
+	if ((/%{_mandir}/ || /lib.+\.so/ || /%{perl_vendorarch}.*\.so$/) && /^%attr/) {
 		sub("^%attr\\(.*\\) *", "")
 	}
 
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list