1 |
commit: cbbaf8e8744ecbfad9ee7159d00ea7d589e1de0f |
2 |
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> |
3 |
AuthorDate: Sat Nov 28 23:08:49 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 28 23:08:49 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbbaf8e8 |
7 |
|
8 |
dev-lang/srf: fix build with gcc-10 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/712054 |
11 |
Package-Manager: Portage-3.0.9, Repoman-3.0.1 |
12 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
13 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
14 |
|
15 |
dev-lang/srf/files/srf-1.0-fno-common.patch | 8 ++++++++ |
16 |
dev-lang/srf/srf-1.0-r2.ebuild | 9 ++++----- |
17 |
2 files changed, 12 insertions(+), 5 deletions(-) |
18 |
|
19 |
diff --git a/dev-lang/srf/files/srf-1.0-fno-common.patch b/dev-lang/srf/files/srf-1.0-fno-common.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..abbd5c74191 |
22 |
--- /dev/null |
23 |
+++ b/dev-lang/srf/files/srf-1.0-fno-common.patch |
24 |
@@ -0,0 +1,8 @@ |
25 |
+--- a/builtins.h |
26 |
++++ b/builtins.h |
27 |
+@@ -20,4 +20,4 @@ |
28 |
+ */ |
29 |
+ #ident "$Id: builtins.h,v 1.4 2004/11/02 04:39:39 bediger Exp $" |
30 |
+ void setup_builtins(void); |
31 |
+-int primitive_call_counter; |
32 |
++extern int primitive_call_counter; |
33 |
|
34 |
diff --git a/dev-lang/srf/srf-1.0-r2.ebuild b/dev-lang/srf/srf-1.0-r2.ebuild |
35 |
index 75e62c66f6f..949fee4692d 100644 |
36 |
--- a/dev-lang/srf/srf-1.0-r2.ebuild |
37 |
+++ b/dev-lang/srf/srf-1.0-r2.ebuild |
38 |
@@ -3,7 +3,7 @@ |
39 |
|
40 |
EAPI=6 |
41 |
|
42 |
-inherit eutils vcs-clean |
43 |
+inherit vcs-clean |
44 |
|
45 |
DESCRIPTION="The Simple Recursive Functions programming language" |
46 |
HOMEPAGE="http://www.stratigery.com/srf.html" |
47 |
@@ -12,12 +12,12 @@ SRC_URI="http://www.stratigery.com/srf.html/${P}.tar.gz" |
48 |
LICENSE="GPL-2" |
49 |
SLOT="0" |
50 |
KEYWORDS="~amd64 ~x86 ~x86-linux ~ppc-macos" |
51 |
-IUSE="" |
52 |
|
53 |
DEPEND=" |
54 |
sys-devel/flex |
55 |
virtual/yacc" |
56 |
-RDEPEND="" |
57 |
+ |
58 |
+PATCHES=( "${FILESDIR}"/${P}-fno-common.patch ) |
59 |
|
60 |
src_prepare() { |
61 |
default |
62 |
@@ -30,6 +30,5 @@ src_install() { |
63 |
doman srf.1 |
64 |
dodoc README srf.html |
65 |
|
66 |
- docinto examples |
67 |
- dodoc examples/* |
68 |
+ dodoc -r examples |
69 |
} |