From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7156076541959471104 X-Received: by 2002:a17:907:2672:b0:781:dc01:6c5a with SMTP id ci18-20020a170907267200b00781dc016c5amr38934308ejc.191.1666792956553; Wed, 26 Oct 2022 07:02:36 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6402:26d0:b0:45c:bfd9:fb45 with SMTP id x16-20020a05640226d000b0045cbfd9fb45ls15660558edd.3.-pod-prod-gmail; Wed, 26 Oct 2022 07:02:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6lnR5ISdoECjFwLDpCkS8JZoZ0/MNR5JRCcHWVpMnZ2Yn+9nOcGGxTt1QResOaN3in775L X-Received: by 2002:a05:6402:2816:b0:434:ed38:16f3 with SMTP id h22-20020a056402281600b00434ed3816f3mr41477007ede.116.1666792955002; Wed, 26 Oct 2022 07:02:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666792955; cv=none; d=google.com; s=arc-20160816; b=zJPUEWrIEwIdA04j7rXQI6JGNZG4lzKrNCHqcXhji6HWiC1ubD0e3jCBnHuVlNN83A dJjiE7VZRZbct59L4+W/4qw8frw4+gkcCi0jEuK/tI5F81huGKGB8NQ6nGLh2NAuxw4Y +kJHOCbbXb0PwZcKgMLksWsrzASaAp/sYSiSSY987EL/kgiFwRI3ZizoCba86yJNE5Z1 ZRs/cBjgNV/Sam5i03ksg1sa2Irii6r432FkINFYQpj8Nf5TBJIW50TuNMju/MNdJH3L VKMJxIxpWQVnyATj/MUwATXYvOtLe3nl4vd8Nr+OO/z0Z6nwDrqdGBmtXp7vW92Tg6AM Uyzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id; bh=s60ghv6wUKRoLZ5faBEcYypQIGVWt3pADIWDHKNxIk0=; b=VUa/DZqQgqWVmGK4zxClaZ2QBgSqwAXgIEPlE+twKjhDU8o7AhBt0EIPUQzwgRdK8r K7tsn2GCtZb4PysGEqiIHIc7oNqU8ChUk0uQHRwpABK4VirZAlcBdZHsEO5e6XIm+X4c UTNTOfrCjF5/LNEes1FvpNHJp07A+Z2aTezgqZ3D3barsuMEw2Ur9ykkHOW/qE19TEzj uQLh4OReJx4lYjdc0fZE/AZIULpBdZPSTwzfI/cNhwJqZdMxi7mxVI5g09cwamXSTeMr XEEuNSkG+RmqKCtoLyTt8+ApV1REB8lE3zypU5y+nFjTVUwv2CoCBcE/+VZV2Qn0Hv4p VVQA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id og50-20020a1709071df200b007a448e165e7si187492ejc.2.2022.10.26.07.02.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 26 Oct 2022 07:02:34 -0700 (PDT) Received-SPF: pass (google.com: domain of amikan@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 amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from [127.0.0.1] (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 29QE2Xdb024317 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Oct 2022 16:02:34 +0200 Message-ID: <09d4cdf2-e358-8def-5f35-43ab0f79ba1c@ilbers.de> Date: Wed, 26 Oct 2022 17:02:32 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 0/1] Exit bootstrap with error if apt-get update fails Content-Language: en-US To: Uladzimir Bely , isar-users@googlegroups.com References: <20221019043139.27219-1-ubely@ilbers.de> From: Anton Mikanovich In-Reply-To: <20221019043139.27219-1-ubely@ilbers.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: rH4/fU1KYIlu 19.10.2022 07:31, Uladzimir Bely wrote: > Sometimes we have issues with `deb.debian.org` availability. Usually, it > results in errors in the related tasks that are understandable, e.g., > `Could not connect to deb.debian.org:80` and so on. > > But if the issue happens while debootstrapping at the `apt-get update` > stage, it doesn't produce an error and the following tasks fail instead > with a pretty weird reason (no any errors in the nearest context). > > For example, we can get errors in buildchroot-target: > > ``` > E: Package 'make' has no installation candidate > E: Unable to locate package debhelper > ... > ``` > The reason is that `actual` error happened in `bootstrap` task, but it > didn't fail with error code. > > Adding `-o APT::Update::Error-Mode=any` (this is an apt configuration > equivalent of `--error-on=any` option) makes apt fail in such cases > during the debootstrapping. > > Unfortunatelly, proposed solution doesn't work for `stretch` and > `buster` while they have older apt versions. > > Technically, it's possible support these legacy distros, but it will > require ugly workarounds with redirecting apt-get output, parcing > it for `^W` messages (warnings) and generating artificial errors. It > doesn't looks like something that is worth implementing. > > Uladzimir Bely (1): > Exit bootstrap with error if apt-get update fails > > meta/recipes-core/isar-bootstrap/isar-bootstrap.inc | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > Applied to next, thanks.