diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-08-26 21:49:42 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-08-26 21:50:24 -0400 |
commit | 7a3bddfcb1384d3681c14c01160c9a22cc229c15 (patch) | |
tree | dbf7e184de4df7e03775d5c6fbeb71894d899a34 /sys-devel/gettext | |
parent | www-plugins/chrome-binary-plugins: automated update (diff) | |
download | gentoo-7a3bddfcb1384d3681c14c01160c9a22cc229c15.tar.gz gentoo-7a3bddfcb1384d3681c14c01160c9a22cc229c15.tar.bz2 gentoo-7a3bddfcb1384d3681c14c01160c9a22cc229c15.zip |
sys-devel/gettext: hack gettextize configure output #556024
Until upstream sorts out a fix for us, hack the output in a terrible
way so packages stop failing. This seems to be less terrible than
just masking the new version.
Diffstat (limited to 'sys-devel/gettext')
-rw-r--r-- | sys-devel/gettext/files/gettext-0.19.5.1-version-hack.patch | 18 | ||||
-rw-r--r-- | sys-devel/gettext/gettext-0.19.5.1-r1.ebuild (renamed from sys-devel/gettext/gettext-0.19.5.1.ebuild) | 6 |
2 files changed, 24 insertions, 0 deletions
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 new file mode 100644 index 000000000000..1a9eaea8413c --- /dev/null +++ b/sys-devel/gettext/files/gettext-0.19.5.1-version-hack.patch @@ -0,0 +1,18 @@ +the gettext tooling does not quite understand 4 version components. +hack it so the output in the configure script sticks to 3 parts. +this is a horrible hack that really needs an upstream fix. + +https://lists.gnu.org/archive/html/bug-gettext/2015-07/msg00027.html +https://bugs.gentoo.org/556024 + +--- a/gettext-tools/misc/gettextize.in ++++ b/gettext-tools/misc/gettextize.in +@@ -1235,7 +1235,7 @@ + func_modify_configure_in "(AC_OUTPUT): Remove command that created po/Makefile." + sed -e '/^\(dnl \|\)AC_LINK_FILES(\$nls_cv_header_libgt, \$nls_cv_header_intl)$/d' < "$srcdir/$configure_in" > "$srcdir/$configure_in.tmp" + func_modify_configure_in "(AC_LINK_FILES): Remove invocation." +-sed -e 's/^AM_GNU_GETTEXT_VERSION([^()]*)/AM_GNU_GETTEXT_VERSION(['"$version"'])/' < "$srcdir/$configure_in" > "$srcdir/$configure_in.tmp" ++sed -e 's/^AM_GNU_GETTEXT_VERSION([^()]*)/AM_GNU_GETTEXT_VERSION(['"${version%.?}"'])/' < "$srcdir/$configure_in" > "$srcdir/$configure_in.tmp" + func_modify_configure_in "(AM_GNU_GETTEXT_VERSION): Bump to $version." + $do_changelog && func_ChangeLog_finish + diff --git a/sys-devel/gettext/gettext-0.19.5.1.ebuild b/sys-devel/gettext/gettext-0.19.5.1-r1.ebuild index 9e7d153732d5..dc2e22a61606 100644 --- a/sys-devel/gettext/gettext-0.19.5.1.ebuild +++ b/sys-devel/gettext/gettext-0.19.5.1-r1.ebuild @@ -39,6 +39,12 @@ MULTILIB_WRAPPED_HEADERS=( src_prepare() { java-pkg-opt-2_src_prepare + + # This patch should not be included in version bumps (at least to 0.19.2). + # Perhaps 0.19.5.2 will be broken in the same way. #556024 + [[ ${PV} != 0.19.5.1 ]] && die + epatch "${FILESDIR}"/${P}-version-hack.patch #556024 + epunt_cxx elibtoolize } |