Gentoo Archives: gentoo-dev

From: Martin Schlemmer <azarah@×××××××××.net>
To: Gentoo-Dev <gentoo-dev@g.o>
Subject: [gentoo-dev] re: iproute2-2.2.4-r3.ebuild merge problems (FIX!!)
Date: Mon, 17 Sep 2001 17:51:06
Message-Id: 1000770650.696.35.camel@nosferatu.lan
In Reply to: [gentoo-dev] re: iproute2-2.2.4-r3.ebuild merge problems (FIX!!) by Martin Schlemmer
1 hi
2
3 sorry, bit too eager sometimes ;-)
4 here is the diff for the .ebuild
5
6 iproute2-2.2.4-r3.ebuild.diff:
7 --------------------------------cut here----------------------------
8 *** iproute2-2.2.4-r3.ebuild.orig Tue Sep 18 01:40:19 2001
9 --- iproute2-2.2.4-r3.ebuild Tue Sep 18 01:40:23 2001
10 ***************
11 *** 26,31 ****
12 --- 26,35 ----
13 # #this next thing is required to enable diffserv (ATM support
14 doesn't compile right now)
15 # cp Config Config.orig
16 # sed -e 's/DIFFSERV=n/DIFFSERV=y/g' Config.orig > Config
17 +
18 + # patch the Makefile to fix compile problems for some systems
19 + cd ${S}
20 + patch -p0 < ${FILESDIR}/Makefile.diff || die
21 }
22
23 src_compile() {
24 --------------------------------cut here--------------------------
25
26
27 also as attachment (some lines too long for my mail client (same as with
28 the Makefile.diff)
29
30 greetings
31 MS
32
33 On Tue, 2001-09-18 at 01:36, Martin Schlemmer wrote:
34 > hi
35 >
36 > ok, i traced the problem.
37 >
38 > on my system for some reason, if KERNEL_INCLUDE in the Makefile is set
39 > to "/usr/include", it give the errors. if it is set to
40 > "/usr/src/linux/include", it works. but since we dont want linux-source
41 > as dependancy of iproute2, this cant be.
42 >
43 > so after a bit of trial and error, i found it is the order of the -I's
44 > that cause the problem.
45 >
46 > the following patch if applied before compilation should fix the
47 > problem:
48 >
49 > Makefile.diff:
50 > ----------------------cut here----------------------------
51 >
52 > *** Makefile.orig Tue Sep 18 01:23:48 2001
53 > --- Makefile Tue Sep 18 01:24:33 2001
54 > ***************
55 > *** 30,36 ****
56 > endif
57 >
58 > CC=gcc
59 > ! CFLAGS=-D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g $(GLIBCFIX)
60 > -I$(KERNEL_INCLUDE) -I../include $(DEFINES)
61 >
62 > LDLIBS += -L../lib -lnetlink -lutil
63 >
64 > --- 30,36 ----
65 > endif
66 >
67 > CC=gcc
68 > ! CFLAGS=-D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g $(GLIBCFIX)
69 > -I../include $(DEFINES) -I$(KERNEL_INCLUDE)
70 >
71 > LDLIBS += -L../lib -lnetlink -lutil
72 > -------------------cut here-------------------------------
73 >
74 >
75 > i also made a attachment.
76 >
77 > greetings
78 > MS
79 >

Attachments

File name MIME type
iproute2-2.2.4-r3.ebuild.diff text/x-patch
Makefile.diff text/x-patch