[opensuse-packaging] Proper use of obsolietes?
![](https://seccdn.libravatar.org/avatar/25bbc96d9c53647354cb724e744b2222.jpg?s=120&d=mm&r=g)
I just want to make sure this is right before I send it to factory: --- # fiwalk has been incorporated into sleuthkit. Last standalone version was 0.6.16 Obsoletes: fiwalk < 0.7 Provides: fiwalk --- As found in my specfile at: https://build.opensuse.org/package/show?package=sleuthkit&project=home%3Agre... Thanks Greg -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/3a766c4a0b64a5d1b06b4a786d5e3a9e.jpg?s=120&d=mm&r=g)
On Mon, Mar 04, 2013 at 11:21:38PM -0500, Greg Freemyer wrote:
I just want to make sure this is right before I send it to factory:
--- # fiwalk has been incorporated into sleuthkit. Last standalone version was 0.6.16 Obsoletes: fiwalk < 0.7 Provides: fiwalk ---
As found in my specfile at: https://build.opensuse.org/package/show?package=sleuthkit&project=home%3Agre...
Hi, please add http://en.opensuse.org/openSUSE:Package_dependencies into bookmarks. I'd say your case is Merging packages and I would say this is the most correct form Provides: fiwalk = %{version}-%{release} Obsoletes: fiwalk < %{version}-%{release} but Obsoletes: fiwalk < 0.7 or fiwalk <= 0.6.16 will work too. Regards Michal Vyskocil
Thanks Greg -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/e76779f0629280df6d2dfce07e4e1600.jpg?s=120&d=mm&r=g)
Hello, Am Dienstag, 5. März 2013 schrieb Michal Vyskocil:
please add http://en.opensuse.org/openSUSE:Package_dependencies into bookmarks.
;-)
and I would say this is the most correct form
Provides: fiwalk = %{version}-%{release} Obsoletes: fiwalk < %{version}-%{release}
but Obsoletes: fiwalk < 0.7 or fiwalk <= 0.6.16 will work too.
IMHO hardcoding the last version in Obsoletes: is even better ;-) because it also does the job with less possible side effects. Just imagine what happens if someone starts a new, totally different project and for some reason names it fiwalk. With the hardcoded version in Obsoletes: chances are better that sleuthkit won't accidently uninstall the "other" fiwalk 1.0 in 3 years ;-) Hmm, the guidelines don't contain anything about using %{version} vs. using a hardcoded version. Should we add a paragraph about it? Proposal: Obsoletes: should always contain the version number of the last available package. If you want to obsolete foo 1.1, use Obsoletes: foo <= 1.1 Do not use "Obsoletes: foo < %{version}"! Regards, Christian Boltz --
ist mein sendmail was da rumpfuscht Tsss. Du hast also sendmail laufen _UND VERWENDEST TROTZDEM KEIN MUTT?!!_ [Herbert Steinboeck und David Haller in suse-talk]
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/25bbc96d9c53647354cb724e744b2222.jpg?s=120&d=mm&r=g)
On Tue, Mar 5, 2013 at 12:36 PM, Christian Boltz <opensuse@cboltz.de> wrote:
Hello,
Am Dienstag, 5. März 2013 schrieb Michal Vyskocil:
please add http://en.opensuse.org/openSUSE:Package_dependencies into bookmarks.
;-)
and I would say this is the most correct form
Provides: fiwalk = %{version}-%{release} Obsoletes: fiwalk < %{version}-%{release}
but Obsoletes: fiwalk < 0.7 or fiwalk <= 0.6.16 will work too.
IMHO hardcoding the last version in Obsoletes: is even better ;-) because it also does the job with less possible side effects. Just imagine what happens if someone starts a new, totally different project and for some reason names it fiwalk. With the hardcoded version in Obsoletes: chances are better that sleuthkit won't accidently uninstall the "other" fiwalk 1.0 in 3 years ;-)
Hmm, the guidelines don't contain anything about using %{version} vs. using a hardcoded version. Should we add a paragraph about it?
Proposal:
Obsoletes: should always contain the version number of the last available package. If you want to obsolete foo 1.1, use Obsoletes: foo <= 1.1 Do not use "Obsoletes: foo < %{version}"!
That was actually precisely my question. In this case fiwalk 0.6.16 was incorporated into sleuthkit 4.0.2. If a new standalone fiwalk were to be released in the future, I have no idea what it would be, other than it should be greater than 0.6.16. I will update my specfile to be <= 0.6.16 Thanks Greg -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (3)
-
Christian Boltz
-
Greg Freemyer
-
Michal Vyskocil