Re: dpkg-divert -- How do I use it?
email@example.com (joost witteveen) writes:
> > > Removing `diversion of /usr/lib/libstdc++.so.27.2.1 to /usr/lib/libstdc++.so.27.2.1.stripped by libg++27-dev'
> > > dpkg-divert: rename involves overwriting `/usr/lib/libstdc++.so.27.2.1' with
> > > different file `/usr/lib/libstdc++.so.27.2.1.stripped', not allowed
> > It sounds like you're removing the diversion in prerm? You should be
> > doing it in the postrm.
> Well, I am doing it in the postrm, but I should also have mentioned in
> the mail that this also happens if I execute the command on the commandline.
I think that's the problem. You're trying to remove the diversion
while libg++27-dev still exists on the system. Removing the diversion
would overwrite a file of libg++27-dev. That's why it has to be done
in the postrm - ie, after the package providing the other copy of the
diverted file is removed.
> So, should I create an extra directory (what? /usr/lib/debug/?)
> that contains the debug libs and put that lib above /usr/lib in
> the /etc/ld.so.config file?
No. Only provide static libs and let the developer link to them by
hand, similar to how libc5-dbg does it. Much simpler. You could even
just make the regular static lib in libg++27-dev provide the debug
code. I don't know why David didn't do that for libc5. He still
wanted to provide a profiled library, so he would still need that
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com