summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-discuss/20110115/003405.html
blob: af06939ed5421f3276dda9d239c278668cf3215c (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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-discuss] Trying to learn a little about packaging
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-discuss%40mageia.org?Subject=Re%3A%20%5BMageia-discuss%5D%20Trying%20to%20learn%20a%20little%20about%20packaging&In-Reply-To=%3CAANLkTi%3DqdOZXEJf1uFFtOmDN2Rz9mxt4Y9xWc2CpX4sZ%40mail.gmail.com%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   
   <LINK REL="Next"  HREF="003406.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-discuss] Trying to learn a little about packaging</H1>
    <B>Hoyt Duff</B> 
    <A HREF="mailto:mageia-discuss%40mageia.org?Subject=Re%3A%20%5BMageia-discuss%5D%20Trying%20to%20learn%20a%20little%20about%20packaging&In-Reply-To=%3CAANLkTi%3DqdOZXEJf1uFFtOmDN2Rz9mxt4Y9xWc2CpX4sZ%40mail.gmail.com%3E"
       TITLE="[Mageia-discuss] Trying to learn a little about packaging">hoytduff at gmail.com
       </A><BR>
    <I>Sat Jan 15 03:33:56 CET 2011</I>
    <P><UL>
        
        <LI>Next message: <A HREF="003406.html">[Mageia-discuss] Trying to learn a little about packaging
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#3405">[ date ]</a>
              <a href="thread.html#3405">[ thread ]</a>
              <a href="subject.html#3405">[ subject ]</a>
              <a href="author.html#3405">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>On 1/14/11, Michael Scherer &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-discuss">misc at zarb.org</A>&gt; wrote:
&gt;<i> Le vendredi 14 janvier 2011 &#224; 00:18 -0500, Hoyt Duff a &#233;crit :
</I>&gt;&gt;<i> The .spec file as provided defines %define _prefix as /usr/local. Yes,
</I>&gt;&gt;<i> I know that it should be /usr for a Mandriva-specific package, but I'd
</I>&gt;&gt;<i> like to actually build the package first so I can understand what
</I>&gt;&gt;<i> needs to be patched to build from the pristine sources on
</I>&gt;&gt;<i> Madriva/Mageia, not start from scratch - that kind of defeats the
</I>&gt;&gt;<i> purpose of RPM.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> In the %files section &quot;%{_libdir}/%{name}&quot; should pick up &quot;%_prefix&quot;,
</I>&gt;&gt;<i> but it does not. As a result, some files don't get created in two
</I>&gt;&gt;<i> directories and the build fails.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> What I'm asking is if there is a difference in how Mandrake handles
</I>&gt;&gt;<i> that substitution versus how Fedora handles that. I installed Fedora
</I>&gt;&gt;<i> in a VM and the package builds fine on Fedora, but I get the error on
</I>&gt;&gt;<i> Madriva. I've examined the .spec file and don't see where there is any
</I>&gt;&gt;<i> obvious problem, so I'm seeking some guidance as to where to look
</I>&gt;&gt;<i> deeper.
</I>&gt;<i>
</I>&gt;<i> That's quite simple.
</I>&gt;<i> On fedora :
</I>&gt;<i> ~ $ rpm --showrc | grep -i ' _libdir'
</I>&gt;<i> -14: _libdir	%{_prefix}/lib
</I>&gt;<i>
</I>&gt;<i> On mandriva :
</I>&gt;<i> $ rpm --showrc | grep -i ' _libdir'
</I>&gt;<i> -14: _libdir	/usr/lib
</I>&gt;<i>
</I>&gt;<i> Mandriva hardcode the use of /usr/ in the rpm macros file, while Fedora
</I>&gt;<i> doesn't, letting people override %_prefix.
</I>&gt;<i>
</I>
Thanks, Michael. I can make those adjustments and will forward that
info to the package maintainer.

-- 
Hoyt
</PRE>


<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	
	<LI>Next message: <A HREF="003406.html">[Mageia-discuss] Trying to learn a little about packaging
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#3405">[ date ]</a>
              <a href="thread.html#3405">[ thread ]</a>
              <a href="subject.html#3405">[ subject ]</a>
              <a href="author.html#3405">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-discuss">More information about the Mageia-discuss
mailing list</a><br>
</body></html>