From e48afea089e6f20d2bd380ee1868b579e7b19740 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Tue, 16 Jan 2018 11:34:08 +0100 Subject: [PATCH] coin3: fix build --- srcpkgs/coin3/patches/fix-missing-deref.patch | 20 +++++++++++++++++++ srcpkgs/coin3/template | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/coin3/patches/fix-missing-deref.patch diff --git a/srcpkgs/coin3/patches/fix-missing-deref.patch b/srcpkgs/coin3/patches/fix-missing-deref.patch new file mode 100644 index 0000000000..8c50078b8b --- /dev/null +++ b/srcpkgs/coin3/patches/fix-missing-deref.patch @@ -0,0 +1,20 @@ +--- ./src/3ds/SoStream.cpp.orig 2018-01-16 11:18:58.965420684 +0100 ++++ ./src/3ds/SoStream.cpp 2018-01-16 11:18:23.140563596 +0100 +@@ -176,7 +176,7 @@ do { \ + if (!gotNum) { setBadBit(); return FALSE; } \ + \ + char *ce; \ +- s = '\0'; \ ++ *s = '\0'; \ + _convertType_ tempVal = _convertFunc_(buf, &ce, 0); \ + \ + if (ce != s) \ +@@ -273,7 +273,7 @@ do { \ + gotAll: \ + \ + char *ce; \ +- s = '\0'; \ ++ *s = '\0'; \ + double tempVal = _convertFunc_(buf, &ce); \ + \ + if (ce != s) \ diff --git a/srcpkgs/coin3/template b/srcpkgs/coin3/template index a368f7ac0c..46b14e99d2 100644 --- a/srcpkgs/coin3/template +++ b/srcpkgs/coin3/template @@ -1,7 +1,7 @@ # Template file for 'coin3' pkgname=coin3 version=3.1.3 -revision=2 +revision=3 wrksrc="Coin-${version}" patch_args="-Np1" build_style=gnu-configure