summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2013-April/024050.html
blob: 33583b5f796487e7ca6c160b9548b313146d8567 (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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] [Mageia-sysadm] setup package not installed until	quite late on...
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5BMageia-sysadm%5D%20setup%20package%20not%20installed%20until%0A%09quite%20late%20on...&In-Reply-To=%3CCAONrEta3mqoypVym6fhwknfmE5a0tN0PJ-s5oFjCgFe%2BEux6KQ%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="024046.html">
   <LINK REL="Next"  HREF="024054.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] [Mageia-sysadm] setup package not installed until	quite late on...</H1>
    <B>Thierry Vignaud</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5BMageia-sysadm%5D%20setup%20package%20not%20installed%20until%0A%09quite%20late%20on...&In-Reply-To=%3CCAONrEta3mqoypVym6fhwknfmE5a0tN0PJ-s5oFjCgFe%2BEux6KQ%40mail.gmail.com%3E"
       TITLE="[Mageia-dev] [Mageia-sysadm] setup package not installed until	quite late on...">thierry.vignaud at gmail.com
       </A><BR>
    <I>Mon Apr  1 18:36:41 CEST 2013</I>
    <P><UL>
        <LI>Previous message: <A HREF="024046.html">[Mageia-dev] [Mageia-sysadm] setup package not installed until quite late on...
</A></li>
        <LI>Next message: <A HREF="024054.html">[Mageia-dev] [Mageia-sysadm] setup package not installed until	quite late on...
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#24050">[ date ]</a>
              <a href="thread.html#24050">[ thread ]</a>
              <a href="subject.html#24050">[ subject ]</a>
              <a href="author.html#24050">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE> On 1 April 2013 17:54, Colin Guthrie &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">mageia at colin.guthr.ie</A>&gt; wrote:
&gt;&gt;&gt;&gt;<i> dash-static requires the &quot;mail&quot; group defined by setup package.
</I>
For which file?
I failed to see that.

&gt;&gt;&gt;&gt;<i> So really glibc requires dash-static which requires setup which requires
</I>&gt;&gt;&gt;&gt;<i> glibc and shadow-utils and run-parts...
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> Do we really want to add this loop?
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> I'd suggest we should rejig setup to not have a hard require on glibc,
</I>&gt;&gt;&gt;&gt;<i> shadow-utils and run-parts but still run it's current scripts if the
</I>&gt;&gt;&gt;&gt;<i> needed binaries/tools are installed (i.e. on package upgrade) and then
</I>&gt;&gt;&gt;&gt;<i> rejig dash-static to Require(pre): setup. This should ensure things are
</I>&gt;&gt;&gt;&gt;<i> installed properly (I think - although not sure how this will affect the
</I>&gt;&gt;&gt;&gt;<i> initial transaction split...)
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> Any other/better thoughts?
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> rewrite glibc scriptlets in lua instead of sh
</I>&gt;&gt;<i> See <A HREF="http://www.rpm.org/wiki/PackagerDocs/RpmLua">http://www.rpm.org/wiki/PackagerDocs/RpmLua</A>
</I>&gt;<i>
</I>&gt;<i> The glibc scriptlets don't seem to really *need* dash-static anyway...
</I>&gt;<i>
</I>&gt;<i> [<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">root at jimmy</A> ~]# rpm -q --scripts glibc| grep dash
</I>&gt;<i> preinstall scriptlet (using /usr/bin/dash.static):
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> So it's only the preinst script. That should be trivial to rewrite in lua.
</I>
No as %post is indeed run wih glibc-post-wrapper as interpreter...
But glibc-post-wrapper uses ash.static after running ldconfig...
So %post should be done in lua too, and thus glibc-post-wrapper should
be run from within lua instead of being the %post script interpreter

&gt;<i> OK, so that does avoid the loop, but....... should we still try to work
</I>&gt;<i> out a nice way to get &quot;setup&quot; (and thus the default groups that packages
</I>&gt;<i> may use) installed early or is it just a housekeeping job to make sure
</I>&gt;<i> packages Require(pre) setup package if they want to use the users
</I>&gt;<i> defined in it?
</I>
I would say the later but it's obvious it's prone to error, so maybe making it
be installed early with filesystem &amp; glibc (thus having one bigger transaction
at first).
Which is not appealing but can be an acceptable solution.
On the other hand, &quot;Anything not packaged as root.root should requires setup&quot;
is a bit obviouslyoverkill...

&gt;<i> Perhaps we could add some kind of rpmfilter thingy to automatically add
</I>&gt;<i> this Require(pre)? Is that possible?
</I>
I suppose it's supposed to do in rpm-setup.
However that will make more requires to process by urpmi and thus
bigger synthesis.

&gt;<i> If so then it might also be
</I>&gt;<i> possible to write similar automatic Require(pre,post,etc) to packages
</I>&gt;<i> using rpm-helper stuff too... that would be be quire nice and reduce the
</I>&gt;<i> packaging burden :)
</I></PRE>





<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="024046.html">[Mageia-dev] [Mageia-sysadm] setup package not installed until quite late on...
</A></li>
	<LI>Next message: <A HREF="024054.html">[Mageia-dev] [Mageia-sysadm] setup package not installed until	quite late on...
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#24050">[ date ]</a>
              <a href="thread.html#24050">[ thread ]</a>
              <a href="subject.html#24050">[ subject ]</a>
              <a href="author.html#24050">[ 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>