[Bug 2090791] [NEW] rustc-1.80-src: missing `lib/rustlib/src` in sysroot
Miguel Ojeda
2090791 at bugs.launchpad.net
Sun Dec 1 18:56:15 UTC 2024
Public bug reported:
Hi,
The following difference between the versioned (`rustc`) and non-
versioned (`rustc-1.80`) packages means that downstream Rust users may
need to tweak build steps for a project if the versioned packages are
used:
$ dpkg -L rust-src | grep rustlib
/usr/lib/rustlib
/usr/lib/rustlib/src
/usr/lib/rustlib/src/rust
$ rustc --print sysroot
/usr
$ ls -l $(rustc --print sysroot)/lib/rustlib/src
total 0
lrwxrwxrwx 1 root root 25 Feb 14 2024 rust -> ../../../src/rustc-1.75.0
vs.:
$ dpkg -L rust-1.80-src | grep rustlib
/usr/lib/rust-1.80/rustlib
/usr/lib/rust-1.80/rustlib/src
/usr/lib/rust-1.80/rustlib/src/rust
$ rustc-1.80 --print sysroot
/usr/lib/rust-1.80
$ ls -l $(rustc-1.80 --print sysroot)/lib/rustlib/src
ls: cannot access '/usr/lib/rust-1.80/lib/rustlib/src': No such file or directory
Ubuntu's non-versioned package, as well as other distributions, such as
Debian and Fedora, allow to use that `src` path to find the standard
library sources, e.g.:
$(rustc --print
sysroot)/lib/rustlib/src/rust/library/core/src/lib.rs
Could the versioned packages (at least future ones) be changed so that
`src` exists? If so, that would allow to simplify instructions for
Ubuntu users in e.g. the Linux kernel Quick Start guide for the Rust
support:
https://docs.kernel.org/next/rust/quick-start.html#ubuntu
Thanks!
Cheers,
Miguel
** Affects: rustc-1.80 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rustc-1.80 in Ubuntu.
https://bugs.launchpad.net/bugs/2090791
Title:
rustc-1.80-src: missing `lib/rustlib/src` in sysroot
Status in rustc-1.80 package in Ubuntu:
New
Bug description:
Hi,
The following difference between the versioned (`rustc`) and non-
versioned (`rustc-1.80`) packages means that downstream Rust users may
need to tweak build steps for a project if the versioned packages are
used:
$ dpkg -L rust-src | grep rustlib
/usr/lib/rustlib
/usr/lib/rustlib/src
/usr/lib/rustlib/src/rust
$ rustc --print sysroot
/usr
$ ls -l $(rustc --print sysroot)/lib/rustlib/src
total 0
lrwxrwxrwx 1 root root 25 Feb 14 2024 rust -> ../../../src/rustc-1.75.0
vs.:
$ dpkg -L rust-1.80-src | grep rustlib
/usr/lib/rust-1.80/rustlib
/usr/lib/rust-1.80/rustlib/src
/usr/lib/rust-1.80/rustlib/src/rust
$ rustc-1.80 --print sysroot
/usr/lib/rust-1.80
$ ls -l $(rustc-1.80 --print sysroot)/lib/rustlib/src
ls: cannot access '/usr/lib/rust-1.80/lib/rustlib/src': No such file or directory
Ubuntu's non-versioned package, as well as other distributions, such
as Debian and Fedora, allow to use that `src` path to find the
standard library sources, e.g.:
$(rustc --print
sysroot)/lib/rustlib/src/rust/library/core/src/lib.rs
Could the versioned packages (at least future ones) be changed so that
`src` exists? If so, that would allow to simplify instructions for
Ubuntu users in e.g. the Linux kernel Quick Start guide for the Rust
support:
https://docs.kernel.org/next/rust/quick-start.html#ubuntu
Thanks!
Cheers,
Miguel
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rustc-1.80/+bug/2090791/+subscriptions
More information about the foundations-bugs
mailing list