diff options
Diffstat (limited to 'user/gambit-c/APKBUILD')
-rw-r--r-- | user/gambit-c/APKBUILD | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/user/gambit-c/APKBUILD b/user/gambit-c/APKBUILD index 73a03981f..4cffffae5 100644 --- a/user/gambit-c/APKBUILD +++ b/user/gambit-c/APKBUILD @@ -3,11 +3,10 @@ pkgname=gambit-c pkgver=4.9.4 _pkgver=$(printf "%s" "${pkgver}" | tr . _) -pkgrel=1 +pkgrel=2 pkgdesc="An efficient implementation of the Scheme programming language." url="https://gambitscheme.org/" arch="all" -options="!check" # temporary until #924 is fixed license="Apache-2.0" depends="" makedepends="openssl-dev texinfo gnu-ghostscript" @@ -16,6 +15,7 @@ source="https://gambitscheme.org/$pkgver/gambit-v${_pkgver}.tgz fix-incompatible-stat-usage.patch remove-non-ascii-character-from-gambit-txi.patch reproducibility.patch + 0001-Avoid-fixnum-overflow-on-32-bit-machines-in-port-set.patch disable-srfi-179.patch " @@ -25,6 +25,25 @@ build() { # https://github.com/gambit/gambit/issues/249 export CFLAGS="${CFLAGS} --param max-gcse-memory=600000000"; + # We need to bootstrap if we patch .scm files that are + # used to generate .c files; using unpatched official + # releases should be OK if the patches are upstream. + # + # Disable versioned shlibs b/c buggy build scripts. + # + # There is no 'makefile' without an initial 'configure'. + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --enable-single-host \ + --enable-c-opt \ + --enable-dynamic-clib \ + --enable-debug-c-backtrace \ + --enable-gcc-opts \ + ; + make bootstrap + make bootclean + ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -40,7 +59,8 @@ build() { --enable-shared \ --enable-versioned-shared-libs \ --disable-absolute-shared-libs \ - --enable-openssl + --enable-openssl \ + ; make make modules } @@ -57,4 +77,5 @@ sha512sums="3471062618949fe4e1eba19ca3170b8334065797d0c2f440050520ebca2af8bb6d57 a878994ea7c40b301d30b4d05879c335ad42e1ca8c25387556691192b6945276d6d6ff017ff568302558b23c42c61f223bddb3596b8203fbee8edbf4fdd9b813 fix-incompatible-stat-usage.patch 45336179d3f61fa3d70c3517f368fd8ccd744b5981c4bbc2091ed0016e10940c1b24dd58ee4c8d59637d89865a4c6f0ea80dc49a8859b7a900331fdb0e1efe49 remove-non-ascii-character-from-gambit-txi.patch 133ef5442c1bfe51e57caecd509c12cdecd86cfb941114a5038fad2c3e2bda1770fde7e367561039d523db5ea9cba5cebae7a9ed9daca699863267e7224f1ad6 reproducibility.patch +2b11fe9957c22a4410070f887f507215703e7476f050ef90ee8ea04e66f0f602f5cf2877a6efb71e7355a767e50a4f2fa4ecdc7b4bd9b1971f3d1234ca980b8c 0001-Avoid-fixnum-overflow-on-32-bit-machines-in-port-set.patch d0da7949db7a83020fc7e4e139c7df292b4671adf0ba42fdfee4448915e6b697fbcecb3ca206507a3756dc39506e0d0c1f8d07ea5906bb5ce6ab6b42c18f0781 disable-srfi-179.patch" |