* [Buildroot] [PATCH 1/1] package/readline: propagate CONF_OPTS to host build
@ 2026-07-19 3:16 Ronan Loftus
2026-08-24 20:56 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Ronan Loftus @ 2026-07-19 3:16 UTC (permalink / raw)
To: buildroot; +Cc: Ronan Loftus
--with-shared-termcap-library is only applied to the target readline
because CONF_OPTS is not inherited by the host variant. The resulting
host libreadline.so.8 has no DT_NEEDED on ncurses/tinfo, leaving
termcap symbols (UP, BC, tgetent, ...) unresolved.
With recent binutils (--no-copy-dt-needed-entries), any process
loading this libreadline via LD_LIBRARY_PATH fails at startup. This
breaks fakeroot-based rootfs generation when host-gdb (which pulls
host-readline) is selected:
/bin/sh: symbol lookup error: .../host/lib/libreadline.so.8:
undefined symbol: UP
Reproduced on Arch Linux (gcc 16.1.1, binutils 2.46.1).
Signed-off-by: Ronan Loftus <rlf42@posteo.net>
---
package/readline/readline.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/readline/readline.mk b/package/readline/readline.mk
index f69cbe45..8c49fab8 100644
--- a/package/readline/readline.mk
+++ b/package/readline/readline.mk
@@ -15,6 +15,7 @@ READLINE_CONF_OPTS = \
--disable-install-examples \
--with-curses \
--with-shared-termcap-library
+HOST_READLINE_CONF_OPTS = $(READLINE_CONF_OPTS)
READLINE_LICENSE = GPL-3.0+
READLINE_LICENSE_FILES = COPYING
READLINE_CPE_ID_VENDOR = gnu
--
2.55.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/readline: propagate CONF_OPTS to host build
2026-07-19 3:16 [Buildroot] [PATCH 1/1] package/readline: propagate CONF_OPTS to host build Ronan Loftus
@ 2026-08-24 20:56 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-08-24 20:56 UTC (permalink / raw)
To: Ronan Loftus; +Cc: buildroot
On Sun, Jul 19, 2026 at 03:16:04AM +0000, Ronan Loftus wrote:
> --with-shared-termcap-library is only applied to the target readline
> because CONF_OPTS is not inherited by the host variant. The resulting
> host libreadline.so.8 has no DT_NEEDED on ncurses/tinfo, leaving
> termcap symbols (UP, BC, tgetent, ...) unresolved.
>
> With recent binutils (--no-copy-dt-needed-entries), any process
> loading this libreadline via LD_LIBRARY_PATH fails at startup. This
> breaks fakeroot-based rootfs generation when host-gdb (which pulls
> host-readline) is selected:
>
> /bin/sh: symbol lookup error: .../host/lib/libreadline.so.8:
> undefined symbol: UP
>
> Reproduced on Arch Linux (gcc 16.1.1, binutils 2.46.1).
Could you provide some detailed reproduction instructions? I did a
build of host-gdb in an Arch Linux container, and the resulting gdb
binary runs just fine... apparently because it is itself directly
linked with libncurses.
> diff --git a/package/readline/readline.mk b/package/readline/readline.mk
> index f69cbe45..8c49fab8 100644
> --- a/package/readline/readline.mk
> +++ b/package/readline/readline.mk
> @@ -15,6 +15,7 @@ READLINE_CONF_OPTS = \
> --disable-install-examples \
> --with-curses \
> --with-shared-termcap-library
> +HOST_READLINE_CONF_OPTS = $(READLINE_CONF_OPTS)
We don't want to do that, we really want a separate
HOST_READLINE_CONF_OPTS, even if today it will carry the same value as
READLINE_CONF_OPTS. There is in general no reason for the host and
target variants of a package to share the same configuration options.
Best regards,
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-24 20:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-19 3:16 [Buildroot] [PATCH 1/1] package/readline: propagate CONF_OPTS to host build Ronan Loftus
2026-08-24 20:56 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox