Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.2599.1796091104578540843 for ; Mon, 30 Nov 2026 18:11:44 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=MS3aOMSg; spf=pass (domain: konsulko.com, ip: 209.85.210.182, mailfrom: tim.orling@konsulko.com) Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-8b612fd74e1so3895981b3a.0 for ; Mon, 30 Nov 2026 18:11:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1796091104; x=1796695904; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=2YqdanZ2hs0GgZk2dngADeRk3/W7XQglhjVZPlqTzB8=; b=MS3aOMSg6w2gr6jXxRW358madGQwfwE6xePjyBV6AGslM1yKkaNovJZSszoageuBIy +a5ZkKHkLWHZYCOviGKyQ0WzN8+gOs1QuL8PMiO3IL7kmNNz45M3zA5QmvVNlVZDyaCN C25S8sQsNRofHDmc/L1x/GIUaoGAQVc60nyoQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796091104; x=1796695904; h=content-transfer-encoding:mime-version:references:in-reply-to :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=2YqdanZ2hs0GgZk2dngADeRk3/W7XQglhjVZPlqTzB8=; b=0QmYoqsDSiwgpyBWyLboFy78ryPk0KHur0pUMREUmRk+eiExCRwwsW0m9V8UgqS3Ua 0EsvxseaHtrYuzPrMr875lMcO7bKXZXUMxWxiEyaukJysQzJwkb5tDSZssZtTmRgAdc/ gPGsW52Ue6H6R5E+z24gS5QgGy230K3rg4yjAuJskQKNazHtMq/E+5sNeKzicOgeXjqQ 5BML601D3+iv4AHNf7CbftdWOEXmle7Ce3zhCAQ5ckvgknWnd8oSk8O2LgQ+LvOV9m+L UUmf4SUjNbhq/6hBHLBqtOyDkGI0eeClHpHtfmTUIdOqDV8aGmXyB3jt7/o7I1rHeDPt EnDQ== X-Gm-Message-State: APuU4Z+4Icgiv61s7fs2P0p17RBtPeCJiNonnp7xq+2rogCYtEAWRCeu a4cA15K/DuISEzAl3dnItlCr/N3+OrdVc5LgSHr18y/MxnSCd5WhK0DEYnjLS2W3ArSkXI75VcE Yg4lr X-Gm-Gg: AZFdTZeN3Dy9S+DE3wyr5gZdmK6nLEG17EApqh1Z/uVdMKB3twWqSOy/8BnntHtvrYv wyFsi4JKyln1k4iqkd3/T1DYehLNs21YjyJjgKbs7d481q3A5chHS1RoxZSbsveim6DYL5dClNT DYbR1oiSlYCyAxvN/BSdm9ybfe6ycz22Pf3qFFySU3R3KJqvoTP+uBxKYyNgkijrCZzlbuKMlvp lsMt+K339HNFCAft+2I30h4ZNalnULGARH7o9DZNxDyOwyHF2VjTjU2L6SVCuEUU9I3s/qkq4OI yMXBKqk3WPdlIDK1l3ujk29yr4W8+r6++GwKt3scNGRxDcmeTuTrjO+EzqRX2vw+D6PzSdjdurU 1OxfQUcLZAXYMEtWdfLDxuni0aIFyZ1Q3PPlTGj/D3VKV7z45MtzRD72vBS3JBpDn2ioGAP48Qt qVx7A4w7LaL0S79Yp1D2jaVNV+2DXI3UKVB26MAvwHftitZLcmlO9WEClegrylns7I+ulFHW8o6 dB5YJAjQ5jOza/Ox83Al3lW06PUDi+bCaJnuR0rIlXikk8SdV3vB1/021oX56JsyFgOdiVFAlQ8 M+jKcvxSZtk+njPEjf+SfS1RKML+vZGeNhKY/+Ro7h5rDTiES10ZMCwk6DrX7s+P/woy9/bqf5g OMhFjEZDctM2BQ/n2L/ItRZgBGzpPwMWWAXH9a/599QqNyIfU X-Received: by 2002:a05:6372:a713:b0:3e2:2b76:bf20 with SMTP id adf61e73a8af0-4014d4579cdmr32024073637.51.1796091103851; Mon, 30 Nov 2026 18:11:43 -0800 (PST) Return-Path: Received: from thetis.home.local ([2606:c800:6024:2000:862d:8947:aa7d:fb9c]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-cdea2aed207sm12556789a12.11.2026.11.30.18.11.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 18:11:43 -0800 (PST) From: Tim Orling To: openembedded-devel@lists.openembedded.org Cc: Tim Orling Subject: [meta-perl][PATCH 1/5] libcurses-perl: link Curses.so against ncurses Date: Mon, 30 Nov 2026 18:11:12 -0800 Message-ID: <20261201021139.2312947-2-tim.orling@konsulko.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261201021139.2312947-1-tim.orling@konsulko.com> References: <20261201021139.2312947-1-tim.orling@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 01 Dec 2026 02:11:45 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133647 Content-Type: text/plain; charset="utf-8" LIBS=-L${STAGING_LIBDIR} in EXTRA_CPANFLAGS replaces the libraries that Makefile.PL picks, so Curses.so is not linked against ncurses and fails to load on target: Curses.so: undefined symbol: curscr Makefile.PL also picks the library by looking at the host's /usr/include. Set CURSES_LIBTYPE, CURSES_CFLAGS and CURSES_LDFLAGS instead, which Makefile.PL reads, using ncursesw unless ENABLE_WIDEC is disabled, as the musl CFLAGS already do. AI-Generated: Uses Claude Code (Claude Opus 5.5) Signed-off-by: Tim Orling --- meta-perl/recipes-perl/libcurses/libcurses-perl_1.46.bb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/meta-perl/recipes-perl/libcurses/libcurses-perl_1.46.bb b/meta-perl/recipes-perl/libcurses/libcurses-perl_1.46.bb index e2cc901d5e..315e1a6e49 100644 --- a/meta-perl/recipes-perl/libcurses/libcurses-perl_1.46.bb +++ b/meta-perl/recipes-perl/libcurses/libcurses-perl_1.46.bb @@ -17,7 +17,14 @@ SRC_URI[sha256sum] = "9631d6e3e2859c85913d8b8724f61fbebb9e932e9e50aa0493a4e02766 S = "${UNPACKDIR}/Curses-${PV}" -EXTRA_CPANFLAGS = "INC=-I${STAGING_INCDIR} LIBS=-L${STAGING_LIBDIR} TEST_SYMS_OPTS=-v" +EXTRA_CPANFLAGS = "TEST_SYMS_OPTS=-v" + +# Tell Makefile.PL which library to link, instead of letting it look in +# the host /usr/include +CURSES_LIBTYPE = "${@'ncursesw' if bb.utils.to_boolean((d.getVar('ENABLE_WIDEC') or 'True')) else 'ncurses'}" +export CURSES_LIBTYPE +export CURSES_CFLAGS = "-I${STAGING_INCDIR}" +export CURSES_LDFLAGS = "-L${STAGING_LIBDIR} -l${CURSES_LIBTYPE}" # enable NCURSES_WIDECHAR=1 only if ENABLE_WIDEC has not been explicitly disabled (e.g. by the distro config). # When compiling against the ncurses library, NCURSES_WIDECHAR needs to explicitly set to 0 in this case. -- 2.47.3