nullpo-head / wsl-distrod

Distrod is a meta-distro for WSL 2 which installs Ubuntu, Arch, Debian, Gentoo, etc. with systemd in a minute for you. Distrod also has built-in auto-start feature on Windows startup and port forwarding ability.
MIT License
1.9k stars 90 forks source link

[Bug]: fakeroot doesn't start without $SHELL modification #51

Open acomagu opened 2 years ago

acomagu commented 2 years ago

Describe the bug

I tried to use fakeroot in distrod container but it failed with such error:

$ fakeroot
/opt/distrod/alias/bin/bash: /opt/distrod/lib/libc.so.6: version `GLIBC_2.34' not found (required by /usr/lib/libfakeroot/libfakeroot.so)

This was caused the following line in fakeroot script:

FAKEROOTKEY=$FAKEROOTKEY LD_LIBRARY_PATH="$PATHS"  LD_PRELOAD="$FAKEROOT_LIB" ${SHELL:-/bin/sh}

Modifing $SHELL seemed solving the issue:

$ SHELL=/usr/bin/bash fakeroot
$                                # No Error

Is this correct way to execute fakeroot? Thanks.

Steps to reproduce

$ pacman -S fakeroot
$ fakeroot

(In the first place, I was going to use debtap. I encountered this issue because debtap uses fakeroot internally)

Expected behavior

fakeroot works without $SHELL modification.

Windows version

22H2 (Build 22610.1)

Linux kernel version

Linux acm-envy3-win 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 GNU/Linux

Distro

Arch Linux

How did you install that distro?

Installed by Distrod wizard

Logs

The behavior of distrod itself is not problem.

additional comment

No response