1 |
commit: 7a3bddfcb1384d3681c14c01160c9a22cc229c15 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 27 01:49:42 2015 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 27 01:50:24 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a3bddfc |
7 |
|
8 |
sys-devel/gettext: hack gettextize configure output #556024 |
9 |
|
10 |
Until upstream sorts out a fix for us, hack the output in a terrible |
11 |
way so packages stop failing. This seems to be less terrible than |
12 |
just masking the new version. |
13 |
|
14 |
.../gettext/files/gettext-0.19.5.1-version-hack.patch | 18 ++++++++++++++++++ |
15 |
...text-0.19.5.1.ebuild => gettext-0.19.5.1-r1.ebuild} | 6 ++++++ |
16 |
2 files changed, 24 insertions(+) |
17 |
|
18 |
diff --git a/sys-devel/gettext/files/gettext-0.19.5.1-version-hack.patch b/sys-devel/gettext/files/gettext-0.19.5.1-version-hack.patch |
19 |
new file mode 100644 |
20 |
index 0000000..1a9eaea |
21 |
--- /dev/null |
22 |
+++ b/sys-devel/gettext/files/gettext-0.19.5.1-version-hack.patch |
23 |
@@ -0,0 +1,18 @@ |
24 |
+the gettext tooling does not quite understand 4 version components. |
25 |
+hack it so the output in the configure script sticks to 3 parts. |
26 |
+this is a horrible hack that really needs an upstream fix. |
27 |
+ |
28 |
+https://lists.gnu.org/archive/html/bug-gettext/2015-07/msg00027.html |
29 |
+https://bugs.gentoo.org/556024 |
30 |
+ |
31 |
+--- a/gettext-tools/misc/gettextize.in |
32 |
++++ b/gettext-tools/misc/gettextize.in |
33 |
+@@ -1235,7 +1235,7 @@ |
34 |
+ func_modify_configure_in "(AC_OUTPUT): Remove command that created po/Makefile." |
35 |
+ sed -e '/^\(dnl \|\)AC_LINK_FILES(\$nls_cv_header_libgt, \$nls_cv_header_intl)$/d' < "$srcdir/$configure_in" > "$srcdir/$configure_in.tmp" |
36 |
+ func_modify_configure_in "(AC_LINK_FILES): Remove invocation." |
37 |
+-sed -e 's/^AM_GNU_GETTEXT_VERSION([^()]*)/AM_GNU_GETTEXT_VERSION(['"$version"'])/' < "$srcdir/$configure_in" > "$srcdir/$configure_in.tmp" |
38 |
++sed -e 's/^AM_GNU_GETTEXT_VERSION([^()]*)/AM_GNU_GETTEXT_VERSION(['"${version%.?}"'])/' < "$srcdir/$configure_in" > "$srcdir/$configure_in.tmp" |
39 |
+ func_modify_configure_in "(AM_GNU_GETTEXT_VERSION): Bump to $version." |
40 |
+ $do_changelog && func_ChangeLog_finish |
41 |
+ |
42 |
|
43 |
diff --git a/sys-devel/gettext/gettext-0.19.5.1.ebuild b/sys-devel/gettext/gettext-0.19.5.1-r1.ebuild |
44 |
similarity index 94% |
45 |
rename from sys-devel/gettext/gettext-0.19.5.1.ebuild |
46 |
rename to sys-devel/gettext/gettext-0.19.5.1-r1.ebuild |
47 |
index 9e7d153..dc2e22a 100644 |
48 |
--- a/sys-devel/gettext/gettext-0.19.5.1.ebuild |
49 |
+++ b/sys-devel/gettext/gettext-0.19.5.1-r1.ebuild |
50 |
@@ -39,6 +39,12 @@ MULTILIB_WRAPPED_HEADERS=( |
51 |
|
52 |
src_prepare() { |
53 |
java-pkg-opt-2_src_prepare |
54 |
+ |
55 |
+ # This patch should not be included in version bumps (at least to 0.19.2). |
56 |
+ # Perhaps 0.19.5.2 will be broken in the same way. #556024 |
57 |
+ [[ ${PV} != 0.19.5.1 ]] && die |
58 |
+ epatch "${FILESDIR}"/${P}-version-hack.patch #556024 |
59 |
+ |
60 |
epunt_cxx |
61 |
elibtoolize |
62 |
} |