diff options
author | haawda | 2023-08-10 20:12:18 +0200 |
---|---|---|
committer | haawda | 2023-08-10 20:12:18 +0200 |
commit | e2c00be0c5499ddf7ded6260c1be6ddee10cf8c8 (patch) | |
tree | 8a1827cc63d95012a1300478a7392dd482120ec1 | |
parent | c6ae934a66aad92e736509f021311f4a2b5f1be4 (diff) | |
download | aur-gambit-c-git.tar.gz |
add a patch
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 12 | ||||
-rw-r--r-- | math.h.patch | 10 |
3 files changed, 22 insertions, 4 deletions
@@ -1,6 +1,6 @@ pkgbase = gambit-c-git pkgdesc = Scheme R5RS interpreter and compiler (via C) - git version - pkgver = 4.9.4.r209.gc2b23f32 + pkgver = 4.9.5.r5.gf1fbe9aa pkgrel = 1 url = http://gambitscheme.org arch = i686 @@ -17,6 +17,8 @@ pkgbase = gambit-c-git options = !buildflags options = !makeflags source = gambit-scheme::git+https://github.com/gambit/gambit.git + source = math.h.patch md5sums = SKIP + md5sums = 59f7a342d87e0970a6b3a222d4c954cb pkgname = gambit-c-git @@ -2,7 +2,7 @@ # Maintainer: Stefan Husmann <stefan-husmann@t-online.de> pkgname=gambit-c-git -pkgver=4.9.4.r209.gc2b23f32 +pkgver=4.9.5.r5.gf1fbe9aa pkgrel=1 pkgdesc="Scheme R5RS interpreter and compiler (via C) - git version" arch=('i686' 'x86_64') @@ -14,14 +14,20 @@ checkdepends=('git') provides=('gambit-c') conflicts=('gambit-c') options=('staticlibs' '!lto' '!buildflags' '!makeflags') -source=(gambit-scheme::git+https://github.com/gambit/gambit.git) -md5sums=('SKIP') +source=(gambit-scheme::git+https://github.com/gambit/gambit.git math.h.patch) +md5sums=('SKIP' + '59f7a342d87e0970a6b3a222d4c954cb') pkgver() { cd gambit-scheme git describe --tags|sed 's+-+.r+'| sed 's+-+.+' | cut -c2- } +prepare() { + cd gambit-scheme + patch -Np1 < "$srcdir"/math.h.patch +} + build() { cd gambit-scheme export CFLAGS=`echo " $CFLAGS " | sed -e "s/-O1 / /g" -e "s/ -O2 / /g" -e "s/ -O3 / /g"` diff --git a/math.h.patch b/math.h.patch new file mode 100644 index 000000000000..1b524b6c9e46 --- /dev/null +++ b/math.h.patch @@ -0,0 +1,10 @@ +--- a/lib/setup.c ++++ b/lib/setup.c +@@ -21,6 +21,7 @@ + #include "mem.h" + #include "c_intf.h" + #include "actlog.h" ++#include <math.h> + + + /*---------------------------------------------------------------------------*/ |