sm-sorcery AT lists.ibiblio.org
Subject: Discussion of Sorcery related topics
List archive
Re: [SM-Sorcery] wget .so dependencies (possibly global problem)
- From: Eric Sandall <eric AT sandall.us>
- To: SourceMage Sorcery List <sm-sorcery AT lists.ibiblio.org>
- Subject: Re: [SM-Sorcery] wget .so dependencies (possibly global problem)
- Date: Wed, 4 Feb 2004 08:21:54 -0800
Quoting Ondra Tomecka <otom7630 AT lucy.troja.mff.cuni.cz>:
> Hi all,
>
> I just updated few spells, gettext as one of them. Gettext updated library
> libintl.so from libintl.so.2 to libintl.so.3. I would not expect this to
> cause any problems, as file libintl.so still exists and correctly points
> to new version. However, I tried to summon some other spell, and wget
> failed with message that it cannot find libintl.so.2 (which it cannot
> becase it's not there anymore).
>
> I made a little research with ldd to find out that there are lot of spells
> which expect exact major version of library (which is understandable as
> change in major version usually means ABI change), but this means that
> upgrade of major version of shared library can break lots of programs at
> once if it deletes previous version.
>
> One possible solution for this can be to recompile all spells which use
> the upgraded library, but I'm afraid that this could possibly be terribly
> time-consuming.
>
> Another possibility would be to leave previous version available, and add
> it to list of files of the spell which installs new version, so it would
> still be tracked by sorcery. And possibly check if existing older versions
> are still being used by some spell, which would be probably very slow too.
> Or add sorcery subcommand to check for unused older versions and remove
> them ;-)
>
> The more I think about it, the more I like the latter option with added
> subcommand to sorcery. Only bad thing about it is a lot of work which it
> would require...
>
>
> Any thoughts about this?
>
> Andy
I had that problem to, so I added a trigger for wget to recompile whenever
gettext is compiled, but then on another machine it had no problems, so I
removed the trigger, then again on a third machine I had the problem again, so
the trigger is back in.
A better way would be to create a major_version_change trigger function in
Sorcery, which would be used thus:
wget/TRIGGERS:
major_version_change gettext cast_self
This would compare the version of gettext that just installed to the first two
places (0.14 here) and the old one (0.13), and if they are different, then
activate the trigger.
We'd then just need to add this trigger to all spells, or better yet, have
this
trigger automatically applied by Sorcery using the packages defined in DEPENDS
as what could trigger the cast_self.
Thoughts?
-sandalle
--
PGP Key Fingerprint: FCFF 26A1 BE21 08F4 BB91 FAED 1D7B 7D74 A8EF DD61
http://search.keyserver.net:11371/pks/lookup?op=get&search=0xA8EFDD61
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/E/IT$ d-- s++:+>: a-- C++(+++) BL++++VIS>$ P+(++) L+++ E-(---) W++ N+@ o?
K? w++++>-- O M-@ V-- PS+(+++) PE(-) Y++(+) PGP++(+) t+() 5++ X(+) R+(++)
tv(--)b++(+++) DI+@ D++(+++) G>+++ e>+++ h---(++) r++ y+
------END GEEK CODE BLOCK------
Eric Sandall | Source Mage GNU/Linux Developer
eric AT sandall.us | http://www.sourcemage.org/
http://eric.sandall.us/ | SysAdmin @ Inst. Shock Physics @ WSU
http://counter.li.org/ #196285 | http://www.shock.wsu.edu/
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
-
Re: [SM-Sorcery] wget .so dependencies (possibly global problem)
, (continued)
- Re: [SM-Sorcery] wget .so dependencies (possibly global problem), Ondra Tomecka, 02/05/2004
- Re: [SM-Sorcery] wget .so dependencies (possibly global problem), Casey Harkins, 02/05/2004
- Re: [SM-Sorcery] wget .so dependencies (possibly global problem), Eric Sandall, 02/05/2004
- Re: [SM-Sorcery] wget .so dependencies (possibly global problem), Eric Schabell, 02/05/2004
- Re: [SM-Sorcery] wget .so dependencies (possibly global problem), Eric Sandall, 02/05/2004
- Re: [SM-Sorcery] wget .so dependencies (possibly global problem), Eric Sandall, 02/04/2004
- Re: [SM-Sorcery] wget .so dependencies (possibly global problem), Ondra Tomecka, 02/04/2004
-
Re: [SM-Sorcery] wget .so dependencies (possibly global problem),
Paul, 02/04/2004
-
Re: [SM-Sorcery] wget .so dependencies (possibly global problem),
Eric Sandall, 02/04/2004
-
Re: [SM-Sorcery] wget .so dependencies (possibly global problem),
Eric Schabell, 02/05/2004
-
Re: [SM-Sorcery] wget .so dependencies (possibly global problem),
Eric Sandall, 02/05/2004
- Re: [SM-Sorcery] wget .so dependencies (possibly global problem), Hamish Greig, 02/05/2004
-
Re: [SM-Sorcery] wget .so dependencies (possibly global problem),
Eric Sandall, 02/05/2004
-
Re: [SM-Sorcery] wget .so dependencies (possibly global problem),
Eric Schabell, 02/05/2004
-
Re: [SM-Sorcery] wget .so dependencies (possibly global problem),
Eric Sandall, 02/04/2004
- Re: [SM-Sorcery] wget .so dependencies (possibly global problem), Hamish Greig, 02/04/2004
-
RE: [SM-Sorcery] wget .so dependencies (possibly global problem),
Eric Sandall, 02/04/2004
-
RE: [SM-Sorcery] wget .so dependencies (possibly global problem),
Jens Laas, 02/05/2004
- RE: [SM-Sorcery] wget .so dependencies (possibly global problem), Ondra Tomecka, 02/05/2004
-
RE: [SM-Sorcery] wget .so dependencies (possibly global problem),
Jens Laas, 02/05/2004
Archive powered by MHonArc 2.6.24.