1 |
commit: 43d394421ca6fcc030952d60200f2888fcd37cb6 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 25 01:39:04 2018 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 25 01:58:45 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43d39442 |
7 |
|
8 |
sys-devel/automake: Rev bump to address several issues |
9 |
|
10 |
Ebuild changes: |
11 |
=============== |
12 |
- EAPI bumped to EAPI=6 (1.9.x-1.14.x). |
13 |
|
14 |
- Avoid (low risk) race in /tmp (1.10.x-1.15.x). [Bug 522638] |
15 |
|
16 |
- Avoid makeinfo requirement when bootstraping (1.14.x-1.15.x). |
17 |
[Bug 628912] |
18 |
|
19 |
- Fix man4.test failure (1.11.x). [Bug 583108] |
20 |
|
21 |
- Add Python 2.7 requirement for test suite. [Bug 483358, 623432] |
22 |
|
23 |
- Fix test failures when using >=app-arch/gzip-1.8 (1.14.x). [Bug 604570] |
24 |
|
25 |
- Updated GIT/SRC_URI to use HTTPS (1.14.x-1.15.x). |
26 |
|
27 |
- Live ebuild updated with changes from above (9999). |
28 |
|
29 |
Closes: https://bugs.gentoo.org/583108 |
30 |
Closes: https://bugs.gentoo.org/483358 |
31 |
Closes: https://bugs.gentoo.org/623432 |
32 |
Closes: https://bugs.gentoo.org/604570 |
33 |
Bug: https://bugs.gentoo.org/522638 |
34 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
35 |
|
36 |
...omake-9999.ebuild => automake-1.10.3-r3.ebuild} | 71 +++++++++---------- |
37 |
...omake-9999.ebuild => automake-1.11.6-r3.ebuild} | 76 +++++++++++--------- |
38 |
...omake-9999.ebuild => automake-1.12.6-r2.ebuild} | 61 ++++++++-------- |
39 |
...omake-9999.ebuild => automake-1.13.4-r2.ebuild} | 62 ++++++++-------- |
40 |
...omake-9999.ebuild => automake-1.14.1-r2.ebuild} | 74 +++++++++++-------- |
41 |
...omake-9999.ebuild => automake-1.15.1-r2.ebuild} | 40 +++++++---- |
42 |
...tomake-9999.ebuild => automake-1.9.6-r5.ebuild} | 73 +++++++++---------- |
43 |
sys-devel/automake/automake-9999.ebuild | 40 +++++++---- |
44 |
....11-install-sh-avoid-low-risk-race-in-tmp.patch | 77 ++++++++++++++++++++ |
45 |
...utomake-1.13-perl-escape-curly-bracket-r1.patch | 37 ++++++++++ |
46 |
.../automake/files/automake-1.14-gzip-fix.patch | 67 ++++++++++++++++++ |
47 |
....14-install-sh-avoid-low-risk-race-in-tmp.patch | 77 ++++++++++++++++++++ |
48 |
....15-install-sh-avoid-low-risk-race-in-tmp.patch | 82 ++++++++++++++++++++++ |
49 |
.../files/automake-1.9.6-ignore-comments-r1.patch | 29 ++++++++ |
50 |
.../automake-1.9.6-include-dir-prefix-r1.patch | 31 ++++++++ |
51 |
.../automake-1.9.6-infopage-namechange-r1.patch | 33 +++++++++ |
52 |
16 files changed, 699 insertions(+), 231 deletions(-) |
53 |
|
54 |
diff --git a/sys-devel/automake/automake-9999.ebuild b/sys-devel/automake/automake-1.10.3-r3.ebuild |
55 |
similarity index 54% |
56 |
copy from sys-devel/automake/automake-9999.ebuild |
57 |
copy to sys-devel/automake/automake-1.10.3-r3.ebuild |
58 |
index ee87a2b2eb1..7ce1045c910 100644 |
59 |
--- a/sys-devel/automake/automake-9999.ebuild |
60 |
+++ b/sys-devel/automake/automake-1.10.3-r3.ebuild |
61 |
@@ -2,59 +2,49 @@ |
62 |
# Distributed under the terms of the GNU General Public License v2 |
63 |
|
64 |
EAPI="6" |
65 |
+PYTHON_COMPAT=( python2_7 ) |
66 |
|
67 |
-inherit eutils versionator |
68 |
- |
69 |
-if [[ ${PV} == 9999 ]] ; then |
70 |
- EGIT_REPO_URI="git://git.savannah.gnu.org/${PN}.git |
71 |
- http://git.savannah.gnu.org/r/${PN}.git" |
72 |
- |
73 |
- inherit git-r3 |
74 |
-else |
75 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
76 |
- if [[ ${PV/_beta} == ${PV} ]]; then |
77 |
- MY_P=${P} |
78 |
- SRC_URI="mirror://gnu/${PN}/${P}.tar.xz |
79 |
- ftp://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz" |
80 |
- else |
81 |
- MY_PV="$(get_major_version).$(($(get_version_component_range 2)-1))b" |
82 |
- MY_P="${PN}-${MY_PV}" |
83 |
- |
84 |
- # Alpha/beta releases are not distributed on the usual mirrors. |
85 |
- SRC_URI="ftp://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz" |
86 |
- fi |
87 |
- S="${WORKDIR}/${MY_P}" |
88 |
-fi |
89 |
+inherit python-any-r1 |
90 |
|
91 |
DESCRIPTION="Used to generate Makefile.in from Makefile.am" |
92 |
HOMEPAGE="https://www.gnu.org/software/automake/" |
93 |
+SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2" |
94 |
|
95 |
LICENSE="GPL-2" |
96 |
# Use Gentoo versioning for slotting. |
97 |
SLOT="${PV:0:4}" |
98 |
-IUSE="" |
99 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
100 |
+IUSE="test" |
101 |
|
102 |
RDEPEND="dev-lang/perl |
103 |
>=sys-devel/automake-wrapper-10 |
104 |
>=sys-devel/autoconf-2.69:* |
105 |
sys-devel/gnuconfig" |
106 |
DEPEND="${RDEPEND} |
107 |
- sys-apps/help2man" |
108 |
+ sys-apps/help2man |
109 |
+ test? ( ${PYTHON_DEPS} )" |
110 |
+ |
111 |
+PATCHES=( |
112 |
+ "${FILESDIR}"/${PN}-1.10-perl-5.16.patch #424453 |
113 |
+ "${FILESDIR}"/${PN}-1.11-install-sh-avoid-low-risk-race-in-tmp.patch |
114 |
+ "${FILESDIR}"/${PN}-1.13-perl-escape-curly-bracket-r1.patch |
115 |
+) |
116 |
|
117 |
src_prepare() { |
118 |
default |
119 |
export WANT_AUTOCONF=2.5 |
120 |
- # Don't try wrapping the autotools this thing runs as it tends |
121 |
- # to be a bit esoteric, and the script does `set -e` itself. |
122 |
- ./bootstrap || die |
123 |
- sed -i -e "/APIVERSION=/s:=.*:=${SLOT}:" configure || die |
124 |
+ chmod a+rx tests/*.test |
125 |
+} |
126 |
+ |
127 |
+src_configure() { |
128 |
+ econf --docdir="\$(datarootdir)/doc/${PF}" |
129 |
} |
130 |
|
131 |
# slot the info pages. do this w/out munging the source so we don't have |
132 |
# to depend on texinfo to regen things. #464146 (among others) |
133 |
slot_info_pages() { |
134 |
- pushd "${ED}"/usr/share/info >/dev/null || die |
135 |
- rm -f dir || dir |
136 |
+ pushd "${ED%/}"/usr/share/info >/dev/null || die |
137 |
+ rm -f dir || die |
138 |
|
139 |
# Rewrite all the references to other pages. |
140 |
# before: * aclocal-invocation: (automake)aclocal Invocation. Generating aclocal.m4. |
141 |
@@ -79,19 +69,26 @@ slot_info_pages() { |
142 |
popd >/dev/null || die |
143 |
} |
144 |
|
145 |
-src_install() { |
146 |
+src_test() { |
147 |
+ python_setup |
148 |
+ |
149 |
default |
150 |
+} |
151 |
|
152 |
+src_install() { |
153 |
+ default |
154 |
slot_info_pages |
155 |
- rm "${ED}"/usr/share/aclocal/README || die |
156 |
- rmdir "${ED}"/usr/share/aclocal || die |
157 |
- rm \ |
158 |
- "${ED}"/usr/bin/{aclocal,automake} \ |
159 |
- "${ED}"/usr/share/man/man1/{aclocal,automake}.1 || die |
160 |
+ |
161 |
+ # SLOT the docs and junk |
162 |
+ local x |
163 |
+ for x in aclocal automake ; do |
164 |
+ help2man "perl -Ilib ${x}" > ${x}-${SLOT}.1 |
165 |
+ doman ${x}-${SLOT}.1 |
166 |
+ rm -f "${ED%/}"/usr/bin/${x} |
167 |
+ done |
168 |
|
169 |
# remove all config.guess and config.sub files replacing them |
170 |
# w/a symlink to a specific gnuconfig version |
171 |
- local x |
172 |
for x in guess sub ; do |
173 |
dosym ../gnuconfig/config.${x} /usr/share/${PN}-${SLOT}/config.${x} |
174 |
done |
175 |
|
176 |
diff --git a/sys-devel/automake/automake-9999.ebuild b/sys-devel/automake/automake-1.11.6-r3.ebuild |
177 |
similarity index 56% |
178 |
copy from sys-devel/automake/automake-9999.ebuild |
179 |
copy to sys-devel/automake/automake-1.11.6-r3.ebuild |
180 |
index ee87a2b2eb1..b8ddb4f1371 100644 |
181 |
--- a/sys-devel/automake/automake-9999.ebuild |
182 |
+++ b/sys-devel/automake/automake-1.11.6-r3.ebuild |
183 |
@@ -2,59 +2,61 @@ |
184 |
# Distributed under the terms of the GNU General Public License v2 |
185 |
|
186 |
EAPI="6" |
187 |
+PYTHON_COMPAT=( python2_7 ) |
188 |
|
189 |
-inherit eutils versionator |
190 |
- |
191 |
-if [[ ${PV} == 9999 ]] ; then |
192 |
- EGIT_REPO_URI="git://git.savannah.gnu.org/${PN}.git |
193 |
- http://git.savannah.gnu.org/r/${PN}.git" |
194 |
- |
195 |
- inherit git-r3 |
196 |
-else |
197 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
198 |
- if [[ ${PV/_beta} == ${PV} ]]; then |
199 |
- MY_P=${P} |
200 |
- SRC_URI="mirror://gnu/${PN}/${P}.tar.xz |
201 |
- ftp://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz" |
202 |
- else |
203 |
- MY_PV="$(get_major_version).$(($(get_version_component_range 2)-1))b" |
204 |
- MY_P="${PN}-${MY_PV}" |
205 |
- |
206 |
- # Alpha/beta releases are not distributed on the usual mirrors. |
207 |
- SRC_URI="ftp://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz" |
208 |
- fi |
209 |
- S="${WORKDIR}/${MY_P}" |
210 |
-fi |
211 |
+inherit python-any-r1 |
212 |
|
213 |
DESCRIPTION="Used to generate Makefile.in from Makefile.am" |
214 |
HOMEPAGE="https://www.gnu.org/software/automake/" |
215 |
+SRC_URI="mirror://gnu/${PN}/${P}.tar.xz" |
216 |
|
217 |
LICENSE="GPL-2" |
218 |
# Use Gentoo versioning for slotting. |
219 |
SLOT="${PV:0:4}" |
220 |
-IUSE="" |
221 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
222 |
+IUSE="test" |
223 |
|
224 |
RDEPEND="dev-lang/perl |
225 |
>=sys-devel/automake-wrapper-10 |
226 |
>=sys-devel/autoconf-2.69:* |
227 |
sys-devel/gnuconfig" |
228 |
DEPEND="${RDEPEND} |
229 |
- sys-apps/help2man" |
230 |
+ sys-apps/help2man |
231 |
+ test? ( ${PYTHON_DEPS} )" |
232 |
+ |
233 |
+PATCHES=( |
234 |
+ "${FILESDIR}"/${PN}-1.10-perl-5.16.patch #424453 |
235 |
+ "${FILESDIR}"/${PN}-1.11-install-sh-avoid-low-risk-race-in-tmp.patch |
236 |
+ "${FILESDIR}"/${PN}-1.13-perl-escape-curly-bracket-r1.patch |
237 |
+) |
238 |
|
239 |
src_prepare() { |
240 |
default |
241 |
export WANT_AUTOCONF=2.5 |
242 |
- # Don't try wrapping the autotools this thing runs as it tends |
243 |
- # to be a bit esoteric, and the script does `set -e` itself. |
244 |
- ./bootstrap || die |
245 |
+ chmod a+rx tests/*.test |
246 |
+ export HELP2MAN=true |
247 |
sed -i -e "/APIVERSION=/s:=.*:=${SLOT}:" configure || die |
248 |
+ export TZ="UTC" #589138 |
249 |
+} |
250 |
+ |
251 |
+src_configure() { |
252 |
+ econf --docdir="\$(datarootdir)/doc/${PF}" |
253 |
+} |
254 |
+ |
255 |
+src_compile() { |
256 |
+ default |
257 |
+ |
258 |
+ local x |
259 |
+ for x in aclocal automake; do |
260 |
+ help2man "perl -Ilib ${x}" > doc/${x}-${SLOT}.1 |
261 |
+ done |
262 |
} |
263 |
|
264 |
# slot the info pages. do this w/out munging the source so we don't have |
265 |
# to depend on texinfo to regen things. #464146 (among others) |
266 |
slot_info_pages() { |
267 |
- pushd "${ED}"/usr/share/info >/dev/null || die |
268 |
- rm -f dir || dir |
269 |
+ pushd "${ED%/}"/usr/share/info >/dev/null || die |
270 |
+ rm -f dir || die |
271 |
|
272 |
# Rewrite all the references to other pages. |
273 |
# before: * aclocal-invocation: (automake)aclocal Invocation. Generating aclocal.m4. |
274 |
@@ -79,15 +81,21 @@ slot_info_pages() { |
275 |
popd >/dev/null || die |
276 |
} |
277 |
|
278 |
-src_install() { |
279 |
+src_test() { |
280 |
+ unset HELP2MAN # 583108 |
281 |
+ |
282 |
+ python_setup |
283 |
+ |
284 |
default |
285 |
+} |
286 |
|
287 |
+src_install() { |
288 |
+ default |
289 |
slot_info_pages |
290 |
- rm "${ED}"/usr/share/aclocal/README || die |
291 |
- rmdir "${ED}"/usr/share/aclocal || die |
292 |
+ |
293 |
rm \ |
294 |
- "${ED}"/usr/bin/{aclocal,automake} \ |
295 |
- "${ED}"/usr/share/man/man1/{aclocal,automake}.1 || die |
296 |
+ "${ED%/}"/usr/bin/{aclocal,automake} \ |
297 |
+ "${ED%/}"/usr/share/man/man1/{aclocal,automake}.1 || die |
298 |
|
299 |
# remove all config.guess and config.sub files replacing them |
300 |
# w/a symlink to a specific gnuconfig version |
301 |
|
302 |
diff --git a/sys-devel/automake/automake-9999.ebuild b/sys-devel/automake/automake-1.12.6-r2.ebuild |
303 |
similarity index 56% |
304 |
copy from sys-devel/automake/automake-9999.ebuild |
305 |
copy to sys-devel/automake/automake-1.12.6-r2.ebuild |
306 |
index ee87a2b2eb1..b926404ca18 100644 |
307 |
--- a/sys-devel/automake/automake-9999.ebuild |
308 |
+++ b/sys-devel/automake/automake-1.12.6-r2.ebuild |
309 |
@@ -2,59 +2,48 @@ |
310 |
# Distributed under the terms of the GNU General Public License v2 |
311 |
|
312 |
EAPI="6" |
313 |
+PYTHON_COMPAT=( python2_7 ) |
314 |
|
315 |
-inherit eutils versionator |
316 |
- |
317 |
-if [[ ${PV} == 9999 ]] ; then |
318 |
- EGIT_REPO_URI="git://git.savannah.gnu.org/${PN}.git |
319 |
- http://git.savannah.gnu.org/r/${PN}.git" |
320 |
- |
321 |
- inherit git-r3 |
322 |
-else |
323 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
324 |
- if [[ ${PV/_beta} == ${PV} ]]; then |
325 |
- MY_P=${P} |
326 |
- SRC_URI="mirror://gnu/${PN}/${P}.tar.xz |
327 |
- ftp://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz" |
328 |
- else |
329 |
- MY_PV="$(get_major_version).$(($(get_version_component_range 2)-1))b" |
330 |
- MY_P="${PN}-${MY_PV}" |
331 |
- |
332 |
- # Alpha/beta releases are not distributed on the usual mirrors. |
333 |
- SRC_URI="ftp://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz" |
334 |
- fi |
335 |
- S="${WORKDIR}/${MY_P}" |
336 |
-fi |
337 |
+inherit python-any-r1 |
338 |
|
339 |
DESCRIPTION="Used to generate Makefile.in from Makefile.am" |
340 |
HOMEPAGE="https://www.gnu.org/software/automake/" |
341 |
+SRC_URI="mirror://gnu/${PN}/${P}.tar.xz" |
342 |
|
343 |
LICENSE="GPL-2" |
344 |
# Use Gentoo versioning for slotting. |
345 |
SLOT="${PV:0:4}" |
346 |
-IUSE="" |
347 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
348 |
+IUSE="test" |
349 |
|
350 |
RDEPEND="dev-lang/perl |
351 |
>=sys-devel/automake-wrapper-10 |
352 |
>=sys-devel/autoconf-2.69:* |
353 |
sys-devel/gnuconfig" |
354 |
DEPEND="${RDEPEND} |
355 |
- sys-apps/help2man" |
356 |
+ sys-apps/help2man |
357 |
+ test? ( ${PYTHON_DEPS} )" |
358 |
+ |
359 |
+PATCHES=( |
360 |
+ "${FILESDIR}"/${PN}-1.13-perl-escape-curly-bracket-r1.patch |
361 |
+ "${FILESDIR}"/${PN}-1.14-install-sh-avoid-low-risk-race-in-tmp.patch |
362 |
+) |
363 |
|
364 |
src_prepare() { |
365 |
default |
366 |
export WANT_AUTOCONF=2.5 |
367 |
- # Don't try wrapping the autotools this thing runs as it tends |
368 |
- # to be a bit esoteric, and the script does `set -e` itself. |
369 |
- ./bootstrap || die |
370 |
sed -i -e "/APIVERSION=/s:=.*:=${SLOT}:" configure || die |
371 |
} |
372 |
|
373 |
+src_configure() { |
374 |
+ econf --docdir="\$(datarootdir)/doc/${PF}" |
375 |
+} |
376 |
+ |
377 |
# slot the info pages. do this w/out munging the source so we don't have |
378 |
# to depend on texinfo to regen things. #464146 (among others) |
379 |
slot_info_pages() { |
380 |
- pushd "${ED}"/usr/share/info >/dev/null || die |
381 |
- rm -f dir || dir |
382 |
+ pushd "${ED%/}"/usr/share/info >/dev/null || die |
383 |
+ rm -f dir || die |
384 |
|
385 |
# Rewrite all the references to other pages. |
386 |
# before: * aclocal-invocation: (automake)aclocal Invocation. Generating aclocal.m4. |
387 |
@@ -79,15 +68,21 @@ slot_info_pages() { |
388 |
popd >/dev/null || die |
389 |
} |
390 |
|
391 |
+src_test() { |
392 |
+ python_setup |
393 |
+ |
394 |
+ default |
395 |
+} |
396 |
+ |
397 |
src_install() { |
398 |
default |
399 |
|
400 |
slot_info_pages |
401 |
- rm "${ED}"/usr/share/aclocal/README || die |
402 |
- rmdir "${ED}"/usr/share/aclocal || die |
403 |
+ rm "${ED%/}"/usr/share/aclocal/README || die |
404 |
+ rmdir "${ED%/}"/usr/share/aclocal || die |
405 |
rm \ |
406 |
- "${ED}"/usr/bin/{aclocal,automake} \ |
407 |
- "${ED}"/usr/share/man/man1/{aclocal,automake}.1 || die |
408 |
+ "${ED%/}"/usr/bin/{aclocal,automake} \ |
409 |
+ "${ED%/}"/usr/share/man/man1/{aclocal,automake}.1 || die |
410 |
|
411 |
# remove all config.guess and config.sub files replacing them |
412 |
# w/a symlink to a specific gnuconfig version |
413 |
|
414 |
diff --git a/sys-devel/automake/automake-9999.ebuild b/sys-devel/automake/automake-1.13.4-r2.ebuild |
415 |
similarity index 56% |
416 |
copy from sys-devel/automake/automake-9999.ebuild |
417 |
copy to sys-devel/automake/automake-1.13.4-r2.ebuild |
418 |
index ee87a2b2eb1..e805dccdb6e 100644 |
419 |
--- a/sys-devel/automake/automake-9999.ebuild |
420 |
+++ b/sys-devel/automake/automake-1.13.4-r2.ebuild |
421 |
@@ -2,59 +2,55 @@ |
422 |
# Distributed under the terms of the GNU General Public License v2 |
423 |
|
424 |
EAPI="6" |
425 |
+PYTHON_COMPAT=( python2_7 ) |
426 |
|
427 |
-inherit eutils versionator |
428 |
- |
429 |
-if [[ ${PV} == 9999 ]] ; then |
430 |
- EGIT_REPO_URI="git://git.savannah.gnu.org/${PN}.git |
431 |
- http://git.savannah.gnu.org/r/${PN}.git" |
432 |
- |
433 |
- inherit git-r3 |
434 |
-else |
435 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
436 |
- if [[ ${PV/_beta} == ${PV} ]]; then |
437 |
- MY_P=${P} |
438 |
- SRC_URI="mirror://gnu/${PN}/${P}.tar.xz |
439 |
- ftp://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz" |
440 |
- else |
441 |
- MY_PV="$(get_major_version).$(($(get_version_component_range 2)-1))b" |
442 |
- MY_P="${PN}-${MY_PV}" |
443 |
- |
444 |
- # Alpha/beta releases are not distributed on the usual mirrors. |
445 |
- SRC_URI="ftp://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz" |
446 |
- fi |
447 |
- S="${WORKDIR}/${MY_P}" |
448 |
-fi |
449 |
+inherit python-any-r1 |
450 |
|
451 |
DESCRIPTION="Used to generate Makefile.in from Makefile.am" |
452 |
HOMEPAGE="https://www.gnu.org/software/automake/" |
453 |
+SRC_URI="mirror://gnu/${PN}/${P}.tar.xz" |
454 |
|
455 |
LICENSE="GPL-2" |
456 |
# Use Gentoo versioning for slotting. |
457 |
SLOT="${PV:0:4}" |
458 |
-IUSE="" |
459 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
460 |
+IUSE="test" |
461 |
|
462 |
RDEPEND="dev-lang/perl |
463 |
>=sys-devel/automake-wrapper-10 |
464 |
>=sys-devel/autoconf-2.69:* |
465 |
sys-devel/gnuconfig" |
466 |
DEPEND="${RDEPEND} |
467 |
- sys-apps/help2man" |
468 |
+ sys-apps/help2man |
469 |
+ test? ( ${PYTHON_DEPS} )" |
470 |
+ |
471 |
+PATCHES=( |
472 |
+ "${FILESDIR}"/${PN}-1.13-dyn-ithreads.patch |
473 |
+ "${FILESDIR}"/${PN}-1.13-perl-escape-curly-bracket-r1.patch |
474 |
+ "${FILESDIR}"/${PN}-1.14-install-sh-avoid-low-risk-race-in-tmp.patch |
475 |
+) |
476 |
|
477 |
src_prepare() { |
478 |
default |
479 |
export WANT_AUTOCONF=2.5 |
480 |
- # Don't try wrapping the autotools this thing runs as it tends |
481 |
- # to be a bit esoteric, and the script does `set -e` itself. |
482 |
- ./bootstrap || die |
483 |
sed -i -e "/APIVERSION=/s:=.*:=${SLOT}:" configure || die |
484 |
} |
485 |
|
486 |
+src_configure() { |
487 |
+ econf --docdir="\$(datarootdir)/doc/${PF}" |
488 |
+} |
489 |
+ |
490 |
+src_test() { |
491 |
+ python_setup |
492 |
+ |
493 |
+ default |
494 |
+} |
495 |
+ |
496 |
# slot the info pages. do this w/out munging the source so we don't have |
497 |
# to depend on texinfo to regen things. #464146 (among others) |
498 |
slot_info_pages() { |
499 |
- pushd "${ED}"/usr/share/info >/dev/null || die |
500 |
- rm -f dir || dir |
501 |
+ pushd "${ED%/}"/usr/share/info >/dev/null || die |
502 |
+ rm -f dir || die |
503 |
|
504 |
# Rewrite all the references to other pages. |
505 |
# before: * aclocal-invocation: (automake)aclocal Invocation. Generating aclocal.m4. |
506 |
@@ -83,11 +79,11 @@ src_install() { |
507 |
default |
508 |
|
509 |
slot_info_pages |
510 |
- rm "${ED}"/usr/share/aclocal/README || die |
511 |
- rmdir "${ED}"/usr/share/aclocal || die |
512 |
+ rm "${ED%/}"/usr/share/aclocal/README || die |
513 |
+ rmdir "${ED%/}"/usr/share/aclocal || die |
514 |
rm \ |
515 |
- "${ED}"/usr/bin/{aclocal,automake} \ |
516 |
- "${ED}"/usr/share/man/man1/{aclocal,automake}.1 || die |
517 |
+ "${ED%/}"/usr/bin/{aclocal,automake} \ |
518 |
+ "${ED%/}"/usr/share/man/man1/{aclocal,automake}.1 || die |
519 |
|
520 |
# remove all config.guess and config.sub files replacing them |
521 |
# w/a symlink to a specific gnuconfig version |
522 |
|
523 |
diff --git a/sys-devel/automake/automake-9999.ebuild b/sys-devel/automake/automake-1.14.1-r2.ebuild |
524 |
similarity index 53% |
525 |
copy from sys-devel/automake/automake-9999.ebuild |
526 |
copy to sys-devel/automake/automake-1.14.1-r2.ebuild |
527 |
index ee87a2b2eb1..1747213bd30 100644 |
528 |
--- a/sys-devel/automake/automake-9999.ebuild |
529 |
+++ b/sys-devel/automake/automake-1.14.1-r2.ebuild |
530 |
@@ -2,28 +2,20 @@ |
531 |
# Distributed under the terms of the GNU General Public License v2 |
532 |
|
533 |
EAPI="6" |
534 |
+PYTHON_COMPAT=( python2_7 ) |
535 |
|
536 |
-inherit eutils versionator |
537 |
+inherit python-any-r1 versionator |
538 |
|
539 |
-if [[ ${PV} == 9999 ]] ; then |
540 |
- EGIT_REPO_URI="git://git.savannah.gnu.org/${PN}.git |
541 |
- http://git.savannah.gnu.org/r/${PN}.git" |
542 |
- |
543 |
- inherit git-r3 |
544 |
+if [[ ${PV/_beta} == ${PV} ]]; then |
545 |
+ MY_P=${P} |
546 |
+ SRC_URI="mirror://gnu/${PN}/${P}.tar.xz |
547 |
+ https://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz" |
548 |
else |
549 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
550 |
- if [[ ${PV/_beta} == ${PV} ]]; then |
551 |
- MY_P=${P} |
552 |
- SRC_URI="mirror://gnu/${PN}/${P}.tar.xz |
553 |
- ftp://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz" |
554 |
- else |
555 |
- MY_PV="$(get_major_version).$(($(get_version_component_range 2)-1))b" |
556 |
- MY_P="${PN}-${MY_PV}" |
557 |
- |
558 |
- # Alpha/beta releases are not distributed on the usual mirrors. |
559 |
- SRC_URI="ftp://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz" |
560 |
- fi |
561 |
- S="${WORKDIR}/${MY_P}" |
562 |
+ MY_PV="$(get_major_version).$(($(get_version_component_range 2)-1))b" |
563 |
+ MY_P="${PN}-${MY_PV}" |
564 |
+ |
565 |
+ # Alpha/beta releases are not distributed on the usual mirrors. |
566 |
+ SRC_URI="https://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz" |
567 |
fi |
568 |
|
569 |
DESCRIPTION="Used to generate Makefile.in from Makefile.am" |
570 |
@@ -32,29 +24,51 @@ HOMEPAGE="https://www.gnu.org/software/automake/" |
571 |
LICENSE="GPL-2" |
572 |
# Use Gentoo versioning for slotting. |
573 |
SLOT="${PV:0:4}" |
574 |
-IUSE="" |
575 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
576 |
+IUSE="test" |
577 |
|
578 |
RDEPEND="dev-lang/perl |
579 |
>=sys-devel/automake-wrapper-10 |
580 |
>=sys-devel/autoconf-2.69:* |
581 |
sys-devel/gnuconfig" |
582 |
DEPEND="${RDEPEND} |
583 |
- sys-apps/help2man" |
584 |
+ sys-apps/help2man |
585 |
+ test? ( ${PYTHON_DEPS} )" |
586 |
+ |
587 |
+PATCHES=( |
588 |
+ "${FILESDIR}"/${PN}-1.14-gzip-fix.patch |
589 |
+ "${FILESDIR}"/${PN}-1.14-install-sh-avoid-low-risk-race-in-tmp.patch |
590 |
+ "${FILESDIR}"/${PN}-1.15-perl-escape-curly-bracket.patch |
591 |
+) |
592 |
+ |
593 |
+S="${WORKDIR}/${MY_P}" |
594 |
|
595 |
src_prepare() { |
596 |
default |
597 |
export WANT_AUTOCONF=2.5 |
598 |
- # Don't try wrapping the autotools this thing runs as it tends |
599 |
- # to be a bit esoteric, and the script does `set -e` itself. |
600 |
- ./bootstrap || die |
601 |
sed -i -e "/APIVERSION=/s:=.*:=${SLOT}:" configure || die |
602 |
+ |
603 |
+ # Bug 628912 |
604 |
+ if ! has_version sys-apps/texinfo ; then |
605 |
+ touch doc/{stamp-vti,version.texi,automake.info} || die |
606 |
+ fi |
607 |
+} |
608 |
+ |
609 |
+src_configure() { |
610 |
+ econf --docdir="\$(datarootdir)/doc/${PF}" |
611 |
+} |
612 |
+ |
613 |
+src_test() { |
614 |
+ python_setup |
615 |
+ |
616 |
+ default |
617 |
} |
618 |
|
619 |
# slot the info pages. do this w/out munging the source so we don't have |
620 |
# to depend on texinfo to regen things. #464146 (among others) |
621 |
slot_info_pages() { |
622 |
- pushd "${ED}"/usr/share/info >/dev/null || die |
623 |
- rm -f dir || dir |
624 |
+ pushd "${ED%/}"/usr/share/info >/dev/null || die |
625 |
+ rm -f dir || die |
626 |
|
627 |
# Rewrite all the references to other pages. |
628 |
# before: * aclocal-invocation: (automake)aclocal Invocation. Generating aclocal.m4. |
629 |
@@ -83,11 +97,11 @@ src_install() { |
630 |
default |
631 |
|
632 |
slot_info_pages |
633 |
- rm "${ED}"/usr/share/aclocal/README || die |
634 |
- rmdir "${ED}"/usr/share/aclocal || die |
635 |
+ rm "${ED%/}"/usr/share/aclocal/README || die |
636 |
+ rmdir "${ED%/}"/usr/share/aclocal || die |
637 |
rm \ |
638 |
- "${ED}"/usr/bin/{aclocal,automake} \ |
639 |
- "${ED}"/usr/share/man/man1/{aclocal,automake}.1 || die |
640 |
+ "${ED%/}"/usr/bin/{aclocal,automake} \ |
641 |
+ "${ED%/}"/usr/share/man/man1/{aclocal,automake}.1 || die |
642 |
|
643 |
# remove all config.guess and config.sub files replacing them |
644 |
# w/a symlink to a specific gnuconfig version |
645 |
|
646 |
diff --git a/sys-devel/automake/automake-9999.ebuild b/sys-devel/automake/automake-1.15.1-r2.ebuild |
647 |
similarity index 75% |
648 |
copy from sys-devel/automake/automake-9999.ebuild |
649 |
copy to sys-devel/automake/automake-1.15.1-r2.ebuild |
650 |
index ee87a2b2eb1..3add6f0127e 100644 |
651 |
--- a/sys-devel/automake/automake-9999.ebuild |
652 |
+++ b/sys-devel/automake/automake-1.15.1-r2.ebuild |
653 |
@@ -2,12 +2,12 @@ |
654 |
# Distributed under the terms of the GNU General Public License v2 |
655 |
|
656 |
EAPI="6" |
657 |
+PYTHON_COMPAT=( python2_7 ) |
658 |
|
659 |
-inherit eutils versionator |
660 |
+inherit python-any-r1 versionator |
661 |
|
662 |
if [[ ${PV} == 9999 ]] ; then |
663 |
- EGIT_REPO_URI="git://git.savannah.gnu.org/${PN}.git |
664 |
- http://git.savannah.gnu.org/r/${PN}.git" |
665 |
+ EGIT_REPO_URI="https://git.savannah.gnu.org/r/${PN}.git" |
666 |
|
667 |
inherit git-r3 |
668 |
else |
669 |
@@ -15,13 +15,13 @@ else |
670 |
if [[ ${PV/_beta} == ${PV} ]]; then |
671 |
MY_P=${P} |
672 |
SRC_URI="mirror://gnu/${PN}/${P}.tar.xz |
673 |
- ftp://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz" |
674 |
+ https://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz" |
675 |
else |
676 |
MY_PV="$(get_major_version).$(($(get_version_component_range 2)-1))b" |
677 |
MY_P="${PN}-${MY_PV}" |
678 |
|
679 |
# Alpha/beta releases are not distributed on the usual mirrors. |
680 |
- SRC_URI="ftp://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz" |
681 |
+ SRC_URI="https://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz" |
682 |
fi |
683 |
S="${WORKDIR}/${MY_P}" |
684 |
fi |
685 |
@@ -32,14 +32,17 @@ HOMEPAGE="https://www.gnu.org/software/automake/" |
686 |
LICENSE="GPL-2" |
687 |
# Use Gentoo versioning for slotting. |
688 |
SLOT="${PV:0:4}" |
689 |
-IUSE="" |
690 |
+IUSE="test" |
691 |
|
692 |
RDEPEND="dev-lang/perl |
693 |
>=sys-devel/automake-wrapper-10 |
694 |
>=sys-devel/autoconf-2.69:* |
695 |
sys-devel/gnuconfig" |
696 |
DEPEND="${RDEPEND} |
697 |
- sys-apps/help2man" |
698 |
+ sys-apps/help2man |
699 |
+ test? ( ${PYTHON_DEPS} )" |
700 |
+ |
701 |
+PATCHES=( "${FILESDIR}"/${PN}-1.15-install-sh-avoid-low-risk-race-in-tmp.patch ) |
702 |
|
703 |
src_prepare() { |
704 |
default |
705 |
@@ -48,13 +51,18 @@ src_prepare() { |
706 |
# to be a bit esoteric, and the script does `set -e` itself. |
707 |
./bootstrap || die |
708 |
sed -i -e "/APIVERSION=/s:=.*:=${SLOT}:" configure || die |
709 |
+ |
710 |
+ # Bug 628912 |
711 |
+ if ! has_version sys-apps/texinfo ; then |
712 |
+ touch doc/{stamp-vti,version.texi,automake.info} || die |
713 |
+ fi |
714 |
} |
715 |
|
716 |
# slot the info pages. do this w/out munging the source so we don't have |
717 |
# to depend on texinfo to regen things. #464146 (among others) |
718 |
slot_info_pages() { |
719 |
- pushd "${ED}"/usr/share/info >/dev/null || die |
720 |
- rm -f dir || dir |
721 |
+ pushd "${ED%/}"/usr/share/info >/dev/null || die |
722 |
+ rm -f dir || die |
723 |
|
724 |
# Rewrite all the references to other pages. |
725 |
# before: * aclocal-invocation: (automake)aclocal Invocation. Generating aclocal.m4. |
726 |
@@ -79,15 +87,21 @@ slot_info_pages() { |
727 |
popd >/dev/null || die |
728 |
} |
729 |
|
730 |
+src_test() { |
731 |
+ python_setup |
732 |
+ |
733 |
+ default |
734 |
+} |
735 |
+ |
736 |
src_install() { |
737 |
default |
738 |
|
739 |
slot_info_pages |
740 |
- rm "${ED}"/usr/share/aclocal/README || die |
741 |
- rmdir "${ED}"/usr/share/aclocal || die |
742 |
+ rm "${ED%/}"/usr/share/aclocal/README || die |
743 |
+ rmdir "${ED%/}"/usr/share/aclocal || die |
744 |
rm \ |
745 |
- "${ED}"/usr/bin/{aclocal,automake} \ |
746 |
- "${ED}"/usr/share/man/man1/{aclocal,automake}.1 || die |
747 |
+ "${ED%/}"/usr/bin/{aclocal,automake} \ |
748 |
+ "${ED%/}"/usr/share/man/man1/{aclocal,automake}.1 || die |
749 |
|
750 |
# remove all config.guess and config.sub files replacing them |
751 |
# w/a symlink to a specific gnuconfig version |
752 |
|
753 |
diff --git a/sys-devel/automake/automake-9999.ebuild b/sys-devel/automake/automake-1.9.6-r5.ebuild |
754 |
similarity index 53% |
755 |
copy from sys-devel/automake/automake-9999.ebuild |
756 |
copy to sys-devel/automake/automake-1.9.6-r5.ebuild |
757 |
index ee87a2b2eb1..830139964d5 100644 |
758 |
--- a/sys-devel/automake/automake-9999.ebuild |
759 |
+++ b/sys-devel/automake/automake-1.9.6-r5.ebuild |
760 |
@@ -2,59 +2,50 @@ |
761 |
# Distributed under the terms of the GNU General Public License v2 |
762 |
|
763 |
EAPI="6" |
764 |
+PYTHON_COMPAT=( python2_7 ) |
765 |
|
766 |
-inherit eutils versionator |
767 |
- |
768 |
-if [[ ${PV} == 9999 ]] ; then |
769 |
- EGIT_REPO_URI="git://git.savannah.gnu.org/${PN}.git |
770 |
- http://git.savannah.gnu.org/r/${PN}.git" |
771 |
- |
772 |
- inherit git-r3 |
773 |
-else |
774 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
775 |
- if [[ ${PV/_beta} == ${PV} ]]; then |
776 |
- MY_P=${P} |
777 |
- SRC_URI="mirror://gnu/${PN}/${P}.tar.xz |
778 |
- ftp://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz" |
779 |
- else |
780 |
- MY_PV="$(get_major_version).$(($(get_version_component_range 2)-1))b" |
781 |
- MY_P="${PN}-${MY_PV}" |
782 |
- |
783 |
- # Alpha/beta releases are not distributed on the usual mirrors. |
784 |
- SRC_URI="ftp://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz" |
785 |
- fi |
786 |
- S="${WORKDIR}/${MY_P}" |
787 |
-fi |
788 |
+inherit python-any-r1 |
789 |
|
790 |
DESCRIPTION="Used to generate Makefile.in from Makefile.am" |
791 |
HOMEPAGE="https://www.gnu.org/software/automake/" |
792 |
+SRC_URI="mirror://gnu/${PN}/${P}.tar.bz2" |
793 |
|
794 |
LICENSE="GPL-2" |
795 |
# Use Gentoo versioning for slotting. |
796 |
-SLOT="${PV:0:4}" |
797 |
-IUSE="" |
798 |
+SLOT="${PV:0:3}" |
799 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
800 |
+IUSE="test" |
801 |
|
802 |
RDEPEND="dev-lang/perl |
803 |
>=sys-devel/automake-wrapper-10 |
804 |
>=sys-devel/autoconf-2.69:* |
805 |
+ >=sys-apps/texinfo-4.7 |
806 |
sys-devel/gnuconfig" |
807 |
DEPEND="${RDEPEND} |
808 |
- sys-apps/help2man" |
809 |
+ sys-apps/help2man |
810 |
+ test? ( ${PYTHON_DEPS} )" |
811 |
+ |
812 |
+PATCHES=( |
813 |
+ "${FILESDIR}"/${PN}-1.9.6-infopage-namechange-r1.patch |
814 |
+ "${FILESDIR}"/${P}-include-dir-prefix-r1.patch #107435 |
815 |
+ "${FILESDIR}"/${P}-ignore-comments-r1.patch #126388 |
816 |
+ "${FILESDIR}"/${P}-aclocal7-test-sleep.patch #197366 |
817 |
+ "${FILESDIR}"/${PN}-1.9.6-subst-test.patch #222225 |
818 |
+ "${FILESDIR}"/${PN}-1.10-ccnoco-ldflags.patch #203914 |
819 |
+ "${FILESDIR}"/${PN}-1.8.5-CVE-2009-4029.patch #295357 |
820 |
+ "${FILESDIR}"/${PN}-1.8-perl-5.11.patch |
821 |
+) |
822 |
|
823 |
src_prepare() { |
824 |
default |
825 |
export WANT_AUTOCONF=2.5 |
826 |
- # Don't try wrapping the autotools this thing runs as it tends |
827 |
- # to be a bit esoteric, and the script does `set -e` itself. |
828 |
- ./bootstrap || die |
829 |
- sed -i -e "/APIVERSION=/s:=.*:=${SLOT}:" configure || die |
830 |
} |
831 |
|
832 |
# slot the info pages. do this w/out munging the source so we don't have |
833 |
# to depend on texinfo to regen things. #464146 (among others) |
834 |
slot_info_pages() { |
835 |
- pushd "${ED}"/usr/share/info >/dev/null || die |
836 |
- rm -f dir || dir |
837 |
+ pushd "${ED%/}"/usr/share/info >/dev/null || die |
838 |
+ rm -f dir || die |
839 |
|
840 |
# Rewrite all the references to other pages. |
841 |
# before: * aclocal-invocation: (automake)aclocal Invocation. Generating aclocal.m4. |
842 |
@@ -79,19 +70,25 @@ slot_info_pages() { |
843 |
popd >/dev/null || die |
844 |
} |
845 |
|
846 |
-src_install() { |
847 |
+src_test() { |
848 |
+ python_setup |
849 |
+ |
850 |
default |
851 |
+} |
852 |
|
853 |
+src_install() { |
854 |
+ default |
855 |
slot_info_pages |
856 |
- rm "${ED}"/usr/share/aclocal/README || die |
857 |
- rmdir "${ED}"/usr/share/aclocal || die |
858 |
- rm \ |
859 |
- "${ED}"/usr/bin/{aclocal,automake} \ |
860 |
- "${ED}"/usr/share/man/man1/{aclocal,automake}.1 || die |
861 |
+ |
862 |
+ local x |
863 |
+ for x in aclocal automake ; do |
864 |
+ help2man "perl -Ilib ${x}" > ${x}-${SLOT}.1 |
865 |
+ doman ${x}-${SLOT}.1 |
866 |
+ rm -f "${ED%/}"/usr/bin/${x} |
867 |
+ done |
868 |
|
869 |
# remove all config.guess and config.sub files replacing them |
870 |
# w/a symlink to a specific gnuconfig version |
871 |
- local x |
872 |
for x in guess sub ; do |
873 |
dosym ../gnuconfig/config.${x} /usr/share/${PN}-${SLOT}/config.${x} |
874 |
done |
875 |
|
876 |
diff --git a/sys-devel/automake/automake-9999.ebuild b/sys-devel/automake/automake-9999.ebuild |
877 |
index ee87a2b2eb1..3add6f0127e 100644 |
878 |
--- a/sys-devel/automake/automake-9999.ebuild |
879 |
+++ b/sys-devel/automake/automake-9999.ebuild |
880 |
@@ -2,12 +2,12 @@ |
881 |
# Distributed under the terms of the GNU General Public License v2 |
882 |
|
883 |
EAPI="6" |
884 |
+PYTHON_COMPAT=( python2_7 ) |
885 |
|
886 |
-inherit eutils versionator |
887 |
+inherit python-any-r1 versionator |
888 |
|
889 |
if [[ ${PV} == 9999 ]] ; then |
890 |
- EGIT_REPO_URI="git://git.savannah.gnu.org/${PN}.git |
891 |
- http://git.savannah.gnu.org/r/${PN}.git" |
892 |
+ EGIT_REPO_URI="https://git.savannah.gnu.org/r/${PN}.git" |
893 |
|
894 |
inherit git-r3 |
895 |
else |
896 |
@@ -15,13 +15,13 @@ else |
897 |
if [[ ${PV/_beta} == ${PV} ]]; then |
898 |
MY_P=${P} |
899 |
SRC_URI="mirror://gnu/${PN}/${P}.tar.xz |
900 |
- ftp://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz" |
901 |
+ https://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz" |
902 |
else |
903 |
MY_PV="$(get_major_version).$(($(get_version_component_range 2)-1))b" |
904 |
MY_P="${PN}-${MY_PV}" |
905 |
|
906 |
# Alpha/beta releases are not distributed on the usual mirrors. |
907 |
- SRC_URI="ftp://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz" |
908 |
+ SRC_URI="https://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz" |
909 |
fi |
910 |
S="${WORKDIR}/${MY_P}" |
911 |
fi |
912 |
@@ -32,14 +32,17 @@ HOMEPAGE="https://www.gnu.org/software/automake/" |
913 |
LICENSE="GPL-2" |
914 |
# Use Gentoo versioning for slotting. |
915 |
SLOT="${PV:0:4}" |
916 |
-IUSE="" |
917 |
+IUSE="test" |
918 |
|
919 |
RDEPEND="dev-lang/perl |
920 |
>=sys-devel/automake-wrapper-10 |
921 |
>=sys-devel/autoconf-2.69:* |
922 |
sys-devel/gnuconfig" |
923 |
DEPEND="${RDEPEND} |
924 |
- sys-apps/help2man" |
925 |
+ sys-apps/help2man |
926 |
+ test? ( ${PYTHON_DEPS} )" |
927 |
+ |
928 |
+PATCHES=( "${FILESDIR}"/${PN}-1.15-install-sh-avoid-low-risk-race-in-tmp.patch ) |
929 |
|
930 |
src_prepare() { |
931 |
default |
932 |
@@ -48,13 +51,18 @@ src_prepare() { |
933 |
# to be a bit esoteric, and the script does `set -e` itself. |
934 |
./bootstrap || die |
935 |
sed -i -e "/APIVERSION=/s:=.*:=${SLOT}:" configure || die |
936 |
+ |
937 |
+ # Bug 628912 |
938 |
+ if ! has_version sys-apps/texinfo ; then |
939 |
+ touch doc/{stamp-vti,version.texi,automake.info} || die |
940 |
+ fi |
941 |
} |
942 |
|
943 |
# slot the info pages. do this w/out munging the source so we don't have |
944 |
# to depend on texinfo to regen things. #464146 (among others) |
945 |
slot_info_pages() { |
946 |
- pushd "${ED}"/usr/share/info >/dev/null || die |
947 |
- rm -f dir || dir |
948 |
+ pushd "${ED%/}"/usr/share/info >/dev/null || die |
949 |
+ rm -f dir || die |
950 |
|
951 |
# Rewrite all the references to other pages. |
952 |
# before: * aclocal-invocation: (automake)aclocal Invocation. Generating aclocal.m4. |
953 |
@@ -79,15 +87,21 @@ slot_info_pages() { |
954 |
popd >/dev/null || die |
955 |
} |
956 |
|
957 |
+src_test() { |
958 |
+ python_setup |
959 |
+ |
960 |
+ default |
961 |
+} |
962 |
+ |
963 |
src_install() { |
964 |
default |
965 |
|
966 |
slot_info_pages |
967 |
- rm "${ED}"/usr/share/aclocal/README || die |
968 |
- rmdir "${ED}"/usr/share/aclocal || die |
969 |
+ rm "${ED%/}"/usr/share/aclocal/README || die |
970 |
+ rmdir "${ED%/}"/usr/share/aclocal || die |
971 |
rm \ |
972 |
- "${ED}"/usr/bin/{aclocal,automake} \ |
973 |
- "${ED}"/usr/share/man/man1/{aclocal,automake}.1 || die |
974 |
+ "${ED%/}"/usr/bin/{aclocal,automake} \ |
975 |
+ "${ED%/}"/usr/share/man/man1/{aclocal,automake}.1 || die |
976 |
|
977 |
# remove all config.guess and config.sub files replacing them |
978 |
# w/a symlink to a specific gnuconfig version |
979 |
|
980 |
diff --git a/sys-devel/automake/files/automake-1.11-install-sh-avoid-low-risk-race-in-tmp.patch b/sys-devel/automake/files/automake-1.11-install-sh-avoid-low-risk-race-in-tmp.patch |
981 |
new file mode 100644 |
982 |
index 00000000000..c435b9004f8 |
983 |
--- /dev/null |
984 |
+++ b/sys-devel/automake/files/automake-1.11-install-sh-avoid-low-risk-race-in-tmp.patch |
985 |
@@ -0,0 +1,77 @@ |
986 |
+From: Pavel Raiskup <praiskup@××××××.com> |
987 |
+Date: Sat, 15 Aug 2015 04:40:57 -0400 |
988 |
+Subject: install-sh: avoid (low risk) race in /tmp |
989 |
+ |
990 |
+Ensure that nobody can cross privilege boundaries by pre-creating |
991 |
+symlink on '$tmpdir' path. |
992 |
+ |
993 |
+Just testing 'mkdir -p' by creating '/tmp/ins$RANDOM-$$/d' is not |
994 |
+safe because '/tmp' directory is usually world-writeable and |
995 |
+'/tmp/ins$RANDOM-$$' content could be pretty easily guessed by |
996 |
+attacker (at least for shells where $RANDOM is not supported). |
997 |
+So, as the first step, create the '/tmp/ins$RANDOM-$$' without -p. |
998 |
+This step would fail early if somebody wanted catch us. |
999 |
+ |
1000 |
+Note that systems that implement (and have enabled) |
1001 |
+fs.protected_symlinks kernel feature are not affected even without |
1002 |
+this commit. |
1003 |
+ |
1004 |
+References: |
1005 |
+https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=760455 |
1006 |
+https://bugzilla.redhat.com/show_bug.cgi?id=1140725 |
1007 |
+ |
1008 |
+* lib/install-sh: Implement safer 'mkdir -p' test by running |
1009 |
+'$mkdirprog $mkdir_mode "$tmpdir"' first. |
1010 |
+(scriptversion): Bump. |
1011 |
+ |
1012 |
+--- a/lib/install-sh |
1013 |
++++ b/lib/install-sh |
1014 |
+@@ -345,34 +345,41 @@ do |
1015 |
+ # is incompatible with FreeBSD 'install' when (umask & 300) != 0. |
1016 |
+ ;; |
1017 |
+ *) |
1018 |
++ # $RANDOM is not portable (e.g. dash); use it when possible to |
1019 |
++ # lower collision chance |
1020 |
+ tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ |
1021 |
+- trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 |
1022 |
++ trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0 |
1023 |
+ |
1024 |
++ # As "mkdir -p" follows symlinks and we work in /tmp possibly; so |
1025 |
++ # create the $tmpdir first (and fail if unsuccessful) to make sure |
1026 |
++ # that nobody tries to guess the $tmpdir name. |
1027 |
+ if (umask $mkdir_umask && |
1028 |
+- exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 |
1029 |
++ $mkdirprog $mkdir_mode "$tmpdir" && |
1030 |
++ exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 |
1031 |
+ then |
1032 |
+ if test -z "$dir_arg" || { |
1033 |
+ # Check for POSIX incompatibilities with -m. |
1034 |
+ # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or |
1035 |
+ # other-writeable bit of parent directory when it shouldn't. |
1036 |
+ # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. |
1037 |
+- ls_ld_tmpdir=`ls -ld "$tmpdir"` |
1038 |
++ test_tmpdir="$tmpdir/a" |
1039 |
++ ls_ld_tmpdir=`ls -ld "$test_tmpdir"` |
1040 |
+ case $ls_ld_tmpdir in |
1041 |
+ d????-?r-*) different_mode=700;; |
1042 |
+ d????-?--*) different_mode=755;; |
1043 |
+ *) false;; |
1044 |
+ esac && |
1045 |
+- $mkdirprog -m$different_mode -p -- "$tmpdir" && { |
1046 |
+- ls_ld_tmpdir_1=`ls -ld "$tmpdir"` |
1047 |
++ $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { |
1048 |
++ ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` |
1049 |
+ test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" |
1050 |
+ } |
1051 |
+ } |
1052 |
+ then posix_mkdir=: |
1053 |
+ fi |
1054 |
+- rmdir "$tmpdir/d" "$tmpdir" |
1055 |
++ rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" |
1056 |
+ else |
1057 |
+ # Remove any dirs left behind by ancient mkdir implementations. |
1058 |
+- rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null |
1059 |
++ rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null |
1060 |
+ fi |
1061 |
+ trap '' 0;; |
1062 |
+ esac;; |
1063 |
|
1064 |
diff --git a/sys-devel/automake/files/automake-1.13-perl-escape-curly-bracket-r1.patch b/sys-devel/automake/files/automake-1.13-perl-escape-curly-bracket-r1.patch |
1065 |
new file mode 100644 |
1066 |
index 00000000000..bf8819adcf4 |
1067 |
--- /dev/null |
1068 |
+++ b/sys-devel/automake/files/automake-1.13-perl-escape-curly-bracket-r1.patch |
1069 |
@@ -0,0 +1,37 @@ |
1070 |
+http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21001 |
1071 |
+ |
1072 |
+From 34163794a58b5bd91c5d6bd9adf5437571c7a479 Mon Sep 17 00:00:00 2001 |
1073 |
+From: Pavel Raiskup <praiskup@××××××.com> |
1074 |
+Date: Tue, 7 Jul 2015 10:54:24 +0200 |
1075 |
+Subject: [PATCH] bin/automake: escape '{' in regexp pattern |
1076 |
+ |
1077 |
+Based on perlre(1) documentation: |
1078 |
+.. in Perl v5.26, literal uses of a curly bracket will be required |
1079 |
+to be escaped, say by preceding them with a backslash ("\{" ) or |
1080 |
+enclosing them within square brackets ("[{]") .. |
1081 |
+ |
1082 |
+References: |
1083 |
+https://bugzilla.redhat.com/1239379 |
1084 |
+ |
1085 |
+* bin/automake.in (substitute_ac_subst_variables): Escape the |
1086 |
+occurrence of '{' character. |
1087 |
+--- |
1088 |
+ bin/automake.in | 2 +- |
1089 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
1090 |
+ |
1091 |
+diff --git a/bin/automake.in b/bin/automake.in |
1092 |
+index 0c29184..c294ced 100644 |
1093 |
+--- a/automake.in |
1094 |
++++ b/automake.in |
1095 |
+@@ -3898,7 +3898,7 @@ sub substitute_ac_subst_variables_worker |
1096 |
+ sub substitute_ac_subst_variables ($) |
1097 |
+ { |
1098 |
+ my ($text) = @_; |
1099 |
+- $text =~ s/\${([^ \t=:+{}]+)}/&substitute_ac_subst_variables_worker ($1)/ge; |
1100 |
++ $text =~ s/\$\{([^ \t=:+{}]+)}/&substitute_ac_subst_variables_worker ($1)/ge; |
1101 |
+ return $text; |
1102 |
+ } |
1103 |
+ |
1104 |
+-- |
1105 |
+2.1.0 |
1106 |
+ |
1107 |
|
1108 |
diff --git a/sys-devel/automake/files/automake-1.14-gzip-fix.patch b/sys-devel/automake/files/automake-1.14-gzip-fix.patch |
1109 |
new file mode 100644 |
1110 |
index 00000000000..39c201aba65 |
1111 |
--- /dev/null |
1112 |
+++ b/sys-devel/automake/files/automake-1.14-gzip-fix.patch |
1113 |
@@ -0,0 +1,67 @@ |
1114 |
+commit 749468ac63042820bc3da85ece5bed64b0c15d62 |
1115 |
+Author: Paul Eggert <eggert at> |
1116 |
+Date: Mon Mar 28 19:44:19 2016 -0700 |
1117 |
+ |
1118 |
+ automake: port better to future gzip |
1119 |
+ |
1120 |
+ * lib/am/distdir.am (dist-gzip, dist-shar, distcheck): |
1121 |
+ Port better to future versions of gzip, which are planned to |
1122 |
+ deprecate the GZIP environment variable (Bug#20132). |
1123 |
+ |
1124 |
+diff --git a/lib/am/distdir.am b/lib/am/distdir.am |
1125 |
+index d4dd8cc9b..87c6730f5 100644 |
1126 |
+--- a/lib/am/distdir.am |
1127 |
++++ b/lib/am/distdir.am |
1128 |
+@@ -309,6 +309,16 @@ endif %?TOPDIR_P% |
1129 |
+ ## We order DIST_TARGETS by expected duration of the compressors, |
1130 |
+ ## slowest first, for better parallelism in "make dist". Do not |
1131 |
+ ## reorder DIST_ARCHIVES, users may expect gzip to be first. |
1132 |
++## |
1133 |
++## Traditionally, gzip prepended the contents of the GZIP environment |
1134 |
++## variable to its arguments, and the commands below formerly used |
1135 |
++## this by invoking 'GZIP=$(GZIP_ENV) gzip'. The GZIP environment |
1136 |
++## variable is now considered to be obsolescent, so the commands below |
1137 |
++## now use 'eval GZIP= gzip $(GZIP_ENV)' instead; this should work |
1138 |
++## with both older and newer gzip implementations. The 'eval' is to |
1139 |
++## support makefile assignments like 'GZIP_ENV = "-9 -n"' that quote |
1140 |
++## the GZIP_ENV right-hand side because that was needed with the |
1141 |
++## former invocation pattern. |
1142 |
+ |
1143 |
+ if %?TOPDIR_P% |
1144 |
+ |
1145 |
+@@ -316,7 +326,7 @@ if %?TOPDIR_P% |
1146 |
+ GZIP_ENV = --best |
1147 |
+ .PHONY: dist-gzip |
1148 |
+ dist-gzip: distdir |
1149 |
+- tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
1150 |
++ tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz |
1151 |
+ $(am__post_remove_distdir) |
1152 |
+ |
1153 |
+ ?BZIP2?DIST_ARCHIVES += $(distdir).tar.bz2 |
1154 |
+@@ -352,7 +362,7 @@ dist-shar: distdir |
1155 |
+ @echo WARNING: "Support for shar distribution archives is" \ |
1156 |
+ "deprecated." >&2 |
1157 |
+ @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 |
1158 |
+- shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz |
1159 |
++ shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz |
1160 |
+ $(am__post_remove_distdir) |
1161 |
+ |
1162 |
+ ?ZIP?DIST_ARCHIVES += $(distdir).zip |
1163 |
+@@ -412,7 +422,7 @@ endif %?SUBDIRS% |
1164 |
+ distcheck: dist |
1165 |
+ case '$(DIST_ARCHIVES)' in \ |
1166 |
+ *.tar.gz*) \ |
1167 |
+- GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ |
1168 |
++ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ |
1169 |
+ *.tar.bz2*) \ |
1170 |
+ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ |
1171 |
+ *.tar.lz*) \ |
1172 |
+@@ -422,7 +432,7 @@ distcheck: dist |
1173 |
+ *.tar.Z*) \ |
1174 |
+ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ |
1175 |
+ *.shar.gz*) \ |
1176 |
+- GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ |
1177 |
++ eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ |
1178 |
+ *.zip*) \ |
1179 |
+ unzip $(distdir).zip ;;\ |
1180 |
+ esac |
1181 |
|
1182 |
diff --git a/sys-devel/automake/files/automake-1.14-install-sh-avoid-low-risk-race-in-tmp.patch b/sys-devel/automake/files/automake-1.14-install-sh-avoid-low-risk-race-in-tmp.patch |
1183 |
new file mode 100644 |
1184 |
index 00000000000..679370686aa |
1185 |
--- /dev/null |
1186 |
+++ b/sys-devel/automake/files/automake-1.14-install-sh-avoid-low-risk-race-in-tmp.patch |
1187 |
@@ -0,0 +1,77 @@ |
1188 |
+From: Pavel Raiskup <praiskup@××××××.com> |
1189 |
+Date: Sat, 15 Aug 2015 04:40:57 -0400 |
1190 |
+Subject: install-sh: avoid (low risk) race in /tmp |
1191 |
+ |
1192 |
+Ensure that nobody can cross privilege boundaries by pre-creating |
1193 |
+symlink on '$tmpdir' path. |
1194 |
+ |
1195 |
+Just testing 'mkdir -p' by creating '/tmp/ins$RANDOM-$$/d' is not |
1196 |
+safe because '/tmp' directory is usually world-writeable and |
1197 |
+'/tmp/ins$RANDOM-$$' content could be pretty easily guessed by |
1198 |
+attacker (at least for shells where $RANDOM is not supported). |
1199 |
+So, as the first step, create the '/tmp/ins$RANDOM-$$' without -p. |
1200 |
+This step would fail early if somebody wanted catch us. |
1201 |
+ |
1202 |
+Note that systems that implement (and have enabled) |
1203 |
+fs.protected_symlinks kernel feature are not affected even without |
1204 |
+this commit. |
1205 |
+ |
1206 |
+References: |
1207 |
+https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=760455 |
1208 |
+https://bugzilla.redhat.com/show_bug.cgi?id=1140725 |
1209 |
+ |
1210 |
+* lib/install-sh: Implement safer 'mkdir -p' test by running |
1211 |
+'$mkdirprog $mkdir_mode "$tmpdir"' first. |
1212 |
+(scriptversion): Bump. |
1213 |
+ |
1214 |
+--- a/lib/install-sh |
1215 |
++++ b/lib/install-sh |
1216 |
+@@ -345,34 +345,41 @@ do |
1217 |
+ # is incompatible with FreeBSD 'install' when (umask & 300) != 0. |
1218 |
+ ;; |
1219 |
+ *) |
1220 |
++ # $RANDOM is not portable (e.g. dash); use it when possible to |
1221 |
++ # lower collision chance |
1222 |
+ tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ |
1223 |
+- trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 |
1224 |
++ trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0 |
1225 |
+ |
1226 |
++ # As "mkdir -p" follows symlinks and we work in /tmp possibly; so |
1227 |
++ # create the $tmpdir first (and fail if unsuccessful) to make sure |
1228 |
++ # that nobody tries to guess the $tmpdir name. |
1229 |
+ if (umask $mkdir_umask && |
1230 |
+- exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 |
1231 |
++ $mkdirprog $mkdir_mode "$tmpdir" && |
1232 |
++ exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 |
1233 |
+ then |
1234 |
+ if test -z "$dir_arg" || { |
1235 |
+ # Check for POSIX incompatibilities with -m. |
1236 |
+ # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or |
1237 |
+ # other-writable bit of parent directory when it shouldn't. |
1238 |
+ # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. |
1239 |
+- ls_ld_tmpdir=`ls -ld "$tmpdir"` |
1240 |
++ test_tmpdir="$tmpdir/a" |
1241 |
++ ls_ld_tmpdir=`ls -ld "$test_tmpdir"` |
1242 |
+ case $ls_ld_tmpdir in |
1243 |
+ d????-?r-*) different_mode=700;; |
1244 |
+ d????-?--*) different_mode=755;; |
1245 |
+ *) false;; |
1246 |
+ esac && |
1247 |
+- $mkdirprog -m$different_mode -p -- "$tmpdir" && { |
1248 |
+- ls_ld_tmpdir_1=`ls -ld "$tmpdir"` |
1249 |
++ $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { |
1250 |
++ ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` |
1251 |
+ test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" |
1252 |
+ } |
1253 |
+ } |
1254 |
+ then posix_mkdir=: |
1255 |
+ fi |
1256 |
+- rmdir "$tmpdir/d" "$tmpdir" |
1257 |
++ rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" |
1258 |
+ else |
1259 |
+ # Remove any dirs left behind by ancient mkdir implementations. |
1260 |
+- rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null |
1261 |
++ rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null |
1262 |
+ fi |
1263 |
+ trap '' 0;; |
1264 |
+ esac;; |
1265 |
|
1266 |
diff --git a/sys-devel/automake/files/automake-1.15-install-sh-avoid-low-risk-race-in-tmp.patch b/sys-devel/automake/files/automake-1.15-install-sh-avoid-low-risk-race-in-tmp.patch |
1267 |
new file mode 100644 |
1268 |
index 00000000000..1fabdd5fb3e |
1269 |
--- /dev/null |
1270 |
+++ b/sys-devel/automake/files/automake-1.15-install-sh-avoid-low-risk-race-in-tmp.patch |
1271 |
@@ -0,0 +1,82 @@ |
1272 |
+From: Pavel Raiskup <praiskup@××××××.com> |
1273 |
+Date: Sat, 15 Aug 2015 04:40:57 -0400 |
1274 |
+Subject: install-sh: avoid (low risk) race in /tmp |
1275 |
+ |
1276 |
+Ensure that nobody can cross privilege boundaries by pre-creating |
1277 |
+symlink on '$tmpdir' path. |
1278 |
+ |
1279 |
+Just testing 'mkdir -p' by creating '/tmp/ins$RANDOM-$$/d' is not |
1280 |
+safe because '/tmp' directory is usually world-writeable and |
1281 |
+'/tmp/ins$RANDOM-$$' content could be pretty easily guessed by |
1282 |
+attacker (at least for shells where $RANDOM is not supported). |
1283 |
+So, as the first step, create the '/tmp/ins$RANDOM-$$' without -p. |
1284 |
+This step would fail early if somebody wanted catch us. |
1285 |
+ |
1286 |
+Note that systems that implement (and have enabled) |
1287 |
+fs.protected_symlinks kernel feature are not affected even without |
1288 |
+this commit. |
1289 |
+ |
1290 |
+References: |
1291 |
+https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=760455 |
1292 |
+https://bugzilla.redhat.com/show_bug.cgi?id=1140725 |
1293 |
+ |
1294 |
+* lib/install-sh: Implement safer 'mkdir -p' test by running |
1295 |
+'$mkdirprog $mkdir_mode "$tmpdir"' first. |
1296 |
+(scriptversion): Bump. |
1297 |
+--- |
1298 |
+ lib/install-sh | 23 +++++++++++++++-------- |
1299 |
+ 1 file changed, 15 insertions(+), 8 deletions(-) |
1300 |
+ |
1301 |
+diff --git a/lib/install-sh b/lib/install-sh |
1302 |
+index 0b0fdcb..59990a1 100755 |
1303 |
+--- a/lib/install-sh |
1304 |
++++ b/lib/install-sh |
1305 |
+@@ -324,34 +324,41 @@ do |
1306 |
+ # is incompatible with FreeBSD 'install' when (umask & 300) != 0. |
1307 |
+ ;; |
1308 |
+ *) |
1309 |
++ # $RANDOM is not portable (e.g. dash); use it when possible to |
1310 |
++ # lower collision chance |
1311 |
+ tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ |
1312 |
+- trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 |
1313 |
++ trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0 |
1314 |
+ |
1315 |
++ # As "mkdir -p" follows symlinks and we work in /tmp possibly; so |
1316 |
++ # create the $tmpdir first (and fail if unsuccessful) to make sure |
1317 |
++ # that nobody tries to guess the $tmpdir name. |
1318 |
+ if (umask $mkdir_umask && |
1319 |
+- exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 |
1320 |
++ $mkdirprog $mkdir_mode "$tmpdir" && |
1321 |
++ exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 |
1322 |
+ then |
1323 |
+ if test -z "$dir_arg" || { |
1324 |
+ # Check for POSIX incompatibilities with -m. |
1325 |
+ # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or |
1326 |
+ # other-writable bit of parent directory when it shouldn't. |
1327 |
+ # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. |
1328 |
+- ls_ld_tmpdir=`ls -ld "$tmpdir"` |
1329 |
++ test_tmpdir="$tmpdir/a" |
1330 |
++ ls_ld_tmpdir=`ls -ld "$test_tmpdir"` |
1331 |
+ case $ls_ld_tmpdir in |
1332 |
+ d????-?r-*) different_mode=700;; |
1333 |
+ d????-?--*) different_mode=755;; |
1334 |
+ *) false;; |
1335 |
+ esac && |
1336 |
+- $mkdirprog -m$different_mode -p -- "$tmpdir" && { |
1337 |
+- ls_ld_tmpdir_1=`ls -ld "$tmpdir"` |
1338 |
++ $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { |
1339 |
++ ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` |
1340 |
+ test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" |
1341 |
+ } |
1342 |
+ } |
1343 |
+ then posix_mkdir=: |
1344 |
+ fi |
1345 |
+- rmdir "$tmpdir/d" "$tmpdir" |
1346 |
++ rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" |
1347 |
+ else |
1348 |
+ # Remove any dirs left behind by ancient mkdir implementations. |
1349 |
+- rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null |
1350 |
++ rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null |
1351 |
+ fi |
1352 |
+ trap '' 0;; |
1353 |
+ esac;; |
1354 |
|
1355 |
diff --git a/sys-devel/automake/files/automake-1.9.6-ignore-comments-r1.patch b/sys-devel/automake/files/automake-1.9.6-ignore-comments-r1.patch |
1356 |
new file mode 100644 |
1357 |
index 00000000000..da3f288d739 |
1358 |
--- /dev/null |
1359 |
+++ b/sys-devel/automake/files/automake-1.9.6-ignore-comments-r1.patch |
1360 |
@@ -0,0 +1,29 @@ |
1361 |
+http://bugs.gentoo.org/126388 |
1362 |
+ |
1363 |
+2006-03-16 Mike Frysinger <vapier@g.o> |
1364 |
+ |
1365 |
+ * aclocal.in (scan_configure_dep): Ignore ## lines. |
1366 |
+ (scan_file): Remove dnl and # comments. |
1367 |
+ |
1368 |
+--- a/aclocal.in |
1369 |
++++ b/aclocal.in |
1370 |
+@@ -227,6 +227,8 @@ |
1371 |
+ foreach (split ("\n", $contents)) |
1372 |
+ { |
1373 |
+ ++$line; |
1374 |
++ # Ignore `##' lines. |
1375 |
++ next if /^##/; |
1376 |
+ # Remove comments from current line. |
1377 |
+ s/\bdnl\b.*$//; |
1378 |
+ s/\#.*$//; |
1379 |
+@@ -311,6 +313,10 @@ |
1380 |
+ |
1381 |
+ $contents .= $_; |
1382 |
+ |
1383 |
++ # Remove comments from current line. |
1384 |
++ s/\bdnl\b.*$//; |
1385 |
++ s/\#.*$//; |
1386 |
++ |
1387 |
+ while (/$ac_defun_rx/go) |
1388 |
+ { |
1389 |
+ if (! defined $1) |
1390 |
|
1391 |
diff --git a/sys-devel/automake/files/automake-1.9.6-include-dir-prefix-r1.patch b/sys-devel/automake/files/automake-1.9.6-include-dir-prefix-r1.patch |
1392 |
new file mode 100644 |
1393 |
index 00000000000..a1cc613e880 |
1394 |
--- /dev/null |
1395 |
+++ b/sys-devel/automake/files/automake-1.9.6-include-dir-prefix-r1.patch |
1396 |
@@ -0,0 +1,31 @@ |
1397 |
+http://bugs.gentoo.org/107435 |
1398 |
+http://lists.gnu.org/archive/html/automake/2005-09/msg00088.html |
1399 |
+ |
1400 |
+2005-09-27 Stepan Kasal <address@hidden> |
1401 |
+ |
1402 |
+ * automake.in (handle_single_transform): Direct suffix rule preserves |
1403 |
+ the directory prefix, so the generated object name should contain |
1404 |
+ it, too. |
1405 |
+ |
1406 |
+--- a/automake.in 2005-09-17 15:05:39.000000000 +0200 |
1407 |
++++ b/automake.in 2005-09-27 17:10:47.000000000 +0200 |
1408 |
+@@ -1755,6 +1755,10 @@ |
1409 |
+ # This is probably the result of a direct suffix rule. |
1410 |
+ # In this case we just accept the rewrite. |
1411 |
+ $object = "$base$extension"; |
1412 |
++ if ($directory ne '') |
1413 |
++ { |
1414 |
++ $object = $directory . '/' . $object; |
1415 |
++ } |
1416 |
+ $linker = ''; |
1417 |
+ } |
1418 |
+ else |
1419 |
+@@ -1824,7 +1828,7 @@ |
1420 |
+ |
1421 |
+ # For Java, the way we're handling it right now, a |
1422 |
+ # `..' component doesn't make sense. |
1423 |
+- if ($lang->name eq 'java' && $object =~ /(\/|^)\.\.\//) |
1424 |
++ if ($lang && $lang->name eq 'java' && $object =~ /(\/|^)\.\.\//) |
1425 |
+ { |
1426 |
+ err_am "`$full' should not contain a `..' component"; |
1427 |
+ } |
1428 |
|
1429 |
diff --git a/sys-devel/automake/files/automake-1.9.6-infopage-namechange-r1.patch b/sys-devel/automake/files/automake-1.9.6-infopage-namechange-r1.patch |
1430 |
new file mode 100644 |
1431 |
index 00000000000..d99c442e93a |
1432 |
--- /dev/null |
1433 |
+++ b/sys-devel/automake/files/automake-1.9.6-infopage-namechange-r1.patch |
1434 |
@@ -0,0 +1,33 @@ |
1435 |
+--- a/doc/Makefile.in.orig 2005-07-11 00:39:31.000000000 -0400 |
1436 |
++++ b/doc/Makefile.in 2005-07-11 00:40:46.000000000 -0400 |
1437 |
+@@ -187,26 +187,10 @@ |
1438 |
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh |
1439 |
+ |
1440 |
+ .texi.info: |
1441 |
+- restore=: && backupdir="$(am__leading_dot)am$$$$" && \ |
1442 |
+- am__cwd=`pwd` && cd $(srcdir) && \ |
1443 |
+- rm -rf $$backupdir && mkdir $$backupdir && \ |
1444 |
+- if ($(MAKEINFO) --version) >/dev/null 2>&1; then \ |
1445 |
+- for f in $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9]; do \ |
1446 |
+- if test -f $$f; then mv $$f $$backupdir; restore=mv; else :; fi; \ |
1447 |
+- done; \ |
1448 |
+- else :; fi && \ |
1449 |
+- cd "$$am__cwd"; \ |
1450 |
+- if $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \ |
1451 |
+- -o $@ $<; \ |
1452 |
+- then \ |
1453 |
+- rc=0; \ |
1454 |
+- cd $(srcdir); \ |
1455 |
+- else \ |
1456 |
+- rc=$$?; \ |
1457 |
+- cd $(srcdir) && \ |
1458 |
+- $$restore $$backupdir/* `echo "./$@" | sed 's|[^/]*$$||'`; \ |
1459 |
+- fi; \ |
1460 |
+- rm -rf $$backupdir; exit $$rc |
1461 |
++ @rm -f $@ $@-[0-9] $@-[0-9][0-9] $(@:.info=).i[0-9] $(@:.info=).i[0-9][0-9] |
1462 |
++ cd $(srcdir) \ |
1463 |
++ && $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) \ |
1464 |
++ `echo $< | sed 's,.*/,,'` |
1465 |
+ |
1466 |
+ .texi.dvi: |
1467 |
+ TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \ |