wazoox |
04-20-2022 04:45 PM |
Setting up a chroot to make packages (Slackware 15)
To build clean packages using sbopkg, I've made a chroot. Install into a folder, then mount -B /dev, /dev/pts, /sys, /proc and finally chroot in the folder.
It seems to work fine at first glance, but all sort of programs fail in weird ways:
Code:
# vi /etc/hosts
DB_CREATE must be specified to create databases.
DB_CREATE must be specified to create databases.
DB_CREATE must be specified to create databases.
DB_CREATE must be specified to create databases.
ex/vi: Error: /var/tmp/vi.recover: Value too large for defined data type
ex/vi: Modifications not recoverable if the session fails
ex/vi: Error: /etc/hosts: No such file or directory
ex/vi: Error: /var/tmp/vi.recover: Value too large for defined data type
ex/vi: Modifications not recoverable if the session fails
ex/vi: Error: /tmp/vi.B270ls: No such file or directory
"vim" or "elvis" work fine, though. Weird...
Then it gets weirder:
Code:
# slackpkg update
No 'which' command found, please install it if you want to
use slackpkg.
"which" is there, though, but then it gets crazy:
Code:
# which ls
/usr/bin/ls
# which which
which: no which in (/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/libexec/kf5:/usr/lib/qt5/bin)
What's really incredibly bizarre is that "strace which which" shows which finding itself in /bin and /usr/bin, but falling through... What the heck is happening?
|