Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 904730 - dev-lang/rust-1.69.0 installs files with broken symlink
Summary: dev-lang/rust-1.69.0 installs files with broken symlink
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-21 03:09 UTC by Agostino Sarubbo
Modified: 2023-04-25 09:16 UTC (History)
3 users (show)

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


Attachments
build.log.xz (build.log.xz,404.26 KB, application/x-xz)
2023-04-21 03:09 UTC, Agostino Sarubbo
Details
/usr/lib/rust/1.69.0/lib/rustlib/manifest-rustc (manifest-rustc,1.99 KB, text/plain)
2023-04-21 21:09 UTC, znjameswu
Details
/usr/lib/rust/1.69.0/lib/rustlib/install.log (install.log,18.05 KB, text/plain)
2023-04-21 21:09 UTC, znjameswu
Details
qlist dev-lang/rust (qlist,139.58 KB, text/plain)
2023-04-21 21:15 UTC, znjameswu
Details
Proposed patch to ebuild file (rust-1.69.0.ebuild-rustdoc.patch,309 bytes, patch)
2023-04-24 09:26 UTC, Tee KOBAYASHI
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-04-21 03:09:35 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-lang/rust-1.69.0 installs files with broken symlink.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2023-04-21 03:09:41 UTC
Created attachment 860458 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 znjameswu 2023-04-21 10:35:32 UTC
Can confirm the rustdoc symlink is also broken in my installation.
Comment 3 John Croteau 2023-04-21 16:19:23 UTC
Confirmed here as well.
Comment 4 Georgy Yakovlev archtester gentoo-dev 2023-04-21 20:55:12 UTC
someone affected, can you please attach the following info:

USE flags on rust
output of "cat /usr/lib/rust/1.69.0/lib/rustlib/components"
output of "qlist dev-lang/rust"


I clearly have rustdoc installed on my systems, it should be always installed alongside with cargo and rustc, it's a required component for many builds.
Comment 5 Georgy Yakovlev archtester gentoo-dev 2023-04-21 21:01:37 UTC
also I need contents of

/usr/lib/rust/1.69.0/lib/rustlib/manifest-rustc

and contents of

/usr/lib/rust/1.69.0/lib/rustlib/install.log
Comment 6 znjameswu 2023-04-21 21:09:00 UTC
Created attachment 860499 [details]
/usr/lib/rust/1.69.0/lib/rustlib/manifest-rustc
Comment 7 znjameswu 2023-04-21 21:09:22 UTC
Created attachment 860500 [details]
/usr/lib/rust/1.69.0/lib/rustlib/install.log
Comment 8 znjameswu 2023-04-21 21:14:41 UTC
(In reply to Georgy Yakovlev from comment #4)
> USE flags on rust

USE="clippy profiler rust-analyzer rust-src rustfmt system-llvm wasm -debug -dist -doc (-llvm-libunwind) (-miri) -nightly (-parallel-compiler) -system-bootstrap -test -verify-sig" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse2" LLVM_TARGETS="WebAssembly (X86) -AArch64 -AMDGPU -ARM -AVR -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -XCore"

> output of "cat /usr/lib/rust/1.69.0/lib/rustlib/components"

rust-std-x86_64-unknown-linux-gnu
rust-std-wasm32-unknown-unknown
cargo
rust-analyzer-preview
rustfmt-preview
rust-demangler-preview
clippy-preview
rust-src
rustc
Comment 9 znjameswu 2023-04-21 21:15:35 UTC
Created attachment 860501 [details]
qlist dev-lang/rust
Comment 10 Morton Pellung 2023-04-21 21:52:05 UTC
* Messages for package dev-lang/rust-1.69.0:                                                                                                                                                                                                                                                                                                                                                                       
 * rustdoc symlink requested, but source file not found                                                                                                                                                    
 * please report this   

[ebuild   R   ~] dev-lang/rust-1.69.0:stable/1.69::gentoo  USE="-clippy -debug -dist -doc (-llvm-libunwind) (-miri) -nightly (-parallel-compiler) -profiler -rust-analyzer -rust-src -rustfmt -system-bootstrap -system-llvm -test -verify-sig -wasm" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse2" LLVM_TARGETS="(X86) -AArch64 -AMDGPU -ARM -AVR -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -WebAssembly -XCore" 0 KiB

$ cat /usr/lib/rust/1.69.0/lib/rustlib/components
rust-std-x86_64-unknown-linux-gnu
cargo
rustc

[will figure out how to attach logs tomorrow... meanwhile maybe someone else's is the same?]

$ qlist dev-lang/rust |wc -l
115
$ cat /usr/lib/rust/1.69.0/lib/rustlib/manifest-rustc |wc -l
20
$ cat /usr/lib/rust/1.69.0/lib/rustlib/install.log |wc -l
112
Comment 11 Tee KOBAYASHI 2023-04-24 09:26:58 UTC
Created attachment 860691 [details, diff]
Proposed patch to ebuild file

From https://releases.rs/docs/1.69.0/#compatibility-notes:

> The Rust distribution no longer always includes rustdoc If tools = [...]
> is set in config.toml, we will respect a missing rustdoc in that list.
> By default rustdoc remains included. To retain the prior behavior
> explicitly add "rustdoc" to the list.
Comment 12 Georgy Yakovlev archtester gentoo-dev 2023-04-24 21:15:13 UTC
thanks, still don't know why on my test systems it got installed without explicitly requesting it, probably because if have bunch of other flags activated.


revbump landing soon, testing right now.
Comment 13 Georgy Yakovlev archtester gentoo-dev 2023-04-24 21:16:50 UTC
ah, probably USE=doc is what caused it to be installed.
Comment 14 Larry the Git Cow gentoo-dev 2023-04-24 21:36:01 UTC
The bug has been closed via the following commit(s):

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

commit 6d2920b58c3171f0cc114b553ae70722e94f88dc
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2023-04-24 20:32:59 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2023-04-24 21:10:25 +0000

    dev-lang/rust: revbump 1.69.0, adjust component list.
    
    analysis is gone.
    rustdoc no longer being pulled by 'rustc' component.
    
    https://releases.rs/docs/1.69.0/#compatibility-notes
    
    Closes: https://bugs.gentoo.org/904730
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
    Thanks-to: Tee KOBAYASHI <xtkoba@gmail.com>

 dev-lang/rust/{rust-1.69.0.ebuild => rust-1.69.0-r1.ebuild} | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)