Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D1256606A31A for ; Tue, 1 Dec 2026 14:36:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=buildroot.org header.i=@buildroot.org header.a=rsa-sha256 header.s=default header.b=KUPZ0wlY; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=VimyTBt9 Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id A7A11608FC; Tue, 1 Dec 2026 14:36:41 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 82PGfWdiCRh8; Tue, 1 Dec 2026 14:36:40 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp3.osuosl.org B94C56083D Authentication-Results: smtp3.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796135800; b=V0HcP6tiht8wUlTiS2hUJkN0VGljtSbIRFYAvhoPdHn1tx9ztiXhnol02IHMJmgxRwAr Ilhd0OhFL5ydQjZlBNgWSETOZwQ7D85J6/PXPjtY4zPcvnGFiJ/NQQ/FuClo7xwvFhwza KhozLs+bToZTR14kQv+ES+M7+q6giXlX1bdksL6v5VIW4xPHwin+siwwZ3gufO+VN6Pgd SelyMw7qirPNcolB60uphWCHIkC8Gl7NeE7vp4+HxMEOKudhxnj6+Jv2xJ2xNofiO9plS QOuWSquWMmoOTlpKZ/Op7RhPNVZH8MWdnn6ruOzAQMg81aWEkeImEeDP/Pwe4PFIfJA== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796135800; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg: X-Received:Received:From:To:Cc:Date:Message-ID:X-Mailer:MIME-Version: Subject:X-BeenThere:X-Mailman-Version:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Content-Type:Content-Transfer-Encoding:Errors-To:Sender; bh=qWS9bgYkXminpAqGjzB+jjc4ITG3sIbtALxqrcQkJuM=; b=HlGQHPeAS3htO/58kI2u9AHeLhC/J5jjwNIuvxYdpSlWOmh7hT6nwqJmkHC0ImLhA+94 BWgJ6wWm7+q1g7Ebn90UzCu3R43AXtt/TQiJaceADAAE9E6FVsV8F4yCTXKMKtte3VxMf Dt7ht+tv1iY6gi4P1gjIIFBpOej9f+P2cPNtNeYdoQtOuZ57HsxENCABvwlayoaeuLX/r Un1QouDuLoCQlWXmMAiau360lA6wgxlt3j4Cj7A6zPzLQVHeQhT9W4nuvp2kDXvFGZ3F/ RzBNHgFNt5oSvqQxh6HAS/kiRSsiaiWuSPiusoRlqjkGrQwiZMmx9sxt6rb5x+IW4ng== ARC-Authentication-Results: i=1; smtp3.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=buildroot.org; s=default; t=1796135800; bh=qWS9bgYkXminpAqGjzB+jjc4ITG3sIbtALxqrcQkJuM=; h=From:To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=KUPZ0wlY4aTgIf4Rnh3TRMw0GXKD7XS9iN2ZTq7x7DebFcDJOw4lJLbqkC+WLIL3e bG7WKKkMRPYhk3WpFN6KGqzzwDlAqArnaL0Amvc1FmNx6GsFEZmwjCqz/IfL2J7QCy +VLPpJcED/9vRK4BVw80N0VyHUUoOnWMS9iXHSJyqt1jxcxq24nUq6Hf/zfxeQGskF KlcrkT+Rb0IEX0MVxfwQ4oqCPZzWan4AdYPyzadtRZesgTqtN7SLT1xlehsGcbmPa1 I9RJ5UZI4/sW4qT9/p3Gul4xiTtzOfwaJMH6CgeOr+IZXvTcGMcqAUmRbU2aMY6L0B XyvXgXpye1acA== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id B94C56083D; Tue, 1 Dec 2026 14:36:40 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists1.osuosl.org (Postfix) with ESMTP id A05E3373 for ; Tue, 1 Dec 2026 14:36:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 85DC9810B5 for ; Tue, 1 Dec 2026 14:36:39 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id sWJmUZW-wNrS for ; Tue, 1 Dec 2026 14:36:38 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org 0AD4A810AE Authentication-Results: smtp1.osuosl.org; arc=none smtp.remote-ip="2a00:1450:4864:20::129" Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::129; helo=mail-lf1-x129.google.com; envelope-from=roykollensvendsen@gmail.com; receiver= Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=VimyTBt9 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by smtp1.osuosl.org (Postfix) with ESMTPS id 0AD4A810AE for ; Tue, 1 Dec 2026 14:36:37 +0000 (UTC) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-5be3d5927ceso1357144e87.3 for ; Tue, 01 Dec 2026 06:36:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796135795; x=1796740595; darn=buildroot.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=OEA7+GPO1StZqD+r3qbDg8vm2faPoFmL6pssfkbzBdY=; b=VimyTBt9jpzxRBHCRKggoPnA1gSZbugd/nzrESt28wzrFWVA2S0ypCDBphTCtMwpQp aU9ipB2NqtI98r6tRSVICyTuyRSMICpHU8g9LLPauAlAZuh1gZSXA7ydwPiqB+882x8u SSqEyPgqNpd6yban0ft2GtyhUFkDb3fUVnZo1NjKtBz1i7zci1nB2aZS7Yi++RjxdPmw hfaruOAI+iSwXSvEh42qi7+ZACf6n3V76LEML8LD8zK1a9ll6bsr17tQuprS0RB0sWpW cd1uZiXGTvScjqemA0oJAecdBVjPcwaUwixa2gBjz1VyVo6nWeYBslZFP5SeBA1gdfZ0 T/Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796135795; x=1796740595; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=OEA7+GPO1StZqD+r3qbDg8vm2faPoFmL6pssfkbzBdY=; b=fUdXN1c4VlgRlKU6anOHI/kTSDmdLMeq8nACjtMvhmSFtR1raNwQo7bskulLw07LyR YQF3su2jLPBxoKgp77iY0B9W8snHsvHCex35refw9bB6i+/K3vVk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9wclo4UgCk9dQ+0ZMqmfSupIchuL99lAMiM qcsrg9o11eu88GXqJI1M3tGBKdjMgtOGwRyKmIVFy6Z2CxpTyUPWsGKIvFj5CcwAso/+S9 X-Received: by 2002:a05:6512:239c:b0:5be:5dfc:864f with SMTP id 2adb3069b0e04-5c1bc867c31mr10336417e87.50.1796135795228; Tue, 01 Dec 2026 06:36:35 -0800 (PST) Received: from precision7530-arch-roy.taild6993c.ts.net (12.79-161-109.customer.lyse.net. [79.161.109.12]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-3ae8050fdeasm97240151fa.15.2026.12.01.06.36.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 06:36:34 -0800 (PST) From: Roy Kollen Svendsen To: buildroot@buildroot.org Cc: Roy Kollen Svendsen Date: Tue, 1 Dec 2026 15:36:22 +0100 Message-ID: <20261201143624.589497-1-roykollensvendsen@gmail.com> X-Mailer: git-send-email 2.55.0 X-Archived-By: MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2] package/readline: link host shared library against ncurses X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Discussion and development of buildroot List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "buildroot" X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Host-readline builds its shared library without linking the curses/termcap library, leaving termcap symbols (UP, BC, PC) undefined. host-gdb pulls in host-readline, and buildroot runs its fakeroot finalization script with $(HOST_DIR)/lib in LD_LIBRARY_PATH; a readline-linked /bin/sh then loads this host libreadline.so and aborts on the undefined symbol: /bin/sh: symbol lookup error: libreadline.so.8: undefined symbol: UP Pass the same configure options to the host variant that the target already uses (commit baa81362ef): --with-curses --with-shared-termcap-library, so configure links the shared library against libncursesw. Reproduction (red) and verification (green), with a minimal config using an external Bootlin aarch64-glibc toolchain (so it builds in minutes): # config: BR2_aarch64=y BR2_cortex_a72=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_AARCH64_GLIBC=y BR2_INIT_NONE=y BR2_SYSTEM_BIN_SH_NONE=y make O=/tmp/br-red BR2_DEFCONFIG= defconfig make O=/tmp/br-red host-readline nm -D /tmp/br-red/host/lib/libreadline.so | grep -E ' U (UP|BC|PC)$' # red: UP, BC and PC are undefined # apply this patch, then: make O=/tmp/br-green BR2_DEFCONFIG= defconfig make O=/tmp/br-green host-readline nm -D /tmp/br-green/host/lib/libreadline.so | grep -E ' U (UP|BC|PC)$' # green: no undefined symbols; the library links libncursesw.so.6 Signed-off-by: Roy Kollen Svendsen --- Changes v1 -> v2: - rework to use configure options (--with-curses --with-shared-termcap-library) instead of mangling the make step with SHLIB_LIBS (suggested by Arnout Vandecappelle) --- package/readline/readline.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/readline/readline.mk b/package/readline/readline.mk index f69cbe45e2..363753ad55 100644 --- a/package/readline/readline.mk +++ b/package/readline/readline.mk @@ -9,6 +9,9 @@ READLINE_SITE = $(BR2_GNU_MIRROR)/readline READLINE_INSTALL_STAGING = YES READLINE_DEPENDENCIES = ncurses host-autoconf HOST_READLINE_DEPENDENCIES = host-ncurses host-autoconf +HOST_READLINE_CONF_OPTS = \ + --with-curses \ + --with-shared-termcap-library READLINE_CONF_ENV = bash_cv_func_sigsetjmp=yes \ bash_cv_wcwidth_broken=no READLINE_CONF_OPTS = \ -- 2.55.0 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot