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 à 23:15 +0200, Matteo a écrit :
><i> On 07/06/2011 22:21, Michael Scherer wrote:
</I>><i> >
</I>><i> > - you should use %configure here instead of ./configure :
</I>><i> > ./configure --etcdir=%{_sysconfdir} --bindir=%{_bindir} --mandir=
</I>><i> > %{_mandir} --i18n=1
</I>><i> >
</I>><i> > %configure will enforce some of our compilation flag.
</I>><i> >
</I>><i> I can't change this one, because rpmbuild says:
</I>><i>
</I>><i> cp: manca l'operando per il file di destinazione dopo
</I>><i> "/home/matteo/rpm/BUILDROOT/axel-2.4-1mga2.i386/"
</I>><i> Usare «cp --help» per ulteriori informazioni.
</I>><i> make: *** [install-bin] Errore 1
</I>><i> errore: Stato d'uscita errato da /home/matteo/rpm/tmp/rpm-tmp.3TlCPV
</I>><i> (%install)
</I>><i>
</I>><i>
</I>><i> Errori di compilazione RPM:
</I>><i> Stato d'uscita errato da /home/matteo/rpm/tmp/rpm-tmp.3TlCPV (%install)
</I>><i>
</I>><i> I'm sorry, the output is localized in italian but I think it's quite
</I>><i> comprehensible that cp is called with wrong arguments and something
</I>><i> happens I still don't understand very well.
</I>><i>
</I>><i> Using rpm --eval %configure I've seen that the arguments passed to
</I>><i> configure doesn't fit the arguments expected by the axel configure
</I>><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' >> 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 "LFLAGS+=$LDFLAGS" >> Makefile.settings;
echo "CFLAGS+=$CFLAGS" >> 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>
|