From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7036005094436896768 X-Received: by 2002:a1c:9851:: with SMTP id a78mr36645706wme.116.1638197594251; Mon, 29 Nov 2021 06:53:14 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a1c:1c7:: with SMTP id 190ls9472153wmb.3.canary-gmail; Mon, 29 Nov 2021 06:53:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxEphBsOk8xQ+GdpcUuSF2snjfxK6diivkhCmQsHdMyBh8N4T3Lq0PJrixvnBNSPtjILE5k X-Received: by 2002:a7b:c92e:: with SMTP id h14mr37039442wml.135.1638197593163; Mon, 29 Nov 2021 06:53:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1638197593; cv=none; d=google.com; s=arc-20160816; b=cpkWZdPTOWbn89u+IUVNEUkvwQog62/ZAuHLK0/wKBgDPZM6HxruztxO6w3kvxvs2E LNIwaTumJmtnI5Gn3KwnHMO836/0Zr7mNTbxsom2JOcXHjGZKn5a15l43bd92RytXhg1 GwINBup8ypzAPezfBasHPgOhgvN/GVnCPhY+j9gTmCRInvuq5lbaerKLw3CcN6h0jeea 5g8+9/klmqmtnkLhUxSfxelPdH/ZAI4XsLbqasOw+wqFLl+sSkn0GqtW+EVrHxXV00YK xfMsZvDGpPdA6QoXf5KCH/O2+TJ2i876K9t9dlW9KXe0u/18z5SZwHbKbqm0tdaE0L4q elug== 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:cc :to:from:ironport-sdr:ironport-sdr; bh=x4eLFmziu9XzvuxfPNLuafXb2GTKyzmAwOin9M5QtXw=; b=vIzm1v91URVZC7b93arE40cN14fsvHCbg4BRaIVvNKE5yKF46EIeUbu/CTx3iNGXR4 RgjCYwPvuzdNgndhBMQlvyVTCkvvX9odNoLKWj3TNzaxL3JaeBioyT/Af2KxYmATIMYW 7TYrU6nQ2Lz0RrlgpapIJZr5ewcbw9DOatk7bI7Pj2ZiWdS1vNjvlBpRBXpDvIEFzxbP z4E56ZrG5WRHMUQ++xyiNM7Xo4k9jLTQWhnQ4dNJQGz8u9dRAe0pKQ24A5wQayrZltwW ZJFNIfUvPCRIfQqQIa9XG6MbzLZAaOBCQ4+ZI9GH1XcgtOQQ2F8zefCL4jyVBhiKB99c hKyA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com Return-Path: Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com. [68.232.137.252]) by gmr-mx.google.com with ESMTPS id 125si1841390wmc.1.2021.11.29.06.53.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Nov 2021 06:53:13 -0800 (PST) Received-SPF: pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) client-ip=68.232.137.252; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of vijaikumar_kanagarajan@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Vijaikumar_Kanagarajan@mentor.com IronPort-SDR: XvhY/WmvQNW7pYgkvulhVT93Ya1T0JfP3+i/Fhji8EMpM/Af+ACTZ7re2mGvSl8rnDDxekSsPE tVm4De2mgfT2Kuu3ygHCnMbBp8Y+AJcJVB95e7MQXhck6waH+//pOGBhvubpdoY7J3ClYQMUq7 8V7tAWN/qUKoa2Nc8wBD8dd2VY84dAO2N5IglDSpZE/6DHHjqDfNQd29zyMymyvijuDEooDxnM YKUyieaFD+nG18tqrd87sWub/T2fAdw1388ziGxbsV6pkolgJ64HKbo+hOmWqy4/W+g291M7vN f3pcRpXpraqqRhcJ+e+iluqB X-IronPort-AV: E=Sophos;i="5.87,273,1631606400"; d="scan'208";a="69034259" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 29 Nov 2021 06:53:10 -0800 IronPort-SDR: OOgsFH34JZf5OG5+MTuaazj0dg6pOYxDcnFu14ajBVO88fOmuErif4vgQy5Q0ijFao36eBoOnF 4j0omlH5OQaKgzgw8oUcQtEr1VJoyP/9I+TiuO8n5MUu0ytu8UHmxhKtMaqu2fWPFONQgvZOru zEmmd9fktYXvC+xTwuVNyCDqCn19AcRdE4r8XoS1q6c0Iq0uq1sxnnYaOnTsmdHj6W1fkGSgcY VDhYZnfVhiqB0wLnGOJqZaU0PnS2qKWSwXbJToSbYX596ck/kPfTwTWz5Ae2bjHhNxYdfsNfuc jCA= From: Vijai Kumar K To: , , CC: Vijai Kumar K Subject: [RFC PATCH 0/2] Buildchroot non-determinism Date: Mon, 29 Nov 2021 20:22:39 +0530 Message-ID: <20211129145241.2932943-1-Vijaikumar_Kanagarajan@mentor.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Return-Path: Vijaikumar_Kanagarajan@mentor.com X-ClientProxiedBy: svr-orw-mbx-14.mgc.mentorg.com (147.34.90.214) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) X-TUID: 0Co2Fi+SwGFu Hello All, Sometimes buildchroot-host completes long before isar-bootstrap-target and proceeds with building packages and populates it in isar-apt. By the time buildchroot-target is triggered, some packages are available via isar-apt and as per the default preference[1], is installed instead of the one from other mirrors. This is not always the case, sometimes there is no such race and the packages from DISTRO_APT_SOURCES mirrors are installed. This makes buildchroot non-deterministic and affects caching. One solution is to provide a mechanism to set preferences for buildchroot. This way, the user would have flexibility to control the mirrors from which certain packages are installed. This RFC introduces 2 new variables 1. BUILDCHROOT_HOST_APT_PREFERENCES 2. BUILDCHROOT_TARGET_APT_PREFERENCES to set the preferences for buildchroot-host/target respectively. Ofcourse, there might be more ways to solve this problem. Happy to discuss them here. Thanks, Vijai Kumar K [1]: https://github.com/ilbers/isar/blob/919fc995fc8ecb675f8bf639ee8628f90728b1ea/meta/classes/rootfs.bbclass#L90 Vijai Kumar K (2): meta: Move aggregate_files to base class buildchroot: Add provision to specify apt preferences meta/classes/base.bbclass | 10 +++++++ .../isar-bootstrap/isar-bootstrap.inc | 10 ------- .../buildchroot/buildchroot.inc | 30 +++++++++++++++++++ 3 files changed, 40 insertions(+), 10 deletions(-) -- 2.25.1