From patchwork Tue Jun 13 04:23:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 25498 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 77D0AC88CB9 for ; Tue, 13 Jun 2023 04:23:24 +0000 (UTC) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by mx.groups.io with SMTP id smtpd.web11.6226.1686630195864305172 for ; Mon, 12 Jun 2023 21:23:15 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20221208 header.b=O2u7YksJ; spf=pass (domain: gmail.com, ip: 209.85.214.182, mailfrom: raj.khem@gmail.com) Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1b3dd3ca7adso9936725ad.3 for ; Mon, 12 Jun 2023 21:23:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686630195; x=1689222195; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=4HVL4mLxn9LstKGbifXGiUJSK+9lhZrl5MwyUme/MMQ=; b=O2u7YksJtpTFwJGrroKrIgnf3bQmM45vHz2cGJDfETYIh7NpVqzq0B+lsmlVk3CwKT RBf/7nYpxYjlmmyfuV5Eyo6K6OFU+YhaixBZFEJKIkDk6OCv1o+/VpVBdIfl9k67sMgR G22XGdK7sOPKMYDCdrm3E2lK+YFFCmEi/WC/X3h/VGipeXRrj1NpjoiSOZ3/3sZsrnlI V/2Ny6EvGH/FXCM9zr5DtW/Fv6gO3pXOO9ctj3LDjEYWVbD2hFU7/dKLbo2AuabyeQIG Y23BXEyvnVNxwacXpOXtwMO69ycBSuUtl54QgnVkah9kAezNgbuohzlVb9AlL36f2p42 0buw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686630195; x=1689222195; 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=4HVL4mLxn9LstKGbifXGiUJSK+9lhZrl5MwyUme/MMQ=; b=UmsyCnWaDUaESBL8T8CG+EgZZvcvpWd7yIfijK/+M6sshaOpb0nkfuK3JvLU3x24jH e5h7mK70IyvCgVpsagZ9Ve5kJ6jSE/aLdJ3lYEv8AAOS9jylCZ46Yf6ISkTzW6XCpb4A /d+V2PQqnfGJPJwOXAA9zyA0HAsPyHT8mEE583p8mepaa1rG9+wpZBC4hYf/q/oFC7wp i5LXvCtLiCwiVsdRUQQiECD6kbu2t9CzcUOVFryqYHoUcvHS8zgoqqeU9hWhJZSaNnZn XXnLRfNcVeB4PNH3mSTxEHamzhlVZHe70FYtLJn0MzGSuFsMLWhtDdA3+5WwBypfxjY9 8TrQ== X-Gm-Message-State: AC+VfDwCFjery0uaqRga0DoJzmPLSABUYYyBXHMEc0E1PgCl9JYnumvW 8zXfIC4fBCTx/e3T4WrZ0hEChDVAa0k= X-Google-Smtp-Source: ACHHUZ5XiGozSUdu9uMt3OyspKVQO5tW+xAOqkxJ2kcoVEPwF+xGAducUtom86TI0zBvA+4BsJRqIA== X-Received: by 2002:a17:902:f542:b0:1b0:524b:e597 with SMTP id h2-20020a170902f54200b001b0524be597mr10704930plf.2.1686630194762; Mon, 12 Jun 2023 21:23:14 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9181:d380::eb87]) by smtp.gmail.com with ESMTPSA id ji18-20020a170903325200b001b20dc1b3c9sm5025847plb.200.2023.06.12.21.23.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 21:23:14 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 1/3] ostree: Fix build errors found with lld linker Date: Mon, 12 Jun 2023 21:23:10 -0700 Message-ID: <20230613042312.696835-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.41.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 ; Tue, 13 Jun 2023 04:23:24 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/103253 Signed-off-by: Khem Raj --- ...ith-libgpg-error-for-gpg_strerror_r-.patch | 35 +++++++++++++++++++ .../recipes-extended/ostree/ostree_2023.3.bb | 1 + 2 files changed, 36 insertions(+) create mode 100644 meta-oe/recipes-extended/ostree/ostree/0001-libostree-Link-with-libgpg-error-for-gpg_strerror_r-.patch diff --git a/meta-oe/recipes-extended/ostree/ostree/0001-libostree-Link-with-libgpg-error-for-gpg_strerror_r-.patch b/meta-oe/recipes-extended/ostree/ostree/0001-libostree-Link-with-libgpg-error-for-gpg_strerror_r-.patch new file mode 100644 index 0000000000..167d8ffdd8 --- /dev/null +++ b/meta-oe/recipes-extended/ostree/ostree/0001-libostree-Link-with-libgpg-error-for-gpg_strerror_r-.patch @@ -0,0 +1,35 @@ +From 597120777ff9410b715c19298df824ce3170d6d7 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 12 Jun 2023 14:04:44 -0700 +Subject: [PATCH] libostree: Link with libgpg-error for gpg_strerror_r API + +With f461c02bb55bf2853a3b81ed5c8618040ab54e98 use of gpg_strerror_r +was added this symbol comes from libgpg-error however, therefore its +needed to add -lgpg-error to cmdline to resolve this symbol especially +with gold and lld linker. Fixes + +aarch64-yoe-linux-ld.lld: error: undefined reference due to --no-allow-shlib-undefined: gpg_strerror_r +>>> referenced by ./.libs/libostree-1.so + +Upstream-Status: Submitted [https://github.com/ostreedev/ostree/pull/2880] +Signed-off-by: Khem Raj +--- + Makefile-libostree.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile-libostree.am b/Makefile-libostree.am +index 8edd7f4d..4ad1eed5 100644 +--- a/Makefile-libostree.am ++++ b/Makefile-libostree.am +@@ -191,7 +191,7 @@ libostree_1_la_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/bsdiff -I$(srcdir)/libglnx -I$( + -DPKGLIBEXECDIR=\"$(pkglibexecdir)\" + libostree_1_la_LDFLAGS = -version-number 1:0:0 -Bsymbolic-functions $(addprefix $(wl_versionscript_arg),$(symbol_files)) + libostree_1_la_LIBADD = libotutil.la libglnx.la libbsdiff.la $(OT_INTERNAL_GIO_UNIX_LIBS) $(OT_INTERNAL_GPGME_LIBS) \ +- $(OT_DEP_LZMA_LIBS) $(OT_DEP_ZLIB_LIBS) $(OT_DEP_CRYPTO_LIBS) ++ $(OT_DEP_LZMA_LIBS) $(OT_DEP_ZLIB_LIBS) $(OT_DEP_CRYPTO_LIBS) $(OT_DEP_GPG_ERROR_LIBS) + # Some change between rust-1.21.0-1.fc27 and rust-1.22.1-1.fc27.x86_64 + libostree_1_la_LIBADD += $(bupsplitpath) + EXTRA_libostree_1_la_DEPENDENCIES = $(symbol_files) +-- +2.41.0 + diff --git a/meta-oe/recipes-extended/ostree/ostree_2023.3.bb b/meta-oe/recipes-extended/ostree/ostree_2023.3.bb index dc771ce28a..f5cd7d6ac6 100644 --- a/meta-oe/recipes-extended/ostree/ostree_2023.3.bb +++ b/meta-oe/recipes-extended/ostree/ostree_2023.3.bb @@ -21,6 +21,7 @@ DEPENDS = " \ GITHUB_BASE_URI = "https://github.com/ostreedev/ostree/releases" SRC_URI = " \ ${GITHUB_BASE_URI}/download/v${PV}/libostree-${PV}.tar.xz \ + file://0001-libostree-Link-with-libgpg-error-for-gpg_strerror_r-.patch \ file://run-ptest \ " SRC_URI[sha256sum] = "9c575a094da2c307769f0aee15de95470c3b5550cbff211fbbc4f6fc75f333b1" From patchwork Tue Jun 13 04:23:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 25496 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 78B02C88CBA for ; Tue, 13 Jun 2023 04:23:24 +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.web10.6224.1686630196221202398 for ; Mon, 12 Jun 2023 21:23:16 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gmail.com header.s=20221208 header.b=Qa/WIMpf; 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 d9443c01a7336-1b3c0c476d1so18784915ad.1 for ; Mon, 12 Jun 2023 21:23:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686630195; x=1689222195; 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=ViGw1pxN9g5zE7RcS5g+KtKMk19btzj2xCpInepGe1c=; b=Qa/WIMpflpWLVb8taioH+kQj77ou43y7u2FU4iQ3JvNGC6rSPIkb96yy7VWbIctf4S C0/yqGkilhImb6CNyYp+KPsKW3NZxE7G4DJ57LpJOUziL1y6Xca3UX3IiqlI1Somsiyj j+xnbGg7Mk1i5p7KndFwt7unVDFtipDBPO9J+2jc0kMp6U1FNpNTst7TMByHJh6UZci/ SGdABWgqnRhim+3YIgU1V0zCoGJHyv8xQjfd1CK/SGAVz7CkXYRhWT4+XxnDpUy2f/+8 2IpJB/KWFFmACG5X8ouGU0I+s6Mp3HG25BqCsrYEBH5n0CYZbGd99Sndk7rXd/XIbLkr Q6zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686630195; x=1689222195; 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=ViGw1pxN9g5zE7RcS5g+KtKMk19btzj2xCpInepGe1c=; b=E4c6t3ZJtPfySXlaHcDcr/BbokZYsw8CN1jvq1V7YqulC9vZWz20oHOhLtCZggvggC 4Sqwv0z8VUj7cHaO0AmE87XR64EmlVJMzW35JiWRAuJT1oq/vAFJA64VPo3U951UJrvQ liptHegGRz++ZDysjpFNbsLd2fAXXe1+jc66g0oRKoZL5Np+2BZSTk8Hw8FYGtXYTKy9 WDBfPMn+9NzIr9H50L3fdusUvNiddRykJH8fAu/pRSrk1wuSBD+PzuXtqosmejbj/4mm te+YuaYenY9+QIPWyD83HFKTRaiZafGpv/e3Q0voCcVoIbeHLrOXZYmlE1shySwrfJgK b+sA== X-Gm-Message-State: AC+VfDxh+R4sLQaUi0BemXdhKutQHz8loFdgOFmcIQtmgsF8BZo16M8G aNUDbpmnuoc0eCAn1XhQ+rfLQBuPt2o= X-Google-Smtp-Source: ACHHUZ6txFgG6378aHgoYHlZaM/CDaLip2/p9UJX+KYGWI7wsMXLdj+X3ehAGYurrMtOMoZDrnBTzQ== X-Received: by 2002:a17:902:e88c:b0:1af:d812:d27 with SMTP id w12-20020a170902e88c00b001afd8120d27mr11577708plg.9.1686630195401; Mon, 12 Jun 2023 21:23:15 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9181:d380::eb87]) by smtp.gmail.com with ESMTPSA id ji18-20020a170903325200b001b20dc1b3c9sm5025847plb.200.2023.06.12.21.23.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 21:23:15 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-networking][PATCH 2/3] spice-gtk: Fix build with lld linker Date: Mon, 12 Jun 2023 21:23:11 -0700 Message-ID: <20230613042312.696835-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230613042312.696835-1-raj.khem@gmail.com> References: <20230613042312.696835-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 ; Tue, 13 Jun 2023 04:23:24 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/103254 lld flags errors when checking for --version-script linker option since the export file specifies symbols which do not exist during link, so in a way it is right, however bfd linker works fine and ignores this error. perhaps the meson check should be improved but until them lets add --undefined-version option to linker when using lld Fixes aarch64-yoe-linux-ld.lld: error: TOPDIR/build/tmp/work/cortexa72-cortexa53-crypto-mx8-yoe-linux/spice-gtk/0.42-r0/git/src/spice-glib-sym-file:1: unknown directive: spice_audio_get >>> spice_audio_get >>> ^ Signed-off-by: Khem Raj --- meta-networking/recipes-support/spice/spice-gtk_0.42.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta-networking/recipes-support/spice/spice-gtk_0.42.bb b/meta-networking/recipes-support/spice/spice-gtk_0.42.bb index 542ddb69b7..27504392a6 100644 --- a/meta-networking/recipes-support/spice/spice-gtk_0.42.bb +++ b/meta-networking/recipes-support/spice/spice-gtk_0.42.bb @@ -55,4 +55,6 @@ PACKAGECONFIG[vapi] = "-Dvapi=enabled,-Dvapi=disabled" EXTRA_OEMESON = "-Dpie=true" EXTRA_OEMESON:append:libc-musl = " -Dcoroutine=libucontext" +LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -Wl,--undefined-version', '', d)}" + FILES:${PN} += "${datadir}" From patchwork Tue Jun 13 04:23:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 25497 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 79517C88CBB for ; Tue, 13 Jun 2023 04:23:24 +0000 (UTC) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by mx.groups.io with SMTP id smtpd.web10.6225.1686630197307071773 for ; Mon, 12 Jun 2023 21:23:17 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@gmail.com header.s=20221208 header.b=oNpM1H0/; spf=pass (domain: gmail.com, ip: 209.85.214.170, mailfrom: raj.khem@gmail.com) Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1b3c0c47675so18595525ad.1 for ; Mon, 12 Jun 2023 21:23:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686630196; x=1689222196; 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=Vjx7KU99RJin16emtB6JQtaJlLkL21Kp611SVapmO2k=; b=oNpM1H0/UkuDBqFuGXSYe32/wmFlPCncTsqEFp00s0+3kFl3WDfOlTGEsnTBiZ6RDg 2TLTFHp5JiBkvOHK4oEKQiyQ7R4dzO1ejD1z56ItM2HuYR/yLpnlC4JYQxagvVAJoUf8 K6aXBoSxelqiDdSPHT3oYQSdTJzl5C7CXcyCvL7ifhpl+NAA9NuTGWQbJBuFsBJ7mfAB 5NAU+YMkUhbFmdsw3EnQ+2WBhVUtFZHAHMJtS/HvqFAuzwcAjPfxKGREI/nMhw8GdPVX N/d/Fe0qo7AqynVDh2EvvbBEVuntYc2SUe3F4a2u9QlaPwD1eguVY32DLQAVAjgEwpOG WGxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686630196; x=1689222196; 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=Vjx7KU99RJin16emtB6JQtaJlLkL21Kp611SVapmO2k=; b=CGiNgbY3bvzNm6n99tira8Dvj9V3UpxfB1w5S3lsIv1thdAL6Be0WLDKvLUYn40iBY SWQGgPGQE3FkKenvWfac4L2HMCjJUTOlVwIX2vWc6DgJSE6kdmzEhk78ZowWp4N8pqOm /O0IrPyJfwl8rZffOQ1jmJPPOpbRggRzIVpZxtCHrCIQnrOz6nJJzpkmmWG4Sjw0Wpzx cwsNTy3ZkSZmuqI4v2/JKIF09yHhWoYQqvVcQS6HpevEHFM97ttD2HA3OxQhJiZoKbK9 2IgRZCSSr75Wm+7z/8l8aBHjIYGySaF92xmliaxi/csroYOiX+9LPj8ym3JzBDQmt5Pm vRrQ== X-Gm-Message-State: AC+VfDxI+iRbB64gP3y98U8WNnoRWLqMHY03Xzp5dnyg7sqsZQ5sdhfs zN6zfy4vHim83fbOpOQ8bAhOMynqMPY= X-Google-Smtp-Source: ACHHUZ4dX03Sg55ejfT9cJiHHoNYx2WJp3ubWpQdDPABsOny8sjRPZqxSpo11QYqh8PeHOscK7GasA== X-Received: by 2002:a17:902:d2c8:b0:1b2:43a5:a5e5 with SMTP id n8-20020a170902d2c800b001b243a5a5e5mr9683199plc.34.1686630196342; Mon, 12 Jun 2023 21:23:16 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9181:d380::eb87]) by smtp.gmail.com with ESMTPSA id ji18-20020a170903325200b001b20dc1b3c9sm5025847plb.200.2023.06.12.21.23.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 21:23:15 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-oe][PATCH 3/3] sblim-sfcb: Fix build with lld linker Date: Mon, 12 Jun 2023 21:23:12 -0700 Message-ID: <20230613042312.696835-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230613042312.696835-1-raj.khem@gmail.com> References: <20230613042312.696835-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 ; Tue, 13 Jun 2023 04:23:24 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/103255 Signed-off-by: Khem Raj --- meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.9.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.9.bb b/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.9.bb index 2a89a549d1..a52f3641dd 100644 --- a/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.9.bb +++ b/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb_1.4.9.bb @@ -46,6 +46,7 @@ SYSTEMD_SERVICE:${PN} = "sblim-sfcb.service" SYSTEMD_AUTO_ENABLE = "enable" LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" +LDFLAGS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -Wl,--allow-shlib-undefined ', '', d)}" EXTRA_OECONF = '--enable-debug \ --enable-ssl \