From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7158844466126651392 X-Received: by 2002:a17:906:9bc2:b0:7ad:975f:b567 with SMTP id de2-20020a1709069bc200b007ad975fb567mr11542522ejc.107.1667196407524; Sun, 30 Oct 2022 23:06:47 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:906:5295:b0:797:e443:f845 with SMTP id c21-20020a170906529500b00797e443f845ls3921522ejm.5.-pod-prod-gmail; Sun, 30 Oct 2022 23:06:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4EwCqkQmjDM6KbgQ30mQRMDkelh5K8Sw8W0p/swef1IK36w5bt+ndNNJy33tuQkqTtRhA1 X-Received: by 2002:a17:907:7290:b0:78d:ec20:fe4d with SMTP id dt16-20020a170907729000b0078dec20fe4dmr11629306ejc.528.1667196406172; Sun, 30 Oct 2022 23:06:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667196406; cv=none; d=google.com; s=arc-20160816; b=UK06cgKuKtptjyEhDTvqOoE27gG4m1c+Wqyu3ns5b6UukeAwc/bRIb18iN3tE7hkbt y3htGQLpWkps42JeVy3+LOaj8rrOON7FTAP2oGsMqktkAsK1mebEY0a+7IE9gyQhhbnD jC2n1M1f35aRgS6Lmd8Tx3X3Pme+LeuAwckcqF/ejE+aYOHWyAYX5YkIP0Hr/oeuDKNS HKDIZiJz7BHC45EZXkUp1XhpxYyh72FYLLSKVevHPEfNwBwn76SCXYpS3NUDc40UiuTd Qficorb716TpTwIGW0ixM0NPzGgszfEsa+zZEGCA7QLOQBrr1IkhWTEsNFKzepCW3Qz5 rD4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=DveXAqWEsqIiZY6fCspU3dOFRv/cylm7Kb97164ZezE=; b=dMIieE/sZ2/88jAFZNerwlbbiqWp12nxCxg5eB9ah0FOTl88m2UC1hIrdIos+hnUzF HNLR6/coPV4jLUVjn4q4QIb9kAlnwzDbpYyyfP1tH8tjimDj9+o2Wdna/hzBTaDNsC1p ssjbN2hDTf3R7cA74nsjis6Q51e4XmRNiAAaYM51wzxljGv9OlS56HboN5DeuzL5YzZE TzrTWcruyE05qBDGljWKdcYNJ7BSkVcWlWMgTkIuq+JIiokFxJHwwHxEL7NECdOywNBC 3THiScXb4CBakFScr/0jGpXorG+FCB5di0HxCRIT5gcJNd7BCMovFj8XRBZfjompzQYv DuBA== 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 ml21-20020a170906cc1500b0078d3ac8bbedsi230013ejb.0.2022.10.30.23.06.46 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 30 Oct 2022 23:06:46 -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 baighyz.m.ilbers.de (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 29V66iDa015041 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 31 Oct 2022 07:06:45 +0100 From: Uladzimir Bely To: isar-users@googlegroups.com Subject: [PATCH v3 3/3] sbuild: Allow downgrades when installing dependencies Date: Mon, 31 Oct 2022 07:06:44 +0100 Message-Id: <20221031060644.20150-4-ubely@ilbers.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20221031060644.20150-1-ubely@ilbers.de> References: <20221031060644.20150-1-ubely@ilbers.de> 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: sBJqiwbr3PE6 If the package we are building depends on previously built custom package, but sbuild chroot happens to have it already installed, we need to allow downgrades explicitly. Related commits: 5367ba74d9f2 and 77e62c1e9bbd (for buildchroot). Actually, the issue is not so typical for sbuild (in comparisong to previously used buildchroot) while sbuild base chroot keeps the bare minimum of preinstalled packages. Anyway, the fix might be needed in case we want to recompile some essential package and use it as a dependency for another one. Signed-off-by: Uladzimir Bely --- meta/classes/dpkg.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/classes/dpkg.bbclass b/meta/classes/dpkg.bbclass index c7e7dd34..1f55e3e7 100644 --- a/meta/classes/dpkg.bbclass +++ b/meta/classes/dpkg.bbclass @@ -92,6 +92,7 @@ dpkg_runbuild() { --no-run-lintian --no-run-piuparts --no-run-autopkgtest --resolve-alternatives \ --no-apt-update \ --chroot-setup-commands="echo \"Package: *\nPin: release n=${DEBDISTRONAME}\nPin-Priority: 1000\" > /etc/apt/preferences.d/isar-apt" \ + --chroot-setup-commands="echo \"APT::Get::allow-downgrades 1;\" > /etc/apt/apt.conf.d/50isar-apt" \ --chroot-setup-commands="rm -f /var/log/dpkg.log" \ --chroot-setup-commands="cp -n --no-preserve=owner ${ext_deb_dir}/*.deb -t ${deb_dir}/ || :" \ --finished-build-commands="rm -f ${deb_dir}/sbuild-build-depends-main-dummy_*.deb" \ -- 2.20.1