Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 607020 - =sys-apps/portage-2.3.0 ebuild utility fails to generate manifest for local .zip source archive
Summary: =sys-apps/portage-2.3.0 ebuild utility fails to generate manifest for local ....
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-24 10:24 UTC by Sergey S. Starikoff
Modified: 2017-02-06 17:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
tora-3.0.0_pre20170124.ebuild (tora-3.0.0_pre20170124.ebuild,2.52 KB, text/plain)
2017-01-25 13:00 UTC, Sergey S. Starikoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey S. Starikoff 2017-01-24 10:24:44 UTC
After blocker fix I've returned to bug #577850
For now I have limited network access and can't get sources directly from git repository.
So, I've downloaded zipped snapshot tora-master.zip.

After copying it to DISTDIR and updating ebuild SRC_URI to:

SRC_URI="${PN}-master.zip"

to perfor test build I've tried to regenerate manifest and was wondered seeng portage truing to get unexistent sources from mirrors.
Note, instead of listed zip archive .tar.gz is requested.

# ebuild tora-3.0.0_pre20170124.ebuild manifest
>>> Downloading 'http://mirror.yandex.ru/gentoo-distfiles/distfiles/tora-master.tar.gz'
--2017-01-24 13:15:02--  http://mirror.yandex.ru/gentoo-distfiles/distfiles/tora-master.tar.gz
2017-01-24 13:15:02 ERROR 404: Not Found.

>>> Downloading 'ftp://mirror.yandex.ru/gentoo-distfiles/distfiles/tora-master.tar.gz'
--2017-01-24 13:15:02--  ftp://mirror.yandex.ru/gentoo-distfiles/distfiles/tora-master.tar.gz
2017-01-24 13:15:02 ERROR 404: Not Found.

!!! Couldn't download 'tora-master.tar.gz'. Aborting.
!!! Fetch failed for tora-master.tar.gz, can't update Manifest

After repacking archive into tar.gz and updating archive in DISTDIR:

    SRC_URI="${PN}-master.tar.gz"

ebuild utility updates manifest as expected:

# ebuild tora-3.0.0_pre20170124.ebuild manifest
>>> Creating Manifest for /usr/portage/local/dev-db/tora
Comment 1 Michael Palimaka (kensington) gentoo-dev 2017-01-25 11:47:48 UTC
Could you please attach the ebuild in question?
Comment 2 Sergey S. Starikoff 2017-01-25 13:00:17 UTC
Created attachment 461404 [details]
tora-3.0.0_pre20170124.ebuild

Development incomplete ebuild just for testing this bug.

Zipped source snapshot could be fetched from https://github.com/tora-tool/tora
Comment 3 Michael Palimaka (kensington) gentoo-dev 2017-01-26 09:58:49 UTC
I wasn't able to reproduce with SRC_URI="${PN}-master.zip":

$ ebuild tora-3.0.0_pre20170124.ebuild manifest
>>> Downloading 'http://distfiles.gentoo.org/distfiles/tora-master.zip'
--2017-01-26 20:57:44--  http://distfiles.gentoo.org/distfiles/tora-master.zip
Resolving distfiles.gentoo.org... 64.50.233.100, 156.56.247.195, 137.226.34.46, ...
Connecting to distfiles.gentoo.org|64.50.233.100|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-01-26 20:57:45 ERROR 404: Not Found.

!!! Couldn't download 'tora-master.zip'. Aborting.
!!! Fetch failed for tora-master.zip, can't update Manifest
Comment 4 Sergey S. Starikoff 2017-01-26 14:17:18 UTC
(In reply to Michael Palimaka (kensington) from comment #3)
> I wasn't able to reproduce with SRC_URI="${PN}-master.zip":

Possibly I was not clear enough.

The steps to reproduce this issue:
1. Go to TOra's homepage and fetch tora-master.zip;
2. Copy saved tora-master.zip to DISTDIR;
3. Try to generate manifest for test build;
4. See quoted result;
5. Unpack zip and archive directory to tar.gz format;
6. Copy gzipped tarball to DISTDIR;
7. Update ebuild (change zip distfiles suffix to tar.gz);
8. Try to generate manifest;
9. Wonder commant succeed.

Was it the thing you did?
Comment 5 Sergey S. Starikoff 2017-01-26 14:25:58 UTC
One more question: is trying to fetch sources from mirrors a right behaviour for developing, when SRC_URI is not a valid URL?
Is there a way to push distfiles on mirrors missing source url?
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2017-02-05 23:45:56 UTC
Please reopen when you find an actual bug to report.
Comment 7 Zac Medico gentoo-dev 2017-02-06 17:25:52 UTC
(In reply to Sergey S. Starikoff from comment #5)
> One more question: is trying to fetch sources from mirrors a right behaviour
> for developing, when SRC_URI is not a valid URL?

Yes, you can use env GENTOO_MIRRORS="" ebuild ... to disable fetching from mirrors if you want.

> Is there a way to push distfiles on mirrors missing source url?

Yes, devs can upload files to /space/distfiles-local on dev.gentoo.org as mentioned here:

https://devmanual.gentoo.org/general-concepts/mirrors/#replacing-automatically-mirrored-files