[pacman-dev] Alternatives system brainstorm
Daan van Rossum
d.r.vanrossum at gmx.de
Sat Oct 19 11:57:54 UTC 2019
* on Saturday, 2019-10-19 18:15 +1000, Allan McRae <allan at archlinux.org> wrote:
> /bin/sh -> bash/dash
> /usr/bin/awk -> gawk/nawk
> /usr/bin/cc -> gcc/clang
Can we provide alternatives by means of sets of mutually exclusive link packages, using package properties that are already supported in pacman?
sh-bash
provides=('sh')
depends=('bash')
conflicts=('sh-dash')
sh-dash
provides=('sh')
depends=('dash')
conflicts=('sh-bash')
bash
depends('sh')
dash
depends('sh')
The circular dependency can only be satisfied at install time if bash is installed together with sh-bash, or if another sh provider already exists in the system (e.g. dash and sh-dash).
Daan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20191019/8358f312/attachment.sig>
More information about the pacman-dev
mailing list