diff --git a/srcpkgs/txr/patches/nolibffi-endian.patch b/srcpkgs/txr/patches/nolibffi-endian.patch new file mode 100644 index 0000000000..22799210a3 --- /dev/null +++ b/srcpkgs/txr/patches/nolibffi-endian.patch @@ -0,0 +1,18 @@ +commit 161de911edd37a0f64e42dfedfd9b35b212056e6 +Author: q66 +Date: Mon Jan 6 15:15:22 2020 +0100 + + fix non-libffi build on big endian + +diff --git ffi.c ffi.c +index 816afc4..535ca31 100644 +--- ffi.c ++++ ffi.c +@@ -83,6 +83,7 @@ typedef struct ffi_type { + char type, size; + } ffi_type; + #define FFI_TYPE_STRUCT 0 ++typedef unsigned long ffi_arg; + #endif + + typedef enum { diff --git a/srcpkgs/txr/template b/srcpkgs/txr/template index f7143bbb3f..46a2d6ebc8 100644 --- a/srcpkgs/txr/template +++ b/srcpkgs/txr/template @@ -4,6 +4,7 @@ version=227 revision=1 build_style=configure make_check_target=tests +# enabling libffi causes double-free errors with musl hostmakedepends="bison flex" short_desc="Programming language for convenient data munging" maintainer="Oliver Kiddle "