On 2017-04-09 01:53, Ken McDonell wrote: > Andreas, > > I've battled for half a day to get the Breaks/Replaces clauses right and > failed spectacularly. > > Could you point me at any documentation (neither google nor I can find it!) > that shows exactly what to do in this case of a file moving from existing > package A to existing package B where there are dependencies between A and > B?
That would probably be the Debian Policy https://www.debian.org/doc/debian-policy/ch-relationships.html#s-replaces Assuming the version you are preparing is 3.11.10 (why is that a native package anyway?) and you are moving stuff from libpcp3-dev to libpcp-pmda3-dev, then you'll need to add Package: libpcp-pmda3-dev Breaks: libpcp3-dev (<< 3.11.10~) Replaces: libpcp3-dev (<< 3.11.10~) I used the '~' suffix to get a version that also works out-of-the-box (without any extra care or changes needed) in case the package gets backported (which would become backport version 3.11.10~bpoX+1) If you want me to review of your changes, send me a source debdiff or the link to the respective commits (and keep the bug Cc:ed) Andreas PS: I did not look at all at your package to write this email :-) > Thanks for any help you may be able to offer. > >> -----Original Message----- >> From: p...@groups.io [mailto:p...@groups.io] On Behalf Of Andreas Beckmann >> Sent: Saturday, March 11, 2017 7:22 AM >> To: p...@groups.io >> Subject: [pcp] Bug#857406: libpcp3-dev: ships broken manpage symlinks that >> should rather be in libpcp-pmda3-dev >> >> Package: libpcp3-dev >> Version: 3.11.8 >> Severity: normal >> User: debian...@lists.debian.org >> Usertags: piuparts >> >> Hi, >> >> during a test with piuparts I noticed your package ships (or creates) a > broken >> symlink. >> >> >From the attached log (scroll to the bottom...): >> >> 0m32.3s ERROR: FAIL: Broken symlinks: >> /usr/share/man/man3/pmwebapi.3.gz -> PMWEBAPI.3.gz >> /usr/share/man/man3/pmdatext.3.gz -> pmdaText.3.gz >> /usr/share/man/man3/pmdastore.3.gz -> pmdaStore.3.gz >> /usr/share/man/man3/pmdarootconnect.3.gz -> pmdaRootConnect.3.gz >> /usr/share/man/man3/pmdaprofile.3.gz -> pmdaProfile.3.gz >> /usr/share/man/man3/pmdapmid.3.gz -> pmdaPMID.3.gz >> /usr/share/man/man3/pmdaopenlog.3.gz -> pmdaOpenLog.3.gz >> /usr/share/man/man3/pmdaname.3.gz -> pmdaName.3.gz >> /usr/share/man/man3/pmdainterfacemoved.3.gz -> pmdaInterfaceMoved.3.gz >> /usr/share/man/man3/pmdainstance.3.gz -> pmdaInstance.3.gz >> /usr/share/man/man3/pmdainit.3.gz -> pmdaInit.3.gz >> /usr/share/man/man3/pmdafetch.3.gz -> pmdaFetch.3.gz >> /usr/share/man/man3/pmdadso.3.gz -> pmdaDSO.3.gz >> /usr/share/man/man3/pmdadesc.3.gz -> pmdaDesc.3.gz >> /usr/share/man/man3/pmdadaemon.3.gz -> pmdaDaemon.3.gz >> /usr/share/man/man3/pmdaconnect.3.gz -> pmdaConnect.3.gz >> /usr/share/man/man3/pmdachildren.3.gz -> pmdaChildren.3.gz >> /usr/share/man/man3/pmdaattribute.3.gz -> pmdaAttribute.3.gz >> /usr/share/man/man3/pmda.3.gz -> PMDA.3.gz >> >> Since all these manpages used as symlink targets are in the package > libpcp- >> pmda3-dev, the links should rather be there, too. >> >> Don't forget to add appropriate Breaks+Replaces to libpcp-pmda3-dev if you > are >> moving the links there. >> >> >> cheers, >> >> Andreas