Skip to content
Snippets Groups Projects
Commit 74ad1563 authored by omni's avatar omni
Browse files

community/uutils: fix issue of installing uutils-coreutils over main/coreutils

- don't automatically choose uutils-coreutils over GNU coreutils
- set version of coreutils provides to always be lower than
  main/coreutils
- dont't use provider_priority
parent a9d4c3ee
No related branches found
No related tags found
1 merge request!75459community/uutils: fix issue of installing uutils-coreutils over main/coreutils
Pipeline #273895 skipped
......@@ -2,7 +2,7 @@
maintainer="omni <omni+alpine@hack.org>"
pkgname=uutils
pkgver=0.0.28
pkgrel=3
pkgrel=4
pkgdesc="Rust rewrite of the GNU coreutils"
# s390x: blocked by nix crate
arch="all !s390x"
......@@ -77,9 +77,8 @@ package() {
}
_coreutils() {
provides="coreutils"
replaces="coreutils"
provider_priority=10
# prefix with 0. to ensure it never gets above GNU coreutils' version
provides="coreutils=0.$pkgver-r$pkgrel"
depends="$pkgname"
# binaries that busybox puts in /bin (mimic main/coreutils)
......@@ -120,9 +119,8 @@ _coreutils() {
}
_coreutils_doc() {
provides="coreutils-doc"
replaces="coreutils-doc"
provider_priority=10
# prefix with 0. to ensure it never gets above GNU coreutils' version
provides="coreutils-doc=0.$pkgver-r$pkgrel"
install -Dm0644 "$builddir"/man1/* -t "$subpkgdir"/usr/share/man/man1/
......@@ -157,8 +155,8 @@ _more() {
_more_doc() {
pkgdesc="$pkgdesc - cmd:more (documentation)"
provides="util-linux-doc"
provider_priority=10
# prefix with 0. to ensure it never gets above the util-linux version
provides="util-linux-doc=0.$pkgver-r$pkgrel"
install_if="docs $pkgname-coreutils-more=$pkgver-r$pkgrel"
install -Dm0644 "$builddir"/more.1 -t "$subpkgdir"/usr/share/man/man1/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment