File: gcc-10.patch

package info (click to toggle)
cdck 0.7.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 320 kB
  • sloc: cpp: 901; ansic: 71; makefile: 39; sh: 5
file content (18 lines) | stat: -rw-r--r-- 778 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Fix detection of gcc version.
 Use numeric instead of string comparison, then gcc version 10 is greater then 3.
Origin: vendor
Bug-Debian: https://bugs.debian.org/957073
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2020-04-17

--- a/configure.ac
+++ b/configure.ac
@@ -50,7 +50,7 @@
 echo $_echo_n "checking version of ${CC} ... $_echo_c"
 exec 15> ./.gcc.test
 cat >&15 <<EOF
-${CC} -v 2>&1 | perl -e '\$/=undef;\$_=<STDIN>;s/.*ver.+?([[0-9\.]]+).*//s;\$_=\$1;print; s/\.//sg;s/^.*?(\d{0,4}).*\$/\$1/; exit 0 if (\$_ gt 300); exit -1'
+${CC} -v 2>&1 | perl -e '\$/=undef;\$_=<STDIN>;s/.*ver.+?([[0-9\.]]+).*//s;\$_=\$1;print; s/\.//sg;s/^.*?(\d{0,4}).*\$/\$1/; exit 0 if (\$_ >= 300); exit -1'
 EOF
 sh ./.gcc.test 2>/dev/null
 if test $? -ne 0 ; then