diff options
author | Joerg Bruehe <joerg@mysql.com> | 2008-11-07 19:01:28 +0100 |
---|---|---|
committer | Joerg Bruehe <joerg@mysql.com> | 2008-11-07 19:01:28 +0100 |
commit | b81a8bb09955153dd9d3dbf63e71888dc4ffdbcd (patch) | |
tree | a664f95a1a1a0016bb379151e280111b6ec59a23 /support-files/mysql.spec.sh | |
parent | c0b419419d73c6e738e1b3ddb3fb9ca3799ad300 (diff) | |
parent | e7181d359fed758cfc962d8324e0d5d3deb99470 (diff) | |
download | mariadb-git-b81a8bb09955153dd9d3dbf63e71888dc4ffdbcd.tar.gz |
Upmerge the second fix for bug#40546 from 5.0 to 5.1
and fix a defect specific to 5.1 (wrong quoting).
support-files/mysql.spec.sh:
Merge the general flag handling (embedding in blanks) from 5.0 to 5.1,
add the 5.1 specific part (do not escape unquoted quote marks).
Still part of the fix for bug#40546.
Diffstat (limited to 'support-files/mysql.spec.sh')
-rw-r--r-- | support-files/mysql.spec.sh | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/support-files/mysql.spec.sh b/support-files/mysql.spec.sh index e7c090484b7..d0c5ca86897 100644 --- a/support-files/mysql.spec.sh +++ b/support-files/mysql.spec.sh @@ -326,13 +326,17 @@ CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-except ( # We are in a subshell, so we can modify variables just for one run. -CFLAGS=`echo $CFLAGS | sed -e 's/-O[0-9]* //' -e 's/-unroll2 //' -e 's/-ip //' -e 's/$/ -g/'` -CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-O[0-9]* //' -e 's/-unroll2 //' -e 's/-ip //' -e 's/$/ -g/'` +CFLAGS=`echo " $CFLAGS " | \ + sed -e 's/ -O[0-9]* / /' -e 's/ -unroll2 / /' -e 's/ -ip / /' \ + -e 's/^ //' -e 's/ $//'` +CXXFLAGS=`echo " $CXXFLAGS " | \ + sed -e 's/ -O[0-9]* / /' -e 's/ -unroll2 / /' -e 's/ -ip / /' \ + -e 's/^ //' -e 's/ $//'` # Add -g and --with-debug. cd mysql-debug-%{mysql_version} && -CFLAGS=\"$CFLAGS\" \ -CXXFLAGS=\"$CXXFLAGS\" \ +CFLAGS="$CFLAGS" \ +CXXFLAGS="$CXXFLAGS" \ BuildMySQL "--enable-shared \ --with-debug \ --with-innodb \ @@ -364,8 +368,8 @@ fi ############################################################################## (cd mysql-release-%{mysql_version} && -CFLAGS=\"$CFLAGS\" \ -CXXFLAGS=\"$CXXFLAGS\" \ +CFLAGS="$CFLAGS" \ +CXXFLAGS="$CXXFLAGS" \ BuildMySQL "--enable-shared \ --with-innodb \ %if %{CLUSTER_BUILD} @@ -840,6 +844,11 @@ fi # itself - note that they must be ordered by date (important when # merging BK trees) %changelog +* Fri Nov 07 2008 Joerg Bruehe <joerg@mysql.com> + +- Correct yesterday's fix, so that it also works for the last flag, + and fix a wrong quoting: un-quoted quote marks must not be escaped. + * Thu Nov 06 2008 Joerg Bruehe <joerg@mysql.com> - Modify CFLAGS and CXXFLAGS such that a debug build is not optimized. |