From 6f540f546393f065ecc45939122146f11e517ad5 Mon Sep 17 00:00:00 2001 From: Ivan Sokolov Date: Thu, 3 Jan 2019 10:35:23 +0300 Subject: [PATCH] chez-scheme: add alternatives --- .../patches/fix-compilation-with-gcc-8.patch | 19 +++++++++++++++++++ srcpkgs/chez-scheme/template | 9 +++++++-- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/chez-scheme/patches/fix-compilation-with-gcc-8.patch diff --git a/srcpkgs/chez-scheme/patches/fix-compilation-with-gcc-8.patch b/srcpkgs/chez-scheme/patches/fix-compilation-with-gcc-8.patch new file mode 100644 index 00000000000..603511b707a --- /dev/null +++ b/srcpkgs/chez-scheme/patches/fix-compilation-with-gcc-8.patch @@ -0,0 +1,19 @@ +commit 82a14c87aaa44ae004b9d76af42144155e426290 +Author: Göran Weinholt +Date: Fri May 4 18:18:22 2018 +0200 + + - Double FMTBUFSIZE to fix compilation with gcc-8 + c/prim5.c + +diff --git c/prim5.c c/prim5.c +index 5bee635..69c6bfd 100644 +--- c/prim5.c ++++ c/prim5.c +@@ -219,6 +219,6 @@ static ptr s_decode_float(x) ptr x; { + return S_decode_float(FLODAT(x)); + } + +-#define FMTBUFSIZE 60 ++#define FMTBUFSIZE 120 + #define CHUNKADDRLT(x, y) (((chunkinfo *)(Scar(x)))->addr < ((chunkinfo *)(Scar(y)))->addr) + mkmergesort(sort_chunks, merge_chunks, ptr, Snil, CHUNKADDRLT, INITCDR) diff --git a/srcpkgs/chez-scheme/template b/srcpkgs/chez-scheme/template index 36329c7047f..b28e10b61c7 100644 --- a/srcpkgs/chez-scheme/template +++ b/srcpkgs/chez-scheme/template @@ -1,7 +1,7 @@ # Template file for 'chez-scheme' pkgname=chez-scheme version=9.5 -revision=1 +revision=2 wrksrc="ChezScheme-${version}" build_style=gnu-configure hostmakedepends="git libX11-devel ncurses-devel zlib-devel" @@ -14,6 +14,10 @@ distfiles="https://github.com/cisco/ChezScheme/archive/v${version}.tar.gz https://github.com/nanopass/nanopass-framework-scheme/archive/1f7e80bcff16766ef419183169bbc343db07db0c.tar.gz" checksum="a1d9f93bd8a683ea3d8f2f1b4880f85ea40bf9a482ee6b84cb0fe0ab6148a98c 5fe450f78bc1f096f58a907ca8b3829fff1cc520e5d5e8c503ac5c601b6779e0" +alternatives=" + scheme:scheme:/usr/bin/chez-scheme + scheme:scheme.1:/usr/share/man/man1/chez-scheme.1 +" only_for_archs="i686 i686-musl x86_64 x86_64-musl armv6l armv7l" case "$XBPS_MACHINE" in @@ -54,7 +58,8 @@ post_extract() { do_configure() { ./configure --installprefix=/usr --installman=/usr/share/man \ - --nogzip-man-pages --temproot=$DESTDIR --machine=$_host + --nogzip-man-pages --temproot=$DESTDIR --machine=$_host \ + --installschemename=chez-scheme } post_install() {