From patchwork Wed Sep 28 22:13:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel McGregor X-Patchwork-Id: 13357 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 947C7C04A95 for ; Wed, 28 Sep 2022 22:13:31 +0000 (UTC) Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) by mx.groups.io with SMTP id smtpd.web10.3758.1664403209555046627 for ; Wed, 28 Sep 2022 15:13:29 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BkVnIjO/; spf=pass (domain: gmail.com, ip: 209.85.166.42, mailfrom: danismostlikely@gmail.com) Received: by mail-io1-f42.google.com with SMTP id d8so11263677iof.11 for ; Wed, 28 Sep 2022 15:13:29 -0700 (PDT) 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; bh=Z6pBU9pyHXpXSDL9whVCc4Hi5QdJ5YodwsjYtHAvgyQ=; b=BkVnIjO/42iW3QTugfZlijmAxqje56y0EZ9Lc58FJBW5NAAFP65HQKZml0y9D0Cu48 DxTN7s1+iAQhox844quYBZ6aN7+n0x6TH4gPSU+peqkbShaC8HcLlDmQHC1s/yZgLrt3 aUZrPzBco3y5xSzyu5wdqWT/iOrTf7m738PhYtBlg9nQUPZaIFjKVlzUSJM+6xciLl6+ rfWr2iNVAgfnpkcOhy84QxyFGQbr5RDs6HP8oxd63vl9E4kU2MPb19/6+7NCSdZs6luh 5ACyfxqq7UN2b0SAhEBoVsqIQ9ARvBhkm5W8OYF5FQw6+Zzo4ZFZKGKFzg+r5hn/S+v/ EB1w== 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; bh=Z6pBU9pyHXpXSDL9whVCc4Hi5QdJ5YodwsjYtHAvgyQ=; b=IP5QbnZtGEFOSp3OTgNz3hweqXX1mwZF9JPhwsxy/Qe/NbSkzpL1N/LbTe8x4iRUQA /3l1hqLSXJIYxhyb4kifk44tb46fKgg7uOjiTZV1RNSP6+VgJ6a0Yt+qBaTFV4U1dsbH 91YA9aWcyntVchQQ8jI/TRhllaivAiumdIqxz/nxfBloQbXE2EzLNodiukGJT/h0Lk7p n+ZbFS7PyBWDLen8Hj+QdiYQsZ0UMFx4csbriTXxovBMbWo4GL2NCNPg4KnxDFTXJ24J 4022+KOOg0nsgQ2T2v0f3URR17G0y5eXRUuDzBHKzC9QKScAdADoRQqd38FVRfeB2QvJ JXTA== X-Gm-Message-State: ACrzQf16ykajdkw0uE3dY5o2NijC//3++LcEPWlcViXHKrx06nqLeIVJ 2ytP9QBc8slomnDlcrg31+jfd/GNnOQ= X-Google-Smtp-Source: AMsMyM5q3URxY5aOuNeO8SCA+rb0qP63bfpbNiM9mZA4YwWDe/byR9AohA8tzowO756sUZtiCSMP/w== X-Received: by 2002:a05:6602:2e88:b0:6a1:6d80:cff5 with SMTP id m8-20020a0566022e8800b006a16d80cff5mr34683iow.168.1664403208712; Wed, 28 Sep 2022 15:13:28 -0700 (PDT) Received: from nebuchadnezzar.home.arpa ([204.83.204.143]) by smtp.gmail.com with ESMTPSA id g39-20020a02852a000000b0035b0af5783dsm2191931jai.32.2022.09.28.15.13.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Sep 2022 15:13:28 -0700 (PDT) From: Dan McGregor To: openembedded-core@lists.openembedded.org Cc: Daniel McGregor Subject: [PATCH 1/3] coreutils: add openssl PACKAGECONFIG Date: Wed, 28 Sep 2022 16:13:18 -0600 Message-Id: <20220928221320.1763684-1-danismostlikely@gmail.com> X-Mailer: git-send-email 2.37.3 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, 28 Sep 2022 22:13:31 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/171156 From: Daniel McGregor coreutils-native will pick up openssl on the host if it's GPL compatible (version >= 3), which causes uninative failures with hosts that don't have openssl3. Add a PACKAGECONFIG entry for openssl so it can be enabled, but isn't by default. Signed-off-by: Daniel McGregor --- meta/recipes-core/coreutils/coreutils_9.1.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-core/coreutils/coreutils_9.1.bb b/meta/recipes-core/coreutils/coreutils_9.1.bb index 55663c77136..4807eefd04d 100644 --- a/meta/recipes-core/coreutils/coreutils_9.1.bb +++ b/meta/recipes-core/coreutils/coreutils_9.1.bb @@ -46,6 +46,7 @@ PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl," PACKAGECONFIG[xattr] = "--enable-xattr,--disable-xattr,attr," PACKAGECONFIG[single-binary] = "--enable-single-binary,--disable-single-binary,," PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux" +PACKAGECONFIG[openssl] = "--with-openssl=yes,--with-openssl=no,openssl" # [ df mktemp nice printenv base64 gets a special treatment and is not included in this bindir_progs = "arch basename chcon cksum comm csplit cut dir dircolors dirname du \ From patchwork Wed Sep 28 22:13:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel McGregor X-Patchwork-Id: 13358 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 686D2C04A95 for ; Wed, 28 Sep 2022 22:13:41 +0000 (UTC) Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) by mx.groups.io with SMTP id smtpd.web09.3833.1664403217924261356 for ; Wed, 28 Sep 2022 15:13:38 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=qHZPB4XH; spf=pass (domain: gmail.com, ip: 209.85.166.48, mailfrom: danismostlikely@gmail.com) Received: by mail-io1-f48.google.com with SMTP id n192so10103207iod.3 for ; Wed, 28 Sep 2022 15:13:37 -0700 (PDT) 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; bh=LjS8Z+DWYBPlOzx2NOAg/YpJQEOLNZUZT32y8sayi1s=; b=qHZPB4XHlA8rBGujWjYdBRckTBHI5hYHJjnl+FqhIDFv3gOSNZwhRelYuv6wPq7SrL 5yzitVid/wQymZrCbAEs4VJdfwcMi9jEZr85C8Yyy955IuKlWtJdS8uCwGslzirIRy36 aWFRJfBg1pX/zv2h5HzokVTAVxujJfOJ4dUejN96twCPB7q7gObV4IY/pjJw8CuBCxPZ nqBYtpT1xoT0zNwQ2paFfPtX+AF0sf3HE5tHTjl4J98QZH1FHxh+OC1RZnwpICngKFwR isapiLSSpXcBWP8yH3tp4WZmWUrWSq9GDK1Ny/soGWU9UWHiowPvxUspSkbTn3DtxGZe tKzQ== 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; bh=LjS8Z+DWYBPlOzx2NOAg/YpJQEOLNZUZT32y8sayi1s=; b=sXjCyQZgH3Qa42ddkEFjfllwy4dvjA0xu/aMSLPau99MugznmUrPYhJxowyJt6LTxL 4LFq5Eu58lk6fdv+Lhf+qiVs2HZS9XSP0F/OKxC+9IalTz+DyCCVaetJNv570xqE062z VVvBn0NiTaOQ9HbJr3mHeo3ndWJhCcvIUcqmatamaJqsA8jmStKv2SCZy5cOn387Ok9m ydSMtKviG0DRPsrB3IGtDEgRpMspU1xLUtQQjV3czcNDfoNgE/Owve3leqeJveTWpCVd hJGII80TpQ2iSA4b1UrM3HsLTZyRfbjuXTQOykPCQpOVxNG0ZGgRelPokH35LP1RC4/X Kd5A== X-Gm-Message-State: ACrzQf3M/i2308gc2AJNBKl+XwyMAFHe5vWMEQ98IzSccBllDxcOV9yQ tKskb4eTiGDo6kJ05lay5BA0WHzmdRo= X-Google-Smtp-Source: AMsMyM5xBWUbwjekAOvf5gx5evA6KlCSNyWEiur3wdC81lEYXeOA0IEuPNEeyK3wP78NK/Ss+4MLvQ== X-Received: by 2002:a6b:b296:0:b0:69e:70d9:a58a with SMTP id b144-20020a6bb296000000b0069e70d9a58amr36066iof.88.1664403217129; Wed, 28 Sep 2022 15:13:37 -0700 (PDT) Received: from nebuchadnezzar.home.arpa ([204.83.204.143]) by smtp.gmail.com with ESMTPSA id g39-20020a02852a000000b0035b0af5783dsm2191931jai.32.2022.09.28.15.13.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Sep 2022 15:13:36 -0700 (PDT) From: Dan McGregor To: openembedded-core@lists.openembedded.org Cc: Daniel McGregor Subject: [PATCH 2/3] gcc: set the default target arch Date: Wed, 28 Sep 2022 16:13:19 -0600 Message-Id: <20220928221320.1763684-2-danismostlikely@gmail.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220928221320.1763684-1-danismostlikely@gmail.com> References: <20220928221320.1763684-1-danismostlikely@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, 28 Sep 2022 22:13:41 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/171157 From: Daniel McGregor The default x86-64 architecture for target gcc (ie, the one in poky build appliances) is native. Since we have a variety of build systems it will occasionally produce instructions that don't work on all of our development system. Instead, set gcc's default architecture to the one specified in TUNE_CC_ARCH, that guarantees that gcc-runtime and any binaries produced are compatible with the target machine type. Signed-off-by: Daniel McGregor --- meta/recipes-devtools/gcc/gcc-common.inc | 10 ++++++++++ meta/recipes-devtools/gcc/gcc-target.inc | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc index 2abc0e355d7..d3b36937bf4 100644 --- a/meta/recipes-devtools/gcc/gcc-common.inc +++ b/meta/recipes-devtools/gcc/gcc-common.inc @@ -32,6 +32,16 @@ def get_gcc_float_setting(bb, d): get_gcc_float_setting[vardepvalue] = "${@get_gcc_float_setting(bb, d)}" +def get_gcc_x86_64_arch_setting(bb, d): + import re + march = re.match(r'^.*-march=([^\s]*)', d.getVar('TUNE_CCARGS')) + if march: + return "--with-arch=%s " % march.group(1) + # The earliest supported x86-64 CPU + return "--with-arch=core2" + +get_gcc_x86_64_arch_setting[vardepvalue] = "${@get_gcc_x86_64_arch_setting(bb, d)}" + def get_gcc_mips_plt_setting(bb, d): if d.getVar('TRANSLATED_TARGET_ARCH') in [ 'mips', 'mipsel' ] and bb.utils.contains('DISTRO_FEATURES', 'mplt', True, False, d): return "--with-mips-plt" diff --git a/meta/recipes-devtools/gcc/gcc-target.inc b/meta/recipes-devtools/gcc/gcc-target.inc index cc65e995c30..7dac3ef422c 100644 --- a/meta/recipes-devtools/gcc/gcc-target.inc +++ b/meta/recipes-devtools/gcc/gcc-target.inc @@ -19,7 +19,7 @@ EXTRA_OECONF:append:armv6:class-target = " --with-arch=armv6${ARMFPARCHEXT}" EXTRA_OECONF:append:armv7a:class-target = " --with-arch=armv7-a${ARMFPARCHEXT}" EXTRA_OECONF:append:armv7ve:class-target = " --with-arch=armv7ve${ARMFPARCHEXT}" EXTRA_OECONF:append:arc:class-target = " --with-cpu=${TUNE_PKGARCH}" -EXTRA_OECONF:append:x86-64:class-target = " --with-arch=native" +EXTRA_OECONF:append:x86-64:class-target = " ${@get_gcc_x86_64_arch_setting(bb, d)}" # libcc1 requres gcc_cv_objdump when cross build, but gcc_cv_objdump is # set in subdir gcc, so subdir libcc1 can't use it, export it here to From patchwork Wed Sep 28 22:13:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel McGregor X-Patchwork-Id: 13359 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 6EB84C32771 for ; Wed, 28 Sep 2022 22:13:51 +0000 (UTC) Received: from mail-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) by mx.groups.io with SMTP id smtpd.web10.3763.1664403225008787124 for ; Wed, 28 Sep 2022 15:13:45 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Neyld5ps; spf=pass (domain: gmail.com, ip: 209.85.166.47, mailfrom: danismostlikely@gmail.com) Received: by mail-io1-f47.google.com with SMTP id p202so11280559iod.6 for ; Wed, 28 Sep 2022 15:13:44 -0700 (PDT) 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; bh=Mwq0eIkKhMc7EQDgBAsDaRLHc0BZm1lbmOlB1enGV2M=; b=Neyld5ps98E/f1dp2gGwJ54I/VOuUMa7PM2XTtfx+vzu0/2Hx1Neb+sfbyRcTt78hn fGSAYhtD6xSMfRerseM1hg4jpJ121BZdYvms45+bToWjL/DLY/ejRdEXuLJ5QE0xTavi nBBxHODE16j5LMAMokSTS8OAYhW24omDpbjekracZT3wUpoU/b8e5ttsPROWNG8pkKR8 lmFDc8UcN2wFIDJwqEIXxBs3eiiVpwz95FL9AbLnzVvIvE9LYxFQUlnDma5GCIHInZQx +P79QDUHUKYqdVE5s0YnfQN4HWTd2RK9V5ttqaYG5lQZ0lxQoqbzVOkF6trG694o0aAO HlqA== 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; bh=Mwq0eIkKhMc7EQDgBAsDaRLHc0BZm1lbmOlB1enGV2M=; b=1TgCCjdLS034zXnLmR5lzfK+HZ48whuXFXIen+XdOrloObkjVGuljvC9aLPLjRNyXw F5HtgjytQLEzXZcrNn8aJiIMYcXqHERDoL9jxy2REDLpIl/Bbqb9iMOe+l6njqKze/H2 NAAgQgxq8i6PHxDO/igjhyywKaHz0lE6tTsqHlTAa/rgpXkpLodvK+6jKJYH8C3Erb16 +ttfmkeBSdW3ZWtV+N/q1QDNCaCZPA0MQnwRsmViGJ1GLjFtOAly3itjHr95uvnWSdEX k/J7anU9ZSa6PnaBYwTloTNWcuNlBrjNH794h2jdce/uSA2836NOH/YnJTRtrd1LIpXU xm3A== X-Gm-Message-State: ACrzQf2/6UX6qm+ErUHO/oSmflHb/Fr1c4rIUuZSzl20sO+VtgKJtgmg Lhk8ZcvEqsOcIC5DaBiSpTAALS8Y4Js= X-Google-Smtp-Source: AMsMyM6+ZLJ4WOVgWv1/fzbAEMBkCAsJ9i9RcAtCfBnnaNyQ3jqZfUtZHkBEIa606UvC5WOl69BLAA== X-Received: by 2002:a05:6602:1551:b0:6a1:6852:baa7 with SMTP id h17-20020a056602155100b006a16852baa7mr39265iow.48.1664403224213; Wed, 28 Sep 2022 15:13:44 -0700 (PDT) Received: from nebuchadnezzar.home.arpa ([204.83.204.143]) by smtp.gmail.com with ESMTPSA id g39-20020a02852a000000b0035b0af5783dsm2191931jai.32.2022.09.28.15.13.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Sep 2022 15:13:43 -0700 (PDT) From: Dan McGregor To: openembedded-core@lists.openembedded.org Cc: Daniel McGregor Subject: [PATCH 3/3] systemd: generate manpages indexes Date: Wed, 28 Sep 2022 16:13:20 -0600 Message-Id: <20220928221320.1763684-3-danismostlikely@gmail.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220928221320.1763684-1-danismostlikely@gmail.com> References: <20220928221320.1763684-1-danismostlikely@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, 28 Sep 2022 22:13:51 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/171158 From: Daniel McGregor Now that python3-lxml is in core, use it to generate systemd.directives and systemd.index manual pages. Signed-off-by: Daniel McGregor --- meta/recipes-core/systemd/systemd_251.4.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/recipes-core/systemd/systemd_251.4.bb b/meta/recipes-core/systemd/systemd_251.4.bb index 910ea71bf64..b4ad7e45eb0 100644 --- a/meta/recipes-core/systemd/systemd_251.4.bb +++ b/meta/recipes-core/systemd/systemd_251.4.bb @@ -159,7 +159,10 @@ PACKAGECONFIG[localed] = "-Dlocaled=true,-Dlocaled=false" PACKAGECONFIG[logind] = "-Dlogind=true,-Dlogind=false" PACKAGECONFIG[lz4] = "-Dlz4=true,-Dlz4=false,lz4" PACKAGECONFIG[machined] = "-Dmachined=true,-Dmachined=false" -PACKAGECONFIG[manpages] = "-Dman=true,-Dman=false,libxslt-native xmlto-native docbook-xml-dtd4-native docbook-xsl-stylesheets-native" +PACKAGECONFIG[manpages] = "-Dman=true,-Dman=false,python3-lxml-native xmlto-native docbook-xml-dtd4-native docbook-xsl-stylesheets-native" +# Ensure we're seeing the XML catalog from the build system and not the host. +# Otherwise, the build may fail generating the manpages. +export XML_CATALOG_FILES="${STAGING_ETCDIR_NATIVE}/xml/catalog" PACKAGECONFIG[microhttpd] = "-Dmicrohttpd=true,-Dmicrohttpd=false,libmicrohttpd" PACKAGECONFIG[myhostname] = "-Dnss-myhostname=true,-Dnss-myhostname=false,,libnss-myhostname" PACKAGECONFIG[networkd] = "-Dnetworkd=true,-Dnetworkd=false"