Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 660512 - >=dev-lang/rust-bin-1.26.0 - USE="doc" is broken for all arches but amd64 and x86, it should be masked accordingly
Summary: >=dev-lang/rust-bin-1.26.0 - USE="doc" is broken for all arches but amd64 and...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-06 13:25 UTC by tt_1
Modified: 2019-08-28 08:33 UTC (History)
1 user (show)

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 tt_1 2018-07-06 13:25:12 UTC
Upstream's prebuilt stages do not inherit rust-docs for armv6 and armv7, so please mask the useflag for rust-bin via profiles. Error message from emerge looks like this: 


>>> Preparing source in /var/tmp/portage/dev-lang/rust-bin-1.26.2/work/rust-bin-1.26.2 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-lang/rust-bin-1.26.2/work/rust-bin-1.26.2 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-lang/rust-bin-1.26.2/work/rust-bin-1.26.2 ...
>>> Source compiled.
>>> Test phase [not enabled]: dev-lang/rust-bin-1.26.2

>>> Install rust-bin-1.26.2 into /var/tmp/portage/dev-lang/rust-bin-1.26.2/image/ category dev-lang
install: error: unknown component: rust-docs
 * ERROR: dev-lang/rust-bin-1.26.2::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 124:  Called src_install
 *   environment, line 2147:  Called die
 * The specific snippet of code:
 *       ./install.sh --components="${components}" --disable-verify --prefix="${D}/opt/${P}" --mandir="${D}/usr/share/${P}/man" --disable-ldconfig || die;
Comment 1 tt_1 2018-07-08 08:33:25 UTC
I talked with upstream, they claim that the lack of rust-docs is intentional for all archs but x86_64. As a precautious action, the doc useflag should be masked for all but for amd64 via profiles, and for both dev-lang/rust-bin and dev-lang/rust, because it's propaply impossible to build rust-docs without it being included in the stage, right?
Comment 2 tt_1 2018-07-22 14:37:28 UTC
Guys, can you please commit the mask? This is really low hanging fruit! :-)
Comment 3 tt_1 2018-08-04 11:26:15 UTC
ping!
Comment 4 Dirkjan Ochtman (RETIRED) gentoo-dev 2018-08-04 12:19:14 UTC
This would be easier if you provided a patch or a GitHub PR instead of just pointing out literal changes that would be made. Can you do that? Thanks!
Comment 5 tt_1 2018-08-04 12:55:10 UTC
ok, I wrote a mask and pinged you on gentoo's github.
Comment 6 Dirkjan Ochtman (RETIRED) gentoo-dev 2018-08-04 19:32:44 UTC
Sorry, so I wanted to understand a bit more about the rationale. Where/when did you talk to upstream? In fact rust-docs is not only being generated for amd64, but also other arches like i386-apple-ios (which seems fairly obscure) and i586-pc-windows-msvc. They also still have i686-unknown-linux-gnu, which we should probably use for x86? So the patches as is are wrong, I think.

I opened an upstream issue to discuss at https://github.com/rust-lang/rust/issues/53070, too (before I noticed that you'd already talked to them).
Comment 7 tt_1 2018-08-04 20:00:53 UTC
Upstream said, they don't build doc anymore for armv6/7: 

https://github.com/rust-lang/rust/issues/52133#issuecomment-403227065

Honestly, I forgot that x86 still is a thing. Just downloading a stage to see if there is a rust-docs folder, if so I'll add the unmask entry for x86 as well in the pr.
Comment 8 tt_1 2018-08-06 19:49:45 UTC
I think the mask should be raised up to >=dev-lang/rust{-bin}-1.27.2 to reflect CVE-2018-1000622
Comment 9 tt_1 2018-09-23 19:48:10 UTC
ping!
Comment 10 Larry the Git Cow gentoo-dev 2018-09-29 13:22:27 UTC
The bug has been closed via the following commit(s):

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

commit f2962e61955c40bc8c1b637f66e76e27755fc1b6
Author:     Dirkjan Ochtman <djc@gentoo.org>
AuthorDate: 2018-09-29 13:19:55 +0000
Commit:     Dirkjan Ochtman <djc@gentoo.org>
CommitDate: 2018-09-29 13:22:15 +0000

    profiles: mask rust docs on arm64
    
    Closes: https://bugs.gentoo.org/660512
    
    Signed-off-by: Dirkjan Ochtman <djc@gentoo.org>

 profiles/arch/arm64/package.use.mask | 5 +++++
 1 file changed, 5 insertions(+)
Comment 11 tt_1 2018-09-29 13:39:50 UTC
Can you please take care of rust-bin and arm as well, please? mask for dev-lang/rust on arm would be great as a precaution, I still have it on my list to patch the ebuild accordingly.
Comment 12 Larry the Git Cow gentoo-dev 2018-09-29 18:42:30 UTC
The bug has been referenced in the following commit(s):

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

commit c4352e21e506526e50718a675396f870fa9e123f
Author:     Dirkjan Ochtman <djc@gentoo.org>
AuthorDate: 2018-09-29 18:41:43 +0000
Commit:     Dirkjan Ochtman <djc@gentoo.org>
CommitDate: 2018-09-29 18:42:22 +0000

    profiles: mask rust-bin[doc] on arm64, too
    
    Bug: https://bugs.gentoo.org/660512
    
    Signed-off-by: Dirkjan Ochtman <djc@gentoo.org>

 profiles/arch/arm64/package.use.mask | 1 +
 1 file changed, 1 insertion(+)
Comment 13 Dirkjan Ochtman (RETIRED) gentoo-dev 2018-09-29 18:43:24 UTC
That should take care of rust-bin. I really don't want to put masks in there for arches that currently aren't keyworded, we can add those as we keyword the ebuilds.
Comment 14 tt_1 2018-09-29 19:01:38 UTC
Ah, okay, you've got a point here. Even though it's common practice to mask a use flag for all profiles, and unmask it for those where it's considered to be stable. In the end it doesn't make a difference for the users. 

regarding arm keywords, #657584 should take care of that, but is ignored by the arm team. The rules for keywording arm are that it has to be compiled successfully once with either armv6 or armv7, getting a package stable on arm would require actuall runtime testing and compile with all harf/soft/armv6/7/fpu-options, etc, pp. 

If this is correct, I could take over 657584 and do the testing instead of. Just tell me which virtual you're aiming for.
Comment 15 Dirkjan Ochtman (RETIRED) gentoo-dev 2018-09-29 19:05:11 UTC
Bug 666976 is stabilizing 1.29.1 for amd64/x86.
Comment 16 tt_1 2018-09-29 19:14:41 UTC
It's solely about getting a ~arm keyword for those mentioned in #657584

I can do a testrun for 1.29.1, if you agree to get it keyworded. I mean, the arm team ignores the request in #657584 for three months now?
Comment 17 Dirkjan Ochtman (RETIRED) gentoo-dev 2018-09-29 19:57:53 UTC
Keywording is really not up to me, I know ~nothing about arm. It's up to them to prioritize keywording requests and figure out who has time to do something about it.
Comment 18 Larry the Git Cow gentoo-dev 2019-08-28 08:33:03 UTC
The bug has been referenced in the following commit(s):

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

commit beb08d88594ebdb413248786b313395a54b92159
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2019-08-28 07:26:46 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2019-08-28 08:24:40 +0000

    profiles/arch/arm64/package.use.mask: remove rust-doc masks
    
    now masked in base instead
    
    Bug: https://bugs.gentoo.org/660512
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 profiles/arch/arm64/package.use.mask | 6 ------
 1 file changed, 6 deletions(-)

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

commit a024bd38136b4ffa36205925894ff38d1a9dd057
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2019-08-28 07:23:26 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2019-08-28 08:24:15 +0000

    profiles/arch/base/package.use.mask: no docs and tools for rust-bin
    
    Bug: https://bugs.gentoo.org/660512
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 profiles/arch/base/package.use.mask | 6 ++++++
 1 file changed, 6 insertions(+)