commit aeaee3fc3cd3e79c17835d55ee519582eaf1366c
Author: Jan Palus <[email protected]>
Date:   Wed Mar 23 11:52:33 2022 +0100

    fix autoreq for elf without exe bit during %install

 no-exe-for-elf-req.patch | 12 ++++++++++++
 rpm.spec                 |  2 ++
 2 files changed, 14 insertions(+)
---
diff --git a/rpm.spec b/rpm.spec
index 1884b7c..ccc0aa7 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -92,6 +92,7 @@ Patch32:      noexpand.patch
 Patch34:       skip-symlinks.patch
 Patch35:       pl-po.patch
 Patch36:       build-locale.patch
+Patch37:       no-exe-for-elf-req.patch
 URL:           https://rpm.org/
 BuildRequires: acl-devel
 %{?with_audit:BuildRequires:   audit-libs-devel}
@@ -639,6 +640,7 @@ Dokumentacja API RPM-a oraz przewodniki w formacie HTML 
generowane ze
 %patch34 -p1
 %patch35 -p1
 %patch36 -p1
+%patch37 -p1
 
 %{__rm} po/*.gmo
 
diff --git a/no-exe-for-elf-req.patch b/no-exe-for-elf-req.patch
new file mode 100644
index 0000000..3aa7b0f
--- /dev/null
+++ b/no-exe-for-elf-req.patch
@@ -0,0 +1,12 @@
+--- rpm-4.16.1.3/tools/elfdeps.c.orig  2020-05-28 12:04:25.084136944 +0200
++++ rpm-4.16.1.3/tools/elfdeps.c       2022-03-23 11:19:01.656202339 +0100
+@@ -300,7 +300,8 @@
+     if (ehdr->e_type == ET_DYN || ehdr->e_type == ET_EXEC) {
+       ei->marker = mkmarker(ehdr);
+       ei->isDSO = (ehdr->e_type == ET_DYN);
+-      ei->isExec = (st.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH));
++      //ei->isExec = (st.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH));
++      ei->isExec = 1;
+ 
+       processProgHeaders(ei, ehdr);
+       processSections(ei);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm.git/commitdiff/748448723888549ca2d3d14938b8d9d4a81533e4

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to