Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 553768 - ebuild SRC_URI - support additional URI schemes
Summary: ebuild SRC_URI - support additional URI schemes
Status: RESOLVED DUPLICATE of bug 334275
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: PMS/EAPI (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PMS/EAPI
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-02 07:39 UTC by Another Mortal
Modified: 2015-07-02 19:42 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Another Mortal 2015-07-02 07:39:53 UTC
I _can_, of course, whip up a web/ftp server to host “local” files,
but I shouldn’t have to..  I’d also love to see the list of supported
schemes *documented* in ebuild(5)...


I thought “file://“ scheme would “just work”, but no dice:
—--
# ebuild nxclient-3.5.0.7.ebuild digest
>>> Downloading 'file:///etc/portage/overlay/distfiles/nxclient-3.5.0.7.x86_64.tar.gz'
file:///etc/portage/overlay/distfiles/nxclient-3.5.0.7.x86_64.tar.gz: Unsupported scheme 'file'.
!!! Couldn't download 'nxclient-3.5.0.7.x86_64.tar.gz'. Aborting.
!!! Fetch failed for nxclient-3.5.0.7.x86_64.tar.gz, can't update Manifest
---

No luck with “tftp://“ either:
—--
# ebuild nxclient-3.5.0.7.ebuild digest
>>> Downloading 'tftp://pkg:/gentoo/nxclient-3.5.0.7.x86_64.tar.gz'
tftp://pkg:/gentoo/nxclient-3.5.0.7.x86_64.tar.gz: Unsupported scheme 'tftp'.
!!! Couldn't download 'nxclient-3.5.0.7.x86_64.tar.gz'. Aborting.
!!! Fetch failed for nxclient-3.5.0.7.x86_64.tar.gz, can't update Manifest
---


After some reading, I did find a workaround (only relevant parts shown):
+++
SRC_URI=“${FULL_PACKAGE_FILE_NAME}"
RESTRICT=“fetch"

pkg_nofetch()
{
    cp -vu ${FILESDIR}/${SRC_URI} /usr/portage/distfiles
}
+++


Still, I think support for “file://“ (and other schemes)
would be a lot more natural..
Comment 1 Zac Medico gentoo-dev 2015-07-02 19:42:25 UTC

*** This bug has been marked as a duplicate of bug 334275 ***