mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
Deal with "cc -version" reporting "2.7.2.1" or any other junk that might
end up appended (eg: "2.7.2p" or the like). Reported by: jhs@freebsd.org (who also suggested a different, larger patch)
This commit is contained in:
parent
c85ebc3504
commit
def9ab7a1f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=3973
17
comms/hylafax/files/patch-ae
Normal file
17
comms/hylafax/files/patch-ae
Normal file
@ -0,0 +1,17 @@
|
||||
Deal with cc -version reporting "2.7.2.1" or any other junk following the
|
||||
third number.
|
||||
|
||||
Inspired by a larger patch from <jhs@freebsd.org> and apparently
|
||||
Andreas Klemm <andreas@klemm.gtn.com>
|
||||
|
||||
--- configure.dist Mon Oct 14 10:17:10 1996
|
||||
+++ configure Mon Oct 14 10:18:20 1996
|
||||
@@ -446,7 +446,7 @@
|
||||
{
|
||||
app=$1; shift
|
||||
eval `$app -v 2>&1 | \
|
||||
- sed -n -e '/version/s/.* \([0-9]*\)\.\([0-9]*\).\([0-9]*\)/GCCdist=\1;GCCmajor=\2;GCCminor=\3/p'`
|
||||
+ sed -n -e '/version/s/.* \([0-9]*\)\.\([0-9]*\).\([0-9]*\).*/GCCdist=\1;GCCmajor=\2;GCCminor=\3/p'`
|
||||
GCCversion="${GCCdist}.${GCCmajor}.${GCCminor}"; export GCCversion
|
||||
required="$1$2$3"
|
||||
actual="${GCCdist}${GCCmajor}${GCCminor}"
|
Loading…
Reference in New Issue
Block a user