summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/20110608/005191.html
blob: 343aba1bfbe40e3a2515924aa508dfc2cf243f09 (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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] Looking for a mentor
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Looking%20for%20a%20mentor&In-Reply-To=%3C1307484295.27877.170.camel%40akroma.ephaone.org%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   
   <LINK REL="Next"  HREF="005196.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] Looking for a mentor</H1>
    <B>Michael Scherer</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Looking%20for%20a%20mentor&In-Reply-To=%3C1307484295.27877.170.camel%40akroma.ephaone.org%3E"
       TITLE="[Mageia-dev] Looking for a mentor">misc at zarb.org
       </A><BR>
    <I>Wed Jun  8 00:04:54 CEST 2011</I>
    <P><UL>
        
        <LI>Next message: <A HREF="005196.html">[Mageia-dev] Looking for a mentor
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#5191">[ date ]</a>
              <a href="thread.html#5191">[ thread ]</a>
              <a href="subject.html#5191">[ subject ]</a>
              <a href="author.html#5191">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Le mardi 07 juin 2011 &#224; 23:15 +0200, Matteo a &#233;crit :
&gt;<i> On 07/06/2011 22:21, Michael Scherer wrote:
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; - you should use %configure here instead of ./configure :
</I>&gt;<i> &gt; ./configure --etcdir=%{_sysconfdir} --bindir=%{_bindir} --mandir=
</I>&gt;<i> &gt; %{_mandir} --i18n=1
</I>&gt;<i> &gt; 
</I>&gt;<i> &gt; %configure will enforce some of our compilation flag.
</I>&gt;<i> &gt; 
</I>&gt;<i> I can't change this one, because rpmbuild says:
</I>&gt;<i> 
</I>&gt;<i> cp: manca l'operando per il file di destinazione dopo
</I>&gt;<i> &quot;/home/matteo/rpm/BUILDROOT/axel-2.4-1mga2.i386/&quot;
</I>&gt;<i> Usare &#171;cp --help&#187; per ulteriori informazioni.
</I>&gt;<i> make: *** [install-bin] Errore 1
</I>&gt;<i> errore: Stato d'uscita errato da /home/matteo/rpm/tmp/rpm-tmp.3TlCPV
</I>&gt;<i> (%install)
</I>&gt;<i> 
</I>&gt;<i> 
</I>&gt;<i> Errori di compilazione RPM:
</I>&gt;<i>     Stato d'uscita errato da /home/matteo/rpm/tmp/rpm-tmp.3TlCPV (%install)
</I>&gt;<i> 
</I>&gt;<i> I'm sorry, the output is localized in italian but I think it's quite
</I>&gt;<i> comprehensible that cp is called with wrong arguments and something
</I>&gt;<i> happens I still don't understand very well.
</I>&gt;<i> 
</I>&gt;<i> Using rpm --eval %configure I've seen that the arguments passed to
</I>&gt;<i> configure doesn't fit the arguments expected by the axel configure
</I>&gt;<i> script. How do we deal with this kind of problems?
</I>
I guess there is 2 issues :
1) adding a comment to explain why we can't use the usual macro

2) enforce the compilation flag, and that's highly dependent on the
script used. 

OFr this one, I guess we need to push LFLAGS and CFLAGS in
Makefile.settings :
there is line linke this :

        echo 'LFLAGS+=-lintl' &gt;&gt; Makefile.settings;

and the Makefile use CFLAGS ( for compilation options ) and LFLAGS ( for
linker option )

I guess this could do the trick : 
( just after ./configure )

%setup_compile_flags
echo  &quot;LFLAGS+=$LDFLAGS&quot; &gt;&gt; Makefile.settings;
echo  &quot;CFLAGS+=$CFLAGS&quot; &gt;&gt; Makefile.settings;


-- 
Michael Scherer

</PRE>



<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	
	<LI>Next message: <A HREF="005196.html">[Mageia-dev] Looking for a mentor
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#5191">[ date ]</a>
              <a href="thread.html#5191">[ thread ]</a>
              <a href="subject.html#5191">[ subject ]</a>
              <a href="author.html#5191">[ 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>