[Bug 1920018] Re: inconsistent file list / missing libcore
Simon Chopin
1920018 at bugs.launchpad.net
Thu Jan 19 11:13:41 UTC 2023
In the current version (and probably back in 1.57) you'll find the
libcore sources at /usr/src/rustc-$VERSION/library/core which would
explain why paelzer's grep failed (no "libcore" in the path).
Marking this as "Fix released" since we have both consistency and the
libcore sources :)
** Changed in: rustc (Ubuntu)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rustc in Ubuntu.
https://bugs.launchpad.net/bugs/1920018
Title:
inconsistent file list / missing libcore
Status in rustc package in Ubuntu:
Fix Released
Bug description:
In packages.ubuntu.com, for focal 20.04 release.
https://packages.ubuntu.com/focal/all/rust-src/filelist
reading through the list of installed files, it looks the package
``1.47.0+dfsg1+llvm-1ubuntu1~20.04.1``
is installing source files for rustc version 1.41.
. After installing the package via apt-get
$ sudo apt-get install rust-src
I get different answers from the following commands
from ``apt-file list``
```
$ apt-file list rust-src | grep libcore
[...]
rust-src: /usr/src/rustc-1.41.0/src/libcore/alloc.rs
rust-src: /usr/src/rustc-1.41.0/src/libcore/any.rs
rust-src: /usr/src/rustc-1.41.0/src/libcore/array/iter.rs
rust-src: /usr/src/rustc-1.41.0/src/libcore/array/mod.rs
rust-src: /usr/src/rustc-1.41.0/src/libcore/ascii.rs
rust-src: /usr/src/rustc-1.41.0/src/libcore/benches/any.rs
rust-src: /usr/src/rustc-1.41.0/src/libcore/benches/ascii.rs
[...]
```
( I am cutting out a long list of files in the libcore subfolder)
while with dpkg
```
$ dpkg -L rust-src | grep libcore
/usr/src/rustc-1.47.0/src/doc/edition-guide/src/rust-2018/platform-and-target-support/libcore-for-low-level-rust.md
/usr/src/rustc-1.47.0/src/etc/natvis/libcore.natvis
/usr/src/rustc-1.47.0/src/test/ui/consts/const-eval/const_panic_libcore.rs
/usr/src/rustc-1.47.0/src/test/ui/consts/const-eval/const_panic_libcore.stderr
/usr/src/rustc-1.47.0/src/test/ui/consts/const-eval/const_panic_libcore_main.rs
/usr/src/rustc-1.47.0/src/test/ui/consts/const-eval/const_panic_libcore_main.stderr
/usr/src/rustc-1.47.0/src/test/ui/consts/unstable-const-fn-in-libcore.rs
/usr/src/rustc-1.47.0/src/test/ui/consts/unstable-const-fn-in-libcore.stderr
/usr/src/rustc-1.47.0/src/test/ui/threads-sendsync/sync-send-iterators-in-libcore.rs
/usr/src/rustc-1.47.0/src/test/ui/variance-iterators-in-libcore.rs
```
no trace of any libcore subfolder
to prove ``dpkg`` is the one telling the truth
```
$ ls /usr/src/ -1
linux-headers-5.4.0-66
linux-headers-5.4.0-66-generic
linux-headers-5.4.0-67
linux-headers-5.4.0-67-generic
rustc-1.47.0
```
no trace of any ``rustc-1.41`` folder
also:
```
$ dpkg-deb -c /var/cache/apt/archives/rust-src_1.47.0+dfsg1+llvm-1ubuntu1~20.04.1_all.deb | grep libcore
-rw-r--r-- root/root 1079 2020-10-07 10:04 ./usr/src/rustc-1.47.0/src/doc/edition-guide/src/rust-2018/platform-and-target-support/libcore-for-low-level-rust.md
-rw-r--r-- root/root 1607 2020-10-07 09:53 ./usr/src/rustc-1.47.0/src/etc/natvis/libcore.natvis
-rw-r--r-- root/root 315 2020-10-07 09:53 ./usr/src/rustc-1.47.0/src/test/ui/consts/const-eval/const_panic_libcore.rs
-rw-r--r-- root/root 1320 2020-10-07 09:53 ./usr/src/rustc-1.47.0/src/test/ui/consts/const-eval/const_panic_libcore.stderr
-rw-r--r-- root/root 486 2020-10-07 09:53 ./usr/src/rustc-1.47.0/src/test/ui/consts/const-eval/const_panic_libcore_main.rs
-rw-r--r-- root/root 1352 2020-10-07 09:53 ./usr/src/rustc-1.47.0/src/test/ui/consts/const-eval/const_panic_libcore_main.stderr
-rw-r--r-- root/root 839 2020-10-07 09:53 ./usr/src/rustc-1.47.0/src/test/ui/consts/unstable-const-fn-in-libcore.rs
-rw-r--r-- root/root 1075 2020-10-07 09:53 ./usr/src/rustc-1.47.0/src/test/ui/consts/unstable-const-fn-in-libcore.stderr
-rw-r--r-- root/root 2578 2020-10-07 09:53 ./usr/src/rustc-1.47.0/src/test/ui/threads-sendsync/sync-send-iterators-in-libcore.rs
-rw-r--r-- root/root 244 2020-10-07 09:53 ./usr/src/rustc-1.47.0/src/test/ui/variance-iterators-in-libcore.rs
```
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rustc/+bug/1920018/+subscriptions
More information about the foundations-bugs
mailing list