Re: dpkg-divert -- How do I use it?
> firstname.lastname@example.org (joost witteveen) writes:
> > But I _do_ want to at least install the diversion the first time
> > a user upgrades from libg++27-dev_...-4
> See programmer's 6.2. It will give you the upgraded from version as
> $2, so you can use dpkg --compare-versions to see if $2 <= ...-4.
OK, that's really interesting. Thanks.
> > 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 just don't know how remove the diversion now on my system!
> > OH, BTW, I read that I'm not supposed to use divert on anything that
> > is critical to the system's operation. Is libg++ critical enough
> > not to be allowed to use dpkg-divert? I guess not (it's not essential
> > and such).
> Could be a future problem. There might be important local binaries
> written in C++.
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?
BTW, as both David Engel and someone else prefered the debug .so
files to be in a seperate package (.dbg?), I guess I'll do that.
But the above problems still remain.
Use Debian/GNU Linux!
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