Closed alexbodn closed 2 months ago
I think what you are asking is to break and replace a package at the same time.
There's quite a lot of packages where that had to previously be done.
Here's one example.
https://github.com/termux/termux-packages/blob/697c89b4720b1b5bb32c1bfb549526b2f6d0853c/packages/util-linux/build.sh#L19-L20
You just need to set both TERMUX_PKG_BREAKS
and
TERMUX_PKG_REPLACES
.
You should set TERMUX_PKG_CONFLICTS
and TERMUX_PKG_PROVIDES
, and also be better to set TERMUX_PKG_REPLACES
.
Are those new, or did I just miss them?
You should set
TERMUX_PKG_CONFLICTS
andTERMUX_PKG_PROVIDES
, and also be better to setTERMUX_PKG_REPLACES
.
thank you very much. i missed provides. this is the debian solution, indeed.
I think what you are asking is to break and replace a package at the same time. There's quite a lot of packages where that had to previously be done. Here's one example.
You just need to set both
TERMUX_PKG_BREAKS
andTERMUX_PKG_REPLACES
.
that was my solution too, but that didn'work.
Problem description
i wish to create a package that is an alternative to another package, and provides the same functionality. the files in these packages conflict, naturally.
What steps will reproduce the bug?
i made a package b that "replaces" package a. it also breaks it and conflicts with it. trying to install package b, while a is installed, and d depends on a.
What is the expected behavior?
pkg install asks permission to uninstall a and d.
System information