


























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
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.
Can this package be updated to 0.5.13.2? The pkgver & checksums just need to be updated.
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.
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.
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.
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/)?
Please update to 0.5.11.3.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
Thanks @randompie, I'll see if I can make it work without system-wide symlinks.