From patchwork Tue Dec 1 20:43:07 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106892 Received: from mail-dl1-f43.google.com (mail-dl1-f43.google.com [74.125.82.43]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.21040.1796157790726931166 for ; Tue, 01 Dec 2026 12:43:10 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=VEryJUiH; spf=pass (domain: gmail.com, ip: 74.125.82.43, mailfrom: raj.khem@gmail.com) Received: by mail-dl1-f43.google.com with SMTP id a92af1059eb24-1a3c08d6928so18792217c88.0 for ; Tue, 01 Dec 2026 12:43:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796157790; x=1796762590; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=OTRtL2f3IqyeFRQUv9vLsQ4171ZMKB44CncoJDkDrNw=; b=VEryJUiHWiguowAMmmPRqliTCt/OWNxF6slqpo08hHP1FxO1Uyoq7le4qlBECMVbv/ smUCpY8RVuHtoWt6W2RdCxKIaNFxvwckt2311K2BBk4uVuq1GBgV2LSN4FKHY6zTYpBb Q6uO2NASHaN7i+2FKc4bf4ZZtFrp0CbH7SkjKF7APdqjt/Ze2c6Fr4GgW84JMsWRAfDi KjqJpPCmDeTQkI+eMlIWB9YXXNDktyCS3DZBgVU1P4mf6LsacvveAEzTd6cJb5XjbYSu wZaLYubLb30/eq2F6wG5YIgiO66IkJ7LQLxDcPSjGmHVXrx47vSEPq/DOdFQLX9hcenx pomQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796157790; x=1796762590; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-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H2A/R8OJ+ikzjNWjee15qv+58TlOFO/3etBH0G3fuhnb3cOK8rbx4GEN8UIkhdZXk8hs faZGVHiIP2eyzJZiFqQwF+TlBKX9obUYREsjTGedO8MBiUSXTg384mqlSEsqpBy6Qojq9iwg64O eRdQ9s2UwKxxkpQa5y7k3SFzqbWySZwLClANWO+LtX8h235OnoNzJ9LXea/NlGpBjFaPVf3JXaV TeBkmTClOVtmB16REXog5sevrMAxMaiQdK+WKHNa7f0HRgEyhuQ0dp3xUXw2qXHK3DV71ME4Ubc inVV1XxIyhxqV/tZ8ugPCkbuaDKrHLqCWjC6zcgyL3hPSVt/wCwbBsLeym33MHMlSkxL0Nml5Am dza2 X-Received: by 2002:a05:693c:8211:b0:36f:202c:48 with SMTP id 5a478bee46e88-3857045092emr39354066eec.14.1796157789425; Tue, 01 Dec 2026 12:43:09 -0800 (PST) Return-Path: Received: from apollo.tail3ccdd3.ts.net ([147.160.63.35]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-385672ce402sm105444981eec.16.2026.12.01.12.43.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 12:43:08 -0800 (PST) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-core@lists.openembedded.org Subject: [PATCH] libarchive: Fix intermittent bsdcpio test_option_c ptest failure Date: Tue, 1 Dec 2026 12:43:07 -0800 Message-ID: <20261201204307.161117-1-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.56.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 01 Dec 2026 20:43:11 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251775 test_option_c samples time(NULL) after creating its files and then asserts that their archived mtimes are not later than that. On qemuarm64 the file, symlink and directory can carry an mtime in the next second, so bsdcpio_test failed with three failed assertions in test_option_c. Backport the upstream fix that allows one second of skew, as test_format_newc already does. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...e-second-of-mtime-skew-in-the-odc-te.patch | 48 +++++++++++++++++++ .../libarchive/libarchive_3.8.11.bb | 1 + 2 files changed, 49 insertions(+) create mode 100644 meta/recipes-extended/libarchive/libarchive/0006-bsdcpio-allow-one-second-of-mtime-skew-in-the-odc-te.patch diff --git a/meta/recipes-extended/libarchive/libarchive/0006-bsdcpio-allow-one-second-of-mtime-skew-in-the-odc-te.patch b/meta/recipes-extended/libarchive/libarchive/0006-bsdcpio-allow-one-second-of-mtime-skew-in-the-odc-te.patch new file mode 100644 index 0000000000..923e0e9ea2 --- /dev/null +++ b/meta/recipes-extended/libarchive/libarchive/0006-bsdcpio-allow-one-second-of-mtime-skew-in-the-odc-te.patch @@ -0,0 +1,48 @@ +From dd64c2f9d2421bca6061ade4f7887245f27655ab Mon Sep 17 00:00:00 2001 +From: azhovan +Date: Thu, 19 Nov 2026 17:21:26 +0100 +Subject: [PATCH] bsdcpio: allow one second of mtime skew in the odc test + +On Yocto qemuarm64, the file, symlink and directory in test_option_c +can have mtimes later than the sampled time(NULL). The odc archive +contains their on-disk mtimes, but all three upper-bound checks fail. + +Use the same one-second upper bound as test_format_newc. + +Upstream-Status: Backport [https://github.com/libarchive/libarchive/commit/dd64c2f9d2421bca6061ade4f7887245f27655ab] +Signed-off-by: Khem Raj +--- + cpio/test/test_option_c.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/cpio/test/test_option_c.c b/cpio/test/test_option_c.c +index 2414a4658b..537fa5cc58 100644 +--- a/cpio/test/test_option_c.c ++++ b/cpio/test/test_option_c.c +@@ -120,7 +120,7 @@ DEFINE_TEST(test_option_c) + (unsigned int)dev); + assertEqualMem(e + 42, "000000", 6); /* rdev */ + t = from_octal(e + 48, 11); /* mtime */ +- assert(t <= now); /* File wasn't created in future. */ ++ assert(t <= now + 1); + assert(t >= now - 2); /* File was created w/in last 2 secs. */ + assertEqualMem(e + 59, "000005", 6); /* Name size */ + assertEqualMem(e + 65, "00000000012", 11); /* File size */ +@@ -146,7 +146,7 @@ DEFINE_TEST(test_option_c) + from_octal(e + 6, 6)); + assertEqualMem(e + 42, "000000", 6); /* rdev */ + t = from_octal(e + 48, 11); /* mtime */ +- assert(t <= now); /* File wasn't created in future. */ ++ assert(t <= now + 1); + assert(t >= now - 2); /* File was created w/in last 2 secs. */ + assertEqualMem(e + 59, "000010", 6); /* Name size */ + assertEqualMem(e + 65, "00000000004", 11); /* File size */ +@@ -182,7 +182,7 @@ DEFINE_TEST(test_option_c) + #endif + + t = from_octal(e + 48, 11); /* mtime */ +- assert(t <= now); /* File wasn't created in future. */ ++ assert(t <= now + 1); + assert(t >= now - 2); /* File was created w/in last 2 secs. */ + assertEqualMem(e + 59, "000004", 6); /* Name size */ + assertEqualMem(e + 65, "00000000000", 11); /* File size */ diff --git a/meta/recipes-extended/libarchive/libarchive_3.8.11.bb b/meta/recipes-extended/libarchive/libarchive_3.8.11.bb index 8300164df1..59863eb679 100644 --- a/meta/recipes-extended/libarchive/libarchive_3.8.11.bb +++ b/meta/recipes-extended/libarchive/libarchive_3.8.11.bb @@ -34,6 +34,7 @@ SRC_URI = "https://libarchive.org/downloads/libarchive-${PV}.tar.gz \ file://0003-archive_read-register_bidder-Allow-ARCHIVE_STATE_HEADER.patch \ file://0004-Convert-RPM-reader-into-a-proper-format.patch \ file://0005-Disable-RPM-filter-auto-bidding.patch \ + file://0006-bsdcpio-allow-one-second-of-mtime-skew-in-the-odc-te.patch \ " UPSTREAM_CHECK_URI = "https://www.libarchive.org/"