Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1224456
| From | Paride Legovini <paride@debian.org> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#1086701: autopkgtest: Same package version considered downgrade |
| Date | 2024-12-17 14:50 +0100 |
| Message-ID | <JUG7v-ef4-1@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <JF9dv-6BYD-3@gated-at.bofh.it> <JF4dQ-6z2C-9@gated-at.bofh.it> <JTZFf-heSm-11@gated-at.bofh.it> <JF4dQ-6z2C-9@gated-at.bofh.it> <JTZFf-heSm-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 2024-12-15 17:17, Simon McVittie wrote:
> On Mon, 04 Nov 2024 at 18:29:55 +0100, Paride Legovini wrote:
>> 2. We move /etc/apt/sources.list *last* in the list of sources, e.g. to
>> /etc/apt/sources.list/zz-sources.list. This is more correct, but should
>> be done carefully. You can play with with workaround by passing:
>>
>> --setup-commands="mv /etc/apt/sources.list
>> /etc/apt/sources.list.d/zz-sources.list"
>>
>> And we need a test case for this, as it's way too easy to regress.
>
> Does this proposal work to solve the problem, without applying artificial
> modifications to the built package as in the MR that you ended up
> proposing?
The problem can be fixed by careful ordering of the apt sources, yes.
The ugly thing of this solution is that apt is still unable to
distinguish the packages and gets confused, but in the way that works
well for our purposes. As noted in the MR [1], I now think this is still
better than mangling the source package (what the MR does).
> I observe that in newer Debian installations and container images,
> /etc/apt/sources.list is not present, and the OS's own apt sources are
> in deb822 format in /etc/apt/sources.list.d/${DEB_VENDOR}.sources.
> autopkgtest-build-* and setup-testbed do not set up this situation (yet),
> and indeed they might revert it, but other pieces of infrastructure do.
>
> So I think it might be a more realistic reflection of a real Debian system
> if we wrote the `deb [ trusted=yes ] file://%(d)s /` apt source that is
> used to supply the just-built packages into a very "early" filename
> (perhaps 00-autopkgtest.list instead of the current autopkgtest.list),
> and renamed /etc/apt/sources.list (if it exists) to something like
> /etc/apt/sources.list/autopkgtest-os-default.list?
I agree; this is basically the same of what I outlined in [1].
--
Paride
[1]
https://salsa.debian.org/ci-team/autopkgtest/-/merge_requests/476#note_550130
Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Find similar | Unroll thread
Bug#1086701: autopkgtest: Same package version considered downgrade Simon McVittie <smcv@debian.org> - 2024-12-15 17:30 +0100 Bug#1086701: autopkgtest: Same package version considered downgrade Paride Legovini <paride@debian.org> - 2024-12-17 14:50 +0100
csiph-web