mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: Weldon Goree <weldon@langurwallah.org>
Cc: musl@lists.openwall.com
Subject: Re: Packaging: Slackware
Date: Sat, 6 Sep 2014 12:10:04 -0400	[thread overview]
Message-ID: <20140906161004.GU23797@brightrain.aerifal.cx> (raw)
In-Reply-To: <53CD26F2.7010306@langurwallah.org>

On Mon, Jul 21, 2014 at 08:12:58PM +0530, Weldon Goree wrote:
> On 07/21/2014 07:45 PM, Rich Felker wrote:
> > 
> > Yes. I'm still not clear though on whether the intent is to provide an
> > environment for musl-[dynamic-]linked programs running on Slackware,
> > or more for a development environment using the musl-gcc wrapper. This
> > might affect the stability requirements. Of course if it's just a
> > development environment using the wrapper, there may not be a lot of
> > point in packaging that since you already need a compiler to use it,
> 
> The intent is to provide a build script that builds a musl environment
> that one could then use to build other build scripts in the repository
> (James B's description was good). I'm trying to get some anecdata on
> what the people who mentioned being interested in a musl build script
> want (cross toolchain vs. gcc wrapper with some environment setup vs.
> just the library itself).
> 
> The point of making a build script in the trivial case is that it
> integrates it (in a predictable way) with slackware's package
> management/file finding system ("where did I put the cross-x86 version's
> files again?", etc.).

Just ran across the slackbuild from a user asking questions about it,
and found one thing that really should be fixed: it's passing
--syslibdir=/usr/lib${LIBDIRSUFFIX} to the configure script. This will
result in dynamic-linked programs built against musl using your
slackbuild working only on slackware systems with the same slackbuild,
and not being portable to other systems. --syslibdir is where the
dynamic linker is found, and it needs to be an invariant for all
systems, and it should be "/lib". The only reason configure allows you
to change it at all is for doing local installations as a non-root
user, and in this case your dynamic-linked binaries won't be portable.

If you fix this, it would be nice for new versions of the package to
keep a symlink to the dynamic linker in the old location, so that old
binaries continue to work while new ones are built with the standard
dynamic linker location and portable to other systems.

Rich


      parent reply	other threads:[~2014-09-06 16:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-18  9:06 Weldon Goree
2014-07-18 19:53 ` Rich Felker
2014-07-19  2:54   ` Weldon Goree
2014-07-21  2:48     ` Rich Felker
2014-07-21 14:04       ` James B
2014-07-21 14:15         ` Rich Felker
2014-07-21 14:42           ` Weldon Goree
2014-07-21 14:50             ` Rich Felker
2014-09-06 16:10             ` Rich Felker [this message]

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=20140906161004.GU23797@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    --cc=weldon@langurwallah.org \
    /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).