summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2012-April/014130.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-dev/2012-April/014130.html')
-rw-r--r--zarb-ml/mageia-dev/2012-April/014130.html104
1 files changed, 104 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2012-April/014130.html b/zarb-ml/mageia-dev/2012-April/014130.html
new file mode 100644
index 000000000..dabde5ab5
--- /dev/null
+++ b/zarb-ml/mageia-dev/2012-April/014130.html
@@ -0,0 +1,104 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-dev] alternatives policy
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20alternatives%20policy&In-Reply-To=%3C4F84DB1E.7070006%40mageia.org%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="014127.html">
+ <LINK REL="Next" HREF="014131.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-dev] alternatives policy</H1>
+ <B>Anssi Hannula</B>
+ <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20alternatives%20policy&In-Reply-To=%3C4F84DB1E.7070006%40mageia.org%3E"
+ TITLE="[Mageia-dev] alternatives policy">anssi at mageia.org
+ </A><BR>
+ <I>Wed Apr 11 03:15:10 CEST 2012</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="014127.html">[Mageia-dev] alternatives policy
+</A></li>
+ <LI>Next message: <A HREF="014131.html">[Mageia-dev] alternatives policy
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#14130">[ date ]</a>
+ <a href="thread.html#14130">[ thread ]</a>
+ <a href="subject.html#14130">[ subject ]</a>
+ <a href="author.html#14130">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>11.04.2012 03:13, Maarten Vanraes kirjoitti:
+&gt;<i> Hi,
+</I>&gt;<i>
+</I>&gt;<i> from a question someone asked, i was reminded why an alternative file (
+</I>&gt;<i> /var/lib/rpm/alternative/gl_conf ) was not owned.
+</I>&gt;<i>
+</I>&gt;<i> I found out that alternative files are usually %ghost 'ed, but it seems not in
+</I>&gt;<i> this case.
+</I>&gt;<i>
+</I>&gt;<i> I looked at the alternatives policy, but it was empty as it needs yet to be
+</I>&gt;<i> written.
+</I>&gt;<i>
+</I>&gt;<i> so, is it true that alternative files should be %ghost 'ed? or not?
+</I>
+/var/lib/rpm/alternatives/foo is not an &quot;alternative file&quot; (at least not
+IMHO), but an internal update-alternaties db, so it is not ghosted.
+
+It is automatically removed by update-alternatives when it becomes empty
+(i.e. all packages providing the alternative have been removed).
+
+There is one problem regarding this, though. If the files becomes
+corrupted, the alternatives system becomes kind of stuck... IMO it
+should zero/drop the /var/lib/rpm/alternatives/foo on error (possibly
+with a backup). AFAICS this would mean changing the badfmt() error
+handler in /usr/sbin/update-alternatives to remove/move the file and
+changing the open(AF, &quot;$admindir/$name&quot;) loop starting in line 135 to
+handle errors gracefully...
+
+--
+Anssi Hannula
+</PRE>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="014127.html">[Mageia-dev] alternatives policy
+</A></li>
+ <LI>Next message: <A HREF="014131.html">[Mageia-dev] alternatives policy
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#14130">[ date ]</a>
+ <a href="thread.html#14130">[ thread ]</a>
+ <a href="subject.html#14130">[ subject ]</a>
+ <a href="author.html#14130">[ 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>