I've corrected the file /etc/make.conf as follows:
FETCHCOMMAND="/usr/bin/wget --no-check-certificate -P \${DISTDIR}
\${URI}"
RESUMECOMMAND="/usr/bin/wget -c --no-check-certificate -P \${DISTDIR}
\${URI}"
After that I've run command:
ebuild ./pum-outss-1.0.0.ebuild manifest clean unpack
This time file pum-outss-1.0.0.tar.gz is downloaded and saved
pum-outss-1.0.0.tar.gz [ <=>
] 26.47K --.-KB/s
in 0.05s
2022-03-10 14:00:00 (559 KB/s) -
‘/var/cache/distfiles/pum-outss-1.0.0.tar.gz’ saved [27103]
But I've got the following errors:
pum-outss-1.0.0.tar.gz [ <=>
] 26.47K --.-KB/s
in 0.05s
2022-03-10 14:00:00 (559 KB/s) -
‘/var/cache/distfiles/pum-outss-1.0.0.tar.gz’ saved [27103]
!!! Stating source file failed... movefile()
!!! [Errno 2] No such file or directory:
b'/var/cache/distfiles/pum-outss-1.0.0.tar.gz.__download__'
Traceback (most recent call last):
File "/usr/lib/python-exec/python3.9/ebuild", line 349, in <module>
a = portage.doebuild(ebuild, arg, settings=tmpsettings,
File
"/usr/lib/python3.9/site-packages/portage/package/ebuild/doebuild.py", line
1376, in doebuild
return not digestgen(mysettings=mysettings, myportdb=mydbapi)
File
"/usr/lib/python3.9/site-packages/portage/package/ebuild/digestgen.py",
line 161, in digestgen
if not fetch({myfile: uris}, mysettings):
File "/usr/lib/python3.9/site-packages/portage/package/ebuild/fetch.py",
line 1959, in fetch
_movefile(
File "/usr/lib/python3.9/site-packages/portage/__init__.py", line 599, in
_movefile
raise portage.exception.PortageException("mv '%s' '%s'" % (src, dest))
portage.exception.PortageException: mv
'/var/cache/distfiles/pum-outss-1.0.0.tar.gz.__download__'
'/var/cache/distfiles/pum-outss-1.0.0.tar.gz'
What is wrong ? Any ideas ?
чт, 10 мар. 2022 г. в 16:07, Anatoly Oreshkin <[email protected]>:
>
> Hello,
>
> I am trying to create my first package using ebuild.
> I've created ebuild file pum-outss-1.0.0.ebuild in directory
> /var/db/repos/pum-outss/dev-python/pum-outss
>
> The file pum-outss-1.0.0.ebuild has following content:
> EAPI=7
> DESCRIPTION="Exchange data between PUM and OUTSS"
> HOMEPAGE="https://domain.org/strela-project/pum-outss"
> SRC_URI="
> https://domain.org/strela-project/pum-outss/pum-outss-1.0.0.tar.gz"
> #S="${WORKDIR}/${P}"
> LICENSE="GPLv3.0"
> SLOT="0"
> KEYWORDS="~amd64"
> RDEPEND="dev-python/confluent-kafka"
> #DEPEND="${RDEPEND}"
> #BDEPEND="virtual/pkgconfig"
> #src_unpack() {
> # unpack ${P}.tar.gz
> #}
>
> The rest of the file are comments.
>
> I've created my repository pum-outss by the command
> eselect repository create pum-outss
> ...
> Adding pum-outss to /etc/portage/repos.conf/eselect-repo.conf ...
> Repository pum-outss created and added
>
> The file /etc/portage/repos.conf/eselect-repo.conf content:
> [guru]
> location = /var/db/repos/guru
> sync-type = git
> sync-uri = https://github.com/gentoo-mirror/guru.git
>
> [pum-outss]
> location = /var/db/repos/pum-outss
>
> To fetch pum-outss-1.0.0.tar.gz using wget with parameter
> --no-check-certificate
> I've created the file /etc/make.conf with such lines:
>
> FETCHCOMMAND="/usr/bin/wget --no-check-certificate \${URI} "
> RESUMECOMMAND="/usr/bin/wget -c --no-check-certificate \${URI} "
>
> Then I've run the following commands:
>
> cd /var/db/repos/pum-outss/dev-python/pum-outss
> ebuild ./pum-outss-1.0.0.ebuild manifest clean unpack
>
> !!! Found 2 make.conf files, using both '/etc/make.conf' and
> '/etc/portage/make.conf'
> !!! FEATURES=fakeroot is enabled, but the fakeroot binary is not installed.
> !!! FETCHCOMMAND does not contain the required ${FILE} parameter.
> !!! RESUMECOMMAND does not contain the required ${FILE} parameter.
> !!! Refer to the make.conf(5) man page for information about how to
> !!! correctly specify FETCHCOMMAND and RESUMECOMMAND.
> >>> Downloading '
> http://distfiles.gentoo.org/distfiles/8e/pum-outss-1.0.0.tar.gz'
> --2022-03-10 12:45:01--
> http://distfiles.gentoo.org/distfiles/8e/pum-outss-1.0.0.tar.gz
> Resolving distfiles.gentoo.org... 195.181.175.49, 195.181.175.45,
> 195.181.174.7, ...
> Connecting to distfiles.gentoo.org|195.181.175.49|:80... connected.
> HTTP request sent, awaiting response... 404 Not Found
> 2022-03-10 12:45:03 ERROR 404: Not Found.
>
> No digest file available and download failed.
>
> !!! FETCHCOMMAND does not contain the required ${FILE} parameter.
> !!! RESUMECOMMAND does not contain the required ${FILE} parameter.
> !!! Refer to the make.conf(5) man page for information about how to
> !!! correctly specify FETCHCOMMAND and RESUMECOMMAND.
> >>> Downloading '
> https://domain.org/strela-project/pum-outss/pum-outss-1.0.0.tar.gz'
> --2022-03-10 12:45:03--
> https://domain.org/strela-project/pum-outss/pum-outss-1.0.0.tar.gz
> Resolving domain.org... x.x.x.x
> Connecting to domain.org|x.x.x.x|:443... connected.
> WARNING: cannot verify domain.org's certificate, issued by ‘CN=GeoTrust
> RSA CA 2018,OU=www.digicert.com,O=DigiCert Inc,C=US’:
> Unable to locally verify the issuer's authority.
> HTTP request sent, awaiting response... 302 Found
> Location: https://domain.org/users/sign_in [following]
> --2022-03-10 12:45:04-- https://domain.org/users/sign_in
> Reusing existing connection to domain.org:443.
> HTTP request sent, awaiting response... 200 OK
> Length: unspecified [text/html]
> pum-outss-1.0.0.tar.gz: Permission denied
>
> Cannot write to ‘pum-outss-1.0.0.tar.gz’ (Success)
> No digest file available and download failed.
>
> !!! Couldn't download 'pum-outss-1.0.0.tar.gz'. Aborting.
> !!! Fetch failed for pum-outss-1.0.0.tar.gz, can't update Manifest
>
> However using wget by hand I can download the file pum-outss-1.0.0.tar.gz
>
> /usr/bin/wget --no-check-certificate
> https://domain.org/strela-project/pum-outss/pum-outss-1.0.0.tar.gz
> --2022-03-10 12:55:30--
> https://domain.org/strela-project/pum-outss/pum-outss-1.0.0.tar.gz
> Resolving domain.org... x.x.x.x
> Connecting to domain.org x.x.x.x|:443... connected.
> WARNING: cannot verify domain.org's certificate, issued by ‘CN=GeoTrust
> RSA CA 2018,OU=www.digicert.com,O=DigiCert Inc,C=US’:
> Unable to locally verify the issuer's authority.
> HTTP request sent, awaiting response... 302 Found
> Location: https://domain.org/users/sign_in [following]
> --2022-03-10 12:55:30-- https://domain.org/users/sign_in
> Reusing existing connection to domain.org:443.
> HTTP request sent, awaiting response... 200 OK
> Length: unspecified [text/html]
> Saving to: ‘pum-outss-1.0.0.tar.gz’
>
> pum-outss-1.0.0.tar.gz [ <=>
> ] 26.47K
> --.-KB/s in 0s
>
> 2022-03-10 12:55:30 (51.8 MB/s) - ‘pum-outss-1.0.0.tar.gz’ saved [27103]
>
>
> Why is pum-outss-1.0.0.tar.gz: Permission denied ?
> What may be the cause ? Any ideas ?
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>