]> git.pld-linux.org Git - packages/grub2.git/commitdiff
- disable optimizations
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 15 Apr 2013 22:32:08 +0000 (00:32 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 15 Apr 2013 22:32:08 +0000 (00:32 +0200)
grub2.spec

index 23a5f3e53c7505775fc7ddbf32deb753ef70245f..2688136c1eb1397d538bc37eba5adc16356ca075 100644 (file)
@@ -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
This page took 0.050017 seconds and 4 git commands to generate.