From 1a7963307272d99007c1eab544aac52eb9c186d6fae1a6082ff790b58d479d63 Mon Sep 17 00:00:00 2001 From: Michael Chang Date: Mon, 2 Dec 2013 03:01:20 +0000 Subject: [PATCH] Accepting request 209046 from home:arvidjaar:branches: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. OBS-URL: https://build.opensuse.org/request/show/209046 OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=56 --- 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/