1 |
Many thanks!!! |
2 |
Helmut |
3 |
|
4 |
|
5 |
On 09/23/2022 06:54:08 PM, tastytea wrote: |
6 |
> On 2022-09-23 18:17+0200 Helmut Jarausch <jarausch@××××××.be> wrote: |
7 |
> |
8 |
> > Hi, |
9 |
> > I'd like to write an ebuild for installing nim-9999. |
10 |
> > Within "src_compile" |
11 |
> > a shell script is executed which tries to invoke |
12 |
> > |
13 |
> > git clone -q --depth 1 -b master |
14 |
> > https://github.com/nim-lang/csources_v1.git csources_v1 |
15 |
> > |
16 |
> > This fails with "Could not resolve host: github.com" |
17 |
> > |
18 |
> > When I excute the git command above within the source directory it |
19 |
> > just works. |
20 |
> > So, what's different when executing it within the ebuild. |
21 |
> > Does "inherit git-r3" redefine something. |
22 |
> > |
23 |
> > Many thanks for hint, |
24 |
> > Helmut |
25 |
> > |
26 |
> |
27 |
> Network access is disabled in ebuild phase functions by |
28 |
> FEATURES="network-sandbox". You can disable that by adding |
29 |
> RESTRICT="network-sandbox" |
30 |
> to your ebuild, but it's better to fix the build script instead. |
31 |
> |
32 |
> I see stefantalpalaru has a solution for this: |
33 |
> <https://github.com/stefantalpalaru/gentoo-overlay/blob/master/dev-lang/nim/nim-9999-r13.ebuild#L29> |
34 |
> |
35 |
> Kind regards, tastytea |
36 |
> |
37 |
> |