summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-25 12:18:59 +0000
committerSam James <sam@gentoo.org>2021-04-25 12:19:40 +0000
commit9fbf54f2d905f2eb254be626925ddd85112491f8 (patch)
tree9f3055131904000dc60ee92cf9e083bf98195b1e /dev-lisp
parentapp-text/bibutils: Add upstream remote-id in metadata (diff)
downloadgentoo-9fbf54f2d905f2eb254be626925ddd85112491f8.tar.gz
gentoo-9fbf54f2d905f2eb254be626925ddd85112491f8.tar.bz2
gentoo-9fbf54f2d905f2eb254be626925ddd85112491f8.zip
dev-lisp/sbcl: fix build with gcc 10
Closes: https://bugs.gentoo.org/777582 Closes: https://bugs.gentoo.org/762979 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lisp')
-rw-r--r--dev-lisp/sbcl/files/sbcl-1.4.9-gcc-10.patch13
-rw-r--r--dev-lisp/sbcl/sbcl-1.4.9.ebuild3
2 files changed, 16 insertions, 0 deletions
diff --git a/dev-lisp/sbcl/files/sbcl-1.4.9-gcc-10.patch b/dev-lisp/sbcl/files/sbcl-1.4.9-gcc-10.patch
new file mode 100644
index 000000000000..216422e9a60b
--- /dev/null
+++ b/dev-lisp/sbcl/files/sbcl-1.4.9-gcc-10.patch
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/777582
+https://src.fedoraproject.org/rpms/sbcl/blob/rawhide/f/sbcl-1.4.14-gcc10.patch
+--- a/src/runtime/linux-os.c
++++ b/src/runtime/linux-os.c
+@@ -64,7 +64,7 @@ int personality (unsigned long);
+ #include <sys/personality.h>
+ #endif
+
+-size_t os_vm_page_size;
++//size_t os_vm_page_size;
+
+ #if defined(LISP_FEATURE_SB_THREAD) && defined(LISP_FEATURE_SB_FUTEX) && !defined(LISP_FEATURE_SB_PTHREAD_FUTEX)
+ #include <sys/syscall.h>
diff --git a/dev-lisp/sbcl/sbcl-1.4.9.ebuild b/dev-lisp/sbcl/sbcl-1.4.9.ebuild
index 11da9f485525..df2d06a62003 100644
--- a/dev-lisp/sbcl/sbcl-1.4.9.ebuild
+++ b/dev-lisp/sbcl/sbcl-1.4.9.ebuild
@@ -103,6 +103,9 @@ src_prepare() {
eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch
eapply "${FILESDIR}"/${PN}-1.4.0-verbose-build.patch
+ # bug #777582
+ eapply "${FILESDIR}"/${PN}-1.4.9-gcc-10.patch
+
eapply_user
# Make sure the *FLAGS variables are sane.