git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Meson build leaks host 'sh' path to target build when cross-compiled

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 10, 2025, 19:54 UTC
Message-ID
<xmqqpljpa83y.fsf@gitster.g>
In-Reply-To
<20250210174335.6d6d2af2@gmx.net>
Peter Seiderer <ps.report@gmx.net> writes:
> Maybe all doing (autoconf) cross builds where happy with the defaults
> from the Makefile (SHELL_PATH = /bin/sh, PERL_PATH = /usr/bin/perl)
> on host and target (as the buildroot autoconf package since 2013) and
> only users doing native builds fiddled around with non-default values?
I somehow doubt it.

The problem I see is that there is no distinction between "this is the path for the shell on the target system" vs "this is the shell we run on the host while building the package" in the Makefile. Use of autoconf would not magically change it; the Makefile that includes the config.mak.autogen needs to be aware of the distinction.

Previous: Peter SeidererNext: Peter Seiderer
Message 8 of 9 in “Meson build leaks host 'sh' path to target build when cross-compiled”
  1. Peter SeidererFeb 9, 2025
  2. Patrick SteinhardtFeb 10, 2025
  3. Peter SeidererFeb 10, 2025
  4. Patrick SteinhardtFeb 18, 2025
  5. Eli SchwartzFeb 18, 2025
  6. Junio C HamanoFeb 10, 2025
  7. Peter SeidererFeb 10, 2025
  8. Junio C HamanoFeb 10, 2025
  9. Peter SeidererFeb 11, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.