Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 628792 - net-misc/axel - wrong FETCHCOMMAND example
Summary: net-misc/axel - wrong FETCHCOMMAND example
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-24 08:06 UTC by Antonio Quartulli
Modified: 2020-04-07 19:37 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 Antonio Quartulli 2017-08-24 08:06:23 UTC
In all the axel's ebuild the example FETCHCOMMAND is as follows:

FETCHCOMMAND='\''axel -a -o "\${DISTDIR}/\${FILE}.axel" "\${URI}" && mv "\${DISTDIR}/\${FILE}.axel" "\${DISTDIR}/\${FILE}"'\'

However, this seems to be problematic because when axel is executed the argc and argv arguments passed to maint will also contain the second part (&& mv "\${DISTDIR}/\${FILE}.axel" "\${DISTDIR}/\${FILE}") thus messing up the download process.

I am not sure why this happens. My guess is that this due to the spawn functionality used in the portage python library when launching the fetchcommand.

I still like using a '.axel' extension and doing 'mv' when the download is successful, therefore my recommendation is be to use a wrapper bash script containing the commands and using it as FETCHCOMMAND.
Comment 1 Larry the Git Cow gentoo-dev 2020-04-07 19:37:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0af532ca3698a3d6d7e8272660dbe8df0d3b6799

commit 0af532ca3698a3d6d7e8272660dbe8df0d3b6799
Author:     Piotr Karbowski <slashbeast@gentoo.org>
AuthorDate: 2020-04-07 19:33:27 +0000
Commit:     Piotr Karbowski <slashbeast@gentoo.org>
CommitDate: 2020-04-07 19:36:26 +0000

    net-misc/axel-2.17.8: version bump.
    
    Closes: https://bugs.gentoo.org/628792
    Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org>

 net-misc/axel/Manifest           |  1 +
 net-misc/axel/axel-2.17.8.ebuild | 41 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+)