From: "Maxim Yu. Osipov" <mosipov@ilbers.de>
To: Jan Kiszka <jan.kiszka@siemens.com>,
isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH] buildchroot: Allow downgrades when installing packages
Date: Tue, 19 Mar 2019 18:33:01 +0100 [thread overview]
Message-ID: <d629c173-b74f-e236-5dd2-22041370fdf8@ilbers.de> (raw)
In-Reply-To: <9364cdda-1e01-389a-e586-ff0ea30e028a@siemens.com>
Hi Jan,
Tried to apply the patch - CI build failed.
See for details:
http://isar-build.org:8080/job/isar_mosipov_next/164/console
Regards,
Maxim.
On 3/19/19 11:31 AM, Jan Kiszka wrote:
> On 19.03.19 11:10, Baurzhan Ismagulov wrote:
>> On Mon, Feb 25, 2019 at 12:08:23PM +0100, Jan Kiszka wrote:
>>> Removing -rcX from a version string is lexically a downgrade,
>>> logically not.
>>> I'm not that sure if you can compensate this.
>>
>> Debian uses tilde for that, e.g. 1.0~rc1-1+deb9u2. This is addressed in
>> https://www.debian.org/doc/debian-policy/ch-controlfields.html#version:
>>
>> "First the initial part of each string consisting entirely of
>> non-digit
>> characters is determined. These two parts (one of which may be
>> empty) are
>> compared lexically. If a difference is found it is returned. The
>> lexical
>> comparison is a comparison of ASCII values modified so that all the
>> letters
>> sort earlier than all the non-letters and so that a tilde sorts before
>> anything, even the end of a part. For example, the following parts
>> are in
>> sorted order from earliest to latest: ~~, ~~a, ~, the empty part,
>> a. [7]
>>
>> [7] One common use of ~ is for upstream pre-releases. For example,
>> 1.0~beta1~svn1245 sorts earlier than 1.0~beta1, which sorts
>> earlier than
>> 1.0."
>>
>
> Good to know. We will have to educate people coming from OE about this
> non-intuitive deviation from how things work over there.
>
>>
>>> Anyway, a real downgrade is a valid development scenario as well for our
>>> isar-apt.
>>
>> Downgrade is supported by the packaging toolchain (dpkg / apt), but
>> not by the
>> distribution (packages themselves, notably postinst, etc.).
>> https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_emergency_downgrading
>>
>> says:
>>
>> "Downgrading is not officially supported by the Debian by design.
>> It should
>> be done only as a part of emergency recovery process. Despite of this
>> situation, it is known to work well in many incidents. For critical
>> systems,
>> you should backup all important data on the system after the recovery
>> operation and re-install the new system from the scratch.
>>
>> You may be lucky to downgrade from newer archive to older archive
>> to recover
>> from broken system upgrade by manipulating candidate version..."
>>
>> So I'd be reluctant to do that by default. What about extracting the apt
>> options into a config file, where the user may add his options?
>
> I don't see that we should add a redundant, counter-intuitive option.
> The user already clearly expressed that packages of choice should be
> installed. This is what whole Isar is about: customization. Moreover,
> the user will get exactly that by doing a clean rebuild.
>
> So, please merge.
>
> Jan
>
--
Maxim Osipov
ilbers GmbH
Maria-Merian-Str. 8
85521 Ottobrunn
Germany
+49 (151) 6517 6917
mosipov@ilbers.de
http://ilbers.de/
Commercial register Munich, HRB 214197
General Manager: Baurzhan Ismagulov
next prev parent reply other threads:[~2019-03-19 17:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-23 10:44 Jan Kiszka
2019-02-25 9:39 ` Henning Schild
2019-02-25 9:57 ` Jan Kiszka
2019-02-25 10:15 ` Henning Schild
2019-02-25 11:08 ` Jan Kiszka
2019-03-19 10:10 ` Baurzhan Ismagulov
2019-03-19 10:31 ` Jan Kiszka
2019-03-19 17:33 ` Maxim Yu. Osipov [this message]
2019-03-19 18:46 ` Jan Kiszka
2019-03-04 9:04 ` Claudius Heine
2019-03-04 9:08 ` Jan Kiszka
2019-03-28 12:42 ` Maxim Yu. Osipov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d629c173-b74f-e236-5dd2-22041370fdf8@ilbers.de \
--to=mosipov@ilbers.de \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox