From patchwork Wed Jan 25 04:03:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 18572 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 C340DC54E94 for ; Wed, 25 Jan 2023 04:04:13 +0000 (UTC) Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by mx.groups.io with SMTP id smtpd.web10.37692.1674619449963821060 for ; Tue, 24 Jan 2023 20:04:10 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kc6xqFUw; spf=pass (domain: gmail.com, ip: 209.85.216.47, mailfrom: raj.khem@gmail.com) Received: by mail-pj1-f47.google.com with SMTP id b10so17255849pjo.1 for ; Tue, 24 Jan 2023 20:04:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=cznSmPewr0FbPSLLCw25xN9+AwTyVBqApRGBcJBmWOM=; b=kc6xqFUwSO0472vTKUw1VkaIg7dFz7/89FOqcM6/M105dfXvC3B6h55b/hHaSn2vL+ zbN/+kXrfiy2rA+Rzphh8X5on00ounmvM6/IwwC1pTAgS+PVuEFGP1Ws0JYz0i23sYJz DNmrruyMATd1TFJ5kHPbfgwUQV2bJqPRywtK0zNc6+i5DL0Roo8mq+nP+805B7b8iFOo wV9gcPQslSMC+o+P6oU420S7gYg8IeeyitMsjrlNUArleDu0TBJ8MMhrEAZ2zeSr4xOo 3/VJ/1QTFL2M49hCUSq68U1DzfJGS4pUK5tZ/zYvIPhxpVkJqBfe5VG1PMhjY9y9F1dS c5/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cznSmPewr0FbPSLLCw25xN9+AwTyVBqApRGBcJBmWOM=; b=ZMEKcb3cR2fMZKEsCqn/8zpYx/ZsrtKm7eUnM/LTCTqyTb2B9WAjSXnjuVTV7hclo1 pmE4Bai0elAaIHsb654S2AGvlYJQ7PLlLHIGdTUM4doQssO0cwl1bcFAFC8DTRlDaZKw //aYmQGa4s7agJXjPrA+RkDczNF6VvsHSD0eK4Uj40Uk3Xh9L8XYoDsxJk8L/MqGnsCg RVLla5rq7hhl8AFtBhoMeZZoqdDvzdVl7z+81R5HfDg6aCAB2IKs/9UJ4xvhH38ZsR0Z 6g1sWmYhkJeLKdxAH6N2CaBIhXIdTkUItTnUfGk5WQ+j7JrrDjibJDOb2xDwxxLJmAWN QIIg== X-Gm-Message-State: AFqh2kq+gvOyNy5RWB5N5mOOOElKc8eliRN1aKjmqQf8gbzyaem/miAh n2afXU9zS2N03xOkPjZ1IEzOZPahmODRiw== X-Google-Smtp-Source: AMrXdXsM9te22G9+Ol0ZLI39mnS3WEGhkI2pXxQYtY+455F8nwgNvAMJIBjJhd2zNRuoz4G1JIXw5g== X-Received: by 2002:a17:903:2785:b0:194:b2ab:efd9 with SMTP id jw5-20020a170903278500b00194b2abefd9mr27910790plb.53.1674619448784; Tue, 24 Jan 2023 20:04:08 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9181:1cf0::aee3]) by smtp.gmail.com with ESMTPSA id y13-20020a170902ed4d00b001947222676csm2462714plb.249.2023.01.24.20.04.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Jan 2023 20:04:08 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH 1/3] systemd: Add another fix for using XSI strerror_r Date: Tue, 24 Jan 2023 20:03:56 -0800 Message-Id: <20230125040358.3573537-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.39.1 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 ; Wed, 25 Jan 2023 04:04:13 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/176338 This makes systemd continue to work on musl Signed-off-by: Khem Raj --- ...util-Make-STRERROR-portable-for-musl.patch | 42 +++++++++++++++++++ meta/recipes-core/systemd/systemd_252.4.bb | 1 + 2 files changed, 43 insertions(+) create mode 100644 meta/recipes-core/systemd/systemd/0001-errno-util-Make-STRERROR-portable-for-musl.patch diff --git a/meta/recipes-core/systemd/systemd/0001-errno-util-Make-STRERROR-portable-for-musl.patch b/meta/recipes-core/systemd/systemd/0001-errno-util-Make-STRERROR-portable-for-musl.patch new file mode 100644 index 0000000000..2fb8985ad1 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0001-errno-util-Make-STRERROR-portable-for-musl.patch @@ -0,0 +1,42 @@ +From f66b5c802ce0a3310f5580cfc1b02446f8087568 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 23 Jan 2023 23:39:46 -0800 +Subject: [PATCH] errno-util: Make STRERROR portable for musl + +Sadly, systemd has decided to use yet another GNU extention in a macro +lets make this such that we can use XSI compliant strerror_r() for +non-glibc hosts + +Upstream-Status: Inappropriate [musl specific] + +Signed-off-by: Khem Raj +--- + src/basic/errno-util.h | 12 ++++++++++-- + 1 file changed, 10 insertions(+), 2 deletions(-) + +diff --git a/src/basic/errno-util.h b/src/basic/errno-util.h +index 091f99c590..eb5c1f9961 100644 +--- a/src/basic/errno-util.h ++++ b/src/basic/errno-util.h +@@ -14,8 +14,16 @@ + * https://stackoverflow.com/questions/34880638/compound-literal-lifetime-and-if-blocks + * + * Note that we use the GNU variant of strerror_r() here. */ +-#define STRERROR(errnum) strerror_r(abs(errnum), (char[ERRNO_BUF_LEN]){}, ERRNO_BUF_LEN) +- ++static inline const char * STRERROR(int errnum); ++ ++static inline const char * STRERROR(int errnum) { ++#ifdef __GLIBC__ ++ return strerror_r(abs(errnum), (char[ERRNO_BUF_LEN]){}, ERRNO_BUF_LEN); ++#else ++ static __thread char buf[ERRNO_BUF_LEN]; ++ return strerror_r(abs(errnum), buf, ERRNO_BUF_LEN) ? "unknown error" : buf; ++#endif ++} + /* A helper to print an error message or message for functions that return 0 on EOF. + * Note that we can't use ({ … }) to define a temporary variable, so errnum is + * evaluated twice. */ +-- +2.39.1 + diff --git a/meta/recipes-core/systemd/systemd_252.4.bb b/meta/recipes-core/systemd/systemd_252.4.bb index d291a2a9a1..e6c873f53b 100644 --- a/meta/recipes-core/systemd/systemd_252.4.bb +++ b/meta/recipes-core/systemd/systemd_252.4.bb @@ -50,6 +50,7 @@ SRC_URI_MUSL = "\ file://0002-Add-sys-stat.h-for-S_IFDIR.patch \ file://0001-Adjust-for-musl-headers.patch \ file://0001-test-bus-error-strerror-is-assumed-to-be-GNU-specifi.patch \ + file://0001-errno-util-Make-STRERROR-portable-for-musl.patch \ " PAM_PLUGINS = " \ From patchwork Wed Jan 25 04:03:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 18571 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 C48DEC54EAA for ; Wed, 25 Jan 2023 04:04:13 +0000 (UTC) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mx.groups.io with SMTP id smtpd.web11.37732.1674619450334472505 for ; Tue, 24 Jan 2023 20:04:10 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WWaASjDB; spf=pass (domain: gmail.com, ip: 209.85.214.175, mailfrom: raj.khem@gmail.com) Received: by mail-pl1-f175.google.com with SMTP id g23so16721704plq.12 for ; Tue, 24 Jan 2023 20:04:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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; bh=k5z+1FN2cRGuBI3htZHWRD1E1UAm7K7REwNyHmn7Hw4=; b=WWaASjDB20Fr7/qWURoNdirt//SzsvG9C9m+9XzA94RLJutQSionRxQidYzR0G+Qlr vDU8EbIYPfJ0yFKyV+axu+5YhotAUkCT4T5BCsuv54Oc1KeVmup+wr159eUNRwKzjSsF yRyKXhINS0zNLUsIzLYTw53MBnhqUhmHcHVGvoQCWFo8QcxSjloegIK59E2qwlMRNp9f 0Ks8jEbftdTptgLy7iakUtiWLO4J1K7IZrkZL1lcihdTyBbxuXEQoMtMQSLMFlorm8Vb OLotfHxr4Q932d7PQG6ruELA5Aj/aJYgaUizp/2ZAFnzNDeHY+Ru3dEdnxS0Ua8eDjlN Dzxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=k5z+1FN2cRGuBI3htZHWRD1E1UAm7K7REwNyHmn7Hw4=; b=vvzFKJQx7tqtkBJRCxUjQKWKgq4qeooVBIac78SRiNReOClNuAl8lV+G+AWIQFGQrC g2bCNLXsNsw3GXURD4rtIQW0YRzgfjPU3M9W9THfPQCxUVhmoOiFyq8opJxtGzXPbhO7 qPPtFnV3ptr3IoLCDsFol5viLvlxSOl29Akfrpmampn8Sts1APJYn63c925qLUuWLoEB pD1CJ2NQDSRDOqiZjIG13gcSORbDtjnk7NM3OZuqb9ne+mvIVwJYk4NFgGVHfKe/JnwY Hu/7bQ2hGrjyqHyT927RvEjTcBYbOtKUQSBcZ6LetZYYUiALW58r9X5WSQ/XgJkbFrRV sYpA== X-Gm-Message-State: AFqh2kpFV1RdiDXwB+BoyILg0Z+EHbuGg4WNFwgfwnxOWCjGF1j6J8gA 1eOApNYlLNOAEOwvnOuZyH1BbIagHZkURw== X-Google-Smtp-Source: AMrXdXvbNTrCOX51MAUGCK4AUwUdp0jj3N3/G/tBSj6P+mP+VtdGJrkqcSxukOJjLN7mlAhdxrseKQ== X-Received: by 2002:a17:902:c401:b0:194:dc73:5cf8 with SMTP id k1-20020a170902c40100b00194dc735cf8mr29552945plk.39.1674619449497; Tue, 24 Jan 2023 20:04:09 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9181:1cf0::aee3]) by smtp.gmail.com with ESMTPSA id y13-20020a170902ed4d00b001947222676csm2462714plb.249.2023.01.24.20.04.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Jan 2023 20:04:09 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH 2/3] texinfo: Add missing rdep on needed perl-modules Date: Tue, 24 Jan 2023 20:03:57 -0800 Message-Id: <20230125040358.3573537-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230125040358.3573537-1-raj.khem@gmail.com> References: <20230125040358.3573537-1-raj.khem@gmail.com> 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 ; Wed, 25 Jan 2023 04:04:13 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/176339 Fixes Can't locate Encode.pm in @INC (you may need to install the Encode module) (@INC contains: /usr/lib/perl5/site_perl/5.36.0/x86_64-linux /usr/lib/perl5/site_perl/5.36.0 /usr/lib/perl5/vendor_perl/5.36.0/x86_64-linux /usr/lib/perl5/vendor_perl/5.36.0 /usr/lib/perl5/5.36.0/x86_64-linux /usr/lib/perl5/5.36.0) at /usr/bin/makeinfo line 29. The slew of indirect dependencies Signed-off-by: Khem Raj --- meta/recipes-extended/texinfo/texinfo_7.0.1.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/recipes-extended/texinfo/texinfo_7.0.1.bb b/meta/recipes-extended/texinfo/texinfo_7.0.1.bb index f0f9211594..4c8608b745 100644 --- a/meta/recipes-extended/texinfo/texinfo_7.0.1.bb +++ b/meta/recipes-extended/texinfo/texinfo_7.0.1.bb @@ -76,7 +76,9 @@ FILES:info-doc = "${infodir}/info.info* ${infodir}/dir ${infodir}/info-*.info* \ ${mandir}/man1/infokey.1* ${mandir}/man1/install-info.1*" FILES:${PN} = "${bindir}/makeinfo ${bindir}/texi* ${bindir}/pdftexi2dvi ${bindir}/pod2texi ${datadir}/texinfo" -RDEPENDS:${PN} = "perl" +RDEPENDS:${PN} = "perl perl-module-encode perl-module-encode-encoding perl-module-locale perl-module-integer \ + perl-module-if perl-module-unicode-normalize perl-module-base perl-module-feature \ + perl-module-perlio" FILES:${PN}-doc = "${infodir}/texi* \ ${datadir}/${tex_texinfo} \ ${mandir}/man1 ${mandir}/man5" From patchwork Wed Jan 25 04:03:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 18573 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 C594EC27C76 for ; Wed, 25 Jan 2023 04:04:13 +0000 (UTC) Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by mx.groups.io with SMTP id smtpd.web11.37733.1674619451187518870 for ; Tue, 24 Jan 2023 20:04:11 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=I61X78op; spf=pass (domain: gmail.com, ip: 209.85.216.46, mailfrom: raj.khem@gmail.com) Received: by mail-pj1-f46.google.com with SMTP id x2-20020a17090a46c200b002295ca9855aso724876pjg.2 for ; Tue, 24 Jan 2023 20:04:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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; bh=CqFRlMRG9uYSWkj67OCFlloDfYyOvyHJYJguUm4bkS4=; b=I61X78op90ir5BXYoDF6cCv8knQxCuNne7eexCzXKs6B3PPMjZKTGzDVbA1nKIOnWx RPcCkhYEpUbveTIX4PD+aFYP8TPax8UyMyAmDgoTPHuFCMOyxB821ChtTbus4/vjKg4/ dknHTV0eZyJJIu2V+CkRq9UwNqtHS5HO+aAudW8LcrevjouaTbEHQOAUasuVH/x8Z4lq xkaMHwtgwTgFQxdRAje7vaK0gNjOlVsclLTGgOsVt1wdMQQjzA/gH5OW5Fou8MogXIL5 TvvRqgH3QNlRjPHSqkYcpKrJ3mjLy+eWzIM3wKDw9jFOEO9vLOURWWwSU3AHPgB57eP7 Vp4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CqFRlMRG9uYSWkj67OCFlloDfYyOvyHJYJguUm4bkS4=; b=iAwtkyHzE3/XIy7sj1LqTSrd5Q5h1GXwylP607iXIoVFLl1huKiuOu2qU5CPJaCIeJ NSze53VXGWG5hQuT5Bfq8Epn2Ox9g4PxTlui1SjAXJfmjFsUCpo6OR2Acj9gu5HTjihz jszasezUvEfwjOyB4mdCtdQ2lEgiUNVsLCMPiYob23lphofaD065pYb4rhqWVCHOM5ny gO7wd3vkepZik37hkAXUeYkQ5ob92BhL4FjjAK9UkK8lnDnI78Yyh+ORxul+GwXvSHDi cvqDYPIk6cMNT0LD35MwMCHoqnKZSf4FoDO/Uu1XrsfzgYgSckrWVJiSXjLL9Ae1bxHN 6TcQ== X-Gm-Message-State: AFqh2kqjEe81+rN+uWJYNYX+QldpTentEvgghPWC86j6/MhherVpUQEH KXt21mH00kG7oxFhS8SLoHKN0i84VjvDSA== X-Google-Smtp-Source: AMrXdXviCkgr46cbV1vjoeL21gtj4csnUOHWTjLZMEW1USxn7+FjhC309B2ggcp9NpH3PQtOspCCpw== X-Received: by 2002:a17:902:8498:b0:194:93ce:13eb with SMTP id c24-20020a170902849800b0019493ce13ebmr29804058plo.32.1674619450309; Tue, 24 Jan 2023 20:04:10 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9181:1cf0::aee3]) by smtp.gmail.com with ESMTPSA id y13-20020a170902ed4d00b001947222676csm2462714plb.249.2023.01.24.20.04.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Jan 2023 20:04:10 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH 3/3] elfutils: Remove funcretval test from run-native-test.sh for now Date: Tue, 24 Jan 2023 20:03:58 -0800 Message-Id: <20230125040358.3573537-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230125040358.3573537-1-raj.khem@gmail.com> References: <20230125040358.3573537-1-raj.khem@gmail.com> 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 ; Wed, 25 Jan 2023 04:04:13 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/176340 Signed-off-by: Khem Raj --- meta/recipes-devtools/elfutils/elfutils_0.188.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-devtools/elfutils/elfutils_0.188.bb b/meta/recipes-devtools/elfutils/elfutils_0.188.bb index 65cae868c7..182229becf 100644 --- a/meta/recipes-devtools/elfutils/elfutils_0.188.bb +++ b/meta/recipes-devtools/elfutils/elfutils_0.188.bb @@ -98,6 +98,8 @@ do_install_ptest() { cp -r ${B}/debuginfod ${D}${PTEST_PATH} sed -i '/^Makefile:/c Makefile:' ${D}${PTEST_PATH}/tests/Makefile find ${D}${PTEST_PATH} -type f -name *.[hoc] | xargs -i rm {} + # TODO: remove below filter after https://sourceware.org/bugzilla/show_bug.cgi?id=30047 is fixed + sed -i -e '/funcretval/d' ${D}${PTEST_PATH}/tests/run-native-test.sh fi }