mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: musl vs. Debian policy
Date: Fri, 8 Mar 2013 20:23:54 -0500	[thread overview]
Message-ID: <20130309012354.GA20323@brightrain.aerifal.cx> (raw)
In-Reply-To: <20130307200354.f489215c.idunham@lavabit.com>

On Thu, Mar 07, 2013 at 08:03:54PM -0800, Isaac Dunham wrote:
> On Thu, 7 Mar 2013 20:10:10 -0500
> Rich Felker <dalias@aerifal.cx> wrote:
> 
> > 
> > The problem is that you don't understand that the reasons DON'T APPLY
> > to musl. libc.so is purely a filename for the "ld" command to find. It
> > has nothing to do with runtime or versioning. The only musl library
> > file that will be searched when loading applications is
> > /lib/ld-musl-$(ARCH).so.1, which DOES have a version number. The
> > version number is encoded in the PT_INTERP rather than a DT_NEEDED
> > header.
> 
> I understand that /lib/ld-musl-$(ARCH).so.1 is the only filename that a dynamically-linked binary sees. 
> However, if ld-musl-$(ARCH).so.1 is a symlink to libc.so, then anyone preparing a binary package must include libc.so in that package. 
> Incrementing the soversion (.so.1 -> .so.2) would not allow parallel installs. To illustrate, here's the layout I'm expecting with multiarch based on the current build system.
> musl1:
> /usr/lib/i486-linux-musl/libc.so
> /lib/ld-musl-i386.so.1 => /usr/lib/i486-linux-musl/libc.so
> 
> musl2 (if ABI breaks):
> /usr/lib/i486-linux-musl/libc.so
> /lib/ld-musl-i386.so.2 => /usr/lib/i486-linux-musl/libc.so

This is mostly correct. I agree that for this usage the symlink should
go in the opposite direction. Perhaps that's a good enough argument
that the build system should install it to go in the opposite
direction.

However note that if "musl-1" and "musl-2" were really incompatible
enough to need a different version number, sets of libraries linked
against them would probably be likewise different, and it would
probably not work to use the same lib directory for both... That's the
whole reason we _don't_ want to be changing things.

Rich


  reply	other threads:[~2013-03-09  1:23 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-06 23:29 Isaac Dunham
2013-03-07 13:04 ` Rich Felker
2013-03-07 18:17   ` Christian Neukirchen
2013-03-07 18:45     ` Kurt H Maier
2013-03-07 18:49       ` Daniel Cegiełka
2013-03-08  0:41     ` Rich Felker
2013-03-08 15:13       ` Christian Neukirchen
2013-03-09  1:27         ` Rich Felker
2013-03-09 20:08           ` Christian Neukirchen
2013-03-10  3:29             ` Rich Felker
2013-03-10  3:39               ` Rich Felker
2013-03-08  1:03   ` Isaac Dunham
2013-03-08  1:10     ` Rich Felker
2013-03-08  4:03       ` Isaac Dunham
2013-03-09  1:23         ` Rich Felker [this message]
2013-03-07 18:56 ` Justin Cormack
2013-03-08  0:04   ` Isaac Dunham
2013-03-07 22:30 ` Rob Landley
2013-03-08  0:22   ` Isaac Dunham
2013-03-08  1:09     ` Kurt H Maier

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130309012354.GA20323@brightrain.aerifal.cx \
    --to=dalias@aerifal.cx \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).