Package Details: dash-static-musl 0.5.13.4-2

Git Clone URL: https://aur.archlinux.org/dash-static-musl.git (read-only, click to copy)
Package Base: dash-static-musl
Description: A POSIX compliant shell that aims to be as small as possible
Upstream URL: http://gondor.apana.org.au/~herbert/dash/
Licenses: BSD
Conflicts: dash
Provides: dash
Submitter: WFCody
Maintainer: Aleksej
Last Packager: Aleksej
Votes: 10
Popularity: 0.026214
First Submitted: 2015-10-18 06:06 (UTC)
Last Updated: 2026-05-10 03:21 (UTC)

Dependencies (3)

Required by (21)

Sources (1)

Latest Comments

1 2 Next › Last »

Aleksej commented on 2026-05-18 04:01 (UTC)

Thanks @randompie, I'll see if I can make it work without system-wide symlinks.

randompie commented on 2026-05-17 17:06 (UTC)

Made the following changes:

sudo ln -s /usr/lib/libatomic_asneeded.so /usr/lib/musl/lib/
sudo ln -s /usr/lib/libatomic_asneeded.a /usr/lib/musl/lib/
sudo ln -s /usr/lib/libatomic.a /usr/lib/musl/lib/

This fixes the libatomic problem, but another problem crops up in the install part with the COPYING file.

Fixed by changing the PKGBUILD:

36c36
<   install -m644 -D COPYING ${pkgdir}/usr/share/licenses/${_pkgbase}/COPYING
---
>   install -m644 -D ${srcdir}/${_pkgbase}-${pkgver}/COPYING ${pkgdir}/usr/share/licenses/${_pkgbase}/COPYING

Aleksej commented on 2026-05-10 03:27 (UTC)

There's a libatomic problem:

musl-gcc -I. -I.. -DBSD=1 -DSHELL  -g -O2 -Wall    -o mknodes mknodes.c
/usr/bin/ld: cannot find -latomic_asneeded: No such file or directory

Usually solved by adding -fno-link-libatomic to CFLAGS in /etc/makepkg.conf but make seems to ignore CFLAGS in the above step.

If anyone figures it out before me please post here.

tetrachromat commented on 2026-04-14 05:44 (UTC)

Can this package be updated to 0.5.13.2? The pkgver & checksums just need to be updated.

Aleksej commented on 2025-07-29 07:26 (UTC)

Hi, thanks for packaging. Upstream source mentioned below has ./configure script so you can remove prepare() function (tested). And it builds and works fine on aarch64 architecture.

kseistrup commented on 2022-01-14 09:05 (UTC)

I can confirm that --enable-static works and produces a statically linked binary.

And I recommend that the CFLAGS variable isn't completely overruled. Instead the -Os should be appended:

export CC='musl-gcc'
export CFLAGS="$CFLAGS -Os"  # please observe double-quotes
./configure \
  --enable-static \
    ⋮

Cheers.

WFCody commented on 2022-01-14 08:53 (UTC)

Hi climbTheStrairs. The source used is the same as in the Arch Linux dash package so that is why that source is selected.

For building, I probably had a reason for doing what I did back then. I will try to adjust the PKGBUILD sometime soon when I got time.

climbTheStairs commented on 2022-01-14 08:40 (UTC)

Perhaps use ./configure --enable-static instead of export CC='musl-gcc -static' and export CFLAGS='-Os -static' (and why the flag used twice?)?

Also, is there a reason that this source is used instead of the one from the upstream URL (http://gondor.apana.org.au/~herbert/dash/files/)?

kseistrup commented on 2021-03-25 12:58 (UTC)

Please update to 0.5.11.3.

ryosei commented on 2021-02-28 22:09 (UTC)

Version 0.5.11.3 is out since 2020-12-23 07:58:12. The same PKGBUILD but updating version and checksums work alright.