Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 655634 - www-client/firefox-60.0: ERROR: Cargo package manager 0.24.0 is too old.
Summary: www-client/firefox-60.0: ERROR: Cargo package manager 0.24.0 is too old.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-13 08:11 UTC by Thibaud CANALE
Modified: 2018-05-13 09:09 UTC (History)
0 users

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


Attachments
emerge --info www-client/firefox (file_655634.txt,8.99 KB, text/plain)
2018-05-13 08:11 UTC, Thibaud CANALE
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thibaud CANALE 2018-05-13 08:11:12 UTC
Created attachment 531182 [details]
emerge --info www-client/firefox

Hello,

The dependency of >=dev-util/cargo-0.24.0 in file "${PORTDIR}/eclass/mozconfig-v6.60.eclass" needs to be updated to version 0.25.0; otherwise, it'll fail building like this (from compilation log):

 0:06.65 checking for cargo... /usr/bin/cargo
 0:06.87 checking cargo version... 0.24.0
 0:06.87 ERROR: Cargo package manager 0.24.0 is too old.
 0:06.87
 0:06.87 To compile Rust language sources please install at least
 0:06.87 version 0.25 of 'cargo' and make sure it is first in your path.

Fix:
Update file "${PORTDIR}/eclass/mozconfig-v6.60.eclass"

Patch:
--------------------------------
--- /usr/portage/eclass/mozconfig-v6.60.eclass	2018-05-11 16:08:50.000000000 +0000
+++ /usr/portage/eclass/mozconfig-v6.60.eclass	2018-05-13 08:05:43.107971476 +0000
@@ -166,9 +166,9 @@
 	sys-apps/findutils
 	pulseaudio? ( media-sound/pulseaudio )
 	|| (
-		( >=dev-lang/rust-1.24.0[-extended(-)] >=dev-util/cargo-0.24.0 )
+		( >=dev-lang/rust-1.24.0[-extended(-)] >=dev-util/cargo-0.25.0 )
 		>=dev-lang/rust-1.24.0[extended]
-		( >=dev-lang/rust-bin-1.24.0 >=dev-util/cargo-0.24.0 )
+		( >=dev-lang/rust-bin-1.24.0 >=dev-util/cargo-0.25.0 )
 	)
 	${RDEPEND}"
 
--------------------------------

Note: only tested with dev-lang/rust-bin-1.25.0, since version 1.24.0 is not anymore in main Portage tree.

Thanks for support.
Comment 1 Larry the Git Cow gentoo-dev 2018-05-13 09:09:33 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=302577ae7209120ffefc341056020b6a934fabe5

commit 302577ae7209120ffefc341056020b6a934fabe5
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2018-05-13 09:05:48 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2018-05-13 09:09:11 +0000

    mozconfig-v6.60.eclass: Fixed cargo dependency.
    
    Thanks to thican for filing the bug and providing a fix.
    
    Bug: https://bugs.gentoo.org/655634

 eclass/mozconfig-v6.60.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 2 Larry the Git Cow gentoo-dev 2018-05-13 09:09:44 UTC
The bug has been closed via the following commit(s):

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

commit da76e938cb3f3e3d956637ba4d2dca3e46ef7b1c
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2018-05-13 09:05:48 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2018-05-13 09:05:48 +0000

    mozconfig-v6.60.eclass: Fixed cargo dependency.
    
    Thanks to thican for filing the bug and providing a fix.
    
    Closes: https://bugs.gentoo.org/655634

 eclass/mozconfig-v6.60.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)