1 |
I've corrected the file /etc/make.conf as follows: |
2 |
FETCHCOMMAND="/usr/bin/wget --no-check-certificate -P \${DISTDIR} |
3 |
\${URI}" |
4 |
RESUMECOMMAND="/usr/bin/wget -c --no-check-certificate -P \${DISTDIR} |
5 |
\${URI}" |
6 |
|
7 |
After that I've run command: |
8 |
ebuild ./pum-outss-1.0.0.ebuild manifest clean unpack |
9 |
|
10 |
This time file pum-outss-1.0.0.tar.gz is downloaded and saved |
11 |
pum-outss-1.0.0.tar.gz [ <=> |
12 |
] 26.47K --.-KB/s |
13 |
in 0.05s |
14 |
|
15 |
2022-03-10 14:00:00 (559 KB/s) - |
16 |
‘/var/cache/distfiles/pum-outss-1.0.0.tar.gz’ saved [27103] |
17 |
But I've got the following errors: |
18 |
|
19 |
pum-outss-1.0.0.tar.gz [ <=> |
20 |
] 26.47K --.-KB/s |
21 |
in 0.05s |
22 |
|
23 |
2022-03-10 14:00:00 (559 KB/s) - |
24 |
‘/var/cache/distfiles/pum-outss-1.0.0.tar.gz’ saved [27103] |
25 |
|
26 |
!!! Stating source file failed... movefile() |
27 |
!!! [Errno 2] No such file or directory: |
28 |
b'/var/cache/distfiles/pum-outss-1.0.0.tar.gz.__download__' |
29 |
Traceback (most recent call last): |
30 |
File "/usr/lib/python-exec/python3.9/ebuild", line 349, in <module> |
31 |
a = portage.doebuild(ebuild, arg, settings=tmpsettings, |
32 |
File |
33 |
"/usr/lib/python3.9/site-packages/portage/package/ebuild/doebuild.py", line |
34 |
1376, in doebuild |
35 |
return not digestgen(mysettings=mysettings, myportdb=mydbapi) |
36 |
File |
37 |
"/usr/lib/python3.9/site-packages/portage/package/ebuild/digestgen.py", |
38 |
line 161, in digestgen |
39 |
if not fetch({myfile: uris}, mysettings): |
40 |
File "/usr/lib/python3.9/site-packages/portage/package/ebuild/fetch.py", |
41 |
line 1959, in fetch |
42 |
_movefile( |
43 |
File "/usr/lib/python3.9/site-packages/portage/__init__.py", line 599, in |
44 |
_movefile |
45 |
raise portage.exception.PortageException("mv '%s' '%s'" % (src, dest)) |
46 |
portage.exception.PortageException: mv |
47 |
'/var/cache/distfiles/pum-outss-1.0.0.tar.gz.__download__' |
48 |
'/var/cache/distfiles/pum-outss-1.0.0.tar.gz' |
49 |
|
50 |
What is wrong ? Any ideas ? |
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
чт, 10 мар. 2022 г. в 16:07, Anatoly Oreshkin <anatoly.oreshkin@×××××.com>: |
62 |
|
63 |
> |
64 |
> Hello, |
65 |
> |
66 |
> I am trying to create my first package using ebuild. |
67 |
> I've created ebuild file pum-outss-1.0.0.ebuild in directory |
68 |
> /var/db/repos/pum-outss/dev-python/pum-outss |
69 |
> |
70 |
> The file pum-outss-1.0.0.ebuild has following content: |
71 |
> EAPI=7 |
72 |
> DESCRIPTION="Exchange data between PUM and OUTSS" |
73 |
> HOMEPAGE="https://domain.org/strela-project/pum-outss" |
74 |
> SRC_URI=" |
75 |
> https://domain.org/strela-project/pum-outss/pum-outss-1.0.0.tar.gz" |
76 |
> #S="${WORKDIR}/${P}" |
77 |
> LICENSE="GPLv3.0" |
78 |
> SLOT="0" |
79 |
> KEYWORDS="~amd64" |
80 |
> RDEPEND="dev-python/confluent-kafka" |
81 |
> #DEPEND="${RDEPEND}" |
82 |
> #BDEPEND="virtual/pkgconfig" |
83 |
> #src_unpack() { |
84 |
> # unpack ${P}.tar.gz |
85 |
> #} |
86 |
> |
87 |
> The rest of the file are comments. |
88 |
> |
89 |
> I've created my repository pum-outss by the command |
90 |
> eselect repository create pum-outss |
91 |
> ... |
92 |
> Adding pum-outss to /etc/portage/repos.conf/eselect-repo.conf ... |
93 |
> Repository pum-outss created and added |
94 |
> |
95 |
> The file /etc/portage/repos.conf/eselect-repo.conf content: |
96 |
> [guru] |
97 |
> location = /var/db/repos/guru |
98 |
> sync-type = git |
99 |
> sync-uri = https://github.com/gentoo-mirror/guru.git |
100 |
> |
101 |
> [pum-outss] |
102 |
> location = /var/db/repos/pum-outss |
103 |
> |
104 |
> To fetch pum-outss-1.0.0.tar.gz using wget with parameter |
105 |
> --no-check-certificate |
106 |
> I've created the file /etc/make.conf with such lines: |
107 |
> |
108 |
> FETCHCOMMAND="/usr/bin/wget --no-check-certificate \${URI} " |
109 |
> RESUMECOMMAND="/usr/bin/wget -c --no-check-certificate \${URI} " |
110 |
> |
111 |
> Then I've run the following commands: |
112 |
> |
113 |
> cd /var/db/repos/pum-outss/dev-python/pum-outss |
114 |
> ebuild ./pum-outss-1.0.0.ebuild manifest clean unpack |
115 |
> |
116 |
> !!! Found 2 make.conf files, using both '/etc/make.conf' and |
117 |
> '/etc/portage/make.conf' |
118 |
> !!! FEATURES=fakeroot is enabled, but the fakeroot binary is not installed. |
119 |
> !!! FETCHCOMMAND does not contain the required ${FILE} parameter. |
120 |
> !!! RESUMECOMMAND does not contain the required ${FILE} parameter. |
121 |
> !!! Refer to the make.conf(5) man page for information about how to |
122 |
> !!! correctly specify FETCHCOMMAND and RESUMECOMMAND. |
123 |
> >>> Downloading ' |
124 |
> http://distfiles.gentoo.org/distfiles/8e/pum-outss-1.0.0.tar.gz' |
125 |
> --2022-03-10 12:45:01-- |
126 |
> http://distfiles.gentoo.org/distfiles/8e/pum-outss-1.0.0.tar.gz |
127 |
> Resolving distfiles.gentoo.org... 195.181.175.49, 195.181.175.45, |
128 |
> 195.181.174.7, ... |
129 |
> Connecting to distfiles.gentoo.org|195.181.175.49|:80... connected. |
130 |
> HTTP request sent, awaiting response... 404 Not Found |
131 |
> 2022-03-10 12:45:03 ERROR 404: Not Found. |
132 |
> |
133 |
> No digest file available and download failed. |
134 |
> |
135 |
> !!! FETCHCOMMAND does not contain the required ${FILE} parameter. |
136 |
> !!! RESUMECOMMAND does not contain the required ${FILE} parameter. |
137 |
> !!! Refer to the make.conf(5) man page for information about how to |
138 |
> !!! correctly specify FETCHCOMMAND and RESUMECOMMAND. |
139 |
> >>> Downloading ' |
140 |
> https://domain.org/strela-project/pum-outss/pum-outss-1.0.0.tar.gz' |
141 |
> --2022-03-10 12:45:03-- |
142 |
> https://domain.org/strela-project/pum-outss/pum-outss-1.0.0.tar.gz |
143 |
> Resolving domain.org... x.x.x.x |
144 |
> Connecting to domain.org|x.x.x.x|:443... connected. |
145 |
> WARNING: cannot verify domain.org's certificate, issued by ‘CN=GeoTrust |
146 |
> RSA CA 2018,OU=www.digicert.com,O=DigiCert Inc,C=US’: |
147 |
> Unable to locally verify the issuer's authority. |
148 |
> HTTP request sent, awaiting response... 302 Found |
149 |
> Location: https://domain.org/users/sign_in [following] |
150 |
> --2022-03-10 12:45:04-- https://domain.org/users/sign_in |
151 |
> Reusing existing connection to domain.org:443. |
152 |
> HTTP request sent, awaiting response... 200 OK |
153 |
> Length: unspecified [text/html] |
154 |
> pum-outss-1.0.0.tar.gz: Permission denied |
155 |
> |
156 |
> Cannot write to ‘pum-outss-1.0.0.tar.gz’ (Success) |
157 |
> No digest file available and download failed. |
158 |
> |
159 |
> !!! Couldn't download 'pum-outss-1.0.0.tar.gz'. Aborting. |
160 |
> !!! Fetch failed for pum-outss-1.0.0.tar.gz, can't update Manifest |
161 |
> |
162 |
> However using wget by hand I can download the file pum-outss-1.0.0.tar.gz |
163 |
> |
164 |
> /usr/bin/wget --no-check-certificate |
165 |
> https://domain.org/strela-project/pum-outss/pum-outss-1.0.0.tar.gz |
166 |
> --2022-03-10 12:55:30-- |
167 |
> https://domain.org/strela-project/pum-outss/pum-outss-1.0.0.tar.gz |
168 |
> Resolving domain.org... x.x.x.x |
169 |
> Connecting to domain.org x.x.x.x|:443... connected. |
170 |
> WARNING: cannot verify domain.org's certificate, issued by ‘CN=GeoTrust |
171 |
> RSA CA 2018,OU=www.digicert.com,O=DigiCert Inc,C=US’: |
172 |
> Unable to locally verify the issuer's authority. |
173 |
> HTTP request sent, awaiting response... 302 Found |
174 |
> Location: https://domain.org/users/sign_in [following] |
175 |
> --2022-03-10 12:55:30-- https://domain.org/users/sign_in |
176 |
> Reusing existing connection to domain.org:443. |
177 |
> HTTP request sent, awaiting response... 200 OK |
178 |
> Length: unspecified [text/html] |
179 |
> Saving to: ‘pum-outss-1.0.0.tar.gz’ |
180 |
> |
181 |
> pum-outss-1.0.0.tar.gz [ <=> |
182 |
> ] 26.47K |
183 |
> --.-KB/s in 0s |
184 |
> |
185 |
> 2022-03-10 12:55:30 (51.8 MB/s) - ‘pum-outss-1.0.0.tar.gz’ saved [27103] |
186 |
> |
187 |
> |
188 |
> Why is pum-outss-1.0.0.tar.gz: Permission denied ? |
189 |
> What may be the cause ? Any ideas ? |
190 |
> |
191 |
> |
192 |
> |
193 |
> |
194 |
> |
195 |
> |
196 |
> |
197 |
> |
198 |
> |
199 |
> |
200 |
> |
201 |
> |
202 |
> |
203 |
> |
204 |
> |