diff options
Diffstat (limited to 'zarb-ml/mageia-sysadm/2013-April/005075.html')
-rw-r--r-- | zarb-ml/mageia-sysadm/2013-April/005075.html | 124 |
1 files changed, 124 insertions, 0 deletions
diff --git a/zarb-ml/mageia-sysadm/2013-April/005075.html b/zarb-ml/mageia-sysadm/2013-April/005075.html new file mode 100644 index 000000000..6a590cdae --- /dev/null +++ b/zarb-ml/mageia-sysadm/2013-April/005075.html @@ -0,0 +1,124 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [Mageia-sysadm] setup package not installed until quite late on... + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20setup%20package%20not%20installed%20until%20quite%20late%0A%20on...&In-Reply-To=%3C5159AD3B.1080700%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="005074.html"> + <LINK REL="Next" HREF="005076.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[Mageia-sysadm] setup package not installed until quite late on...</H1> + <B>Colin Guthrie</B> + <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20setup%20package%20not%20installed%20until%20quite%20late%0A%20on...&In-Reply-To=%3C5159AD3B.1080700%40colin.guthr.ie%3E" + TITLE="[Mageia-sysadm] setup package not installed until quite late on...">mageia at colin.guthr.ie + </A><BR> + <I>Mon Apr 1 17:52:27 CEST 2013</I> + <P><UL> + <LI>Previous message: <A HREF="005074.html">[Mageia-sysadm] setup package not installed until quite late on... +</A></li> + <LI>Next message: <A HREF="005076.html">[Mageia-sysadm] Fwd: Rebuild failed on x86_64 for @407096:basesystem-2-12.mga3.src.rpm +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#5075">[ date ]</a> + <a href="thread.html#5075">[ thread ]</a> + <a href="subject.html#5075">[ subject ]</a> + <a href="author.html#5075">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>'Twas brillig, and Thierry Vignaud at 01/04/13 14:37 did gyre and gimble: +><i> On 1 April 2013 15:24, Colin Guthrie <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">mageia at colin.guthr.ie</A>> wrote: +</I>>>><i> The setup package contains /etc/group and friends, but when installing a +</I>>>><i> chroot, it is not installed until after some packages which require the +</I>>>><i> default groups it defines (e.g. sysvinit-legacy-tools requires the tty +</I>>>><i> group yet it is installed before setup. +</I>>>><i> +</I>>>><i> +</I>>>><i> Now here comes the tricky part... As part of the very first transaction +</I>>>><i> which includes filesystem and glibc, dash-static is pulled in. +</I>>>><i> +</I>>>><i> dash-static requires the "mail" group defined by setup package. +</I>>>><i> +</I>>>><i> So really glibc requires dash-static which requires setup which requires +</I>>>><i> glibc and shadow-utils and run-parts... +</I>>>><i> +</I>>>><i> Do we really want to add this loop? +</I>>>><i> +</I>>>><i> I'd suggest we should rejig setup to not have a hard require on glibc, +</I>>>><i> shadow-utils and run-parts but still run it's current scripts if the +</I>>>><i> needed binaries/tools are installed (i.e. on package upgrade) and then +</I>>>><i> rejig dash-static to Require(pre): setup. This should ensure things are +</I>>>><i> installed properly (I think - although not sure how this will affect the +</I>>>><i> initial transaction split...) +</I>>>><i> +</I>>>><i> Any other/better thoughts? +</I>><i> +</I>><i> rewrite glibc scriptlets in lua instead of sh +</I>><i> See <A HREF="http://www.rpm.org/wiki/PackagerDocs/RpmLua">http://www.rpm.org/wiki/PackagerDocs/RpmLua</A> +</I> +The glibc scriptlets don't seem to really *need* dash-static anyway... + +[<A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">root at jimmy</A> ~]# rpm -q --scripts glibc| grep dash +preinstall scriptlet (using /usr/bin/dash.static): + + +So it's only the preinst script. That should be trivial to rewrite in lua. + + + +OK, so that does avoid the loop, but....... should we still try to work +out a nice way to get "setup" (and thus the default groups that packages +may use) installed early or is it just a housekeeping job to make sure +packages Require(pre) setup package if they want to use the users +defined in it? + +Perhaps we could add some kind of rpmfilter thingy to automatically add +this Require(pre)? Is that possible? If so then it might also be +possible to write similar automatic Require(pre,post,etc) to packages +using rpm-helper stuff too... that would be be quire nice and reduce the +packaging burden :) + +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="005074.html">[Mageia-sysadm] setup package not installed until quite late on... +</A></li> + <LI>Next message: <A HREF="005076.html">[Mageia-sysadm] Fwd: Rebuild failed on x86_64 for @407096:basesystem-2-12.mga3.src.rpm +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#5075">[ date ]</a> + <a href="thread.html#5075">[ thread ]</a> + <a href="subject.html#5075">[ subject ]</a> + <a href="author.html#5075">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://www.mageia.org/mailman/listinfo/mageia-sysadm">More information about the Mageia-sysadm +mailing list</a><br> +</body></html> |