From e5dd4258b27d24e48163bca525b0609dbbc4bccf19bb93426096d6f03dddafde Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Mon, 2 Dec 2013 14:07:50 +0000 Subject: [PATCH] Accepting request 209121 from Base:System reset executable bits on *module, *.exec and *.image files. They are not executable and get installed with 0755 permissions due to the way grub2 build system works. This avoids multiple warnings from find-debufinfo.sh and generation of useless *.debug files. (forwarded request 209046 from arvidjaar) OBS-URL: https://build.opensuse.org/request/show/209121 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/grub2?expand=0&rev=76 --- grub2.changes | 6 ++++++ grub2.spec | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/grub2.changes b/grub2.changes index 840fbca..ddc0b11 100644 --- a/grub2.changes +++ b/grub2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Dec 1 13:10:23 UTC 2013 - arvidjaar@gmail.com + +- reset executable bits on *module, *.exec and *.image files. They are not + executable. + ------------------------------------------------------------------- Fri Nov 22 07:12:16 UTC 2013 - glin@suse.com diff --git a/grub2.spec b/grub2.spec index 35ea7cd..1a42ca7 100644 --- a/grub2.spec +++ b/grub2.spec @@ -398,6 +398,12 @@ make DESTDIR=$RPM_BUILD_ROOT install cd build-efi %endif +# *.module files are installed with executable bits due to the way grub2 build +# system works. Clear executable bits to not confuse find-debuginfo.sh +find $RPM_BUILD_ROOT%{_libdir}/%{name} \ + \( -name '*.module' -o -name '*.image' -o -name '*.exec' \) -print0 | \ + xargs --no-run-if-empty -0 chmod a-x + # Script that makes part of grub.cfg persist across updates install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/grub.d/