From patchwork Sun Feb 21 17:45:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1442835 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=eF8oy/jl; dkim-atps=neutral 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 RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DkCTB0Gzkz9sBy for ; Mon, 22 Feb 2021 04:47:57 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 7412C6F4E0 for ; Sun, 21 Feb 2021 17:47:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ucrr0AJaYCYk for ; Sun, 21 Feb 2021 17:47:54 +0000 (UTC) Received: by smtp3.osuosl.org (Postfix, from userid 1001) id A79CA6F4B8; Sun, 21 Feb 2021 17:47:54 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 18FCB6ECA6; Sun, 21 Feb 2021 17:47:46 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id A5CF41BF2F4 for ; Sun, 21 Feb 2021 17:47:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9FBAA87093 for ; Sun, 21 Feb 2021 17:47:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dYJCLePgxG4f for ; Sun, 21 Feb 2021 17:47:44 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) by hemlock.osuosl.org (Postfix) with ESMTPS id A68A187092 for ; Sun, 21 Feb 2021 17:47:44 +0000 (UTC) Received: by mail-wr1-f53.google.com with SMTP id n4so16731411wrx.1 for ; Sun, 21 Feb 2021 09:47:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HHPo9HTG0bRfIvPm1bUVCj1z2gTeQIp/U5+R/+nGY/Q=; b=eF8oy/jlywMfHX1e6yYYXT+2ypEDj5aio+6Rc1KlUoN5bvQJCROgUzirk8T60eiDJe kHKUGA0bJVDztAaIVK4m7L3MAFkNwWI++qm5NIMeXxi4d/9HQyy8VxrKYlNMiD681qMC g5mV/8BHWi4f+ErbMO+fgM4JM8rODFE4kN3KP70/t0ty4ku0h8s7t3xJX/uqqvFX+PpT jRESkbVyokPibI+HQ+gUXvKrZH8QEOF8RzjLD2rf6zKCTXR+VpUbRay9HLuB0+URIyKQ lXYDmFu/Gx6JDsFDgP+jYOhE17L+mwtM/GSINHBelQw7XrY43Q3/rwKzbj1P6fFmdvg3 L+vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HHPo9HTG0bRfIvPm1bUVCj1z2gTeQIp/U5+R/+nGY/Q=; b=JTv1nmo4qxcMiyp4rEwalFFbPcbDAw556mGRVsewxVgJRIvW3A+EaBo2pfF8aypXzD sVIzahWXCc7t8YF6QQxZ0gDkJV+nGWGchDYZvAg8k9DqQCRX4dS+44cIGTZrHRuapuDY 6WhkYOS8UKSg3JWBarb3cWM1X0Q0yDFjSMsc3rqF8rS02PN7RPcZdJi4B1PmfBtNw6xE ybDO0eEIjixSjiLGt8NiteI5Qt1MBUdCFIaGMJDY8Nx/M8K1hNliEd1zU6I6ykmo5ssk pIo+iP1OYS+jiYJxW6tlLH/vERKWSNBgFbRvrYU+COqZV59TEz7HZMnLX9+/8nabuXdI SdsA== X-Gm-Message-State: AOAM530REAglY4ewWDGsE8jCaOPH5q6ad0+XQEzt8K8JPvXzEspvhiuz 9HzN+ZIRA469hnzwhjHhBYOwvu6SC9fCfQ== X-Google-Smtp-Source: ABdhPJxXjpAzGUVDnmYHpJrHGHL3XiXKgct9+ha73S/BMS0c2DkKrbbq6hdre49WDBqkOt4VyxsQyg== X-Received: by 2002:adf:b60e:: with SMTP id f14mr18343489wre.99.1613929662803; Sun, 21 Feb 2021 09:47:42 -0800 (PST) Received: from kali.home (2a01cb0881b76d00c2afd0dfa851d2b9.ipv6.abo.wanadoo.fr. [2a01:cb08:81b7:6d00:c2af:d0df:a851:d2b9]) by smtp.gmail.com with ESMTPSA id o13sm28031979wro.15.2021.02.21.09.47.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Feb 2021 09:47:42 -0800 (PST) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Sun, 21 Feb 2021 18:45:49 +0100 Message-Id: <20210221174549.3764415-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/perl: link with -lintl if needed X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Link with TARGET_NLS_LIBS if needed to avoid the following build failure with perl in version 5.32: /home/buildroot/autobuild/instance-3/output-1/host/bin/arm-linux-gcc -lm -Wl,-E -o perl perlmain.o libperl.a -lm -lcrypt -lpthread -ldl /home/buildroot/autobuild/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/9.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: libperl.a(locale.o): in function `S_emulate_setlocale': /home/buildroot/autobuild/instance-3/output-1/build/perl-5.32.1/locale.c:1182: undefined reference to `libintl_textdomain' An upstream issue has been opened in: https://github.com/Perl/perl5/issues/18467 Fixes: - http://autobuild.buildroot.org/results/9df8d8d28006845b4f927548f8856dfa8f79802b Signed-off-by: Fabrice Fontaine --- package/perl/perl.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/perl/perl.mk b/package/perl/perl.mk index ec1cfd4d0a..0ff288db0e 100644 --- a/package/perl/perl.mk +++ b/package/perl/perl.mk @@ -11,6 +11,7 @@ PERL_SITE = https://www.cpan.org/src/5.0 PERL_SOURCE = perl-$(PERL_VERSION).tar.xz PERL_LICENSE = Artistic or GPL-1.0+ PERL_LICENSE_FILES = Artistic Copying README +PERL_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) PERL_INSTALL_STAGING = YES PERL_CROSS_VERSION = 1.3.5 @@ -50,7 +51,7 @@ PERL_CONF_OPTS = \ --prefix=/usr \ -Dld="$(TARGET_CC)" \ -Dccflags="$(TARGET_CFLAGS)" \ - -Dldflags="$(TARGET_LDFLAGS) -lm" \ + -Dldflags="$(TARGET_LDFLAGS) -lm $(TARGET_NLS_LIBS)" \ -Dmydomain="" \ -Dmyhostname="noname" \ -Dmyuname="Buildroot $(BR2_VERSION_FULL)" \