From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7319406651323187200 X-Received: by 2002:a05:622a:54e:b0:429:fcdd:5acf with SMTP id m14-20020a05622a054e00b00429fcdd5acfmr2473625qtx.125.1705650052634; Thu, 18 Jan 2024 23:40:52 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ac8:7f55:0:b0:42a:2976:8a69 with SMTP id g21-20020ac87f55000000b0042a29768a69ls73294qtk.2.-pod-prod-07-us; Thu, 18 Jan 2024 23:40:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IEreh0XgFxfMzAIvbJEepequZp/ZjqJK0zOm1FWaJLoRmlgYvI0cb27EjhSdjYSYOywOuHB X-Received: by 2002:a05:622a:f:b0:429:c765:b327 with SMTP id x15-20020a05622a000f00b00429c765b327mr2313270qtw.102.1705650051728; Thu, 18 Jan 2024 23:40:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705650051; cv=pass; d=google.com; s=arc-20160816; b=yOv+/JzlU/pHXWvMP3TGkMC/TJYx8ut5eelJ7CdDqH7ubbJ5I/7a3tnIpWCs7tAf82 6qoyowniXXLTR2EziGDCmEW9BGSIM84itlLA/qiiW3qYVGhf3pPno3C/TdTpFK9Z3T0l DNfCO+WyUbhBNcMNKZbKOgWF2YHPeAhu97Pc0AGMJ5j7ygoYBlwdoGY5Xqh5g3XIs+bj W6qVMV2ZqA1uTzO1cH8X2DXe+gk2LGDJbJHg2rL9YTYb2k02SAkh9CtuXleIQjWEdW74 NZE9UXaxVomQfhPg71K2aPplIpJfeACsCowBUJvZb0/7j/OX7bvtSmXJVuaRsjbQryS/ ZvIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:in-reply-to:from:references :cc:to:content-language:subject:user-agent:date:message-id :dkim-signature; bh=08uczW5iX+eCNbvKP+d9pbwCC0VhXZJYGfzFDN9njGI=; fh=tMggEcgDUNPar0Tcfltjaa2eh6SK96+jpMDm04zE+1o=; b=yjMJ3CByG5Ly3RwoELq4L2Zh2IJzWn73kJkoxzRlYk07OY3LN9lC2HFXJZBJfF0jhC FLDKKliP1msRzZy5vTH/FB/vyuIVFogEbwUyTonHoqX81shDSOqJJ5gm06LL7l0DYlaQ LnJtWsRgVIh0VDNWgO7hGDk1dXGiUAybdgfOiFMjmQ1BrUHpgGt/dhT00hzQfMeGTQZ0 NcNW8MOXvJortqBwp60a3yuWXahLg4s2GTPPXigAg8UohUoA+CrTjFtJ5b7Zeu8RkxxU o+12H6N5xOs/YppPUuOPJSl2sWPTW3KnHbxnIyE3XeygPZGnlJLZAqNP5DWntqvzmXzM 1oqw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=xXTQHq0F; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f403:260e::601 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Return-Path: Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on20601.outbound.protection.outlook.com. [2a01:111:f403:260e::601]) by gmr-mx.google.com with ESMTPS id f13-20020ac8134d000000b00429c8a3abbasi1398300qtj.1.2024.01.18.23.40.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jan 2024 23:40:51 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f403:260e::601 as permitted sender) client-ip=2a01:111:f403:260e::601; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=xXTQHq0F; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of jan.kiszka@siemens.com designates 2a01:111:f403:260e::601 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HC0DYyuBjy1zpOLzhU9Oj5st9lXGL0Y9f5noKDWDZ4FwLXQkSOdgqFHEIPzqUhjV5kvApL4ei2GzXIet9FN+w2uKyOHfRaR9HJxpFAerbzxDlSjAX9SgMB45gqeXD3uobk60QopExrFm3deMExwUhsa8+QZG8JWidNYtgQYyKDHINHL9T1jFb77UsEtaqoTRLMCwiVx2d2dRG91TwVU9vOYRYTFc1DBrWYMidGbS4G+96/8gEW7KoFz8Amn68lGBKqTl6IgxeVGExvZRZTRJ+HHEaHHYLefOWlQiCqGSJavzGh7EaKC6jzEA/CDkW+wPtYp4e6WY/Zk/LxoCemTB9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=08uczW5iX+eCNbvKP+d9pbwCC0VhXZJYGfzFDN9njGI=; b=a8hVYKdOpMGbyy+p6ArxU6w/11C9OA13EHp44kNq96pK1hwtA3iP3JbCNDK1rXpwA/7wzRJFiex4xJjF2l1oajiQvkzTt07V4dKlx4t0dtBjeYDeYNhAGiTiSHa9Bk7H9I3xGxbiIeaAF++VtRP60mK6Nr/y2y1DqZVRNeuPGjbjPEFfxCuZeyrLQPZ4QiklnVE5qan054QpRx9D18URTfVgt7+P+B6wO07qk5/CKCGUbyylm4UVHuaJlSGYC7r/KPhhUya54ungY1wlJQcfiX8XLTkBmc7a2bsuPpsDPNSXQMJmIVLgkRSX90/6nOUkKTw56xylYPwPERIxC+2Fwg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=08uczW5iX+eCNbvKP+d9pbwCC0VhXZJYGfzFDN9njGI=; b=xXTQHq0FUMU2kBqIHHozO0giKrYIErIoK29ezkXwwP/fUXb9O2J+bdmeniHEqU0ktj2/zT1AGIKSa7F7zABCQeIp0apNiFMuxSTaH0QrGLFL3Cw5dIQwh1Cj5T9QcU6PObbE4CoszY9rhHJ1/wSN5/TBTuLhk61FO2kiotz2umxxbXnQ8iwXerRL1Dai8y5FGSFT4l3rJKpSf63BRPAGn63cPjm2OBDXvHbil5gzuoCMH7YNITYErSVbdr/jkeH2kpQffeaSdMko69pUahRD516Md32ZU46Klc+KsYtMygUK5KSQI5C68+Mdr6pRccwEG1vSS9Fml0xswP3taHTWwA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siemens.com; Received: from AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:588::19) by AS5PR10MB8271.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:681::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.24; Fri, 19 Jan 2024 07:40:49 +0000 Received: from AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM ([fe80::8d16:7fbb:4964:94fe]) by AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM ([fe80::8d16:7fbb:4964:94fe%3]) with mapi id 15.20.7202.024; Fri, 19 Jan 2024 07:40:49 +0000 Message-ID: Date: Fri, 19 Jan 2024 08:40:47 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6] dpkg: Restore support for replacing pre-installed packages in sbuild-chroot Content-Language: en-US To: Uladzimir Bely , isar-users Cc: "A, Srinuvasan" References: <024b7d92d8d9a9b1bd50466d5903086cda462c07.camel@ilbers.de> From: Jan Kiszka In-Reply-To: <024b7d92d8d9a9b1bd50466d5903086cda462c07.camel@ilbers.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: FR3P281CA0002.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:1d::12) To AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:588::19) Return-Path: jan.kiszka@siemens.com MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS4PR10MB6181:EE_|AS5PR10MB8271:EE_ X-MS-Office365-Filtering-Correlation-Id: c390c446-4b97-41c0-9c3a-08dc18c1f4d8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yF5Az5KDTykqM4SmrlOF/JsZXEG1+IMjwNRJxa5KX+WEThcmTKnwoxm9F/U4IYP8KUsCG4PVgOj3R1R39QIaxSXTgmEi3c6xaF9qr1dJGikVC1d2eRi7jfl7lYSoMt7FflS/+kI4z3JucNMdOR+ASnI6UWz0BfjzdqEobTa4exk6GGSINeSAR0wFwqjBnogB3K89Xz3MQnZf2rY+Kf4LO24j/afUF4YDi9wMTISCC6WOHnIlRiq7PhLSurwhw8BL4Uy8+LalgUUC01T3lwcklGy46TZOF/m8bEUNgD0njlHxIUeX8OMkWj4ZuDe7q80g3FNNipForbhcXgTYM2zApdTugw0VuR52irH0MrE0EaXscVUBLI9d359+cH4QRGsj9br+d2JS4B1wylvvzsXDGkUM7UBDjXiKJBbYD010ukNgUx1WOh9x/sF7rYo0PLym5HmKLaUXCAgunqgGRs+X2QRFgqOszyLeFPdq5zABJXI4wbOwMN6w6abIUDPNNEmiNn5RufE1fBTzdoeW/92OTU+49U1ajCida+r4Fl6idImkPo+GamMn2JFG8GJ2BRuVn2GM/eXOuPhtWmiGFA3nE6cjCYtIRpYUMywb8uI4wOm/wATBeT5pckDEgRAOom+YLcrXykiWNvETVnRNkgdzin4OeVBxdNhT44koOXi6zOerP0lfM1s9z5EL/NAbSbdv X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031)(396003)(366004)(136003)(376002)(346002)(39860400002)(230922051799003)(230173577357003)(230273577357003)(451199024)(186009)(1800799012)(64100799003)(66476007)(8936002)(8676002)(53546011)(6506007)(4326008)(66899024)(41300700001)(26005)(38100700002)(5660300002)(36756003)(2616005)(2906002)(86362001)(31696002)(82960400001)(83380400001)(6512007)(44832011)(316002)(6486002)(66556008)(66946007)(110136005)(478600001)(31686004)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?aW04S2wrRVlOaDZDNGdrUVZIZ3NsTVdjMTlTR1pKRWVpTVlocHVpRHdVV0JC?= =?utf-8?B?dElyQU5LWkpYQTR1eXkyYUdVclhFalJ0VytNS0xBZm1YaEowbldVQ3M3bFBl?= =?utf-8?B?S2pSMUJVdlRkTEZiY0JVMi94Ky9WbEFVTGF6TGNxekFsQW9oMTViWGc5RGJP?= =?utf-8?B?UXNoNEhHWmRQYjF1Vm4wVWZ1dnBwVjVpMFkzdHdybUl3UEl6dFozSk1uRGhx?= =?utf-8?B?UCtrdmFUOTU3T1pObUVnZXNsdVQzdkVZcmhRTnhhRk5KdHhmZjJYNk5kNE5n?= =?utf-8?B?Q1E4R1dDaTRHZDMyQ1pjYWtmTGZObU81UjZHb1hiT3ltRklsVkNsbXZiMXM0?= =?utf-8?B?Nzd4WXM0cEpuUFJyei9vY2RmUjhHYWVMNXRkSHE2YVJwR2NuVW10MHB5a0hy?= =?utf-8?B?c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-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-Network-Message-Id: c390c446-4b97-41c0-9c3a-08dc18c1f4d8 X-MS-Exchange-CrossTenant-AuthSource: AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2024 07:40:49.6360 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Or+IEoODlqEuJYFYyQjN2AfOkBIkH9cw6iROdA6WpABNRNbO6JEOyS/T1qJ78hxLqoTRlspH74OiSyoOYuDrsw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR10MB8271 X-TUID: rA5g9yzGM1jJ On 19.01.24 08:37, Uladzimir Bely wrote: > On Fri, 2024-01-19 at 10:20 +0300, Uladzimir Bely wrote: >> On Thu, 2024-01-18 at 14:50 +0100, Jan Kiszka wrote: >>> From: Jan Kiszka >>> >>> During the migration to sbuild, support for using self-built >>> packages >>> in >>> the build environment was lost if those were already part of the >>> sbuild-chroot. This restores it by adding --apt-distupgrade to the >>> sbuild call. But that is not enough because sbuild will only >>> upgrade >>> packages from already configured sources, not those specified via >>> --extra-repository. We therefore have to switch back to configuring >>> isar-apt during sbuild-chroot creation. >>> >>> As rootfs_configure_isar_apt configures the isar repo under >>> /isar-apt, we bind-mount the one in /home/builder/${PN} to that >>> folder. >>> Another difference is that we now need to run apt-get update >>> explicitly, >>> but only for isar-apt. >>> >>> For apt fetching, we neither need nor want isar-apt to be >>> available. >>> Rebuilding self-generated apt packages is generally pointless as >>> the >>> needs are better addressed in the generating recipe itself. >>> Exposing >>> isar-apt to the fetch may furthermore lead to fetching a previously >>> built source package of the same recipe, rather than pulling the >>> external version. >>> >>> And because the sbuild-chroots are now left behind with isar-apt >>> configured, the configuration in imager_run can be removed (credits >>> to >>> Srinuvasan Arjunan). >>> >>> Signed-off-by: Jan Kiszka >>> --- >>> >>> Changes in v6: >>>  - basically, going back to v4 but disabling isar-apt in >>> do_apt_fetch >>> >>> I was able to resolve the scenario that Uladzimir was sharing this >>> way. >>> And I also realized that apt fetching as well as unpacking should >>> have >>> no deal with isar-apt. So, v5 was taking a wrong turn. >>> >>>  meta/classes/dpkg-base.bbclass                | 29 +++++++++++---- >>> -- >>> -- >>>  meta/classes/dpkg.bbclass                     |  5 ++-- >>>  meta/classes/image-tools-extension.bbclass    | 13 --------- >>>  .../sbuild-chroot/sbuild-chroot.inc           |  2 -- >>>  4 files changed, 20 insertions(+), 29 deletions(-) >>> >>> diff --git a/meta/classes/dpkg-base.bbclass b/meta/classes/dpkg- >>> base.bbclass >>> index 7b054d3f..80686677 100644 >>> --- a/meta/classes/dpkg-base.bbclass >>> +++ b/meta/classes/dpkg-base.bbclass >>> @@ -19,8 +19,6 @@ DEPENDS:append:riscv64 = "${@' crossbuild- >>> essential-riscv64' if d.getVar('ISAR_C >>>  DEB_BUILD_PROFILES ?= "" >>>  DEB_BUILD_OPTIONS ?= "" >>>   >>> -ISAR_APT_REPO ?= "deb [trusted=yes] >>> file:///home/builder/${PN}/isar- >>> apt/${DISTRO}-${DISTRO_ARCH}/apt/${DISTRO} ${DEBDISTRONAME} main" >>> - >>>  python do_adjust_git() { >>>      import subprocess >>>   >>> @@ -115,6 +113,8 @@ do_apt_fetch() { >>>      trap 'exit 1' INT HUP QUIT TERM ALRM USR1 >>>      trap 'schroot_cleanup' EXIT >>>   >>> +    schroot -d / -u root -c ${SBUILD_CHROOT} -- \ >>> +        rm /etc/apt/sources.list.d/isar-apt.list >>> /etc/apt/preferences.d/isar-apt >> >> The issue is still reproducible with the steps I posted below, as >> well >> as CI still fails with v6. >> I think, the steps above are not sufficient to completely stop >> dealing >> with isar-apt in do_apt_fetch() and we need some kind of 'apt update' >> here to consider removed list and preferences. The question is how to >> say apt to forget about isar-apt and do not run apt update for other >> source lists... maybe, simply remove isar-apt files from >> /var/lib/apt/lists/. > > An addition: > > It seems that files are not really removed from the session for some > reason. I added some kind of "ls" near remove code: > > ``` > + schroot -d / -u root -c ${SBUILD_CHROOT} -- \ > + sh -c 'ls -la /etc/apt/sources.list.d/' > schroot -d / -u root -c ${SBUILD_CHROOT} -- \ > rm /etc/apt/sources.list.d/isar-apt.list > /etc/apt/preferences.d/isar-apt > + schroot -d / -u root -c ${SBUILD_CHROOT} -- \ > + sh -c 'ls -la /etc/apt/sources.list.d/' > ``` > , but still see the following in the log: > ``` > | DEBUG: Executing shell function do_apt_fetch > | total 16 > | drwxr-xr-x 2 root root 4096 Jan 19 07:09 . > | drwxr-xr-x 8 root root 4096 Jan 19 07:09 .. > | -rw-r--r-- 1 root root 569 Jan 19 07:09 bootstrap.list > | -rw-r--r-- 1 root root 94 Jan 19 07:09 isar-apt.list > | total 16 > | drwxr-xr-x 2 root root 4096 Jan 19 07:09 . > | drwxr-xr-x 8 root root 4096 Jan 19 07:09 .. > | -rw-r--r-- 1 root root 569 Jan 19 07:09 bootstrap.list > | -rw-r--r-- 1 root root 94 Jan 19 07:09 isar-apt.list > | Reading package lists... > ``` > Fith the apt_fetch failure followed, because of existing of previously > built hello source package in the isar-apt repo. > OK... last-minute change of mine, splitting up the purging and the actual fetching into two schroot runs to avoid having to run the latter with "-u root". I didn't find a way to de-configure isar-apt unprivileged. Back to the drawing board. :( Jan -- Siemens AG, Technology Linux Expert Center