mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: hugs: Fix build with GCC.
* gnu/packages/patches/hugs-fix-build.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/hugs.scm (hugs)[source]: Use it. [native-inputs]: Remove. Change-Id: I8b17f6c8a89fbc25ac9fe40b58962c83b08cbc21 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
8636854d18
commit
c302b7a596
3 changed files with 28 additions and 4 deletions
|
@ -1567,6 +1567,7 @@ dist_patch_DATA = \
|
|||
%D%/packages/patches/htslib-for-stringtie.patch \
|
||||
%D%/packages/patches/hubbub-sort-entities.patch \
|
||||
%D%/packages/patches/hueplusplus-mbedtls.patch \
|
||||
%D%/packages/patches/hugs-fix-build.patch \
|
||||
%D%/packages/patches/hurd-64bit.patch \
|
||||
%D%/packages/patches/hurd-refcounts-assert.patch \
|
||||
%D%/packages/patches/hurd-rumpdisk-no-hd.patch \
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#:use-module (guix packages)
|
||||
#:use-module (guix download)
|
||||
#:use-module (guix build-system gnu)
|
||||
#:use-module (gnu packages gcc))
|
||||
#:use-module (gnu packages))
|
||||
|
||||
(define-public hugs
|
||||
(package
|
||||
|
@ -36,7 +36,8 @@
|
|||
name "98-plus-" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"1mdy4aq4campgmnpc2qwq7bsbfhaxfsqdghbyyz2wms4lnfcmyma"))))
|
||||
"1mdy4aq4campgmnpc2qwq7bsbfhaxfsqdghbyyz2wms4lnfcmyma"))
|
||||
(patches (search-patches "hugs-fix-build.patch"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
|
@ -71,8 +72,6 @@
|
|||
(("/bin/cp") (which "cp")))
|
||||
#t)))
|
||||
#:tests? #f)) ; no test target
|
||||
;; FIXME: Fails to build with GCC 5.
|
||||
(native-inputs (list gcc-4.9))
|
||||
(home-page "https://www.haskell.org/hugs/")
|
||||
(synopsis "Functional programming system based on Haskell 98")
|
||||
(description
|
||||
|
|
24
gnu/packages/patches/hugs-fix-build.patch
Normal file
24
gnu/packages/patches/hugs-fix-build.patch
Normal file
|
@ -0,0 +1,24 @@
|
|||
Fixes build with GCC 5 and later.
|
||||
Patch from <https://aur.archlinux.org/cgit/aur.git/tree/hsbase_inline.patch?h=hugs>.
|
||||
|
||||
diff --git a/packages/base/include/HsBase.h b/packages/base/include/HsBase.h
|
||||
index aa1a7fb..78d5b46 100644
|
||||
--- a/packages/base/include/HsBase.h
|
||||
+++ b/packages/base/include/HsBase.h
|
||||
@@ -217,15 +217,7 @@ StgWord64 stg_integerToWord64 (StgInt sa, StgByteArray /* Really: mp_limb_t* */
|
||||
when compiling to native code.
|
||||
-------------------------------------------------------------------------- */
|
||||
|
||||
-#ifndef INLINE
|
||||
-# if defined(_MSC_VER)
|
||||
-# define INLINE extern __inline
|
||||
-# elif defined(__GNUC__)
|
||||
-# define INLINE extern inline
|
||||
-# else
|
||||
-# define INLINE inline
|
||||
-# endif
|
||||
-#endif
|
||||
+#define INLINE inline
|
||||
|
||||
INLINE int __hscore_get_errno(void) { return errno; }
|
||||
INLINE void __hscore_set_errno(int e) { errno = e; }
|
Loading…
Add table
Add a link
Reference in a new issue