unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#51099: guix refresh/lint can provide false positive about updates
@ 2021-10-08 19:31 Maxim Cournoyer
  2021-10-29 19:19 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Maxim Cournoyer @ 2021-10-08 19:31 UTC (permalink / raw)
  To: 51099

Hello,

In Guix, we commit to offer officially released packages where
available/feasible.  Some projects produce release that are not
"stable", such as GStreamer, and our 'guix refresh' tool can't currently
tell the difference:

--8<---------------cut here---------------start------------->8---
$ guix lint gstreamer-docs
[...]
gstreamer-docs@1.18.5: can be upgraded to 1.19.2
--8<---------------cut here---------------end--------------->8---

For GStreamer, every odd minor release version indicates a development
snapshot (unstable) release.

One way to go about this would be to provide the release version scheme
at the pacakage level and use that information to filter available
releases, e.g.:

(package
 ...
 (properties '((version-scheme %even-minor-version))))

Where %even-minor-version could be a procedure accept the version string
as input and validating that the minor version number is even.

Or something along these lines.

Thanks,

Maxim




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#51099: guix refresh/lint can provide false positive about updates
  2021-10-08 19:31 bug#51099: guix refresh/lint can provide false positive about updates Maxim Cournoyer
@ 2021-10-29 19:19 ` Ludovic Courtès
  2024-03-14 18:26   ` Maxim Cournoyer
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2021-10-29 19:19 UTC (permalink / raw)
  To: Maxim Cournoyer; +Cc: 51099

Hi,

Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:

> In Guix, we commit to offer officially released packages where
> available/feasible.  Some projects produce release that are not
> "stable", such as GStreamer, and our 'guix refresh' tool can't currently
> tell the difference:
>
> $ guix lint gstreamer-docs
> [...]
> gstreamer-docs@1.18.5: can be upgraded to 1.19.2
>
> For GStreamer, every odd minor release version indicates a development
> snapshot (unstable) release.

Ah that’s an interesting case.  The ‘gnome’ updater checks for odd minor
release numbers already.  But in this case, it’s the ‘generic-html’
updater that kicks in, which is nice, except it doesn’t know about the
odd/even scheme.

So yes, we could have a property like you suggest that the
‘generic-html’ and ‘generic-git’ updaters (at least) would honor.

Ludo’.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#51099: guix refresh/lint can provide false positive about updates
  2021-10-29 19:19 ` Ludovic Courtès
@ 2024-03-14 18:26   ` Maxim Cournoyer
  0 siblings, 0 replies; 3+ messages in thread
From: Maxim Cournoyer @ 2024-03-14 18:26 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 51099-done

Hi,

Ludovic Courtès <ludo@gnu.org> writes:

> Hi,
>
> Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
>
>> In Guix, we commit to offer officially released packages where
>> available/feasible.  Some projects produce release that are not
>> "stable", such as GStreamer, and our 'guix refresh' tool can't currently
>> tell the difference:
>>
>> $ guix lint gstreamer-docs
>> [...]
>> gstreamer-docs@1.18.5: can be upgraded to 1.19.2
>>
>> For GStreamer, every odd minor release version indicates a development
>> snapshot (unstable) release.
>
> Ah that’s an interesting case.  The ‘gnome’ updater checks for odd minor
> release numbers already.  But in this case, it’s the ‘generic-html’
> updater that kicks in, which is nice, except it doesn’t know about the
> odd/even scheme.
>
> So yes, we could have a property like you suggest that the
> ‘generic-html’ and ‘generic-git’ updaters (at least) would honor.

GNOME is moving away from such a versioning scheme, reflected by this 2
year old commit of mine: 5dd3acd0a0941ff9764959b313aae48095c66312
("import: gnome: Improve version handling logic.").

Thus, the use case seems to have vanished.  Let's close for now.

-- 
Thanks,
Maxim




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-03-14 18:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-08 19:31 bug#51099: guix refresh/lint can provide false positive about updates Maxim Cournoyer
2021-10-29 19:19 ` Ludovic Courtès
2024-03-14 18:26   ` Maxim Cournoyer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).