[Bug 2090791] Re: rustc-1.80-src: missing `lib/rustlib/src` in sysroot
Launchpad Bug Tracker
2090791 at bugs.launchpad.net
Sat Jan 4 00:36:03 UTC 2025
This bug was fixed in the package rustc-1.80 -
1.80.1+dfsg0ubuntu1-0ubuntu2
---------------
rustc-1.80 (1.80.1+dfsg0ubuntu1-0ubuntu2) plucky; urgency=medium
* d/rust-X.Y-src.links.in: add one more symlink that creates the
lib/rustlib/src/rust path to help with the Linux kernel build system
(LP: #2090791)
* d/p/ubuntu/ubuntu-upgrade-libgit2-1.8.patch: add a patch to upgrade
libgit2 to 1.8
* d/control: adjust libgit2 version requirements to 1.8.x (LP: #2089696)
-- Zixing Liu <zixing.liu at canonical.com> Wed, 18 Dec 2024 12:08:22
-0700
** Changed in: rustc-1.80 (Ubuntu)
Status: In Progress => Fix Released
--
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:
Fix Released
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