1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00

main/gzip: Don't create symlinks back to /usr/bin

Creating these symlinks from /bin to /usr/bin results in broken symlinks
on usr-merged installs. Busybox symlinks are in /bin, so installing gzip
and gunzip to /bin is enough to overwrite them.

AFAIK busybox and gzip (this pkg) are the only things providing these
cmds, so overwriting the busybox symlinks should be enough to ensure
that GNU gzip/gunzip is used.
This commit is contained in:
Clayton Craft 2025-06-02 09:19:19 -07:00 committed by Natanael Copa
parent 690192f55e
commit cbc8ba7803

View file

@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gzip
pkgver=1.14
pkgrel=1
pkgrel=2
pkgdesc="Popular data compression program"
subpackages="$pkgname-doc"
url="https://www.gnu.org/software/gzip/"
@ -43,9 +43,6 @@ package() {
mv "$pkgdir"/usr/bin/$i "$pkgdir"/bin/
done
ln -s /bin/gzip "$pkgdir"/usr/bin/gzip
ln -s /bin/gunzip "$pkgdir"/usr/bin/gunzip
# http://bugs.alpinelinux.org/issues/4011
ln -sf /bin/gunzip "$pkgdir"/usr/bin/uncompress
}