discount: fix cpp check.

This commit is contained in:
Jerome Duval
2019-11-30 20:40:19 +01:00
parent 0890e7c8e9
commit 6dcf0e3acc
2 changed files with 28 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ REVISION="1"
SOURCE_URI="https://github.com/Orc/discount/archive/v$portVersion.tar.gz"
SOURCE_FILENAME="discount-$portVersion.tar.gz"
CHECKSUM_SHA256="0beb98a66a6e38ed125e2d0a161ff6b461f6a38538bb72498766f376c94a0ad3"
PATCHES="discount-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

View File

@@ -0,0 +1,27 @@
From 5ad253c02c94d67b112245e9ca013ed353e6f8e5 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Sat, 30 Nov 2019 20:36:27 +0100
Subject: cpp check would block on input.
diff --git a/configure.inc b/configure.inc
index fd0c9ba..0b246af 100755
--- a/configure.inc
+++ b/configure.inc
@@ -1674,11 +1674,11 @@ EOF
echo "CPP=[$1], CPP_PIPE=[$2${use_cflags:+ $AC_CFLAGS}]"
AC_SUB 'CPP' "$1"
AC_CPP_FILTER="$1 $2${use_cflags:+ $AC_CFLAGS}"
- rm ngc$$.c ngc$$.o
+ rm -f ngc$$.c ngc$$.o
return 0
fi
fi
- rm ngc$$.c ngc$$.o
+ rm -f ngc$$.c ngc$$.o
return 1
}
--
2.24.0