[Debian-med-packaging] Bug#1153185: oscar: version mismatch (2.1.0 vs. oscar/VERSION's 1.7.1)
Sergio Durigan Junior
sergiodj at debian.org
Sat Nov 7 21:14:57 GMT 2026
Control: reassign -1 devscripts
Control: forcemerge 1139899 -1
Control: severity 1139899 important
On Friday, 06 November 2026, Philip Hands wrote:
> There's something strange going on regarding the version of the source you're
> building as 2.1.0.
>
> I noticed this when doing a local backport, and then seeing 1.7.1 in the running
> program, and wondering if I'd actually managed to install my newly built copy or
> not.
>
> oscar/VERSION in the upstream/2.1.0 tag from salsa contains 1.7.1, which seems wrong.
>
> This seems not to be an upstream bug, since the repo pointed to by debian/watch
> has a v2.1.0 tag, and the version of oscar/VERSION in that tagged commit has
> 2.1.0 in it, as seen here:
>
> https://gitlab.com/CrimsonNape/oscar-sql/-/blob/82ec7db2ca90f83cf3490d20051e547cf9df4f28/oscar/VERSION
>
> I had a quick look to see if I could find the version of the upstream source
> you're actually using, but failed to find a match, so something strange is going
> on here -- are you using another repo as upstream?
Thanks for the report.
Oh, wow. This is crazy. I did some investigation and here's what I
found:
- The commit importing 2.1.0 in the `upstream` branch is empty:
https://salsa.debian.org/med-team/oscar/-/commit/bb04bcdc3e6861e7f7071c7cba721fb144fd4920
This is one me. I should have checked it before uploading the
package.
- When I unpack the origtar, I see that it contains the code for 1.7.1
indeed.
I was beating myself thinking that I'd made a mistake when running `gbp
import --uscan`, and in a way I did make a mistake (because I should
have double checked the import commit), but the root of the issue lies
within uscan itself.
I've just tried to import the latest upstream version (2.1.1) using
exactly the same method (`gbp import-orig --uscan`), and after verifying
that `uscan --report --verbose` correctly detects the new upstream
version, `gbp import-orig --uscan` imports version 1.7.1 yet again.
The problem happens because the URL used to download the tarball will
generate a generic `archive.tar.gz` file:
--8<---------------cut here---------------start------------->8---
Newest version of oscar on remote site is 2.1.1, local version is 2.1.0
=> Newer package available from:
=> https://gitlab.com/api/v4/projects/82980409/repository/archive.tar.gz?sha=v2.1.1
--8<---------------cut here---------------end--------------->8---
and this file already exists here, so uscan considers that I've already
downloaded it and just symlinks `oscar_2.1.0.orig.tar.gz` to it. This
is obviously wrong because the `archive.tar.gz` I have here is from
version 1.7.1, which explains why the update didn't happen.
I found bug #1139899 which describes this exact scenario, so I'm
force-merging this bug into it. I'm also bumping its severity to better
reflect the issue at hand.
> Meanwhile, https://gitlab.com/CrimsonNape/oscar-sql has recently released v2.1.1
> (with that correctly reflected in the oscar/VERSION) so the trivial fix for this
> is probably simply to upgrade to that.
I'll upload 2.1.1 later today, which should fix the issue.
> BTW the backport to trixie was completely trivial, so if you're already a
> backport uploader it would be great if you would add oscar to trixie-backports,
> as that would allow stable users to upgrade.
>
> If you're not already a backports uploader, and don't feel the urge to become
> one, I'd be happy to handle uploads to trixie-backports if you'd like me to.
I'm a backport uploader, but unfortunately I don't have the time right
now to prepare OSCAR for it. So yeah, feel free to do the upload! If
you want to wait until tomorrow, version 2.1.1 should be in unstable by
then.
Thanks,
--
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
https://sergiodj.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 861 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20261107/d9aba41d/attachment.sig>
More information about the Debian-med-packaging
mailing list