From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.5274.1796244894786476543 for ; Wed, 02 Dec 2026 12:54:55 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@snap.com header.s=google header.b=biOg9n6K; spf=pass (domain: snapchat.com, ip: 209.85.128.44, mailfrom: ecordonnier@snapchat.com) Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4bba5e17cbeso73360695e9.1 for ; Wed, 02 Dec 2026 12:54:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=snap.com; s=google; t=1796244893; x=1796849693; 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:content-type; bh=FskKFGuU/CwQr4l7KdVJZdTRCv9w8b1zBoL32kIvE88=; b=biOg9n6KK16rBGytLeTCjW6b/rMccZwTemIBr9fIf79LBf2JeDq/Ifn3Bpgirdzcvf JaHxIKRDKlfPj8hf+FW+lusfrX4XliCASHG9hhrk1/I8pwRJWRJEl8Xj3DGRUqjzlMfS 9RNnkazBqooICjFMXl5+c3/9bjJB4eA0kmIVQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796244893; x=1796849693; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=FskKFGuU/CwQr4l7KdVJZdTRCv9w8b1zBoL32kIvE88=; b=BIPDWJ+u3KJjzkm0Yr0fPi30NULcHQxv0Zm7R3KvdPzQ9oTbs3sVTFSelxGFYHy+DD Wc2lY15ARlKxUFPaVNs+c6amWForOMYPPuHnXaderVk+w5ZQy52ML3X+Rw9EtD7okRe0 hROm+20SwWyKEeNOTVXssRX7qxqK0u1KxceL+w6bl9kq2Ss7KGw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: by 2002:a05:600c:64c7:b0:4bb:68b9:f610 with SMTP id 5b1f17b1804b1-4bb887ffee2mr783807525e9.9.1796244893142; Wed, 02 Dec 2026 12:54:53 -0800 (PST) Return-Path: Received: from localhost.localdomain (80-108-196-96.cable.dynamic.surfer.at. [80.108.196.96]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbe00a30absm14983325e9.10.2026.12.02.12.54.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 12:54:52 -0800 (PST) From: ecordonnier@snap.com To: openembedded-core@lists.openembedded.org Cc: Etienne Cordonnier Subject: [PATCH v4 0/2] archiver.bbclass: archive shallow git sources without a clone, drop .git Date: Wed, 2 Dec 2026 21:54:44 +0100 Message-ID: <20261202205446.2442999-1-ecordonnier@snap.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 ; Wed, 02 Dec 2026 20:54:55 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251855 Content-Type: text/plain; charset="utf-8" From: Etienne Cordonnier In "original" mode, a git source fetched through a shallow tarball (fast initial shallow fetch, or a tarball from a mirror) has no clone in DL_DIR, so do_ar_original silently skipped it. This series archives it, and removes the useless .git from the archives of git sources. Etienne Cordonnier (2): archiver.bbclass: unpack original sources without a localpath archiver.bbclass: remove .git from original git source archives v4: - Follow Paul's review of v3: no fetcher-specific code in do_ar_original. A source is copied if localpath() is a file, otherwise it is unpacked with fetch.unpack() and it is an error if nothing was unpacked. - Drop the bitbake patch from v3 (return the shallow tarball as localpath): with the above, the archiver no longer depends on localpath() existing for git. - Fold the "fail on sources which cannot be archived" patch into 1/2. - Add selftests for plain git, gitsm and nocheckout. v3: - Add a bitbake patch so localpath() exists after do_fetch when the shallow tarball is used without a clone, as suggested in the v2 review, and drop the shallow special case from the archiver. v2: - Combined the two v1 patches into one series, as requested. - Split "archive shallow git sources which have no clone" into 1/3 (archive the shallow source) and 2/3 (remove .git), and 2/3 now removes .git for all git sources, including the .git files of submodules (kept for nocheckout/bareclone). - 3/3 ("warn about sources which are not archived" in v1) now raises a fatal error. meta/classes/archiver.bbclass | 23 ++++- meta/lib/oeqa/selftest/cases/archiver.py | 111 +++++++++++++++++++++++ 2 files changed, 131 insertions(+), 3 deletions(-) base-commit: 4b4fc6d149e030f8d2d60f6a4e44a44d56cb8082 -- 2.43.0