RFR: 8342578: GHA: RISC-V: Bootstrap using Debian snapshot is still failing [v2]

Fei Yang fyang at openjdk.org
Sat Oct 19 11:57:18 UTC 2024


On Fri, 18 Oct 2024 14:12:06 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> I have a question about this. https://wiki.debian.org/UsrMerge says: "This page tracks Debian support for the merged /usr directories scheme, i.e. the /{bin,sbin,lib}/ directories becoming symbolic links to /usr/{bin,sbin,lib}/."
> 
> So turning this off gets us separate `/{bin,sbin,lib}/`, right? 

Right. I can confirm that by running two different debootstraps on my Ubuntu 22.04 machine againt Debian bullseye with and without `--no-merged-usr`. I see independent and non-empty `/{bin,sbin}/` directories with `--no-merged-usr`. And `/{lib/dev,lib/systemd}/` looks like:

$ ls sysroot/lib
cpp  init  lsb  systemd  terminfo  udev  x86_64-linux-gnu

$ tree sysroot/lib/udev/ sysroot/lib/systemd/
sysroot/lib/udev/
└── rules.d
    └── 96-e2scrub.rules
sysroot/lib/systemd/
└── system
    ├── apt-daily-upgrade.service
    ├── apt-daily-upgrade.timer
    ├── apt-daily.service
    ├── apt-daily.timer
    ├── e2scrub at .service
    ├── e2scrub_all.service
    ├── e2scrub_all.timer
    ├── e2scrub_fail at .service
    ├── e2scrub_reap.service
    ├── fstrim.service
    └── fstrim.timer

$ ls sysroot/usr/lib
X11  bfd-plugins  dpkg  gold-ld  mime        pkg-config.multiarch  ssl         udev
apt  compat-ld    gcc   locale   os-release  pkgconfig             tmpfiles.d  x86_64-linux-gnu

$ tree sysroot/usr/lib/udev
sysroot/usr/lib/udev
├── hwclock-set
└── rules.d
    └── 85-hwclock.rules


> We clean up the unnecessary files from a sysroot in the next step, would that step miss `/{bin,sbin}` and subdirs in `/{lib}` then?

Yes, I missed that step. I have pushed another change to fix this. Please take another look. Thanks.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/21575#discussion_r1807219274


More information about the build-dev mailing list