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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-dev] My feeeling about the rpmlib(X-CheckUnifiedSystemdir) dependency
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20My%20feeeling%20about%20the%0A%20rpmlib%28X-CheckUnifiedSystemdir%29%20dependency&In-Reply-To=%3Calpine.LMD.2.02.1207261049360.12861%40zem.cjw.nep%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="017695.html">
<LINK REL="Next" HREF="017698.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-dev] My feeeling about the rpmlib(X-CheckUnifiedSystemdir) dependency</H1>
<B>Christiaan Welvaart</B>
<A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20My%20feeeling%20about%20the%0A%20rpmlib%28X-CheckUnifiedSystemdir%29%20dependency&In-Reply-To=%3Calpine.LMD.2.02.1207261049360.12861%40zem.cjw.nep%3E"
TITLE="[Mageia-dev] My feeeling about the rpmlib(X-CheckUnifiedSystemdir) dependency">cjw at daneel.dyndns.org
</A><BR>
<I>Thu Jul 26 11:24:14 CEST 2012</I>
<P><UL>
<LI>Previous message: <A HREF="017695.html">[Mageia-dev] My feeeling about the rpmlib(X-CheckUnifiedSystemdir) dependency
</A></li>
<LI>Next message: <A HREF="017698.html">[Mageia-dev] My feeeling about the rpmlib(X-CheckUnifiedSystemdir) dependency
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#17696">[ date ]</a>
<a href="thread.html#17696">[ thread ]</a>
<a href="subject.html#17696">[ subject ]</a>
<a href="author.html#17696">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On Thu, 26 Jul 2012, Olivier Thauvin wrote:
><i> I do think the way we enforce the need of migrate to /usr fs is just an
</I>><i> abuse of rpm.
</I>
Agreed, I think it even changes the rpmlib ABI/API. rpmlib() deps are
used for features supplied by rpmlib itself, while rpm does not maintain
/bin /lib etc. Technically, all rpmlib() provides are implemented in
rpmdsRpmlib() but filesystem checks cannot be done there because they
depend on the rootdir used, which is not supplied to this function.
><i> By using the a rpmlib() dependency we create in fact this dependency
</I>><i> tree:
</I>><i> filesystem => rpm with X-CheckUnifiedSystemdir patch => check fs
</I>><i> whereas we want:
</I>><i> filesystem => check fs
</I>><i>
</I>><i> THere another to perform the check w/o needing patch in rpm (so w/o
</I>><i> needing a specific rpm first): using pre script.
</I>><i>
</I>><i> If the %pre script failed rpm will refuse to install the rpm, so
</I>><i> something like that:
</I>
Does that cancel the whole transaction?
Another option is to use a dummy package, e.g.
usrmovecheck-1-1.mga3.noarch.rpm whis is *not* put in the repository.
Instead, the dracut conversion script installs it from /usr/share/...
after a succesful filesystem conversion. The installer must also install
this dummy package before regular package installation(...). The
filesystem pkg can then depend on (for example)
"usr_move_required-see_mga3_release_notes" which usrmovecheck provides.
The latter pkg has a pre check on /bin /lib etc. not being real
directories, but maybe it should not complain if they're missing (they are
formally provided by the filesystem pkg which depends on the check pkg,
creating a circular dep).
Christiaan
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="017695.html">[Mageia-dev] My feeeling about the rpmlib(X-CheckUnifiedSystemdir) dependency
</A></li>
<LI>Next message: <A HREF="017698.html">[Mageia-dev] My feeeling about the rpmlib(X-CheckUnifiedSystemdir) dependency
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#17696">[ date ]</a>
<a href="thread.html#17696">[ thread ]</a>
<a href="subject.html#17696">[ subject ]</a>
<a href="author.html#17696">[ 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>
|