1 |
pva 08/09/24 12:34:41 |
2 |
|
3 |
Added: geoip-1.4.4-no-noinst_PROGRAMS.patch |
4 |
geoip-1.4.4-parallel-build.patch |
5 |
Log: |
6 |
Version bump. Fixed parallel make failure #180988, thank Mike Doty for report. Do not build test programs, bug #226207, thank Diego Pettenò for report. Remove old. |
7 |
(Portage version: 2.2_rc9/cvs/Linux 2.6.26-gentoo-r1 i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-libs/geoip/files/geoip-1.4.4-no-noinst_PROGRAMS.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/geoip/files/geoip-1.4.4-no-noinst_PROGRAMS.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/geoip/files/geoip-1.4.4-no-noinst_PROGRAMS.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: geoip-1.4.4-no-noinst_PROGRAMS.patch |
16 |
=================================================================== |
17 |
=== modified file 'test/Makefile.am' |
18 |
--- test/Makefile.am 2008-09-08 09:44:05 +0000 |
19 |
+++ test/Makefile.am 2008-09-08 09:44:14 +0000 |
20 |
@@ -4,56 +4,25 @@ |
21 |
|
22 |
check_PROGRAMS = test-geoip |
23 |
|
24 |
-#if WITH_CITY |
25 |
-noinst_PROGRAMS = benchmark test-geoip-region test-geoip-city test-geoip-org test-geoip-asnum test-geoip-isp test-geoip-netspeed |
26 |
-#else |
27 |
-#noinst_PROGRAMS = benchmark test-geoip-region |
28 |
-#endif |
29 |
+EXTRA_PROGRAMS = benchmark \ |
30 |
+ test-geoip-region \ |
31 |
+ test-geoip-city \ |
32 |
+ test-geoip-org \ |
33 |
+ test-geoip-asnum \ |
34 |
+ test-geoip-isp \ |
35 |
+ test-geoip-netspeed |
36 |
|
37 |
-DEPS = $(top_builddir)/libGeoIP/libGeoIP.la |
38 |
-LDADDS = $(top_builddir)/libGeoIP/libGeoIP.la |
39 |
+LDADD = $(top_builddir)/libGeoIP/libGeoIP.la |
40 |
|
41 |
test_geoip_SOURCES = test-geoip.c |
42 |
-test_geoip_LDFLAGS = |
43 |
-test_geoip_DEPENDENCIES = $(DEPS) |
44 |
-test_geoip_LDADD = $(LDADDS) |
45 |
|
46 |
test_geoip_region_SOURCES = test-geoip-region.c |
47 |
-test_geoip_region_LDFLAGS = |
48 |
-test_geoip_region_DEPENDENCIES = $(DEPS) |
49 |
-test_geoip_region_LDADD = $(LDADDS) |
50 |
- |
51 |
test_geoip_org_SOURCES = test-geoip-org.c |
52 |
-test_geoip_org_LDFLAGS = |
53 |
-test_geoip_org_DEPENDENCIES = $(DEPS) |
54 |
-test_geoip_org_LDADD = $(LDADDS) |
55 |
- |
56 |
test_geoip_isp_SOURCES = test-geoip-isp.c |
57 |
-test_geoip_isp_LDFLAGS = |
58 |
-test_geoip_isp_DEPENDENCIES = $(DEPS) |
59 |
-test_geoip_isp_LDADD = $(LDADDS) |
60 |
- |
61 |
test_geoip_asnum_SOURCES = test-geoip-asnum.c |
62 |
-test_geoip_asnum_LDFLAGS = |
63 |
-test_geoip_asnum_DEPENDENCIES = $(DEPS) |
64 |
-test_geoip_asnum_LDADD = $(LDADDS) |
65 |
- |
66 |
test_geoip_netspeed_SOURCES = test-geoip-netspeed.c |
67 |
-test_geoip_netspeed_LDFLAGS = |
68 |
-test_geoip_netspeed_DEPENDENCIES = $(DEPS) |
69 |
-test_geoip_netspeed_LDADD = $(LDADDS) |
70 |
- |
71 |
-if WITH_CITY |
72 |
test_geoip_city_SOURCES = test-geoip-city.c |
73 |
-test_geoip_city_LDFLAGS = |
74 |
-test_geoip_city_DEPENDENCIES = $(DEPS) |
75 |
-test_geoip_city_LDADD = $(LDADDS) |
76 |
-endif |
77 |
- |
78 |
benchmark_SOURCES = benchmark.c |
79 |
-benchmark_LDFLAGS = |
80 |
-benchmark_DEPENDENCIES = $(DEPS) |
81 |
-benchmark_LDADD = $(LDADDS) |
82 |
|
83 |
EXTRA_DIST = country_test.txt country_test2.txt country_test_name.txt region_test.txt |
84 |
TESTS = test-geoip |
85 |
|
86 |
|
87 |
|
88 |
|
89 |
1.1 dev-libs/geoip/files/geoip-1.4.4-parallel-build.patch |
90 |
|
91 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/geoip/files/geoip-1.4.4-parallel-build.patch?rev=1.1&view=markup |
92 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/geoip/files/geoip-1.4.4-parallel-build.patch?rev=1.1&content-type=text/plain |
93 |
|
94 |
Index: geoip-1.4.4-parallel-build.patch |
95 |
=================================================================== |
96 |
Source: Peter Volkov <pva@g.o> |
97 |
Upstream: Notified |
98 |
Reason: parallel make failed. |
99 |
|
100 |
From automake info page: |
101 |
|
102 |
When writing `install-exec-hook' or `install-data-hook', please bear in mind |
103 |
that the exec/data distinction is based on the installation directory, not |
104 |
on the primary used (*note Install::). So a `foo_SCRIPTS' will be installed |
105 |
by `install-data', and a `barexec_SCRIPTS' will be installed by |
106 |
`install-exec'. You should define your hooks consequently. |
107 |
|
108 |
Variables using the standard directory prefixes `bin', `sbin', `libexec', |
109 |
`sysconf', `localstate', `lib', or `pkglib' are installed by `install-exec'. |
110 |
|
111 |
thus change from install-data-hook to install-exec-hook. |
112 |
|
113 |
Automake also supports two install hooks, `install-exec-hook' and |
114 |
`install-data-hook'. These hooks are run after all other install rules of |
115 |
the appropriate type, exec or data, have completed. So, for instance, it is |
116 |
possible to perform post-installation modifications using an install hook. |
117 |
|
118 |
thus no need for dependencies. |
119 |
|
120 |
--- conf/Makefile.am 2008-09-02 14:26:04 +0000 |
121 |
+++ conf/Makefile.am 2008-09-02 17:18:02 +0000 |
122 |
@@ -4,7 +4,7 @@ |
123 |
|
124 |
DEFAULT_CONFIG_FILE = $(sysconfdir)/GeoIP.conf |
125 |
|
126 |
-install-data-hook: install-sysconfDATA |
127 |
+install-exec-hook: |
128 |
@if test -f $(DESTDIR)$(DEFAULT_CONFIG_FILE) ; then \ |
129 |
echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_CONFIG_FILE)" ; \ |
130 |
else \ |
131 |
|
132 |
--- data/Makefile.am 2008-09-02 14:26:04 +0000 |
133 |
+++ data/Makefile.am 2008-09-02 17:19:00 +0000 |
134 |
@@ -4,7 +4,7 @@ |
135 |
|
136 |
DEFAULT_DB_FILE = $(pkgdatadir)/GeoIP.dat |
137 |
|
138 |
-install-data-hook: install-pkgdataDATA |
139 |
+install-data-hook: |
140 |
@if test -f $(DESTDIR)$(DEFAULT_DB_FILE) ; then \ |
141 |
echo "$@ will not overwrite existing $(DESTDIR)$(DEFAULT_DB_FILE)" ; \ |
142 |
else \ |
143 |
|
144 |
--- man/Makefile.am 2008-09-02 14:26:04 +0000 |
145 |
+++ man/Makefile.am 2008-09-02 17:19:06 +0000 |
146 |
@@ -5,6 +5,6 @@ |
147 |
UPDATE_MAN = $(mandir)/man1/geoipupdate.1 |
148 |
LOOKUP_MAN = $(mandir)/man1/geoiplookup.1 |
149 |
|
150 |
-install-data-hook: install-man |
151 |
+install-data-hook: |
152 |
cat geoipupdate.1 | sed s,DATADIR,$(pkgdatadir), | sed s,CONF_DIR,$(sysconfdir), > $(DESTDIR)$(UPDATE_MAN) |
153 |
cat geoiplookup.1 | sed s,DATADIR,$(pkgdatadir), > $(DESTDIR)$(LOOKUP_MAN) |