summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2012-July/017586.html
blob: 830f1d0387968e7c4c1dccaaa4005541ad1a1b0d (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] ANNOUNCE: The /usr move cometh! &lt;---- Instructions
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20ANNOUNCE%3A%20The%20/usr%20move%20cometh%21%20%3C----%20Instructions&In-Reply-To=%3C500D07AE.2000601%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="017585.html">
   <LINK REL="Next"  HREF="017587.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] ANNOUNCE: The /usr move cometh! &lt;---- Instructions</H1>
    <B>Colin Guthrie</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20ANNOUNCE%3A%20The%20/usr%20move%20cometh%21%20%3C----%20Instructions&In-Reply-To=%3C500D07AE.2000601%40colin.guthr.ie%3E"
       TITLE="[Mageia-dev] ANNOUNCE: The /usr move cometh! &lt;---- Instructions">mageia at colin.guthr.ie
       </A><BR>
    <I>Mon Jul 23 10:13:34 CEST 2012</I>
    <P><UL>
        <LI>Previous message: <A HREF="017585.html">[Mageia-dev] ANNOUNCE: The /usr move cometh! &lt;---- Instructions
</A></li>
        <LI>Next message: <A HREF="017587.html">[Mageia-dev] ANNOUNCE: The /usr move cometh! &lt;---- Instructions
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#17586">[ date ]</a>
              <a href="thread.html#17586">[ thread ]</a>
              <a href="subject.html#17586">[ subject ]</a>
              <a href="author.html#17586">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>'Twas brillig, and Olivier Thauvin at 23/07/12 07:37 did gyre and gimble:
&gt;<i> * Colin Guthrie (<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">mageia at colin.guthr.ie</A>) wrote:
</I>&gt;&gt;<i> 'Twas brillig, and Shlomi Fish at 22/07/12 17:51 did gyre and gimble:
</I>&gt;&gt;&gt;<i> Hi all,
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> On Sun, 22 Jul 2012 19:46:58 +0300
</I>&gt;&gt;&gt;<i> Shlomi Fish &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">shlomif at shlomifish.org</A>&gt; wrote:
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> Hi Colin,
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> [QUOTE]
</I>&gt;&gt;&gt;&gt;<i> installing findutils-4.5.10-2.mga3.x86_64.rpm lib64plymouth2-0.8.6.1-2.mga3.x86_64.rpm filesystem-2.1.9-18.mga3.x86_64.rpm lib64ncursesw-devel-5.9-7.mga3.x86_64.rpm plymouth-plugin-script-0.8.6.1-2.mga3.x86_64.rpm lib64ncurses5-5.9-7.mga3.x86_64.rpm ncurses-5.9-7.mga3.x86_64.rpm plymouth-plugin-label-0.8.6.1-2.mga3.x86_64.rpm lib64dbjava5.1-5.1.29-4.mga3.x86_64.rpm lib64ncursesw5-5.9-7.mga3.x86_64.rpm lib64ncurses-devel-5.9-7.mga3.x86_64.rpm from /var/cache/urpmi/rpms
</I>&gt;&gt;&gt;&gt;<i> Preparing...                     #############################################
</I>&gt;&gt;&gt;&gt;<i>      1/69: filesystem            #############################################
</I>&gt;&gt;&gt;&gt;<i> error: unpacking of archive failed on file /var/lock: cpio: rename failed - Is a directory
</I>&gt;&gt;&gt;&gt;<i> error: filesystem-2.1.9-18.mga3.x86_64: install failed
</I>&gt;&gt;&gt;&gt;<i>      2/69: ncurses               #############################################
</I>&gt;&gt;&gt;&gt;<i>      3/69: lib64ncurses5         #############################################
</I>&gt;&gt;&gt;&gt;<i>      4/69: lib64plymouth2        #############################################
</I>&gt;&gt;&gt;&gt;<i>      5/69: plymouth-plugin-label #############################################
</I>&gt;&gt;&gt;&gt;<i>      6/69: lib64ncursesw5        #############################################
</I>&gt;&gt;&gt;&gt;<i>      7/69: lib64ncursesw-devel   #############################################
</I>&gt;&gt;&gt;&gt;<i>      8/69: plymouth-plugin-script
</I>&gt;&gt;&gt;&gt;<i>                                  #############################################
</I>&gt;&gt;&gt;&gt;<i>      9/69: lib64ncurses-devel    #############################################
</I>&gt;&gt;&gt;&gt;<i>     10/69: findutils             #############################################
</I>&gt;&gt;&gt;&gt;<i>     11/69: lib64dbjava5.1        #############################################
</I>&gt;&gt;&gt;&gt;<i> [/QUOTE]
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> And the rest of the packages refuse to install.
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> OK, I figured out. After I ran as root:
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> # cd /var
</I>&gt;&gt;&gt;<i> # mv lock lock.ol
</I>&gt;&gt;&gt;<i> # mv run run.old
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> It was fixed and I was able to install the &quot;filesystem&quot; package and the rest
</I>&gt;&gt;&gt;<i> of the packages. However, something like that should not happen.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Well, this should have been done for you. Did you already have
</I>&gt;&gt;<i> run.runmove~ and lock.lockmove~ folders in /var?
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> If so then I suspect something is killing the symlinks.
</I>&gt;<i> 
</I>&gt;<i> Is it normal that in the same time filesystem package provide
</I>&gt;<i> /usr/{lib,bin} etc as directory whereas the pre script transform it as
</I>&gt;<i> symlink (according
</I>&gt;<i> <A HREF="http://sophie.zarb.org/rpms/696f0450c6b9baa8dcf088602f19c810/files">http://sophie.zarb.org/rpms/696f0450c6b9baa8dcf088602f19c810/files</A>).
</I>&gt;<i> 
</I>&gt;<i> For me they must be symlinks in the filesystem rpm.
</I>
Erm, /usr/{lib,bin} etc. are directories in the package and in the
filesystem you link above so I'm not sure what you mean about &quot;transform
[them to] symlinks&quot; in the statement above. There is no pre script that
does anything to these folders.

However, the /{lib,bin} etc folders *are* symlinks in the package. There
is a pre-transaction lua script that creates the /usr/blah folders and
the corresponding symlinks early because we cannot guarentee that
filesystem will be the first package actually physically installed in
the transaction and thus /bin or /lib etc. may be implicitly created as
directories by other package installation in the same transaction. So
the lua script just pre-empts what the package will do but it ensures it
happens at the start of the transaction.

I'm not sure if that answers your question or not because the comments
in the spec file are quite clear about the purpose so they should have
cleared up any confusion you may have had.

So if I've not grasped what you are asking properly, please clarify and
I'll try again :)

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="017585.html">[Mageia-dev] ANNOUNCE: The /usr move cometh! &lt;---- Instructions
</A></li>
	<LI>Next message: <A HREF="017587.html">[Mageia-dev] ANNOUNCE: The /usr move cometh! &lt;---- Instructions
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#17586">[ date ]</a>
              <a href="thread.html#17586">[ thread ]</a>
              <a href="subject.html#17586">[ subject ]</a>
              <a href="author.html#17586">[ 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>