This looks good to me according to the debian policy manual: https://www.debian.org/doc/debian-policy/ch-relationships.html#s-replaces
Acked-by: Daniele Di Proietto <diproiet...@vmware.com> I noticed is that if I try to upgrade from 2.5.0 to 2.5.90(with this change) using dpkg from command line the results may vary: `dpkg -i openvswitch-common_2.5.90-1_amd64.deb openvswitch-switch_2.5.90-1_amd64.deb` still complains, because openvswitch-common is processed first and that breaks the installed openvswitch-switch. dpkg doesn't seem to be smart enough to realize that openvswitch-switch is being updated as well. This is the alphabetical order, which is used if someone types `dpkg -i *.deb` `dpkg -i openvswitch-switch_2.5.90-1_amd64.deb openvswitch-common_2.5.90-1_amd64.deb` instead seem to work. I'd be curious to hear from someone more expert than me in debian packaging if this should be considered a bug in dpkg, or (unlikely, given the explicit instructions in the Debian Policy Manual) if there's a better way to handle the file transition. Thanks, Daniele 2016-06-17 12:46 GMT-07:00 Joe Stringer <j...@ovn.org>: > On 17 June 2016 at 12:42, Joe Stringer <j...@ovn.org> wrote: > > Commit 0dcc739e7a28 ("debian: Move ovs-lib to openvswitch-common.") > > shifted a file between debian packages, but didn't update the > > destination package annotations to indicate that it replaces a file > > from earlier versions of the source package. > > > > As a result, if one installs openvswitch-switch-2.5* and then tries to > > upgrade to openvswitch-{switch,common}-2.5.90+, the install of > > openvswitch-common will fail like the following: > > > > dpkg: error processing archive > > /tmp/openvswitch-common_2.5.90-1_amd64.deb (--install): > > trying to overwrite '/usr/share/openvswitch/scripts/ovs-lib', which is > > also in package openvswitch-switch 2.5.0-1 > > > > Fix the issue by adding "Replaces" and "Breaks" tags to the new > > openvswitch-common section of debian/control. > > s/new//g > _______________________________________________ > dev mailing list > dev@openvswitch.org > http://openvswitch.org/mailman/listinfo/dev > _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev