From patchwork Mon Sep 18 12:15:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stefan Tauner X-Patchwork-Id: 30634 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83BBDCD37B0 for ; Mon, 18 Sep 2023 12:15:24 +0000 (UTC) Received: from out07.mymailwall.com (out07.mymailwall.com [91.212.136.3]) by mx.groups.io with SMTP id smtpd.web11.49654.1695039318936783643 for ; Mon, 18 Sep 2023 05:15:20 -0700 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: artech.at, ip: 91.212.136.3, mailfrom: stefan.tauner@artech.at) X-MyMailWallStatus: Email scanned(2281534560) Received: from mail.artech.at (EHLO mail.artech.at) [91.112.220.99] by relay.mymailwall.com with ESMTP TLS id 26521 2281534560; Mon, 18 Sep 2023 14:15:16 +0200 Received: from tauner-t14s.local (192.168.0.251) by SRV09.ARTech.local (192.168.0.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Mon, 18 Sep 2023 14:15:15 +0200 From: Stefan Tauner To: Subject: [PATCH] gdb: fix RDEPENDS for PACKAGECONFIG[tui] Date: Mon, 18 Sep 2023 14:15:15 +0200 Message-ID: <20230918121515.623164-1-stefan.tauner@artech.at> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Originating-IP: [192.168.0.251] X-ClientProxiedBy: SRV09.ARTech.local (192.168.0.89) To SRV09.ARTech.local (192.168.0.89) List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 18 Sep 2023 12:15:24 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/187828 TUI mode needs terminfo at runtime, which is required to be explicitly stated in the respective PACKAGECONFIG variable. Without this change /etc/terminfo/ might be missing, which leads to a runtime error when trying to use tui, e.g.: (gdb) tui enable Cannot enable the TUI: error opening terminal [TERM=xterm-256color] Signed-off-by: Stefan Tauner --- meta/recipes-devtools/gdb/gdb-common.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) I ran into this when running a very minimal Kirkstone image. I presume this is still an issue but someone should definitely look into it since I am quite new to bitbake/Yocto and have no means to test it with a current version. -- Kind regards, Stefan Tauner FN 181686 k. HG Wien, UID-Nr. ATU 47056901, zertifiziert nach ISO 9001:2015 (Nr. AT-04036/0), ISO/TS 22163:2017 (IR-00009/0) und ISO 27001:2013 (Nr. I-00619/0) Der Inhalt dieser E-Mail ist vertraulich und ausschließlich für den bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form der Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des Inhaltes dieser E-Mail unzulässig ist. Wir bitten Sie, sich in diesem Fall mit dem Absender der E-Mail in Verbindung zu setzen und die E-Mail zu vernichten. Für Übermittlungsfehler oder sonstige Irrtümer bei der Übermittlung besteht keine Haftung. This e-mail is intended solely for the person to whom it is addressed and may contain confidential or legally privileged information. Access to this e-mail by anyone else is unauthorized. If an addressing or transmission error has misdirected this e-mail, please notify the author by replying to this e-mail and destroy this e-mail and any attachments. E-mail may be susceptible to data corruption, interception, unauthorized amendment, viruses and delays or the consequences thereof. If you are not the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. diff --git a/meta/recipes-devtools/gdb/gdb-common.inc b/meta/recipes-devtools/gdb/gdb-common.inc index 925b0c2f80..0f392357fe 100644 --- a/meta/recipes-devtools/gdb/gdb-common.inc +++ b/meta/recipes-devtools/gdb/gdb-common.inc @@ -35,8 +35,7 @@ PACKAGECONFIG ??= "readline ${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,readline" PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python3,python3 python3-codecs" PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace" -# ncurses is already a hard DEPENDS, but would be added here if it weren't -PACKAGECONFIG[tui] = "--enable-tui,--disable-tui" +PACKAGECONFIG[tui] = "--enable-tui,--disable-tui,,ncurses-terminfo-base" PACKAGECONFIG[xz] = "--with-lzma --with-liblzma-prefix=${STAGING_DIR_HOST},--without-lzma,xz" PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils"