From patchwork Mon May 12 21:37:54 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Hurley X-Patchwork-Id: 62836 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 E54DFC3ABC3 for ; Mon, 12 May 2025 21:38:07 +0000 (UTC) Received: from mail-qv1-f53.google.com (mail-qv1-f53.google.com [209.85.219.53]) by mx.groups.io with SMTP id smtpd.web11.62172.1747085885871005666 for ; Mon, 12 May 2025 14:38:06 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@meraki.com header.s=google header.b=o/EKdQsH; spf=pass (domain: meraki.net, ip: 209.85.219.53, mailfrom: peter.hurley@meraki.net) Received: by mail-qv1-f53.google.com with SMTP id 6a1803df08f44-6f535b11824so48942026d6.2 for ; Mon, 12 May 2025 14:38:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meraki.com; s=google; t=1747085885; x=1747690685; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9ohFa160knlo+XOR6zsNqHCJCB2bh38bHBlviH7ad0Q=; b=o/EKdQsHiue1UXK5zlM1AqBouGc1pkD8uBJ8fCib7lilmhdBPzZvahlWDDdvla/ZGb /QNRoHv/PBIJG4XXg8cyO6BnQ/Kslk9+sBG2tt0yYeKb2NKu5MYXO+wH51UgR+Cu6Kki uzfs5ka+55u53QxANe9cOfDubaWhK0HWuPOYI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747085885; x=1747690685; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date: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ZGWA== X-Google-Smtp-Source: AGHT+IEupBxvr6xFNScl+rQK22aY0GqaKgum7TiJXQMDCYThu+w2jG4N5jKr3oDwGfg98yqFT+uOFQ== X-Received: by 2002:ad4:5fca:0:b0:6d8:a8e1:b57b with SMTP id 6a1803df08f44-6f6e4814d2dmr262102756d6.36.1747085884798; Mon, 12 May 2025 14:38:04 -0700 (PDT) Received: from sf117.meraki.com (199-116-75-201.public.monkeybrains.net. [199.116.75.201]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6f6e39e0716sm58194896d6.23.2025.05.12.14.38.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 May 2025 14:38:03 -0700 (PDT) From: peter@meraki.com To: Steve Sakoman , openembedded-core@lists.openembedded.org Cc: Alexander Kanavin , Alexander Kanavin , Luca Ceresoli , Richard Purdie , Peter Hurley Subject: [kirkstone][PATCH] perl: enable _GNU_SOURCE define via d_gnulibc Date: Mon, 12 May 2025 14:37:54 -0700 Message-ID: <20250512213754.14087-1-peter@meraki.com> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 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, 12 May 2025 21:38:07 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/216388 From: Alexander Kanavin This is needed to properly support memmem() and friends under musl as musl guards the declarations with _GNU_SOURCE define, and if the declarations are not present, gcc will issue warnings and generate assembly that assumes the functions return int (instead of e.g. void*), with catastrophic consequences at runtime. Signed-off-by: Alexander Kanavin Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie (cherry picked from commit 6422e62fbc5c65a2165a72c97c880cfa9a80e957) Signed-off-by: Peter Hurley --- meta/recipes-devtools/perl/perl_5.34.1.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-devtools/perl/perl_5.34.1.bb b/meta/recipes-devtools/perl/perl_5.34.1.bb index 42bcb8b1bc68..619152256110 100644 --- a/meta/recipes-devtools/perl/perl_5.34.1.bb +++ b/meta/recipes-devtools/perl/perl_5.34.1.bb @@ -61,6 +61,7 @@ do_configure:class-target() { -Dlibpth='${libdir} ${base_libdir}' \ -Dglibpth='${libdir} ${base_libdir}' \ -Alddlflags=' ${LDFLAGS}' \ + -Dd_gnulibc=define \ ${PACKAGECONFIG_CONFARGS} #perl.c uses an ARCHLIB_EXP define to generate compile-time code that