From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7386535163324268544 X-Received: by 2002:a05:6512:3d29:b0:52c:dba6:b4c8 with SMTP id 2adb3069b0e04-52e8264da08mr4617547e87.13.1719811736682; Sun, 30 Jun 2024 22:28:56 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:280c:b0:52e:8072:8b91 with SMTP id 2adb3069b0e04-52e80728d08ls961047e87.1.-pod-prod-08-eu; Sun, 30 Jun 2024 22:28:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHcaqCL6/3PBjS3jGYcllRlrisfSFuYUPT2j5erIJkLbXCspE2EPBl3ib1Zpzk2CHwKLIjB X-Received: by 2002:a05:6512:b96:b0:52e:8141:1b27 with SMTP id 2adb3069b0e04-52e8270b1edmr4339514e87.43.1719811734098; Sun, 30 Jun 2024 22:28:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1719811734; cv=none; d=google.com; s=arc-20160816; b=crWqN1nAIZj23SYJHLF2NIahUYk8EF7zVoPnpvIIT9H3je+RTmv7TejUZzNpTHGSFi v7sesvEzXm5xEHG50iBbaSHsA4DOucB5tPtofHg3qMfiU+5KyPtvKHX0/l6EcA2ZQbeN zuTkzpN97lFr4VII15+V0e7ZuREN2sLaFmCRAeGuRDkmMDPTAYAybXhxfIq9Y3Ar5IrE WPsllIE3oikpIlVCtSEVrW/1PSbse4ljO7lkFTIYOjeR8T6c7Iliy7cL1iJCrAqkBiyH cweIodtLQdETZBIV2T83rqn6NKfJVM2xLqDugJ+wQG2wnhfWc0P45wIAcm6fwWuUuFRX n3Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from; bh=ol0iSTyYpoYc9FRO4Ij7ofkFw0kC4+Ylp2vKRjaStC8=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=Y6YwtNvLXKYUw+++SCkA1gQ5YOSIMX0fLHGFqok9GXiAc4ReA05G26hWXPIMeD9G6y s4Wzv+ysiWp17+8ZYNBwtfAPulcoOqyIGRBo40TedlGdHgf6LJWk/0LL8h0zLtjEud/b Dq5mLWeiINbPosz5pzvVS48FufABedz9iOAbjbsAjDBsEU51etytqoLYGoVVJsWChbBl 1qp5pYqdMU8IHTzRPpy64nGHTy0F1LenR3omH66C7b6au4VCWUbL6+ERvDnFkJ7LiY7V rbIYbLkEGkg0Aph42fA/zyorKpFuOgRPuSid8Po0o8D0qPteUZiVFxgL4LqQAjll4xfb KiSg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 2adb3069b0e04-52e7ab0aaa8si159431e87.2.2024.06.30.22.28.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 30 Jun 2024 22:28:53 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from hp15.promwad.com (44-208-124-178-static.mgts.by [178.124.208.44] (may be forged)) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 4615SqHc022222 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 1 Jul 2024 07:28:53 +0200 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH] dpkg-source: lock isar-apt while do_fetch_common_source Date: Mon, 1 Jul 2024 08:28:43 +0300 Message-ID: <20240701052847.883-1-ubely@ilbers.de> X-Mailer: git-send-email 2.44.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED 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-TUID: 4V1VLQwhcOLv Task do_fetch_common_source requires isar-apt repo unchanged while running "apt-get ... source ..." inside. Otherwise, it may fail on repo "Sources" or "Packages" file: ``` Err:4 file:/isar-apt isar/main Sources Hash Sum mismatch ``` This is quite often reproduced in CI since commit 2ca3a7e. Signed-off-by: Uladzimir Bely --- meta/classes/dpkg-source.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/classes/dpkg-source.bbclass b/meta/classes/dpkg-source.bbclass index d6ab5aad..a70a392d 100644 --- a/meta/classes/dpkg-source.bbclass +++ b/meta/classes/dpkg-source.bbclass @@ -41,6 +41,7 @@ do_dpkg_build[depends] += "${BPN}:do_deploy_source" SCHROOT_MOUNTS = "${WORKDIR}:/work ${REPO_ISAR_DIR}/${DISTRO}:/isar-apt" do_fetch_common_source[depends] += "${SCHROOT_DEP} ${BPN}:do_deploy_source" +do_fetch_common_source[lockfiles] = "${REPO_ISAR_DIR}/isar.lock" do_fetch_common_source[network] = "${TASK_USE_SUDO}" do_fetch_common_source() { schroot_create_configs -- 2.44.2