1 |
commit: 74d0b0bc8fa86c64faedfea5624116e94076913e |
2 |
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr> |
3 |
AuthorDate: Mon Feb 1 11:32:45 2021 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 9 16:59:23 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74d0b0bc |
7 |
|
8 |
net-proxy/squirm: Port to EAPI 7 |
9 |
|
10 |
* Fix build with gcc-10 |
11 |
|
12 |
Closes: https://bugs.gentoo.org/709648 |
13 |
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr> |
14 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
15 |
|
16 |
.../squirm/files/squirm-1.26-fno-common.patch | 25 ++++++++++++++++++++++ |
17 |
net-proxy/squirm/files/squirm-1.26-gentoo.patch | 5 ++--- |
18 |
net-proxy/squirm/metadata.xml | 2 +- |
19 |
net-proxy/squirm/squirm-1.26-r1.ebuild | 8 +++---- |
20 |
4 files changed, 32 insertions(+), 8 deletions(-) |
21 |
|
22 |
diff --git a/net-proxy/squirm/files/squirm-1.26-fno-common.patch b/net-proxy/squirm/files/squirm-1.26-fno-common.patch |
23 |
new file mode 100644 |
24 |
index 00000000000..01e6b25f59d |
25 |
--- /dev/null |
26 |
+++ b/net-proxy/squirm/files/squirm-1.26-fno-common.patch |
27 |
@@ -0,0 +1,25 @@ |
28 |
+https://bugs.gentoo.org/709648 |
29 |
+--- a/lists.c |
30 |
++++ b/lists.c |
31 |
+@@ -38,6 +38,8 @@ |
32 |
+ |
33 |
+ |
34 |
+ extern int dodo_mode; |
35 |
++struct pattern_file *pattern_head; |
36 |
++struct subnet_block *subnet_head; |
37 |
+ |
38 |
+ |
39 |
+ void init_lists(void) |
40 |
+--- a/lists.h |
41 |
++++ b/lists.h |
42 |
+@@ -45,8 +45,8 @@ |
43 |
+ |
44 |
+ |
45 |
+ /* the two chief lists */ |
46 |
+-struct subnet_block *subnet_head; |
47 |
+-struct pattern_file *pattern_head; |
48 |
++extern struct subnet_block *subnet_head; |
49 |
++extern struct pattern_file *pattern_head; |
50 |
+ |
51 |
+ |
52 |
+ |
53 |
|
54 |
diff --git a/net-proxy/squirm/files/squirm-1.26-gentoo.patch b/net-proxy/squirm/files/squirm-1.26-gentoo.patch |
55 |
index 16b6e21c7aa..1f823d9e525 100644 |
56 |
--- a/net-proxy/squirm/files/squirm-1.26-gentoo.patch |
57 |
+++ b/net-proxy/squirm/files/squirm-1.26-gentoo.patch |
58 |
@@ -1,6 +1,5 @@ |
59 |
-diff -Nru squirm-1.26.orig/Makefile squirm-1.26/Makefile |
60 |
---- squirm-1.26.orig/Makefile 2005-08-19 09:31:06.000000000 +0200 |
61 |
-+++ squirm-1.26/Makefile 2009-06-20 14:58:18.000000000 +0200 |
62 |
+--- a/Makefile |
63 |
++++ b/Makefile |
64 |
@@ -1,7 +1,7 @@ |
65 |
# $Id$ |
66 |
|
67 |
|
68 |
diff --git a/net-proxy/squirm/metadata.xml b/net-proxy/squirm/metadata.xml |
69 |
index 6f49eba8f49..7a38bb90096 100644 |
70 |
--- a/net-proxy/squirm/metadata.xml |
71 |
+++ b/net-proxy/squirm/metadata.xml |
72 |
@@ -1,5 +1,5 @@ |
73 |
<?xml version="1.0" encoding="UTF-8"?> |
74 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
75 |
<pkgmetadata> |
76 |
-<!-- maintainer-needed --> |
77 |
+ <!-- maintainer-needed --> |
78 |
</pkgmetadata> |
79 |
|
80 |
diff --git a/net-proxy/squirm/squirm-1.26-r1.ebuild b/net-proxy/squirm/squirm-1.26-r1.ebuild |
81 |
index e5e323ec078..d20f275a0c5 100644 |
82 |
--- a/net-proxy/squirm/squirm-1.26-r1.ebuild |
83 |
+++ b/net-proxy/squirm/squirm-1.26-r1.ebuild |
84 |
@@ -1,7 +1,7 @@ |
85 |
-# Copyright 1999-2016 Gentoo Foundation |
86 |
+# Copyright 1999-2021 Gentoo Authors |
87 |
# Distributed under the terms of the GNU General Public License v2 |
88 |
|
89 |
-EAPI=6 |
90 |
+EAPI=7 |
91 |
|
92 |
inherit toolchain-funcs |
93 |
|
94 |
@@ -12,7 +12,6 @@ SRC_URI="http://squirm.foote.com.au/${P}.tgz" |
95 |
LICENSE="GPL-2" |
96 |
SLOT="0" |
97 |
KEYWORDS="~amd64 ppc x86" |
98 |
-IUSE="" |
99 |
|
100 |
RDEPEND="net-proxy/squid" |
101 |
DEPEND="${RDEPEND}" |
102 |
@@ -20,6 +19,7 @@ DEPEND="${RDEPEND}" |
103 |
PATCHES=( |
104 |
"${FILESDIR}"/${P}-gentoo.patch |
105 |
"${FILESDIR}"/${P}-gcc5.patch |
106 |
+ "${FILESDIR}"/${P}-fno-common.patch |
107 |
) |
108 |
|
109 |
src_compile() { |
110 |
@@ -27,7 +27,7 @@ src_compile() { |
111 |
} |
112 |
|
113 |
src_install() { |
114 |
- emake PREFIX="${ED%/}/opt/squirm" install |
115 |
+ emake PREFIX="${ED}/opt/squirm" install |
116 |
} |
117 |
|
118 |
pkg_postinst() { |