[packages/grub2] - disable optimizations
baggins
baggins at pld-linux.org
Tue Apr 16 01:31:06 CEST 2013
commit 8c5e5aa21c3323387110d081378eca5b4315332c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Apr 16 00:32:08 2013 +0200
- disable optimizations
grub2.spec | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/grub2.spec b/grub2.spec
index 23a5f3e..2688136 100644
--- a/grub2.spec
+++ b/grub2.spec
@@ -134,6 +134,8 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# part of grub code is not relocable (these are not Linux libs)
# stack protector also breaks non-Linux binaries
+# any kind of forced optimizations makes grub2 unreliable (random
+# reboots and hangs on boot menu screen)
%define filterout_c -fPIC -O.
%undefine _ssp_cflags
%undefine _fortify_cflags
@@ -326,7 +328,6 @@ cp -f /usr/share/automake/config.sub .
echo timestamp > stamp-h.in
%{__autoconf}
%{__automake}
-export CFLAGS="%{rpmcflags} -Os %{?debug:-g}"
for platform in %{platforms} ; do
install -d build-${platform}
@@ -418,10 +419,10 @@ rm -rf $RPM_BUILD_ROOT
%postun -p %{_sbindir}/postshell
-/usr/sbin/fix-info-dir -c %{_infodir}
-%triggerpostun -- %{name} < 2.00-0.1
-# Note this trigger on version upgrade
-# needed only for upgrade from old grub2 packages
-# which contained modules in /boot/grub
+%triggerpostun -- %{name} < 2.00-2
+# Note this trigger on version upgrade needed only for upgrade from
+# old grub2 packages which contained modules in /boot/grub
+# or were built with optimizations enabled
# don't do anything on --downgrade
if [ $1 -le 1 ]; then
exit 0
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/grub2.git/commitdiff/5cf7a127215ebcb1e5a7fb85af02ebed5fa4418a
More information about the pld-cvs-commit
mailing list