[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to transition to G++ 3.2 wthout any breakage



On 17 Aug 2002, Luca Barbieri wrote:

> Here is a plan on how to do so. It requires to modify dpkg but allows
> complete compatibility and no breakage of binaries (building with
> G++-2.95 would no longer work unless wrappers are written).
>
> 1. Create a new version of dpkg that does the following;
>
> In the postinst script it checks whether /usr/lib/g++-2.95 is present
> and if it isn't it scans symbols in all libraries to determine their ABI
> (symbols are mangled differently so this is possible) and moves all
> libraries with g++-2.95 mangled names in /usr/lib/g++-2.95 and modifies
> /var/lib/dpkg/info/<package>.list/shlibs accordingly.
> Then it scans all binaries in the same ways and automatically builds
> wrapper scripts that adjust LD_LIBRARY_PATH and modifies the .info files
> accordingly.
>
> At every package installation, it checks whether the package to install
> depends on either this new version of dpkg or libstdc++5 or if some
> dependency depends on either.
> If so, it installs it normally (checking ABIs wouldn't hurt, but it's
> slow).
> Otherwise it checks and moves libraries and binaries as above (before
> installing it to avoid conflicts).

HAHAHAHAHA.  No.

 .______.
_|doogie|_ <-- dpkg hat



Reply to: