From fdfd7fdd56195562a0e5c4cb8b6dcdf08edc5f50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98rjan=20Malde?= Date: Thu, 8 Apr 2021 14:19:32 +0200 Subject: groups/221.native_packages_dev.group: adds cssc v1.4.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lucio Andrés Illanes Albornoz --- patches/cssc-1.4.1_pre.local.patch | 64 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 patches/cssc-1.4.1_pre.local.patch (limited to 'patches') diff --git a/patches/cssc-1.4.1_pre.local.patch b/patches/cssc-1.4.1_pre.local.patch new file mode 100644 index 00000000..4f69e993 --- /dev/null +++ b/patches/cssc-1.4.1_pre.local.patch @@ -0,0 +1,64 @@ +diff -ru CSSC-1.4.1.orig/configure CSSC-1.4.1/configure +--- CSSC-1.4.1.orig/configure 2019-05-07 13:44:57.000000000 +0200 ++++ CSSC-1.4.1/configure 2021-04-08 14:11:56.935465623 +0200 +@@ -19418,60 +19418,6 @@ + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you are using a broken version of glibc with a version of GCC (>=2.97) that doesn't like it" >&5 +-$as_echo_n "checking if you are using a broken version of glibc with a version of GCC (>=2.97) that doesn't like it... " >&6; } +-cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-#include +-int x = 0; +-class foo { +-public: +-foo() { } +-void some_member_function(void) { }; +-int printf(const char *fmt, ...); +-}; +- +-int +-main () +-{ +-/* no function body*/ +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_cxx_try_compile "$LINENO"; then : +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +- +-oldCFLAGS="$CFLAGS" +-oldCXXFLAGS="$CXXFLAGS" +-if echo "$CFLAGS" | grep -e "-O" >/dev/null +-then +- CFLAGS="-g" +- CXXFLAGS="-g" +- +-echo +-echo WARNING It seems that you are using a version of GNU lilbc +-echo WARNING that has a broken printf macro in /usr/include/bits/stdio.h. +-echo WARNING I have changed CFLAGS and CXXFLAGS to turn optimisation off +-echo WARNING in order to work around the problem. +-echo WARNING +-echo WARNING Other possible workarounds would be to use GCC 2.96 or +-echo WARNING earlier, or a version of glibc which does not have this +-echo WARNING bug. +-echo WARNING +-echo WARNING CFLAGS has been changed from "$oldCFLAGS" to "$CFLAGS" +-echo WARNING CXXFLAGS has been changed from "$oldCXXFLAGS" to "$CXXFLAGS" +-echo +- +-fi +- +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + + ac_ext=c + ac_cpp='$CPP $CPPFLAGS' -- cgit v1.2.3