summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorØrjan Malde <red@foxi.me>2021-04-08 14:19:32 +0200
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2021-04-08 14:33:45 +0200
commitfdfd7fdd56195562a0e5c4cb8b6dcdf08edc5f50 (patch)
tree40c931c17da97075339a0b6263fdfabeb11ce282
parentb90b7a92fdd68d4ff487cec599da7f0b400f238f (diff)
downloadmidipix_build-fdfd7fdd56195562a0e5c4cb8b6dcdf08edc5f50.tar.bz2
midipix_build-fdfd7fdd56195562a0e5c4cb8b6dcdf08edc5f50.tar.xz
groups/221.native_packages_dev.group: adds cssc v1.4.1
Signed-off-by: Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de>
-rw-r--r--groups/221.native_packages_dev.group7
-rw-r--r--patches/cssc-1.4.1_pre.local.patch64
2 files changed, 70 insertions, 1 deletions
diff --git a/groups/221.native_packages_dev.group b/groups/221.native_packages_dev.group
index 39d23025..f45e7ba0 100644
--- a/groups/221.native_packages_dev.group
+++ b/groups/221.native_packages_dev.group
@@ -3,7 +3,7 @@
#
GROUP_TARGET="native_packages";
NATIVE_PACKAGES_PACKAGES="$(rtl_lconcat "${NATIVE_PACKAGES_PACKAGES}" "
-bison chicken cparser diffutils flex gdb gengetopt indent lua lunix m4 make mandoc nasm
+bison chicken cparser cssc diffutils flex gdb gengetopt indent lua lunix m4 make mandoc nasm
patch patchutils perl python2 python3 ruby sbsigntools smallbasic tk")";
: ${PKG_BISON_DEPENDS:="libreadline"};
: ${PKG_BISON_SHA256SUM:=67d68ce1e22192050525643fc0a7a22297576682bef6a5c51446903f5aeef3cf};
@@ -27,6 +27,11 @@ patch patchutils perl python2 python3 ruby sbsigntools smallbasic tk")";
: ${PKG_CPARSER_CONFIGURE:=bcparser/configure};
: ${PKG_CPARSER_CONFIGURE_ARGS:="--source-dir=../../cparser --prefix="};
: ${PKG_CPARSER_NO_CLEAN_BASE_DIR:=1};
+: ${PKG_CSSC_SHA256SUM:=d1bed0c80246ee4cd49d0aa45307c075d0876fe531057bb1c8b28f5330d651ef};
+: ${PKG_CSSC_VERSION:=1.4.1};
+: ${PKG_CSSC_URL:=https://ftp.gnu.org/gnu/cssc/CSSC-${PKG_CSSC_VERSION}.tar.gz};
+: ${PKG_CSSC_CONFIGURE_ARGS_EXTRA:="--enable-binary"};
+: ${PKG_CSSC_CXXFLAGS_CONFIGURE_EXTRA:="-std=gnu++0x"};
: ${PKG_DIFFUTILS_SHA256SUM:=b3a7a6221c3dc916085f0d205abf6b8e1ba443d4dd965118da364a1dc1cb3a26};
: ${PKG_DIFFUTILS_VERSION:=3.7};
: ${PKG_DIFFUTILS_URL:=https://ftp.gnu.org/gnu/diffutils/diffutils-${PKG_DIFFUTILS_VERSION}.tar.xz};
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 <stdio.h>
+-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'