aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-10-14 10:36:40 +0800
committerpeter <peter@FreeBSD.org>1996-10-14 10:36:40 +0800
commit9adb3f908e9264c826107f92b0be4a6c8c55b9e8 (patch)
tree8663eb5143afd49f8535d14a4d84ea5c034a98b8
parent55172f1f20a491c28b8977fefa71623186e9e826 (diff)
downloadfreebsd-ports-graphics-9adb3f908e9264c826107f92b0be4a6c8c55b9e8.tar.gz
freebsd-ports-graphics-9adb3f908e9264c826107f92b0be4a6c8c55b9e8.tar.zst
freebsd-ports-graphics-9adb3f908e9264c826107f92b0be4a6c8c55b9e8.zip
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)
-rw-r--r--comms/hylafax/files/patch-ae17
1 files changed, 17 insertions, 0 deletions
diff --git a/comms/hylafax/files/patch-ae b/comms/hylafax/files/patch-ae
new file mode 100644
index 00000000000..25d0feef09c
--- /dev/null
+++ b/comms/hylafax/files/patch-ae
@@ -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}"