1 |
commit: 9fbf54f2d905f2eb254be626925ddd85112491f8 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 25 12:18:59 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 25 12:19:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fbf54f2 |
7 |
|
8 |
dev-lisp/sbcl: fix build with gcc 10 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/777582 |
11 |
Closes: https://bugs.gentoo.org/762979 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
dev-lisp/sbcl/files/sbcl-1.4.9-gcc-10.patch | 13 +++++++++++++ |
15 |
dev-lisp/sbcl/sbcl-1.4.9.ebuild | 3 +++ |
16 |
2 files changed, 16 insertions(+) |
17 |
|
18 |
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 |
19 |
new file mode 100644 |
20 |
index 00000000000..216422e9a60 |
21 |
--- /dev/null |
22 |
+++ b/dev-lisp/sbcl/files/sbcl-1.4.9-gcc-10.patch |
23 |
@@ -0,0 +1,13 @@ |
24 |
+https://bugs.gentoo.org/777582 |
25 |
+https://src.fedoraproject.org/rpms/sbcl/blob/rawhide/f/sbcl-1.4.14-gcc10.patch |
26 |
+--- a/src/runtime/linux-os.c |
27 |
++++ b/src/runtime/linux-os.c |
28 |
+@@ -64,7 +64,7 @@ int personality (unsigned long); |
29 |
+ #include <sys/personality.h> |
30 |
+ #endif |
31 |
+ |
32 |
+-size_t os_vm_page_size; |
33 |
++//size_t os_vm_page_size; |
34 |
+ |
35 |
+ #if defined(LISP_FEATURE_SB_THREAD) && defined(LISP_FEATURE_SB_FUTEX) && !defined(LISP_FEATURE_SB_PTHREAD_FUTEX) |
36 |
+ #include <sys/syscall.h> |
37 |
|
38 |
diff --git a/dev-lisp/sbcl/sbcl-1.4.9.ebuild b/dev-lisp/sbcl/sbcl-1.4.9.ebuild |
39 |
index 11da9f48552..df2d06a6200 100644 |
40 |
--- a/dev-lisp/sbcl/sbcl-1.4.9.ebuild |
41 |
+++ b/dev-lisp/sbcl/sbcl-1.4.9.ebuild |
42 |
@@ -103,6 +103,9 @@ src_prepare() { |
43 |
eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch |
44 |
eapply "${FILESDIR}"/${PN}-1.4.0-verbose-build.patch |
45 |
|
46 |
+ # bug #777582 |
47 |
+ eapply "${FILESDIR}"/${PN}-1.4.9-gcc-10.patch |
48 |
+ |
49 |
eapply_user |
50 |
|
51 |
# Make sure the *FLAGS variables are sane. |