Gentoo Archives: gentoo-user

From: Daniel Campbell <zlg@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Pale Moon Air-Gapped portage EAPI 6 Install WAS: [Logging] SSL with PM
Date: Sat, 24 Dec 2016 07:31:11
Message-Id: 4b237577-5af4-c3ea-b198-6b8d42820fb1@gentoo.org
In Reply to: Re: [gentoo-user] Pale Moon Air-Gapped portage EAPI 6 Install WAS: [Logging] SSL with PM by Miroslav Rovis
1 On 12/23/2016 08:58 AM, Miroslav Rovis wrote:
2 > On 161223-05:38+0100, Miroslav Rovis wrote:
3 >> It took me all of my skills ;-) . But I installed Pale Moon
4 > ...
5 >> That's new technology. EAPI=6 in the ebuild
6 >> Nothing I've seen in my previous 7 years as Gentoo
7 > ...
8 >> I'd like to provide detailed info here how the above happened
9 >
10 > Maybe start from the witness of the completed install.
11 >
12 > That is, from the (witnessing) log:
13 > /var/log/portage/www-client:palemoon-27.0.3-r6:20161221-204523.log
14 >
15 > after having in some apparently correct way modified the ebuild in my local
16 > overlay, and upon issuing:
17 >
18 > # emerge palemoon
19 >
20 > So, the log:
21 >
22 > * Package: www-client/palemoon-27.0.3-r6
23 > * Repository: miro
24 > * USE: abi_x86_64 alsa amd64 elibc_glibc gstreamer gtk2 kernel_linux official-branding optimize userland_GNU
25 > * FEATURES: preserve-libs sandbox userpriv usersandbox
26 >>>> Unpacking source...
27 > * Fetching http://localhost/cgi-bin/cgit.cgi/Pale-Moon.git ...
28 > git fetch http://localhost/cgi-bin/cgit.cgi/Pale-Moon.git +refs/tags/27.0.3_Release:refs/tags/27.0.3_Release
29 > From http://localhost/cgi-bin/cgit.cgi/Pale-Moon
30 > * [new tag] 27.0.3_Release -> 27.0.3_Release
31 > * [new tag] 24.5.1_beta4 -> 24.5.1_beta4
32 >
33 > ... [130 entries cut here] ...
34 >
35 > * [new tag] 27.0.1_Release -> 27.0.1_Release
36 > * [new tag] 27.0.2_Release -> 27.0.2_Release
37 > * [new tag] GUID_working_base -> GUID_working_base
38 >
39 > ... [35 entries cut here] ...
40 >
41 > * [new tag] SUMOZI_25.1.0_MERGE -> SUMOZI_25.1.0_MERGE
42 > * [new tag] SUMOZI_25.2.0_MERGE -> SUMOZI_25.2.0_MERGE
43 > git symbolic-ref refs/git-r3/www-client/palemoon/0/__main__ refs/tags/27.0.3_Release
44 > * Checking out http://localhost/cgi-bin/cgit.cgi/Pale-Moon.git to /var/tmp/portage/www-client/palemoon-27.0.3-r6/work/palemoon-27.0.3 ...
45 > git checkout --quiet refs/tags/27.0.3_Release
46 > GIT NEW branch -->
47 > repository: http://localhost/cgi-bin/cgit.cgi/Pale-Moon.git
48 > at the commit: cff1b1447aa25e27b7294bb6986e79c98ae04a03
49 >>>> Source unpacked in /var/tmp/portage/www-client/palemoon-27.0.3-r6/work
50 >>>> Preparing source in /var/tmp/portage/www-client/palemoon-27.0.3-r6/work/palemoon-27.0.3 ...
51 >>>> Source prepared.
52 >>>> Configuring source in /var/tmp/portage/www-client/palemoon-27.0.3-r6/work/palemoon-27.0.3 ...
53 > * You are enabling official branding. You may not redistribute this build
54 >
55 > ... [9700 lines cut here] ...
56 >
57 >>>> /usr/lib64/palemoon/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/install.rdf
58 >>>> /usr/lib64/palemoon/browser/blocklist.xml
59 >>>> /usr/lib64/palemoon/browser/searchplugins/
60 >
61 > ... [5 lines cut here] ...
62 >
63 >>>> /usr/lib64/palemoon/browser/searchplugins/duckduckgo-palemoon.xml
64 >
65 > ... [12 lines cut here] ...
66 >
67 >>>> /usr/lib64/palemoon/libnssdbm3.so
68 >>>> /usr/lib64/palemoon/components/
69 >>>> /usr/lib64/palemoon/components/components.manifest
70 >>>> /usr/lib64/palemoon/components/libmozgnome.so
71 >>>> /usr/lib64/palemoon/palemoon
72 > --- /usr/bin/
73 >>>> /usr/bin/palemoon -> /usr/lib64/palemoon/palemoon
74 > * Updating desktop mime database ...
75 > * Updating icons cache ...
76 > [ ok ]
77 >>>> www-client/palemoon-27.0.3-r6 merged.
78 >>>> Regenerating /etc/ld.so.cache...
79 >
80 > So the installation completed smoothly.
81 >
82 > Now, in the /usr/portage/distfiles it looks pretty courious. Never seen
83 > anything in my 8 years more or less daily using of Gentoo (hundreds upon
84 > hundreds of compilations ;-) ):
85 >
86 > The git object pack sources, guess where they are by looking up:
87 >
88 > # du -hs /usr/portage/distfiles/git3-src\
89 > EGIT_MIRROR_URI\=git\:/localhost/cgi-bin/cgit.cgi/cgi-bin_cgit.cgi_Pale-Moon.git/*/
90 >
91 > 48K /usr/portage/distfiles/git3-src
92 > EGIT_MIRROR_URI=git:/localhost/cgi-bin/cgit.cgi/cgi-bin_cgit.cgi_Pale-Moon.git/hooks/
93 >
94 > 8.0K /usr/portage/distfiles/git3-src
95 > EGIT_MIRROR_URI=git:/localhost/cgi-bin/cgit.cgi/cgi-bin_cgit.cgi_Pale-Moon.git/info/
96 >
97 > 283M /usr/portage/distfiles/git3-src
98 > EGIT_MIRROR_URI=git:/localhost/cgi-bin/cgit.cgi/cgi-bin_cgit.cgi_Pale-Moon.git/objects/
99 >
100 > 744K /usr/portage/distfiles/git3-src
101 > EGIT_MIRROR_URI=git:/localhost/cgi-bin/cgit.cgi/cgi-bin_cgit.cgi_Pale-Moon.git/refs/
102 >
103 > #
104 >
105 > ( reformatted the above output for email, but those are 5 distinct lines of
106 > stdout only )
107 >
108 > The successful ebuild that I modified the palemon-overlay ebuild into is:
109 >
110 > palemoon-27.0.3-r6.ebuild
111 >
112 > but my other previous ebuild modifications/adaptations for local cgit mirror
113 > had all failed. Obviously all based on palemoon-27.0.3.ebuild from the
114 > official palemoon-overlay repo.
115 >
116 > Let me again return to the strange looks of the
117 > /usr/portage/distfiles/git3-src\ EGIT_MIRROR_URI\=git\:/localhost/cgi-bin/cgit.cgi/cgi-bin_cgit.cgi_Pale-Moon.git
118 >
119 > That above is the complete path, but here I present it more clearly (and
120 > verbosely):
121 >
122 > # ls -l /usr/portage/distfiles/ | grep git3-src
123 > drwxr-xr-x 3 portage portage 4096 2016-12-21 21:19 git3-src EGIT_MIRROR_URI=git:
124 > # ls -l /usr/portage/distfiles/git3-src\ EGIT_MIRROR_URI\=git\:/
125 > total 4
126 > drwxr-xr-x 3 portage portage 4096 2016-12-21 21:19 localhost
127 > # ls -l /usr/portage/distfiles/git3-src\ EGIT_MIRROR_URI\=git\:/localhost/
128 > total 4
129 > drwxr-xr-x 3 portage portage 4096 2016-12-21 21:19 cgi-bin
130 > # ls -l /usr/portage/distfiles/git3-src\ EGIT_MIRROR_URI\=git\:/localhost/cgi-bin/
131 > total 4
132 > drwxr-xr-x 4 portage portage 4096 2016-12-21 21:24 cgit.cgi
133 > # ls -l /usr/portage/distfiles/git3-src\ EGIT_MIRROR_URI\=git\:/localhost/cgi-bin/cgit.cgi/
134 > total 8
135 > drwxr-xr-x 6 portage portage 4096 2016-12-21 21:19 cgi-bin_cgit.cgi_Pale-Moon.git
136 > drwxr-xr-x 6 portage portage 4096 2016-12-21 21:24 MoonchildProductions_Pale-Moon.git
137 > # ls -l /usr/portage/distfiles/git3-src\ EGIT_MIRROR_URI\=git\:/localhost/cgi-bin/cgit.cgi/cgi-bin_cgit.cgi_Pale-Moon.git/
138 > total 52
139 > -rw-r--r-- 1 portage portage 66 2016-12-21 21:19 config
140 > -rw-r--r-- 1 portage portage 73 2016-12-21 21:19 description
141 > -rw-r--r-- 1 portage portage 22016 2016-12-21 21:45 FETCH_HEAD
142 > -rw-r--r-- 1 portage portage 23 2016-12-21 21:19 HEAD
143 > drwxr-xr-x 2 portage portage 4096 2016-12-21 21:19 hooks
144 > drwxr-xr-x 2 portage portage 4096 2016-12-21 21:19 info
145 > drwxr-xr-x 5 portage portage 4096 2016-12-21 21:45 objects
146 > drwxr-xr-x 5 portage portage 4096 2016-12-21 21:45 refs
147 > # du -hs /usr/portage/distfiles/git3-src\ EGIT_MIRROR_URI\=git\:/localhost/cgi-bin/cgit.cgi/cgi-bin_cgit.cgi_Pale-Moon.git/*/
148 > 48K /usr/portage/distfiles/git3-src EGIT_MIRROR_URI=git:/localhost/cgi-bin/cgit.cgi/cgi-bin_cgit.cgi_Pale-Moon.git/hooks/
149 > 8.0K /usr/portage/distfiles/git3-src EGIT_MIRROR_URI=git:/localhost/cgi-bin/cgit.cgi/cgi-bin_cgit.cgi_Pale-Moon.git/info/
150 > 283M /usr/portage/distfiles/git3-src EGIT_MIRROR_URI=git:/localhost/cgi-bin/cgit.cgi/cgi-bin_cgit.cgi_Pale-Moon.git/objects/
151 > 744K /usr/portage/distfiles/git3-src EGIT_MIRROR_URI=git:/localhost/cgi-bin/cgit.cgi/cgi-bin_cgit.cgi_Pale-Moon.git/refs/
152 > #
153 >
154 > ( it's the same 5 distinct lines of stdout these in bottom, and if they don't
155 > show well in your mail client, look them up in reformated guise further above )
156 >
157 > So, let me remember how I got there.
158 >
159 > Firstly, I, sure, cloned the palemoon-overlay. No I didn't use the layman for
160 > that (I'd be using layman if I were able to verify installs like I can with
161 > webrsync-gpg which is not feasible with git at this time, so I go
162 > manually, and carefully check all the components to compilations), but
163 > simply instead I 'git clone'-d it:
164 >
165 > $ git clone https://github.com/deuiore/palemoon-overlay
166 >
167 > I also cloned the Moonchild Productions' PaleMoon.git overlay (else how would
168 > I install it in Air-Gapped?):
169 >
170 > $ git clone https://github.com/MoonchildProductions/Pale-Moon.git
171 >
172 > I followed again (it's heavily changed since some one year ago, no more
173 > PORTDIR_OVERLAY) the guide at:
174 >
175 > https://wiki.gentoo.org/wiki/Overlay/Local_overlay
176 >
177 > and copied over files from the just cloned palemoon-overlay, and created, what
178 > with the copy-renamed and modified ebuilds looks like:
179 >
180 > # ls -lR /usr/local/portage/www-client/palemoon/
181 > /usr/local/portage/www-client/palemoon/:
182 > total 76
183 > drwxr-xr-x 3 miro miro 4096 2016-12-18 08:40 files
184 > -rw-r--r-- 1 root root 4209 2016-12-21 21:44 Manifest
185 > -rw-r--r-- 1 miro miro 5907 2016-12-21 00:42 palemoon-27.0.2.ebuild
186 > -rw-r--r-- 1 miro miro 5907 2016-12-21 00:42 palemoon-27.0.3.ebuild
187 > -rw-r--r-- 1 miro miro 5956 2016-12-21 16:53 palemoon-27.0.3-r1.ebuild
188 > ... [ 4 more unsuccessful ebuilds from -r2 to -r5 here ] ...
189 > -rw-r--r-- 1 miro miro 5903 2016-12-21 21:44 palemoon-27.0.3-r6.ebuild
190 >
191 > /usr/local/portage/www-client/palemoon/files:
192 > total 8
193 > -rw-r--r-- 1 miro miro 329 2016-12-18 08:40 default-prefs.js-0
194 > drwxr-xr-x 2 miro miro 4096 2016-12-18 08:40 icon
195 >
196 > /usr/local/portage/www-client/palemoon/files/icon:
197 > total 4
198 > -rw-r--r-- 1 miro miro 277 2016-12-18 08:40 palemoon.desktop
199 > #
200 >
201 > I also needed to copy over some that you can recognize which ones by
202 > their sizes:
203 >
204 > # ls -l /some-dir/palemoon-overlay/[emp]*
205 > /some-dir/palemoon-overlay/eclass:
206 > total 8
207 > -rw-r--r-- 1 miro miro 1764 2016-12-18 08:40 palemoon-0.eclass
208 > -rw-r--r-- 1 miro miro 360 2016-12-18 08:40 palemoon-bin-0.eclass
209 >
210 > /some-dir/palemoon-overlay/metadata:
211 > total 4
212 > -rw-r--r-- 1 miro miro 17 2016-12-18 08:40 layout.conf
213 >
214 > /some-dir/palemoon-overlay/profiles:
215 > total 8
216 > -rw-r--r-- 1 miro miro 510 2016-12-18 08:40 package.mask
217 > -rw-r--r-- 1 miro miro 9 2016-12-18 08:40 repo_name
218 > #
219 >
220 > # ls -l /usr/local/portage/[emp]*
221 > /usr/local/portage/eclass:
222 > total 4
223 > -rw-r--r-- 1 miro miro 1764 2016-12-18 08:40 palemoon-0.eclass
224 >
225 > /usr/local/portage/metadata:
226 > total 4
227 > -rw-r--r-- 1 portage portage 17 2015-07-08 15:54 layout.conf
228 >
229 > /usr/local/portage/profiles:
230 > total 8
231 > -rw-r--r-- 1 portage portage 60 2016-11-13 21:55 categories
232 > -rw-r--r-- 1 portage portage 5 2015-07-08 15:54 repo_name
233 > #
234 >
235 > ( but my repo_name contains the string 'miro', not the string 'palemoon', the
236 > string + newline, makes 5 and 9 ; I guess the most important of the
237 > above is the palemoon-0.eclass )
238 >
239 > What is needed in the /etc/portage/make.conf is:
240 >
241 > EGIT3_STORE_DIR=${DISTDIR}/git3-src"
242 > EGIT_MIRROR_URI=git://localhost/cgi-bin/cgit.cgi/"
243 >
244 > ( Note at proofreading time: true, that is still stuck in the make.conf,
245 > and it is what was in there when the successful install happend, but
246 > shouldn't it be http://localhost/cgi-bin/cgit.cgi/ instead? )
247 >
248 > I got those by studying over at devmanual this page:
249 >
250 > https://devmanual.gentoo.org/eclass-reference/git-r3.eclass/index.html
251 >
252 > and actually I also studied where there's even more, in:
253 >
254 > /usr/portage/eclass/git-r3.eclass
255 >
256 > ( a very interesting but somewhat hard read :-( )
257 >
258 > And here follow all the tries. Listing them all because it's simpler... I'll
259 > just run this bash line to loop on all of them:
260 >
261 > # for i in $(ls -1 /usr/local/portage/www-client/palemoon/ | grep -E '3.ebuild|3-r[1-6].ebuild'); do ls -l /usr/local/portage/www-client/palemoon/$i /some-dir/palemoon-overlay/www-client/palemoon/palemoon-27.0.3.ebuild ; diff /usr/local/portage/www-client/palemoon/$i /some-dir/palemoon-overlay/www-client/palemoon/palemoon-27.0.3.ebuild ; echo "--" ; echo ; done ;
262 >
263 > ( that's just one line, in case your mail client reformated it for you,
264 > I'm running too slow with all of this, rushing a little, sorry, except
265 > same excuse for below )
266 >
267 > And that command line got me these:
268 >
269 > -rw-r--r-- 1 miro miro 5907 2016-12-21 00:42 /some-dir/palemoon-overlay/www-client/palemoon/palemoon-27.0.3.ebuild
270 > -rw-r--r-- 1 miro miro 5907 2016-12-21 00:42 /usr/local/portage/www-client/palemoon/palemoon-27.0.3.ebuild
271 > --
272 >
273 > -rw-r--r-- 1 miro miro 5907 2016-12-21 00:42 /some-dir/palemoon-overlay/www-client/palemoon/palemoon-27.0.3.ebuild
274 > -rw-r--r-- 1 miro miro 5956 2016-12-21 16:53 /usr/local/portage/www-client/palemoon/palemoon-27.0.3-r1.ebuild
275 > 21c21
276 > < EGIT_REPO_URI="git://github.com/MoonchildProductions/Pale-Moon.git https://localhost/cgi-bin/cgit.cgi/Pale-Moon.git"
277 > ---
278 >> EGIT_REPO_URI="git://github.com/MoonchildProductions/Pale-Moon.git"
279 > --
280 >
281 > -rw-r--r-- 1 miro miro 5907 2016-12-21 00:42 /some-dir/palemoon-overlay/www-client/palemoon/palemoon-27.0.3.ebuild
282 > -rw-r--r-- 1 miro miro 6051 2016-12-21 17:15 /usr/local/portage/www-client/palemoon/palemoon-27.0.3-r2.ebuild
283 > 21c21
284 > < EGIT_REPO_URI="git://github.com/MoonchildProductions/Pale-Moon.git https://localhost/cgi-bin/cgit.cgi/Pale-Moon.git http://localhost/cgi-bin/cgit.cgi/Pale-Moon.git git://localhost/cgi-bin/cgit.cgi/Pale-Moon.git"
285 > ---
286 >> EGIT_REPO_URI="git://github.com/MoonchildProductions/Pale-Moon.git"
287 > --
288 >
289 > -rw-r--r-- 1 miro miro 5907 2016-12-21 00:42 /some-dir/palemoon-overlay/www-client/palemoon/palemoon-27.0.3.ebuild
290 > -rw-r--r-- 1 miro miro 5999 2016-12-21 17:25 /usr/local/portage/www-client/palemoon/palemoon-27.0.3-r3.ebuild
291 > 21c21
292 > < EGIT_REPO_URI="https://localhost/cgi-bin/cgit.cgi/Pale-Moon.git http://localhost/cgi-bin/cgit.cgi/Pale-Moon.git git://localhost/cgi-bin/cgit.cgi/Pale-Moon.git"
293 > ---
294 >> EGIT_REPO_URI="git://github.com/MoonchildProductions/Pale-Moon.git"
295 > --
296 >
297 > -rw-r--r-- 1 miro miro 5907 2016-12-21 00:42 /some-dir/palemoon-overlay/www-client/palemoon/palemoon-27.0.3.ebuild
298 > -rw-r--r-- 1 miro miro 5951 2016-12-21 21:26 /usr/local/portage/www-client/palemoon/palemoon-27.0.3-r4.ebuild
299 > 21c21
300 > < EGIT_REPO_URI="https://localhost/cgi-bin/cgit.cgi/Pale-Moon.git git://localhost/cgi-bin/cgit.cgi/Pale-Moon.git"
301 > ---
302 >> EGIT_REPO_URI="git://github.com/MoonchildProductions/Pale-Moon.git"
303 > --
304 >
305 > -rw-r--r-- 1 miro miro 5907 2016-12-21 00:42 /some-dir/palemoon-overlay/www-client/palemoon/palemoon-27.0.3.ebuild
306 > -rw-r--r-- 1 miro miro 5902 2016-12-21 21:29 /usr/local/portage/www-client/palemoon/palemoon-27.0.3-r5.ebuild
307 > 21c21
308 > < EGIT_REPO_URI="git://localhost/cgi-bin/cgit.cgi/Pale-Moon.git"
309 > ---
310 >> EGIT_REPO_URI="git://github.com/MoonchildProductions/Pale-Moon.git"
311 > --
312 >
313 > -rw-r--r-- 1 miro miro 5907 2016-12-21 00:42 /some-dir/palemoon-overlay/www-client/palemoon/palemoon-27.0.3.ebuild
314 > -rw-r--r-- 1 miro miro 5903 2016-12-21 21:44 /usr/local/portage/www-client/palemoon/palemoon-27.0.3-r6.ebuild
315 > 21c21
316 > < EGIT_REPO_URI="http://localhost/cgi-bin/cgit.cgi/Pale-Moon.git"
317 > ---
318 >> EGIT_REPO_URI="git://github.com/MoonchildProductions/Pale-Moon.git"
319 > --
320 >
321 > The: https://localhost/cgi-bin/cgit.cgi/Pale-Moon.git would have probably also
322 > worked, but it was refused because the cert is both self-signed and expired
323 > ;-) .
324 >
325 > If the reader followed carefully, she/he will have noticed that only the
326 > last one (palemoon-27.0.3-r6.ebuild) worked, and I actually started this
327 > email with how that ebuild installed palemoon in my Air-Gapped machine.
328 >
329 > If I show to have forgot any details (which I tried not to), I'll post them in
330 > another reply to this thread.
331 >
332 > ( Ah, the cgit, maybe. It's just a regular cgit install, other than I
333 > wasn't able to get the cgit, in many months now that I use it, so that
334 > my apache would serve git listings and tar.gz's, tar.bz2's, and zip's,
335 > with rewritten urls to get read of the cgi-bin/cgit.cgi string in every
336 > url...
337 >
338 > Otherwise, it's just
339 >
340 > $ cd /where-I-keep-my-local-and-cloned-git-repos/Pale-Moon/
341 > git clone --bare . /where-my-apache-serves-git-from/Pale-Moon.git/
342 >
343 > and then
344 >
345 > # /var/www/localhost/cgi-bin/cgit.cgi \
346 > --scan-tree=/where-my-apache-serves-git-from/ > cgit-repos
347 >
348 > (and append that to /etc/cgit-repos)
349 > )
350 >
351 > I'm actually kind of almost disbelieving that this has happened, because the
352 > naming appears as if it worked out by some luck, so unusual it is, with the
353 > spaces in the filenames
354 > (
355 > e.g. just see the:
356 >
357 > git3-src EGIT_MIRROR_URI=git:
358 >
359 > name of the directory, first level underneath /usr/portage/distfiles/
360 > ).
361 >
362 > It couldn't have been designed to be this kind of strange naming in the
363 > very /usr/portage/distfiles/ , or could it?
364 >
365 > Is this regular, or have I successfully installed by some chance?
366 >
367 > Thanks if there will be any explanations and advice. And in the meantime, I
368 > really enjoy using Pale Moon in my Gentoo, both master and, of course,
369 > clone(s)!
370 >
371 > Regards!
372 >
373
374 Could you be a bit more concise? I'm not sure what exactly you're asking
375 about. A simple question or two might be enough to better explain your
376 problem.
377
378 --
379 Daniel Campbell - Gentoo Developer
380 OpenPGP Key: 0x1EA055D6 @ hkp://keys.gnupg.net
381 fpr: AE03 9064 AE00 053C 270C 1DE4 6F7A 9091 1EA0 55D6

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Pale Moon Air-Gapped portage EAPI 6 Install WAS: [Logging] SSL with PM Miroslav Rovis <miro.rovis@××××××××××××××.hr>