From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6520199916203016192 X-Received: by 10.223.142.151 with SMTP id q23mr1021727wrb.3.1518428021843; Mon, 12 Feb 2018 01:33:41 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.223.152.10 with SMTP id v10ls3645856wrb.3.gmail; Mon, 12 Feb 2018 01:33:41 -0800 (PST) X-Google-Smtp-Source: AH8x225zBiHf38BiFPIxrgBll0yVvfeFAXTCDAlliwE4cs/h4yiWK9ubUv9h0nz9R4mL8BwxQqXe X-Received: by 10.223.169.133 with SMTP id b5mr435356wrd.8.1518428021320; Mon, 12 Feb 2018 01:33:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518428021; cv=none; d=google.com; s=arc-20160816; b=iKpQ4iSWzAcco0zlh7NvRxCAlHxktFHn8vpV4jF4jx9yN/Q9K6Zo9djPgG8YxHSGhI B1XSekNHhIIdv3b/jJP8inbcp0zAweLQSySmlllp6zyZMXS4eIWnRuYKcl37AvWVWzvh bBocnCTJdhjWPWFWFIOI7U8BL2BvT2ny75+0TyQPt7pWy8ms5Kd+xpXTSj0IMxM5gFmf mhgW3RpWNk/GTGll+J6kVXizsGraFL/n8OQ23s3XjM5s/D5eDWJbotekmmRRhC5YMyXN sPODANJ/DS+mjjnMq03HRzItKX7YZw6IugybZV/nGfw12kyW2iQBvkX7wmHUhnPL7pWO i7+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=QfIalMJxxxvbyrGsqejkVszKoQm63mMndM9EMfakBxo=; b=F/r/fJ5OMkggxduDvJnNMBJKlthmc3rkrbiDpACX8ZNKDIiLP73tMoInha67Msm5VG ljmlgmhPV3nL6xjeRPYpijPWuhKG7VLyxqNhCQoiymbUNbNnp/b5w703xOz7H1yc8smG Q2m1wQ02V9MEMcNBzJ9WboIi0yIjpKdfGM9L4y5wZ2fi9YSaNWk9mQ3xYDbaVtLmRBhD 20e18Ne2Xaf1Qw05ZgpjpX6+fThU80jJ1IUeaWNpNBJZYod7F6zAMzgYp+jXR6jfZ0nt FLn5RBZfsGmcRM6QP9H7o/MACsoGeLjORZk+QDjErivxRjle5nIp5c/+UKmwGPvPJC0s ArVg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id f8si248047wmc.2.2018.02.12.01.33.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Feb 2018 01:33:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from [10.0.2.15] ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w1C9XcRf032741 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 12 Feb 2018 10:33:40 +0100 Subject: Re: [PATCH v4 2/8] Prioritize isar-apt repo over all others To: Jan Kiszka , isar-users References: From: Alexander Smirnov Message-ID: Date: Mon, 12 Feb 2018 12:33:33 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: IQkn95q73xXr On 02/11/2018 06:25 PM, Jan Kiszka wrote: > From: Jan Kiszka > > This ensures that we can override packages from upstream Debian or other > external sources with our self-built versions. We achieve this for now > by asking multistrap to drop a preferences file for the buildchroot so > that dependency installations use the right priority. For the image > build, this does not work because all packages are pull during the > bootstrap. Therefore, we set aptdefaultrelease to isar to ensure that > our repo gets the higher priority. > I'm not sure that I completely understand this. What is the use-case for this? If you build your own copy of upstream package, this prioritization could be resolved by specifying suffix to version. For me this approach looks like a good way to have unexpected troubles like the following: 1. You pick current glibc from upstream distro XYZ, let's say v1.0. 2. Patch it and put glibc-v1.0-isar to isar-apt. 3. Wait for some time until glibc is updated in upstream, let's say to v1.1. 4. Due to glibc-v1.0-isar is set to be preferred, it's going to be installed. But glibc is the core library in distro, and lots of packages in XYZ now require glibc-v1.1. So even if you will be able to generate image, you can't guarantee it works correctly... Alex