Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 819405 - dev-lang/rust-1.76.0-r1 installs files into unexpected paths
Summary: dev-lang/rust-1.76.0-r1 installs files into unexpected paths
Status: CONFIRMED
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:
: 927378 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-10-22 04:51 UTC by Agostino Sarubbo
Modified: 2024-03-21 09:11 UTC (History)
5 users (show)

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


Attachments
build.log.xz (build.log.xz,288.56 KB, application/x-xz)
2021-10-22 04:51 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-10-22 04:51:51 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-lang/rust-1.56.0-r1 installs files into unexpected paths.
Discovered on: amd64 (internal ref: ci)

NOTE:
This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
Comment 1 Agostino Sarubbo gentoo-dev 2021-10-22 04:51:57 UTC
Created attachment 746097 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2022-05-26 06:50:25 UTC
ci has reproduced this issue with version 1.61.0-r1 - Updating summary.
Comment 3 Georgy Yakovlev archtester gentoo-dev 2022-05-26 18:22:23 UTC
 * QA Notice: The ebuild is installing to one or more unexpected paths:
 * 
 *   /usr/share/doc/rust-1.56.0
 * 

this is required for now to be able to switch docs in eselect-rust

as rust version in eselect does not use revision numbers, so it will be unable to switch revision doc dir symlink.

I'll leave this open for now, but this bug will happen for every non -r0 rust version.
Comment 4 Mike Gilbert gentoo-dev 2022-06-12 16:26:24 UTC
Do the symlinks in /usr/share/doc serve any purpose other than user convenience? It seems like you could just drop them and direct people to look in /usr/lib/rust/... instead.
Comment 5 Georgy Yakovlev archtester gentoo-dev 2022-06-13 18:25:12 UTC
Yes, it’s tied to rustup and eselect-rust
Rustup, in configured to use system toolchain (default gentoo configuration) will use that to show docs, so will some IDEs.

It looks for /usr/share/doc/rust, which is a symlink created by eselect-rust.
But eselect-rust doesn’t work with revisions right now, and ebuild installs ${PV} suffixed binaries and directories, I will have to do a big chunk of work to silence this harmless warning. I will do it, but later. It’s not breaking anything at all after all.
Comment 6 Mike Gilbert gentoo-dev 2022-06-13 18:46:23 UTC
Ok, so if I understand correctly the critical part is the /usr/share/doc/rust symlink. So long as that points at a valid path, we could drop /usr/share/doc/rust-${PV}.

Thanks for explaining.
Comment 7 Agostino Sarubbo gentoo-dev 2022-09-15 06:55:41 UTC
tinderbox_musl has reproduced this issue with version 1.63.0-r1 - Updating summary.
Comment 8 Agostino Sarubbo gentoo-dev 2022-09-26 06:54:45 UTC
ci has reproduced this issue with version 1.64.0-r1 - Updating summary.
Comment 9 Agostino Sarubbo gentoo-dev 2023-04-25 06:41:56 UTC
ci has reproduced this issue with version 1.69.0-r1 - Updating summary.
Comment 10 Agostino Sarubbo gentoo-dev 2024-02-12 15:07:40 UTC
slibtool_tinderbox has reproduced this issue with version 1.75.0-r1 - Updating summary.
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-21 05:46:11 UTC
*** Bug 927378 has been marked as a duplicate of this bug. ***
Comment 12 Agostino Sarubbo gentoo-dev 2024-03-21 09:11:58 UTC
binutils2.42_tinderbox has reproduced this issue with version 1.76.0-r1 - Updating summary.