vbatts / slackware-container

Minimal rootfs creation for slackware linux (ideal for container images)
https://hub.docker.com/r/vbatts/slackware
99 stars 28 forks source link

Current #15

Open szycha76 opened 4 years ago

szycha76 commented 4 years ago

Some programs in vbatts/slackware:current image at hub.docker.com do not work due to missing libraries. This patch solves those problems.

vbatts commented 4 years ago

Thanks for the PR. It's been sitting in my inbox until the time that I can test it.

vbatts commented 4 years ago

Hrm. I'll have to check on something else.

make VERSION=current LATEST=current
[...]
181182 blocks
Fetching http://slackware.osuosl.org/slackware64-current/slackware64/a/aaa_base-14.2-x86_64-5.txz
chroot: failed to run command ‘/usr/lib/setup/installpkg’: No such file or directory
Makefile:37: recipe for target 'slackware64-current.tar' failed
make: *** [slackware64-current.tar] Error 127

this is from a slackware64-14.2 host.

Sevlin commented 3 years ago

@vbatts I think that slackware_current_must_haves is missing aaa_libraries, which replaces aaa_elflibs in previous versions of Slackware. Also, there are changes in deps regarding added support of pam and kerberos.

vbatts commented 3 years ago

I like this approach (and should've done something like it since the beginning for each version). I just pushed changes to master that fix other issues, but overlap a bit with this.

Are all the network and gnome-keyring packages required? perhaps not.

Could you rebase on master? The diff would look something like:

diff --git a/mkimage-slackware.sh b/mkimage-slackware.sh
index d7cfb10..0b7ff14 100755
--- a/mkimage-slackware.sh
+++ b/mkimage-slackware.sh
@@ -22,15 +22,9 @@ CWD=$(pwd)

 base_pkgs="a/aaa_base \
        a/aaa_elflibs \
-       a/aaa_libraries \
        a/coreutils \
        a/glibc-solibs \
-       a/aaa_glibc-solibs \
        a/aaa_terminfo \
-       a/pam \
-       a/cracklib \
-       a/libpwquality \
-       a/e2fsprogs \
        a/pkgtools \
        a/shadow \
        a/tar \
@@ -71,6 +65,8 @@ base_pkgs="a/aaa_base \
        n/openssl"

 slackware_current_must_haves="n/libmnl \
+       a/aaa_libraries \
+       a/aaa_glibc-solibs \
        a/pam-1 \
        l/libcap-ng \
        n/iptables \