[postgresql] upgrade: disable aggressive loop optimizations

Pavel Raiskup praiskup at fedoraproject.org
Mon Aug 12 06:24:05 UTC 2013


commit 4dafc07c1335ca70eca8021389f25354d1196c8d
Author: Pavel Raiskup <praiskup at redhat.com>
Date:   Mon Aug 12 07:32:50 2013 +0200

    upgrade: disable aggressive loop optimizations
    
    This is important for gcc >= 4.8.0 as the optimizations were turned on by
    default.  New code-base is OK thus enable this only for older
    (upgrade-related) code.
    
    Resolves: #993532
    Version: 9.2.4-10

 postgresql.spec |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/postgresql.spec b/postgresql.spec
index 5b5b2b0..e4a8108 100644
--- a/postgresql.spec
+++ b/postgresql.spec
@@ -60,7 +60,7 @@ Summary: PostgreSQL client programs
 Name: postgresql
 %global majorversion 9.2
 Version: 9.2.4
-Release: 9%{?dist}
+Release: 10%{?dist}
 
 # The PostgreSQL license is very similar to other MIT licenses, but the OSI
 # recognizes it as an independent license, so we do as well.
@@ -576,7 +576,11 @@ rm -f src/tutorial/GNUmakefile
 	# any options that affect on-disk file layout match the previous
 	# major release!  Also, note we intentionally do not use %%configure
 	# here, because we *don't* want its ideas about installation paths.
-	./configure --build=%{_build} --host=%{_host} \
+
+	# The -fno-aggressive-loop-optimizations is hack for #993532
+	CFLAGS="$CFLAGS -fno-aggressive-loop-optimizations" ./configure \
+		--build=%{_build} \
+		--host=%{_host} \
 		--prefix=%{_libdir}/pgsql/postgresql-%{prevmajorversion} \
 		--disable-rpath \
 %if %beta
@@ -1124,6 +1128,9 @@ fi
 %endif
 
 %changelog
+* Mon Aug 12 2013 Pavel Raiskup <praiskup at redhat.com> - 9.2.4-10
+- disable aggressive loop optimizations for old codebase (#993532)
+
 * Wed Aug 07 2013 Pavel Raiskup <praiskup at redhat.com> - 9.2.4-9
 - generate links docdir links in postgresql-check-db-dir correctly (#994048)
 


More information about the scm-commits mailing list