From f08a900e5accd4d86c8af8709dbdd5e7f4aaeae9 Mon Sep 17 00:00:00 2001 From: newbluemoon Date: Thu, 26 Oct 2017 14:01:20 +0200 Subject: [PATCH] guile1.8: fix musl build --- srcpkgs/guile1.8/patches/musl-longlong.patch | 13 +++++++++++++ srcpkgs/guile1.8/template | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/guile1.8/patches/musl-longlong.patch diff --git a/srcpkgs/guile1.8/patches/musl-longlong.patch b/srcpkgs/guile1.8/patches/musl-longlong.patch new file mode 100644 index 00000000000..96109cf6fa3 --- /dev/null +++ b/srcpkgs/guile1.8/patches/musl-longlong.patch @@ -0,0 +1,13 @@ +--- libguile/fports.c.orig 2010-12-13 18:24:40.000000000 +0100 ++++ libguile/fports.c 2017-10-25 21:51:07.234942515 +0200 +@@ -78,8 +78,8 @@ + #define OFF_T_MAX LONG_MAX + #define OFF_T_MIN LONG_MIN + #elif SIZEOF_OFF_T == SIZEOF_LONG_LONG +-#define OFF_T_MAX LONG_LONG_MAX +-#define OFF_T_MIN LONG_LONG_MIN ++#define OFF_T_MAX LLONG_MAX ++#define OFF_T_MIN LLONG_MIN + #else + #error Oops, unknown OFF_T size + #endif diff --git a/srcpkgs/guile1.8/template b/srcpkgs/guile1.8/template index d94be770958..a8cb3de15f8 100644 --- a/srcpkgs/guile1.8/template +++ b/srcpkgs/guile1.8/template @@ -1,7 +1,7 @@ # Template file for 'guile1.8' pkgname="guile1.8" version="1.8.8" -revision=1 +revision=2 wrksrc=${pkgname/1.8/}-${version} build_style="gnu-configure" hostmakedepends="pkg-config"