mailing list of musl libc
 help / color / mirror / code / Atom feed
From: u-igbb@aetey.se
To: musl@lists.openwall.com
Subject: --library-path and friends (was: [musl] musl 1.1.0 released)
Date: Thu, 17 Apr 2014 10:15:48 +0200	[thread overview]
Message-ID: <20140417081547.GK18458@example.net> (raw)
In-Reply-To: <20140416165352.GH26358@brightrain.aerifal.cx>

On Wed, Apr 16, 2014 at 12:53:52PM -0400, Rich Felker wrote:
> I'm committing a patch based loosely on yours that accepts more forms
> (e.g. --preload=...) and one additional option (--list). Let me know
> if it fails to meet your needs and I can improve it.

Without having looked at the code yet:

1. This is quite certainly just fine.

My needs are very basic, as long as it accepts "--library-path <somepath>"
which fully overrides LD_LIBRARY_PATH (not resetting it of course) and
--preload with a corresponding semantics, then I am in business and happy.

 --list is welcome!

2. Not every feature is certainly for good :)

Frankly I do not see any need for the '=' syntax extention, it probably
costs some extra byte[s] but more importantly once introduced you will
have to keep the extra possibility. I do not think (didn't check for a
while though) that either glibc or uclibc accept the '=' form.
A difference between the acceptable syntax variations in different
libraries would quite certainly confuse some people. These options imho
are expected to be used mostly in scripts (I never type "--library-path"
on a command line :) so keeping the syntax as uniform as possible will
help reusability and make the usage of the feature less error prone.

But this "as narrowly defined interface as sufficient" is just a
suggestion. Of course a richer inteface (the '=') will not influence
my usage in any way.

3. Why I care about "reusability" between libraries:

A "homogenous" c-library base (as of versions and/or implementations)
for all applications is unthinkable here. We have no limitations
on which versions of which applications compiled with which options
and linked against which versions of which libraries (compiled with
which options and so on) can be run. Any of them or many
simultaneously on the same computer are run as needed, easily.

Musl fits there very well, among others due to its stable ABI, but
the whole picture can probably never become "musl-only" just because
we avoid placing arbitrary constraints. (If an application for some
reason does need uclibc or glibc or something else, it will be given the
opportunity.) To make all of this work depends among others on the
libraries themselves not placing arbitrary constraints - nicely, musl
does a great job!

Thanks Rich.

Rune



  reply	other threads:[~2014-04-17  8:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-16  8:41 musl 1.1.0 released Rich Felker
2014-04-16 10:47 ` u-igbb
2014-04-16 15:03   ` Rich Felker
2014-04-16 16:53   ` Rich Felker
2014-04-17  8:15     ` u-igbb [this message]
2014-04-18 20:46       ` --library-path and friends (was: [musl] musl 1.1.0 released) Rich Felker
2014-04-19 12:14         ` u-igbb

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=20140417081547.GK18458@example.net \
    --to=u-igbb@aetey.se \
    --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).