mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
discount: fix cpp check.
This commit is contained in:
@@ -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"
|
||||
|
||||
27
app-text/discount/patches/discount-2.2.6.patchset
Normal file
27
app-text/discount/patches/discount-2.2.6.patchset
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user