Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/dillo/, www-client/dillo/files/
Date: Fri, 31 Jan 2020 11:40:01
Message-Id: 1580470790.cebb9304294041396e5a8295266864a30bcdb78e.jer@gentoo
1 commit: cebb9304294041396e5a8295266864a30bcdb78e
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 31 11:31:57 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 31 11:39:50 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cebb9304
7
8 www-client/dillo: Fix CFLAGS=-fno-common
9
10 Package-Manager: Portage-2.3.86, Repoman-2.3.20
11 Closes: https://bugs.gentoo.org/show_bug.cgi?id=707398
12 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
13
14 .../{dillo-9999.ebuild => dillo-3.0.5-r2.ebuild} | 38 ++++----
15 www-client/dillo/dillo-9999.ebuild | 13 +--
16 .../dillo/files/dillo-3.0.5-fno-common.patch | 100 +++++++++++++++++++++
17 3 files changed, 117 insertions(+), 34 deletions(-)
18
19 diff --git a/www-client/dillo/dillo-9999.ebuild b/www-client/dillo/dillo-3.0.5-r2.ebuild
20 similarity index 64%
21 copy from www-client/dillo/dillo-9999.ebuild
22 copy to www-client/dillo/dillo-3.0.5-r2.ebuild
23 index 2cf816aa62b..14d9e245482 100644
24 --- a/www-client/dillo/dillo-9999.ebuild
25 +++ b/www-client/dillo/dillo-3.0.5-r2.ebuild
26 @@ -2,41 +2,40 @@
27 # Distributed under the terms of the GNU General Public License v2
28
29 EAPI=7
30 -
31 -inherit autotools desktop mercurial toolchain-funcs
32 +inherit desktop multilib toolchain-funcs
33
34 DESCRIPTION="Lean FLTK based web browser"
35 HOMEPAGE="https://www.dillo.org/"
36 -SRC_URI="mirror://gentoo/${PN}.png"
37 -EHG_REPO_URI="https://hg.dillo.org/dillo"
38 +SRC_URI="
39 + https://www.dillo.org/download/${P}.tar.bz2
40 + mirror://gentoo/${PN}.png
41 +"
42
43 LICENSE="GPL-3"
44 SLOT="0"
45 -KEYWORDS=""
46 -IUSE="doc +gif ipv6 +jpeg +png ssl"
47 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
48 +IUSE="doc +gif ipv6 +jpeg libressl +png ssl"
49
50 RDEPEND="
51 >=x11-libs/fltk-1.3
52 sys-libs/zlib
53 jpeg? ( virtual/jpeg:0 )
54 png? ( >=media-libs/libpng-1.2:0 )
55 - ssl? ( net-libs/mbedtls:= )
56 + ssl? (
57 + !libressl? ( dev-libs/openssl:0= )
58 + libressl? ( dev-libs/libressl )
59 + )
60 "
61 -DEPEND="
62 +BDEPEND="
63 ${RDEPEND}
64 doc? ( app-doc/doxygen )
65 "
66 PATCHES=(
67 "${FILESDIR}"/${PN}2-inbuf.patch
68 + "${FILESDIR}"/${PN}-3.0.5-fno-common.patch
69 )
70 -
71 DOCS="AUTHORS ChangeLog README NEWS doc/*.txt doc/README"
72
73 -src_prepare() {
74 - default
75 - eautoreconf
76 -}
77 -
78 src_configure() {
79 econf \
80 $(use_enable gif) \
81 @@ -55,18 +54,11 @@ src_compile() {
82 }
83
84 src_install() {
85 + dodir /etc
86 default
87
88 - if use doc; then
89 - docinto html
90 - dodoc -r html/
91 - fi
92 + use doc && dodoc -r html
93
94 doicon "${DISTDIR}"/${PN}.png
95 make_desktop_entry ${PN} Dillo
96 }
97 -
98 -pkg_postinst() {
99 - elog "Dillo has installed a default configuration into /etc/dillo/dillorc"
100 - elog "You can copy this to ~/.dillo/ and customize it"
101 -}
102
103 diff --git a/www-client/dillo/dillo-9999.ebuild b/www-client/dillo/dillo-9999.ebuild
104 index 2cf816aa62b..7134cc059e2 100644
105 --- a/www-client/dillo/dillo-9999.ebuild
106 +++ b/www-client/dillo/dillo-9999.ebuild
107 @@ -2,7 +2,6 @@
108 # Distributed under the terms of the GNU General Public License v2
109
110 EAPI=7
111 -
112 inherit autotools desktop mercurial toolchain-funcs
113
114 DESCRIPTION="Lean FLTK based web browser"
115 @@ -28,8 +27,8 @@ DEPEND="
116 "
117 PATCHES=(
118 "${FILESDIR}"/${PN}2-inbuf.patch
119 + "${FILESDIR}"/${PN}-3.0.5-fno-common.patch
120 )
121 -
122 DOCS="AUTHORS ChangeLog README NEWS doc/*.txt doc/README"
123
124 src_prepare() {
125 @@ -57,16 +56,8 @@ src_compile() {
126 src_install() {
127 default
128
129 - if use doc; then
130 - docinto html
131 - dodoc -r html/
132 - fi
133 + use doc && dodoc -r html
134
135 doicon "${DISTDIR}"/${PN}.png
136 make_desktop_entry ${PN} Dillo
137 }
138 -
139 -pkg_postinst() {
140 - elog "Dillo has installed a default configuration into /etc/dillo/dillorc"
141 - elog "You can copy this to ~/.dillo/ and customize it"
142 -}
143
144 diff --git a/www-client/dillo/files/dillo-3.0.5-fno-common.patch b/www-client/dillo/files/dillo-3.0.5-fno-common.patch
145 new file mode 100644
146 index 00000000000..df80f55afaf
147 --- /dev/null
148 +++ b/www-client/dillo/files/dillo-3.0.5-fno-common.patch
149 @@ -0,0 +1,100 @@
150 +--- a/dpid/dpid.c
151 ++++ b/dpid/dpid.c
152 +@@ -41,6 +41,26 @@
153 + volatile sig_atomic_t caught_sigchld = 0;
154 + char *SharedKey = NULL;
155 +
156 ++char *srs_name;
157 ++
158 ++/*! dpid's service request socket file descriptor */
159 ++int srs_fd;
160 ++
161 ++/*! Number of available plugins */
162 ++int numdpis;
163 ++
164 ++/*! Number of sockets being watched */
165 ++int numsocks;
166 ++
167 ++/*! State information for each plugin. */
168 ++struct dp *dpi_attr_list;
169 ++
170 ++/*! service served for each plugin */
171 ++Dlist *services_list;
172 ++
173 ++/*! Set of sockets watched for connections */
174 ++fd_set sock_set;
175 ++
176 + /*! Remove dpid_comm_keys file.
177 + * This avoids that dillo instances connect to a stale port after dpid
178 + * has exited (e.g. after a reboot).
179 +--- a/dpid/dpid.h
180 ++++ b/dpid/dpid.h
181 +@@ -25,10 +25,10 @@
182 +
183 + /*! \TODO: Should read this from dillorc */
184 + #define SRS_NAME "dpid.srs"
185 +-char *srs_name;
186 ++extern char *srs_name;
187 +
188 + /*! dpid's service request socket file descriptor */
189 +-int srs_fd;
190 ++extern int srs_fd;
191 +
192 + /*! plugin state information
193 + */
194 +@@ -49,19 +49,19 @@
195 + };
196 +
197 + /*! Number of available plugins */
198 +-int numdpis;
199 ++extern int numdpis;
200 +
201 + /*! Number of sockets being watched */
202 +-int numsocks;
203 ++extern int numsocks;
204 +
205 + /*! State information for each plugin. */
206 +-struct dp *dpi_attr_list;
207 ++extern struct dp *dpi_attr_list;
208 +
209 + /*! service served for each plugin */
210 +-Dlist *services_list;
211 ++extern Dlist *services_list;
212 +
213 + /*! Set of sockets watched for connections */
214 +-fd_set sock_set;
215 ++extern fd_set sock_set;
216 +
217 + /*! Set to 1 by the SIGCHLD handler dpi_sigchld */
218 + extern volatile sig_atomic_t caught_sigchld;
219 +--- a/dpid/dpid_common.c
220 ++++ b/dpid/dpid_common.c
221 +@@ -14,6 +14,9 @@
222 + #include <unistd.h>
223 + #include "dpid_common.h"
224 +
225 ++/*! Error codes for dpid */
226 ++dpi_errno_t dpi_errno;
227 ++
228 + /*
229 + * Send a verbose error message.
230 + */
231 +--- a/dpid/dpid_common.h
232 ++++ b/dpid/dpid_common.h
233 +@@ -35,12 +35,13 @@
234 + #define CKD_WRITE(fd, msg) ckd_write(fd, msg, __FILE__, __LINE__)
235 + #define CKD_CLOSE(fd) ckd_close(fd, __FILE__, __LINE__)
236 +
237 +-
238 + /*! Error codes for dpid */
239 +-enum {
240 ++typedef enum {
241 + no_errors,
242 + dpid_srs_addrinuse /* dpid service request socket address already in use */
243 +-} dpi_errno;
244 ++} dpi_errno_t;
245 ++
246 ++extern dpi_errno_t dpi_errno;
247 +
248 + /*! Intended for identifying dillo plugins
249 + * and related files