summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2012-July/017336.html
blob: f39254e930cdb29ed3b207f6fd22577cb3e44143 (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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] Planning the /usr move
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Planning%20the%20/usr%20move&In-Reply-To=%3C5001B46B.5040204%40colin.guthr.ie%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="017270.html">
   <LINK REL="Next"  HREF="017267.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] Planning the /usr move</H1>
    <B>Colin Guthrie</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Planning%20the%20/usr%20move&In-Reply-To=%3C5001B46B.5040204%40colin.guthr.ie%3E"
       TITLE="[Mageia-dev] Planning the /usr move">mageia at colin.guthr.ie
       </A><BR>
    <I>Sat Jul 14 20:03:23 CEST 2012</I>
    <P><UL>
        <LI>Previous message: <A HREF="017270.html">[Mageia-dev] Planning the /usr move
</A></li>
        <LI>Next message: <A HREF="017267.html">[Mageia-dev] Complimentary article
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#17336">[ date ]</a>
              <a href="thread.html#17336">[ thread ]</a>
              <a href="subject.html#17336">[ subject ]</a>
              <a href="author.html#17336">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>'Twas brillig, and Colin Guthrie at 11/07/12 14:10 did gyre and gimble:
&gt;<i> 'Twas brillig, and Colin Guthrie at 11/07/12 12:52 did gyre and gimble:
</I>&gt;&gt;<i> In a set of follow up emails I'll post some results from investigations
</I>&gt;&gt;<i> of what packages are affected by the change (preliminary checks are
</I>&gt;&gt;<i> quite promising in that there are not too many packages that will need
</I>&gt;&gt;<i> fixed - IIRC fedora found ~30 packages which isn't too bad).
</I>&gt;<i> 
</I>&gt;<i> OK, here are some results from a small script I wrote.
</I>&gt;<i> 
</I>&gt;<i> Firstly I ran two commands:
</I>&gt;<i> 
</I>&gt;<i> urpmf ^/sbin | sort -u &gt;slash-sbin.txt
</I>&gt;<i> urpmf ^/bin | sort -u &gt;slash-bin.txt
</I>&gt;<i> 
</I>&gt;<i> 
</I>&gt;<i> 
</I>&gt;<i> Then ran the attached script on each which takes each package name and
</I>&gt;<i> tries to find any conflicting files in /usr in other packages.
</I>&gt;<i> 
</I>&gt;<i> Here are the results:
</I>&gt;<i> 
</I>&gt;<i> /sbin:
</I>&gt;<i> 
</I>&gt;<i> alsa-utils:self
</I>&gt;<i> bluez:self
</I>&gt;<i> davfs2:self
</I>&gt;<i> info-install:dpkg
</I>&gt;<i> iputils:self
</I>&gt;<i> libselinux-utils:self
</I>&gt;<i> ncpfs:self
</I>&gt;<i> sound-scripts:self
</I>&gt;<i> util-linux:self
</I>&gt;<i> xfsdump:self
</I>&gt;<i> zapata:dahdi-tools
</I>&gt;<i> 
</I>&gt;<i> 
</I>&gt;<i> /bin:
</I>&gt;<i> 
</I>&gt;<i> coreutils:heimdal-workstation
</I>&gt;<i> findutils:self
</I>&gt;<i> fuse:self
</I>&gt;<i> gawk:self
</I>&gt;<i> gettext-base:self
</I>&gt;<i> gzip:self
</I>&gt;<i> kbd:self
</I>&gt;<i> kmod:self
</I>&gt;<i> lsb-release:self
</I>&gt;<i> open:self
</I>&gt;<i> pdksh:self
</I>&gt;<i> plymouth:self
</I>&gt;<i> procps:self
</I>&gt;<i> sound-scripts:self
</I>&gt;<i> util-linux:heimdal-login shadow-utils
</I>&gt;<i> 
</I>&gt;<i> 
</I>&gt;<i> 
</I>&gt;<i> As you can see the results are quite easy. Most of them &quot;self conflict&quot;
</I>&gt;<i> which is a trivial fix in those packages.
</I>&gt;<i> 
</I>&gt;<i> The ones that are actually mildly complicated are:
</I>&gt;<i> 
</I>&gt;<i> info-install:dpkg
</I>&gt;<i> zapata:dahdi-tools
</I>&gt;<i> coreutils:heimdal-workstation
</I>&gt;<i> util-linux:heimdal-login shadow-utils
</I>&gt;<i> 
</I>&gt;<i> The heimdal-login issues should be mostly OK, as the package itself
</I>&gt;<i> conflicts with util-linux, but the -workstation provides it's own &quot;su&quot;
</I>&gt;<i> in /usr/bin. This is likely to be a problem in itself as I'm not sure
</I>&gt;<i> any package can conflict with core-utils!! I don't know anything about
</I>&gt;<i> heimdal, so anyone with expertise in the ins and outs of this should
</I>&gt;<i> speak up!
</I>&gt;<i> 
</I>&gt;<i> The Only other real problem is that we currently use &quot;login&quot; from
</I>&gt;<i> shadow-utils (by virtue of it being in /usr/bin) but a /bin/login is
</I>&gt;<i> provided by util-linux.
</I>&gt;<i> 
</I>&gt;<i> It seems fedora use the util-linux one and remove binaries from
</I>&gt;<i> shadow-utils they don't use. If no-one has any strong opinion or
</I>&gt;<i> knowledge here I'll just follow that pattern.
</I>&gt;<i> 
</I>&gt;<i> <A HREF="http://pkgs.fedoraproject.org/gitweb/?p=shadow-utils.git;a=blob;f=shadow-utils.spec;hb=HEAD">http://pkgs.fedoraproject.org/gitweb/?p=shadow-utils.git;a=blob;f=shadow-utils.spec;hb=HEAD</A>
</I>&gt;<i> 
</I>&gt;<i> 
</I>&gt;<i> 
</I>&gt;<i> I've not done checks in the various lib packages (for /lib and /lib64)
</I>&gt;<i> but I suspect there will be less complications there anyway and mostly
</I>&gt;<i> just self-conflicts.
</I>
OK, so I've now down more analysis and the following should be a
complete list of package which have issues relating to the same files
existing in / vs /usr (46 packages in total):

 acl-2.2.51-3.mga2.src.rpm
 alsa-utils-1.0.25-4.mga2.src.rpm
 attr-2.4.46-1.mga2.src.rpm
 bluez-4.101-1.mga3.src.rpm
 coreutils-8.17-1.mga3.src.rpm
 davfs2-1.4.6-1.mga1.src.rpm
 db47-4.7.25-8.mga1.src.rpm
 db48-4.8.30-8.mga2.src.rpm
 db51-5.1.25-5.mga2.src.rpm
 db52-5.2.36-2.mga3.src.rpm
 dmapi-2.2.10-3.mga1.src.rpm
 filesystem-2.1.9-17.mga2.src.rpm
 findutils-4.5.10-1.mga2.src.rpm
 fuse-2.8.7-1.mga2.src.rpm
 gawk-4.0.1-1.mga2.src.rpm
 gcc-4.7.1-3.mga3.src.rpm
 gettext-0.18.1.1-2.mga2.src.rpm
 grub-0.97-32.mga1.src.rpm
 gzip-1.5-1.mga3.src.rpm
 iputils-20101006-3.mga2.src.rpm
 kbd-1.15.3-1.mga2.src.rpm
 kmod-8-1.mga3.src.rpm
 libselinux-2.0.78-3.mga1.src.rpm
 libtermcap-2.0.8-51.mga3.src.rpm
 libusb1-1.0.9-1.mga2.src.rpm
 libusb-compat-0.1.4-1.mga3.src.rpm
 lsb-4.1-12.mga3.src.rpm
 lsb-release-2.0-37.mga3.src.rpm
 ncpfs-2.2.6-12.mga3.src.rpm
 ncurses-5.9-6.mga2.src.rpm
 nspr-4.9.1-1.mga3.src.rpm
 nss-3.13.5-1.mga3.src.rpm
 open-1.4-21.mga1.src.rpm
 pcre-8.21-1.mga2.src.rpm
 pdksh-5.2.14-29.mga1.src.rpm
 plymouth-0.8.5.1-1.mga3.src.rpm
 procps-3.2.8-6.mga1.src.rpm
 readline-6.2-4.mga2.src.rpm
 sound-scripts-0.62-9.mga3.src.rpm
 systemd-186-1.mga3.src.rpm
 texinfo-4.13a-5.mga3.src.rpm
 util-linux-2.21.2-1.mga3.src.rpm
 xfsdump-3.1.0-1.mga2.src.rpm
 xz-5.0.4-1.mga3.src.rpm
 zapata-1.4.12.1-2.mga2.src.rpm
 zlib-1.2.7-3.mga3.src.rpm



My plan will be to rebuild each of them locally without any kind of
conflicts (most of them self conflicts as I mentioned previously).

Then I will update the filesystem package and build it locally with the
rpm test so it cannot be installed unless the filesystem is in a
suitible state, do the filesystem conversion via dracut, then upgrade
filesystem package and all the rebuilt packages.

Assuming my system is fine, I will then submit all the packages above
for build on the buildsystem, update the filesystem package on the
buildsystem, then rebuild all the above packages again but with an
additional Requires(pre): filesystem &gt;= $whatever-it-is.


Assuming it all works for me, would others be willing to test (on
x86_64) the packages I'll build?  I'll publish them to a custom repo,
along with detailed instructions on the dracut procedure, for running
the upgrade.


Cheers

Col


-- 

Colin Guthrie
colin(at)mageia.org
<A HREF="http://colin.guthr.ie/">http://colin.guthr.ie/</A>

Day Job:
  Tribalogic Limited <A HREF="http://www.tribalogic.net/">http://www.tribalogic.net/</A>
Open Source:
  Mageia Contributor <A HREF="http://www.mageia.org/">http://www.mageia.org/</A>
  PulseAudio Hacker <A HREF="http://www.pulseaudio.org/">http://www.pulseaudio.org/</A>
  Trac Hacker <A HREF="http://trac.edgewall.org/">http://trac.edgewall.org/</A>


</PRE>



<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="017270.html">[Mageia-dev] Planning the /usr move
</A></li>
	<LI>Next message: <A HREF="017267.html">[Mageia-dev] Complimentary article
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#17336">[ date ]</a>
              <a href="thread.html#17336">[ thread ]</a>
              <a href="subject.html#17336">[ subject ]</a>
              <a href="author.html#17336">[ 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>