summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2012-July/017438.html
blob: 5bf81bfeca1b052d1016f78ebb34f14cf1c8c219 (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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] Can't update to new apache package
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Can%27t%20update%20to%20new%20apache%20package&In-Reply-To=%3C50067AB6.9080408%40gmail.com%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="017437.html">
   <LINK REL="Next"  HREF="017439.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] Can't update to new apache package</H1>
    <B>Guillaume Rousse</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Can%27t%20update%20to%20new%20apache%20package&In-Reply-To=%3C50067AB6.9080408%40gmail.com%3E"
       TITLE="[Mageia-dev] Can't update to new apache package">guillomovitch at gmail.com
       </A><BR>
    <I>Wed Jul 18 10:58:30 CEST 2012</I>
    <P><UL>
        <LI>Previous message: <A HREF="017437.html">[Mageia-dev] Can't update to new apache package
</A></li>
        <LI>Next message: <A HREF="017439.html">[Mageia-dev] Can't update to new apache package
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#17438">[ date ]</a>
              <a href="thread.html#17438">[ thread ]</a>
              <a href="subject.html#17438">[ subject ]</a>
              <a href="author.html#17438">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Le 18/07/2012 10:34, Oliver Burger a &#233;crit :
&gt;<i> Am 18.07.2012 10:17, schrieb Guillaume Rousse:
</I>&gt;&gt;<i> Le 18/07/2012 10:02, Oliver Burger a &#233;crit :
</I>&gt;&gt;&gt;<i> An update, I installed this cauldron machine just before the new apache
</I>&gt;&gt;&gt;<i> package arrived.
</I>&gt;&gt;<i> No idea then, I can't reproduce.
</I>&gt;&gt;<i>
</I>&gt;<i> I just saw that /etc/httpd did only contain one empty directory modules.d,
</I>&gt;<i> although the old mpm-prefork apache package was installed. I now
</I>&gt;<i> uninstalled apache and did an urpme --auto-orphans after that.
</I>&gt;<i> The empty directory /etc/httpd/modules.d remains.
</I>urpme --auto-orphans just call 'rpm -e', it does not change filesystem 
content directly. It means than any directory not known in rpm database 
will still be present on the disk after uninstallation.

&gt;<i> And I still get the same error messages trying to install apache. I then
</I>&gt;<i> removed the /etc/httpd directory completely but I still get the same
</I>&gt;<i> error messages.
</I>Installing from scratch will trigger the failure, I forgot to make the 
script specific to upgrade scenario only. However, it's unclear why it 
fails when upgrading from a previous installation (for you), where 
/etc/httpd/conf directory exist, but not /etc/httpd/conf/sites.d:

# prevent symlink creation failure on update
if [ ! -d /etc/httpd/conf/sites.d ]; then
     mkdir /etc/httpd/conf/sites.d
     mv -f /etc/httpd/conf/webapps.d/* /etc/httpd/conf/sites.d 2&gt;/dev/null
     mv -f /etc/httpd/conf/vhosts.d/* /etc/httpd/conf/sites.d 2&gt;/dev/null
     rmdir /etc/httpd/conf/webapps.d
     rmdir /etc/httpd/conf/vhosts.d
fi

I guess it has something to do with exact package ordering during 
uninstallation transaction. In the past we had %pretrans trigger, I'm 
not sure it is still available.



-- 
BOFH excuse #278:

The Dilithium Crystals need to be rotated.
</PRE>










<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="017437.html">[Mageia-dev] Can't update to new apache package
</A></li>
	<LI>Next message: <A HREF="017439.html">[Mageia-dev] Can't update to new apache package
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#17438">[ date ]</a>
              <a href="thread.html#17438">[ thread ]</a>
              <a href="subject.html#17438">[ subject ]</a>
              <a href="author.html#17438">[ 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>