Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 575102
Collapse All | Expand All

(-)a/sys-apps/net-tools/files/net-tools-1.60_p20151124144947-lintl.patch (+71 lines)
Line 0 Link Here
1
https://bugs.gentoo.org/show_bug.cgi?id=575102
2
3
--- a/Makefile
4
+++ b/Makefile
5
@@ -67,6 +67,10 @@ ifeq ($(HAVE_AFDECnet),1)
6
 DNLIB = -ldnet
7
 endif
8
 
9
+ifeq ($(I18N),1)
10
+LIBS += -lintl
11
+endif
12
+
13
 ifeq ($(origin CC), undefined)
14
 CC	= gcc
15
 endif
16
@@ -170,40 +174,40 @@ subdirs:	libdir
17
 		@for i in $(SUBDIRS:$(NET_LIB_PATH)/=); do $(MAKE) -C $$i || exit $$? ; done
18
 
19
 ifconfig:	$(NET_LIB) ifconfig.o
20
-		$(CC) $(CFLAGS) $(LDFLAGS) -o $@ ifconfig.o $(NLIB)
21
+		$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ ifconfig.o $(NLIB)
22
 
23
 nameif:		$(NET_LIB) nameif.o
24
-		$(CC) $(CFLAGS) $(LDFLAGS) -o $@ nameif.o $(NLIB)
25
+		$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ nameif.o $(NLIB)
26
 
27
 hostname:	hostname.o
28
-		$(CC) $(CFLAGS) $(LDFLAGS) -o $@ hostname.o $(DNLIB)
29
+		$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ hostname.o $(DNLIB)
30
 
31
 route:		$(NET_LIB) route.o
32
-		$(CC) $(CFLAGS) $(LDFLAGS) -o $@ route.o $(NLIB)
33
+		$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ route.o $(NLIB)
34
 
35
 arp:		$(NET_LIB) arp.o
36
-		$(CC) $(CFLAGS) $(LDFLAGS) -o $@ arp.o $(NLIB)
37
+		$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ arp.o $(NLIB)
38
 
39
 rarp:		$(NET_LIB) rarp.o
40
-		$(CC) $(CFLAGS) $(LDFLAGS) -o $@ rarp.o $(NLIB)
41
+		$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ rarp.o $(NLIB)
42
 
43
 slattach:	$(NET_LIB) slattach.o
44
-		$(CC) $(CFLAGS) $(LDFLAGS) -o $@ slattach.o $(NLIB)
45
+		$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ slattach.o $(NLIB)
46
 
47
 plipconfig:	$(NET_LIB) plipconfig.o
48
-		$(CC) $(CFLAGS) $(LDFLAGS) -o $@ plipconfig.o $(NLIB)
49
+		$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ plipconfig.o $(NLIB)
50
 
51
 netstat:	$(NET_LIB) netstat.o statistics.o
52
-		$(CC) $(CFLAGS) $(LDFLAGS) -o $@ netstat.o statistics.o $(NLIB) $(SELIB)
53
+		$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ netstat.o statistics.o $(NLIB) $(SELIB)
54
 
55
 iptunnel:	$(NET_LIB) iptunnel.o
56
-		$(CC) $(CFLAGS) $(LDFLAGS) -o $@ iptunnel.o $(NLIB)
57
+		$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ iptunnel.o $(NLIB)
58
 
59
 ipmaddr:	$(NET_LIB) ipmaddr.o
60
-		$(CC) $(CFLAGS) $(LDFLAGS) -o $@ ipmaddr.o $(NLIB)
61
+		$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ ipmaddr.o $(NLIB)
62
 
63
 mii-tool:	$(NET_LIB) mii-tool.o
64
-		$(CC) $(CFLAGS) $(LDFLAGS) -o $@ mii-tool.o $(NLIB)
65
+		$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -o $@ mii-tool.o $(NLIB)
66
 
67
 installbin:
68
 	@echo
69
-- 
70
2.7.1
71
(-)a/sys-apps/net-tools/net-tools-1.60_p20151124144947.ebuild (-1 / +4 lines)
Lines 60-65 set_opt() { Link Here
60
		config.in || die
60
		config.in || die
61
}
61
}
62
62
63
src_prepare() {
64
	epatch "${FILESDIR}/${P}-lintl.patch"
65
}
66
63
src_configure() {
67
src_configure() {
64
	set_opt I18N use nls
68
	set_opt I18N use nls
65
	set_opt HAVE_AFINET6 use ipv6
69
	set_opt HAVE_AFINET6 use ipv6
66
- 

Return to bug 575102