moving a binary from foo to bar package

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

moving a binary from foo to bar package

Jordi Massaguer Pla-2
Hi,

I have this package, foo-1.0, which provides /usr/bin/foo.

Then, I want to have foo-2.0 and bar-2.0 and make bar-2.0 provide
/usr/bin/foo. At the same time, I make foo-2.0 require bar-2.0.


However, if I do:

zypper install foo-1.0

zypper install foo-2.0

zypper install --old-version foo-1.0


I get this error that the file /usr/bin/foo creates a conflict between
foo-1.0 and bar-2.0. If I go on with the installation, I end up having
foo-1.0 and bar-2.0 installed.

Then, if I do

zypper install foo-2.0

I will get foo-2.0 installed, bar-2.0 remains (no new install) and
foo-1.0 gets removed. However, the latest, removing foo-1.0, causes
/usr/bin/foo to be removed as well!

Thus, I end up having foo-2.0, bar-2.0 but no /usr/bin/foo

How could I make installing foo-1.0 remove bar-2.0? So all this works?

thanks in advance

jordi

PD: substitute foo by docker, bar by docker-libnetwork, and /usr/bin/foo
by /usr/bin/docker-proxy ;)

--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: moving a binary from foo to bar package

Andreas Schwab-2
On Sep 27 2017, Jordi Massaguer Pla <[hidden email]> wrote:

> How could I make installing foo-1.0 remove bar-2.0? So all this works?

bar-2.0 should have a conflict with foo < 2.0.

Andreas.

--
Andreas Schwab, SUSE Labs, [hidden email]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]