summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2012-June/016412.html
blob: 5a593b1cf3798ba42bc49f081eeeed4194954cd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] Proposed Feature:Backports_update_applet
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Proposed%20Feature%3ABackports_update_applet&In-Reply-To=%3Cs31ja9-r9v.ln1%40psd.motzarella.org%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="016331.html">
   <LINK REL="Next"  HREF="016427.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] Proposed Feature:Backports_update_applet</H1>
    <B>blind Pete</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Proposed%20Feature%3ABackports_update_applet&In-Reply-To=%3Cs31ja9-r9v.ln1%40psd.motzarella.org%3E"
       TITLE="[Mageia-dev] Proposed Feature:Backports_update_applet">0123peter at gmail.com
       </A><BR>
    <I>Tue Jun 12 07:36:27 CEST 2012</I>
    <P><UL>
        <LI>Previous message: <A HREF="016331.html">[Mageia-dev] Proposed Feature:Backports_update_applet
</A></li>
        <LI>Next message: <A HREF="016427.html">[Mageia-dev] Proposed Feature:Backports_update_applet
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#16412">[ date ]</a>
              <a href="thread.html#16412">[ thread ]</a>
              <a href="subject.html#16412">[ subject ]</a>
              <a href="author.html#16412">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>andre999 wrote:

&gt;<i> blind Pete a &#233;crit :
</I>&gt;&gt;<i> Samuel Verschelde wrote:
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>    
</I>&gt;&gt;&gt;<i> Following Backports opening due soon, and since our policy is that
</I>&gt;&gt;&gt;<i> backports are supported (security, bugfix), we need a way to push
</I>&gt;&gt;&gt;<i> backport updates for users who installed backports. Otherwise, we can't
</I>&gt;&gt;&gt;<i> really say that we're providing security updates to our backports.
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> My feature proposal is to implement something similar to what mgaonline
</I>&gt;&gt;&gt;<i> + MageiaUpdate does for updates, but for backports, with some changes
</I>&gt;&gt;&gt;<i> due to the fact that users will rarely want that &quot;all&quot; packages on the
</I>&gt;&gt;&gt;<i> system be updated from backports when the backports media are activated.
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> <A HREF="https://wiki.mageia.org/en/Feature:Backports_update_applet">https://wiki.mageia.org/en/Feature:Backports_update_applet</A>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> I don't think I can do the dev myself. I can work on more detailed
</I>&gt;&gt;&gt;<i> specifications with a developer though.
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> Samuel
</I>&gt;&gt;&gt;<i>      
</I>&gt;&gt;<i> There are a multiple ways that this problem could be handled.
</I>&gt;&gt;<i> Yours is one.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Samuel's way:
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Need &quot;something&quot; to know that a backport package
</I>&gt;&gt;<i> has been installed, to remember that fact, and to do an extra
</I>&gt;&gt;<i> backport update search when looking for updates.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> It would need to keep working if the user changed desktop
</I>&gt;&gt;<i> environments, or even stopped used a desktop and just used
</I>&gt;&gt;<i> the command line.  Does mgaonline do this?  There could be
</I>&gt;&gt;<i> room to improve that.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> If it can be detected that a backport package has been installed
</I>&gt;&gt;<i> (or less efficiently, detect that a backports repository
</I>&gt;&gt;<i> has been activated) set up a cron job (or reconfigure mgaonline)
</I>&gt;&gt;<i> and leave it like that for the life of the installation.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Geeks way:
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Only use urpmi as a command line tool and edit urpmi.cfg with vi.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> When activating a backports repository mark it as an update
</I>&gt;&gt;<i> repository.  Then update with &quot;urpmi --excludemedia [backport media,
</I>&gt;&gt;<i> ...]&quot; accepting all suggestions, followed by &quot;urpmi --auto-select&quot;
</I>&gt;&gt;<i> and look at what is offered before accepting.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> My suggestion:
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Add &quot;bp&quot; to the package name and have separate backports update
</I>&gt;&gt;<i> repositories.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Users would then be able to cherry pick from backports and
</I>&gt;&gt;<i> updates should _just work_ without extra intervention.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> The only difficulty that I can think of is, when a backport
</I>&gt;&gt;<i> (or backport update) package is pushed to updates.  It would
</I>&gt;&gt;<i> not be necessary to do a real update but the rpm database
</I>&gt;&gt;<i> should be updated such that version N-bp supersedes version N.
</I>&gt;&gt;<i> (And the N-bp packages should be removed from the repositories.)
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Can anyone see any holes in the logic?
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> What would be easiest to implement?
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>    
</I>&gt;<i> You got me thinking :)
</I>
Thinking is always dangerous.  ;-)  

&gt;<i> - Just marking all backport repos as update repos is almost enough to
</I>&gt;<i> solve the problem, in terms of the tools installing the backports.
</I>&gt;<i> Great idea !
</I>&gt;<i> We just have to tweak the tools so that a backport is only installed as
</I>&gt;<i> an update of a backport.
</I>
Because the contents of the backport repositories changes during 
the life of an installation it is desirable to... well... um... 
&quot;update&quot; the database about that.  

&gt;<i> - Note that we should allow a non-backport to replace a backport, as
</I>&gt;<i> will likely be encountered in a release update.  If the versioning is
</I>&gt;<i> properly done (according to established packaging policy), a
</I>&gt;<i> non-backport in a newer release will have a higher version number, thus
</I>&gt;<i> replacing the backport.
</I>
If they had the same version number you would not want to do a 
real update, but you might want to adjust the database.  I have 
no idea if that would be more trouble than it is worth.  

&gt;<i> - Functioning as an update, it would only replace already installed
</I>&gt;<i> backports, once the tools are appropriately adjusted.
</I>
There are a couple of ways to do that.  The simplest that I can think 
of is to split &quot;backports&quot; into &quot;backports&quot; and &quot;backports update&quot;.  
Allow cherry picking from &quot;backports&quot; and apply &quot;backports update&quot; 
automatically.  

&gt;<i> - As with any update repo, one could always explicitly install a
</I>&gt;<i> backport which is not already installed.  No special treatment is
</I>&gt;<i> required for this.
</I>&gt;<i> 
</I>&gt;<i> - using &quot;bp&quot; in the file name is nice and short, and definitively marks
</I>&gt;<i> it as a backport for the tools, and for the user once installed.  (I
</I>&gt;<i> would put it in the revision field.)
</I>&gt;<i> I like this approach, as it doesn't matter from where the package is
</I>&gt;<i> installed; it will always be recognized as a backport.
</I>&gt;<i> 
</I>&gt;<i> So I'm suggesting a variation of the last 2 solutions.
</I>&gt;<i> I think that this would be relatively easy to implement.
</I>&gt;<i> The trick is to find the right place in the code for the tweaks.
</I>&gt;<i> (tv could probably do it really fast.)
</I>&gt;<i> 
</I>

</PRE>











<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="016331.html">[Mageia-dev] Proposed Feature:Backports_update_applet
</A></li>
	<LI>Next message: <A HREF="016427.html">[Mageia-dev] Proposed Feature:Backports_update_applet
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#16412">[ date ]</a>
              <a href="thread.html#16412">[ thread ]</a>
              <a href="subject.html#16412">[ subject ]</a>
              <a href="author.html#16412">[ 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>