All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: buildroot@buildroot.org
Cc: James Hilliard <james.hilliard1@gmail.com>
Subject: Re: [Buildroot] Analysis of host-libxcrypt build failures
Date: Wed, 1 Jan 2025 21:22:39 +0100	[thread overview]
Message-ID: <20250101212239.6db59b40@windsurf> (raw)
In-Reply-To: <20241231171249.0bf50c4c@windsurf>

On Tue, 31 Dec 2024 17:12:49 +0100
Thomas Petazzoni <thomas.petazzoni@bootlin.com> wrote:

> The obvious thing to fix is to get the perl executable to have a proper
> RPATH of course.

I have sent a patch doing just this:

  https://patchwork.ozlabs.org/project/buildroot/patch/20250101202112.1845113-1-thomas.petazzoni@bootlin.com/

> However, this means in the scenario above that perl will be
> built/linked against the system libcrypt.so, and then after
> host-libxcrypt is built/installed, host/bin/perl will from this point
> on run with libcrypt.so in host/lib, which isn't really ideal. Should
> we make host-libxcrypt a mandatory dependency of host-perl? How do we
> detect this situation in other packages? Should check-host-rpath have
> instead a allow-list of libraries (libc, libm) for which we accept to
> use the system-provided ones, and for everything else (including
> libcrypt), we expect HOST_DIR/lib to provide them?
> 
> For the record, we have host-libxcrypt because host-systemd was failing
> to build on systems that have a recent glibc installed, but don't have
> libxcrypt installed system-wide.

I wanted to test building host-perl on a system with libxcrypt
installed, but I wasn't able to easily find a Docker container of a
distro that doesn't have libxcrypt installed by default.

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      reply	other threads:[~2025-01-01 20:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-31 16:12 [Buildroot] Analysis of host-libxcrypt build failures Thomas Petazzoni
2025-01-01 20:22 ` Thomas Petazzoni via buildroot [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=20250101212239.6db59b40@windsurf \
    --to=buildroot@buildroot.org \
    --cc=james.hilliard1@gmail.com \
    --cc=thomas.petazzoni@bootlin.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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.