Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pax-utils as a dependency to base-minimal in musl edition #14489

Closed
am11 opened this issue Sep 16, 2019 · 3 comments
Closed

pax-utils as a dependency to base-minimal in musl edition #14489

am11 opened this issue Sep 16, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@am11
Copy link
Contributor

am11 commented Sep 16, 2019

System

  • xuname:
    Void 4.9.184-linuxkit x86_64-musl GenuineIntel uptodate rF

  • package:
    base-minimal

Expected behavior

A base installation of Void Linux, in both glibc and musl-libc editions, has the tool called ldconfig, which helps applications and other tools to find out which system libraries are installed.

ldconfig does pretty much nothing on musl-libc based systems. The alternative is scanelf for musl-libc, which pax-utils package provides.

In minimal Alpine Linux installation, pax-utils is included. The expectation from Void Linux (musl-libc edition) is also to have pax-utils as part of minimal install (docker scenario).

Actual behavior

There is no usable tools available in base-minimal for system-library introspection.

Steps to reproduce the behavior

glibc case

docker run -it voidlinux/voidlinux dash # glibc edition

ldconfig -NvX
# lists the installed system libraries

musl-libc

docker run -it voidlinux/voidlinux-musl dash # glibc edition

ldconfig -NvX
# returns nothing
# it's pretty much a no-op on musl, alternative is 'scanelf'

scanelf
dash: 2: scanelf: not found

xbps-install -S
xbps-install pax-utils

scanelf --ldpath -BF '%f'
# lists the installed system libraries
@Hoshpak Hoshpak added the enhancement New feature or request label Sep 18, 2019
@Piraty
Copy link
Member

Piraty commented Sep 28, 2019

$ xbps-query -o /usr/bin/ldconfig
musl-1.1.23_2: /usr/bin/ldconfig -> /usr/bin/true (link)

# Fake ldconfig
ln -s true ${DESTDIR}/usr/bin/ldconfig

@leahneukirchen
Copy link
Member

Closing, this is not necessary for a base-minimal setup.

@am11
Copy link
Contributor Author

am11 commented Dec 8, 2019

Even a minimum system should have a library introspection utility. The docker image of alpine base is
12.3 times smaller than Void musl (5.58MB vs. 68.6MB), and it contains pax-utils in base system, because it is deemed as a fundamental component. Maybe something else can be dropped from base minimal, instead of pax-utils?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants