From patchwork Mon Oct 7 10:47:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "alexander.heinisch" X-Patchwork-Id: 3852 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Mon, 07 Oct 2024 12:47:48 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-qt1-f183.google.com (mail-qt1-f183.google.com [209.85.160.183]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 497AlkwF015387 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 7 Oct 2024 12:47:47 +0200 Received: by mail-qt1-f183.google.com with SMTP id d75a77b69052e-4581efb73d3sf91719521cf.1 for ; Mon, 07 Oct 2024 03:47:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1728298061; cv=pass; d=google.com; s=arc-20240605; b=MtsMvRXRew9h9BnNEosCJssrs1ce+6s/wPbj0VhQgvkBttM52U6htvqseZ57Hsj/jo WnpGRkTf5AnnYAyAvJk0WbxcwcqkhGEJJcnM7RFfCPtrIJFwXeM7ktvfOJq+uEIs9G0W OYAoeyZRJ/0exBCiLuNifrsg13jYawxDv0VjDJGIIgNXwoI651BhVzEkiYQJ7uIFhrof dnGl4hmmFMYuGocVSnzbFNV+xCL/GngHrT4IwfeMjIg4yYnUeov7gMgWvPLIfL0LIhyx E3a3fECmkdDmS5HaoLy/j8PWSsr6g9NL1axT8fwyvHv+taV0O/bC9pcBXqeGCtzr6iuG 9Ccg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:feedback-id:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=yzoLWK2od6wlNxwWO3vU3VfxNvSHLY0UgRkHRo1Tx6o=; fh=+SlepBKXVnIUL7kdkjkEAifA9EaidJ7CrWmhDm8xwCQ=; b=Jw0f6eIqUnO9Et2sH7/dWXwoKSVK6ynpWC3WO+YSUvXcuGRqxMW1pnpMrsZMNvQzFT en3CwrKQG4XclxbgfAAHqqCPBsMOwuaf7B9jln25Tu1/Dxd3j4eee20QXNpBgFQYQ7ca Qm9vOnm3D0uIg86HL3PzzmedTBnW3sSeOVWt7fYFhCM2ly3QIvzYKBSWIzU29emUtb/V tpAO6Xiha2DaWLh/m6BTycOOk6McWixRxsG4REQ4+3ohYi3ReO75BkW8HOajrpKR0c3s oUn1YjHvudtherb7ug0rZre4IEdTevU/X75wOG/Broo09SZx4yS5ZfLL2ciZO/SHRryX AIKw==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=FePy8Y9q; spf=pass (google.com: domain of fm-1326448-20241007104738c33c78839ab5b239a7-ldqpuk@rts-flowmailer.siemens.com designates 185.136.64.225 as permitted sender) smtp.mailfrom=fm-1326448-20241007104738c33c78839ab5b239a7-ldQpuk@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1728298061; x=1728902861; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=yzoLWK2od6wlNxwWO3vU3VfxNvSHLY0UgRkHRo1Tx6o=; b=dXZzKnzFzoHMFDTFLqBCo2pK2saN0CBweaToVwtSfRnssutZrLDBuXwadiZ2/ETd9Q wbc0/m4LlX3gqrp0s/PqIRr0vRF0fFLCRqL0spu42714o4gKDcgIvpLCKlmDLF55XxWj xT2E5E9NZ5wUdqz6djwcCs9YfXdzmb7No+rFso3/eDO1ruQs0StnqqFgg8hcJl/1for1 sbPtkq5URETaJJxn9gIfoEz29FPHbEIlLQUHSXmIguUdAfb/GzDboAPf/77y5k1gjhqu xFLj9+EhlG4IlAL6uHijIgpoztRuIfK0+Q5ctkijpmPEnR2C/xutpj3qA4zrtPKROlqW Ex0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728298061; x=1728902861; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:message-id:date:subject:cc:to:from:x-beenthere :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yzoLWK2od6wlNxwWO3vU3VfxNvSHLY0UgRkHRo1Tx6o=; b=MCg6F1ZhD1vi4opM0QOqT1NFJBAmZ4lIjCAsyRtx7kW2NNrRoUPsidd7ASZ3/J7R5+ SwFjQaBh7x3taXcI7xrrCo2iBI3T2kt+A3Un8PI+eYCMSJoqZ1HeWCHYlzFMNe9zJRd1 yXy3/u52S3Taa5WWgBOH9Zs2a6qlmWaJEgam2AwwhNhdFQWpmAylJ5kNtn0qPaqehFQJ v++C7lC+Co+SLmx6QGpsks6sY4kn6wjvKKA0D0cARxFyG8WcniHmYYp5RJtG8rzFdu1U A4mC9koFeXpH6sujMmnKXOWtySdx2/wk9E2FSkG6MnHKRhik3Th+3YWJ/KXkjz8H1/Ql KMcQ== X-Forwarded-Encrypted: i=2; AJvYcCU4U6sIrzWh5/JCjR5I0h0DBtZpTKmx+lg4dcFepAJcPJzU9CtLTcMuBNYfQE5fkmOY/39bN1o=@isar-build.org X-Gm-Message-State: AOJu0Yz+riBu0ciHhg14Ace4AanaznD7Qldn5xpCDPTorBrTlwEhitBT DbUgOiWp6+DSkHDarmNPOR9Jn2ZcErI1ZuFU0Dgug6E7ieUlkWwV X-Google-Smtp-Source: AGHT+IHubHGdGoS3On05R/42W+mv0YTdT6Z8fp0s6C7duxyW98bczcVvapt2B2QbkEUCP7nevvRFDQ== X-Received: by 2002:a05:622a:1309:b0:458:2fb7:5035 with SMTP id d75a77b69052e-45d9ba43ef4mr215736901cf.3.1728298060600; Mon, 07 Oct 2024 03:47:40 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:622a:1a19:b0:458:355c:362b with SMTP id d75a77b69052e-45d8d327568ls27115401cf.0.-pod-prod-06-us; Mon, 07 Oct 2024 03:47:39 -0700 (PDT) X-Received: by 2002:a05:620a:4316:b0:7a9:aef5:e5aa with SMTP id af79cd13be357-7ae6f486989mr1615419685a.41.1728298059561; Mon, 07 Oct 2024 03:47:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728298059; cv=none; d=google.com; s=arc-20240605; b=VywmA4Pz3+XcnNKMzCxCjgx5ustbQJj8y2kK2NonANeMoRKZpvoLMoPeW+9mtNtrLF 34igUVZebwGk7/Kwlb4IOj7JTciQ8DOYoo3sl79Fb0nkRTh/aEdMcyjzXDJngJ6WaGPo 7waGCOktFc1Buoh5Y9q2JPEdsunGsfvuJPs/n9MaNGpIAwCQ2ULtaImdQlERGGLB7EiC elG9eE/rBC4zoD5NXBXwa5ubZ255m+ryVOcUDJTFijmkbtVAPHeGrfbU1KtxATskaAJQ DltZvnqXUtTHUrauUrEdrHAdlg4m0n9IvKOBEgWzUTcpO6UAld6vJUmIplL6HtHe2/Wq +ihg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=feedback-id:content-transfer-encoding:mime-version:message-id:date :subject:cc:to:from:dkim-signature; bh=lj1Odz+WfnPv4ASfYQU8m6dGwK0VfiSOwJsX33efSqE=; fh=Z5Qnyb0EtJ8UwrxkpbdSYE+xHzQI6qPfwJivtsUki18=; b=ldomU8GCe8hO/x/ouak7OXLfHxR8ChzLoLGIcoENanqKZTTu+uQE/CkYjd7WnN7fka 0vxQV+U8ZJgrJxf71BceMSEE7maZPXT55jdKl49yvyf+rKo7qW2U5tCaSsTnvz81mfYu PlRlmvHTZKArv3AN5nH8qrFvdyW8nbmcYEp2ee7BXCfUcqnrl7k3dzk/osSP8xc9BKil CJFNKjzS6ydWrh/pAw5WmFVwUMAEcwG42oKmsymr1GsONCUbVZhUkwh2/kQRBG59EjlT fPrHeXf+HAqGzE/NjyG7P3/IUqsRtCyjmT1g3Amc5FFJ3sQ465RB3KeYQ86/L7mM3VZM OQNg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=FePy8Y9q; spf=pass (google.com: domain of fm-1326448-20241007104738c33c78839ab5b239a7-ldqpuk@rts-flowmailer.siemens.com designates 185.136.64.225 as permitted sender) smtp.mailfrom=fm-1326448-20241007104738c33c78839ab5b239a7-ldQpuk@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-64-225.siemens.flowmailer.net (mta-64-225.siemens.flowmailer.net. [185.136.64.225]) by gmr-mx.google.com with ESMTPS id af79cd13be357-7ae7549ad6fsi18938785a.0.2024.10.07.03.47.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Oct 2024 03:47:39 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-1326448-20241007104738c33c78839ab5b239a7-ldqpuk@rts-flowmailer.siemens.com designates 185.136.64.225 as permitted sender) client-ip=185.136.64.225; Received: by mta-64-225.siemens.flowmailer.net with ESMTPSA id 20241007104738c33c78839ab5b239a7 for ; Mon, 07 Oct 2024 12:47:38 +0200 X-Patchwork-Original-From: "alexander.heinisch via isar-users" From: "alexander.heinisch" To: isar-users@googlegroups.com Cc: jan.kiszka@siemens.com, felix.moessbauer@siemens.com, Alexander Heinisch Subject: [PATCH] meta: Allow to specify the snapshot date in the upstream format. Date: Mon, 7 Oct 2024 12:47:13 +0200 Message-ID: <20241007104713.70373-1-alexander.heinisch@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1326448:519-21489:flowmailer X-Original-Sender: alexander.heinisch@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=FePy8Y9q; spf=pass (google.com: domain of fm-1326448-20241007104738c33c78839ab5b239a7-ldqpuk@rts-flowmailer.siemens.com designates 185.136.64.225 as permitted sender) smtp.mailfrom=fm-1326448-20241007104738c33c78839ab5b239a7-ldQpuk@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: alexander.heinisch@siemens.com Reply-To: alexander.heinisch@siemens.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= From: Alexander Heinisch Currently, it is only possible to specify a unix timestamp to resolve the snapshot version used. Since this is not very user friendly, most downstream projects put comments like `# 20240702T082400Z` next to the snapshot assignment `ISAR_APT_SNAPSHOT_TIMESTAMP = ...`. This patch makes it easier for users to specify the snapshot version in a more natural way by `APT_SNAPSHOT_DATE = 20240702T082400Z` Signed-off-by: Alexander Heinisch Acked-by: Felix Moessbauer --- meta/recipes-core/isar-bootstrap/isar-bootstrap.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc index 12f32ff0..125554e1 100644 --- a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc +++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc @@ -34,7 +34,7 @@ DISTRO_VARS_PREFIX ?= "${@'HOST_' if bb.utils.to_boolean(d.getVar('BOOTSTRAP_FOR BOOTSTRAP_DISTRO = "${@d.getVar('HOST_DISTRO' if bb.utils.to_boolean(d.getVar('BOOTSTRAP_FOR_HOST')) else 'DISTRO')}" BOOTSTRAP_BASE_DISTRO = "${@d.getVar('HOST_BASE_DISTRO' if bb.utils.to_boolean(d.getVar('BOOTSTRAP_FOR_HOST')) else 'BASE_DISTRO')}" FILESEXTRAPATHS:append = ":${BBPATH}" -APT_SNAPSHOT_DATE = "${@ get_apt_snapshot_date(d)}" +APT_SNAPSHOT_DATE ?= "${@ get_apt_snapshot_date(d)}" inherit deb-dl-dir