diff options
Diffstat (limited to 'zarb-ml/mageia-dev/20110219/002676.html')
-rw-r--r-- | zarb-ml/mageia-dev/20110219/002676.html | 130 |
1 files changed, 130 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/20110219/002676.html b/zarb-ml/mageia-dev/20110219/002676.html new file mode 100644 index 000000000..075928fb1 --- /dev/null +++ b/zarb-ml/mageia-dev/20110219/002676.html @@ -0,0 +1,130 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [Mageia-dev] About panotools patent problem (and other problematic rpms) + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20About%20panotools%20patent%20problem%20%28and%20other%0A%20problematic%20rpms%29&In-Reply-To=%3CAANLkTi%3Dr%2BNojyS5bq_dJLs253BaWGCdFSy98NDFT9wG_%40mail.gmail.com%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="002675.html"> + <LINK REL="Next" HREF="002677.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[Mageia-dev] About panotools patent problem (and other problematic rpms)</H1> + <B>Per Øyvind Karlsen</B> + <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20About%20panotools%20patent%20problem%20%28and%20other%0A%20problematic%20rpms%29&In-Reply-To=%3CAANLkTi%3Dr%2BNojyS5bq_dJLs253BaWGCdFSy98NDFT9wG_%40mail.gmail.com%3E" + TITLE="[Mageia-dev] About panotools patent problem (and other problematic rpms)">peroyvind at mandriva.org + </A><BR> + <I>Sat Feb 19 20:27:29 CET 2011</I> + <P><UL> + <LI>Previous message: <A HREF="002675.html">[Mageia-dev] Mageia servers certificates +</A></li> + <LI>Next message: <A HREF="002677.html">[Mageia-dev] Where is mageia bugzilla +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#2676">[ date ]</a> + <a href="thread.html#2676">[ thread ]</a> + <a href="subject.html#2676">[ subject ]</a> + <a href="author.html#2676">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>2011/2/18 Michael Scherer <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">misc at zarb.org</A>>: +><i> Le vendredi 18 février 2011 à 12:47 +0000, James Kerr a écrit : +</I>><i> +</I>>><i> If there are two packages, one in core and another in tainted, then +</I>>><i> doesn't urpmi need a way to recognise that the tainted package is newer +</I>>><i> than (an update to) the corresponding core package? I believe that this +</I>>><i> is achieved in Mandriva, because plf is greater than mdv. +</I>><i> +</I>><i> That's abusing release tag and it work by pure chance ( ie, had the plf +</I>><i> decided to  be called the guillomovitch liberation front, it would not +</I>><i> have worked ). And this is quite inflexible, since people will always +</I>><i> have plf packages, leading to users adding some rpm in skip.list with a +</I>><i> regexp. +</I>Exactly! :) + +I've just started to look into implementing support for favoring packages +based on %disttag, I'm thinking about implementing it in a way similar to this: + +Say we have global variables such as these in urpmi.cfg: + +disttag-priority: plf,mdv,mga +disttag-pin: 1 +disttag-pin-force: 0 + +in urpmi: + +* if disttag-priority is defined, it will compared the disttag of all +packages that +has the same or newer version, and favor the one of those with the disttag +that's highest on the disttag-priority list. + +* if disttag-pin is set, it will refuse to upgrade to a newer version +of a package +that has a different disttag than the one installed. + +* if disttag-pin-force is set, it will *always* upgrade/downgrade to the newest +version of a package which has the highest priority match, ie. if foo-2-1mdv +is installed, and the newest version with 'mga' disttag available in repos is +foo-1-1mga, then it will downgrade to it. + +Notice that %disttag is a tag that's been implemented in rpm since long time +ago, but was never really adopted for anything, so in rpm5 it was dusted off +and was adjusted a tiny bit for it to be made possible to be defined globally +through macro files read, similar to ie. %vendor etc. + +I've already in the past patched rpm 4.6 in cooker with support for at least +recognizing %distepoch (but not for using it in version comparision, doing +it should be fairly trivial though), I might've already made the change +mentioned for %disttag as well in the same patch, I don't really remember, +should anyhow be very trivial to do.. + +So if you'd like to eliminate 'mga' from release and version comparision, +you can already do so by making the minor change for %disttag, then +make adjustments accordingly to %_build_name_fmt and %mkrel. + +Adopting distepoch as well will require slightly more, but won't really been +hard (the hard part has already been tendered well after slamming cooker +a bit more than expected..;) and would be a sane thing to adopt anyways.. + +FWIW in .spec files, the preferred conditional would be: + +%if "%disttag" == "mga" +blabla +%else if "%disttag" == "plf" +hubbabubba +%else if "%disttag" == "mdv" +boink! +%endif + +WDYT? + +-- +Regards, +Per Øyvind +</PRE> + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="002675.html">[Mageia-dev] Mageia servers certificates +</A></li> + <LI>Next message: <A HREF="002677.html">[Mageia-dev] Where is mageia bugzilla +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#2676">[ date ]</a> + <a href="thread.html#2676">[ thread ]</a> + <a href="subject.html#2676">[ subject ]</a> + <a href="author.html#2676">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev +mailing list</a><br> +</body></html> |