From: Rob Browning <rlb@defaultvalue.org>
Cc: Marius Vollmer <marius.vollmer@uni-dortmund.de>,
guile-devel <guile-devel@gnu.org>, Greg Troxel <gdt@ir.bbn.com>
Subject: Re: The load path
Date: Sun, 07 Nov 2004 15:16:50 -0600 [thread overview]
Message-ID: <87hdo1e4vx.fsf@trouble.defaultvalue.org> (raw)
In-Reply-To: <418E6D90.5060705@ossau.uklinux.net> (Neil Jerram's message of "Sun, 07 Nov 2004 18:46:40 +0000")
Neil Jerram <neil@ossau.uklinux.net> writes:
> Agreed. I'd just note that versioning also has to cope with the case
> where an add-on package A also provides an interface that further
> packages {B, C, ...} may use, so there is also a requirement for
> handling multiple installed versions of A, and for {B, C, ...} to be
> able to get the version that they need.
>
> Unfortunately, I have no idea at this point how to solve such a
> problem!
One of the simplest ways I can think of to handle this (athough it's
not all that pretty) is for packages to just put something like a
"soname" in the module name. i.e. (use-modules (foo-1)). Then when
the API changes incompatibly, the author just changes the module name
to foo-2. This is already the best way to solve the dynamic linking
problem, given the currently available dynamic linking facilities like
libltdl. i.e. (dynamic-link "libfoo-2").
As far as use-modules is concerned, I can also imagine adding
something fancier like (use-modules (foo #:version 4)), which might
have more sophisticated semantics (like ld.so or something else).
There's a further complication if you want to try to handle problems
created when only some of the packages on a system have been upgraded
and there are multiple levels of dependencies,
A -> B -> D (-> means "depends on")
A -> C -> D
but the currently installed version of B depends on a different
version of D than the currently installed version of C. This is also
a problem in the shared library arena, and as far as I know the
primary solution right now is to just say "don't do that". A
distribution like Debian tries to make sure that the transition period
where such situations exists is a short as possible and only happens
in unstable (and maybe testing).
In any case, I suspect all of this will be the subject of some future
discussion.
--
Rob Browning
rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel
next prev parent reply other threads:[~2004-11-07 21:16 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-16 17:52 The load path Andy Wingo
2004-10-17 19:40 ` Rob Browning
2004-10-17 23:13 ` Greg Troxel
2004-11-05 15:05 ` Marius Vollmer
2004-11-05 15:25 ` Paul Jarc
2004-11-05 16:43 ` Rob Browning
2004-11-05 17:43 ` Paul Jarc
2004-11-05 18:59 ` Rob Browning
2004-11-05 19:22 ` Paul Jarc
2004-11-05 22:05 ` Rob Browning
2004-11-06 7:25 ` Paul Jarc
2004-11-06 16:19 ` Rob Browning
2004-11-06 22:58 ` Rob Browning
2004-11-05 16:15 ` Rob Browning
2004-11-05 17:31 ` Andreas Rottmann
2004-11-05 18:57 ` Greg Troxel
2004-11-05 19:07 ` Rob Browning
2004-11-05 19:19 ` Greg Troxel
2004-11-05 23:53 ` Neil Jerram
2004-11-06 4:54 ` Rob Browning
2004-11-06 14:38 ` Andreas Vögele
2004-11-06 17:49 ` Neil Jerram
2004-11-06 21:21 ` Rob Browning
2004-11-07 18:46 ` Neil Jerram
2004-11-07 21:16 ` Rob Browning [this message]
2004-11-09 15:22 ` Paul Jarc
2004-11-10 18:43 ` Andy Wingo
2004-11-11 13:23 ` Greg Troxel
2004-11-12 21:31 ` Neil Jerram
2004-11-13 0:22 ` Greg Troxel
2004-11-13 1:08 ` Rob Browning
2004-11-13 16:12 ` Greg Troxel
2004-11-14 11:02 ` Neil Jerram
2004-11-14 14:05 ` Greg Troxel
2004-11-18 19:44 ` Neil Jerram
2004-11-19 14:46 ` Greg Troxel
2004-11-14 10:48 ` Neil Jerram
2004-11-15 16:43 ` Andy Wingo
2004-11-18 19:54 ` Neil Jerram
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87hdo1e4vx.fsf@trouble.defaultvalue.org \
--to=rlb@defaultvalue.org \
--cc=gdt@ir.bbn.com \
--cc=guile-devel@gnu.org \
--cc=marius.vollmer@uni-dortmund.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).