Re: Obsoletes/Provides question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 20, 2021 at 03:23:04AM +0100, Kevin Kofler via devel wrote:
> Daniel P. Berrangé wrote:
> 
> > On Tue, Jan 19, 2021 at 03:18:41PM +0000, Richard W.M. Jones wrote:
> >> On Tue, Jan 19, 2021 at 04:12:59PM +0100, Miro Hrončok wrote:
> >> > On 19. 01. 21 16:06, Richard W.M. Jones wrote:
> >> > >(2) Or adding:
> >> > >
> >> > >%package tar-filter
> >> > >Obsoletes: %{name}-tar-plugin <= %{version}-%{release}
> >> > >
> >> > >which says that it obsoletes but doesn't provide a replacement.  Note
> >> > >however I'm not sure if this will work, because they won't have
> >> > >nbdkit-tar-filter installed before the upgrade (it never existed in
> >> > >F32), so will the Obsoletes ever be "seen" by dnf?
> >> > 
> >> > Yes, it will be seen and respected.
> >> > 
> >> > Note that it in most cases, it is recommended to obsolete a specific
> >> > version-release rather than %{version}-%{release}.
> >> 
> >> To be clear, I would find the last released nbdkit-tar-plugin version
> >> in F32 (https://koji.fedoraproject.org/koji/buildinfo?buildID=1605446)
> >> and write this?
> >> 
> >> %package tar-filter
> >> Obsoletes: %{name}-tar-plugin = 1.20.7-1.fc32
> > 
> > Yes, but use <= here, rather than =, as users might be updating from an
> > older install.
> > 
> > Arguably can leave off the .fc32 part too IMHO.
> 
> But then, <= 1.20.7-1 will do the wrong thing, which is why Miro recommends 
> (and I agree with him) to use < 1.20.7-2 instead.

This is what I added (to both Rawhide and F33):

https://src.fedoraproject.org/rpms/nbdkit/c/f0f5e8b3ec84ff88900395d908d654770d2efe55?branch=master

where 1.23.9-2 was the last Fedora release that had the obsolete
nbdkit-tar-plugin package.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux