From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A425A139085 for ; Thu, 22 Dec 2016 22:36:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E5DAC21C04E; Thu, 22 Dec 2016 22:36:42 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B2A5721C04E for ; Thu, 22 Dec 2016 22:36:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 792E9340E75 for ; Thu, 22 Dec 2016 22:36:41 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 40C2324E3 for ; Thu, 22 Dec 2016 22:36:40 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1482446161.acab2831eac296a423c8204013f0290f2c4f3b5b.vapier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/mit-krb5/, app-crypt/mit-krb5/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/mit-krb5/files/mit-krb5-1.14.4-disable-nls.patch app-crypt/mit-krb5/mit-krb5-1.14.4.ebuild app-crypt/mit-krb5/mit-krb5-1.15.ebuild X-VCS-Directories: app-crypt/mit-krb5/ app-crypt/mit-krb5/files/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: acab2831eac296a423c8204013f0290f2c4f3b5b X-VCS-Branch: master Date: Thu, 22 Dec 2016 22:36:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 57fae2ed-b760-4ccb-b436-2b55dba541d5 X-Archives-Hash: c3d9587d3bcd65b7c43ae63acc7330e5 commit: acab2831eac296a423c8204013f0290f2c4f3b5b Author: Mike Frysinger gentoo org> AuthorDate: Thu Dec 22 22:34:28 2016 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Thu Dec 22 22:36:01 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=acab2831 app-crypt/mit-krb5: respect USE=nls Patch from Chromium OS. .../files/mit-krb5-1.14.4-disable-nls.patch | 45 ++++++++++++++++++++++ app-crypt/mit-krb5/mit-krb5-1.14.4.ebuild | 4 +- app-crypt/mit-krb5/mit-krb5-1.15.ebuild | 4 +- 3 files changed, 51 insertions(+), 2 deletions(-) diff --git a/app-crypt/mit-krb5/files/mit-krb5-1.14.4-disable-nls.patch b/app-crypt/mit-krb5/files/mit-krb5-1.14.4-disable-nls.patch new file mode 100644 index 00000000..63cb0fc --- /dev/null +++ b/app-crypt/mit-krb5/files/mit-krb5-1.14.4-disable-nls.patch @@ -0,0 +1,45 @@ +Adds support for --(enable|disable)-nls configure option. + +This enables\disables the generation of language files and +sets the ENABLE_NLS define appropriately. + +Default value is enabled to preserve current behavior. + +Patch by Zentaro Kavanagh +https://crbug.com/654842 + +https://github.com/krb5/krb5/pull/584 + +--- src/configure.in ++++ src/configure.in +@@ -118,15 +118,22 @@ + ]) + AC_SUBST(LIBUTIL) + +-AC_CHECK_HEADER(libintl.h, [ +- AC_SEARCH_LIBS(dgettext, intl, [ +- AC_DEFINE(ENABLE_NLS, 1, +- [Define if translation functions should be used.])])]) +- +-AC_CHECK_PROG(MSGFMT,msgfmt,msgfmt) ++# Determine if NLS is desired and supported. + po= +-if test x"$MSGFMT" != x; then +- po=po ++AC_ARG_ENABLE([nls], ++AC_HELP_STRING([--disable-nls], ++ [Disable Native Language Support(NLS).]), , ++ enableval=yes) ++if test "$enableval" = yes ; then ++ AC_CHECK_HEADER(libintl.h, [ ++ AC_SEARCH_LIBS(dgettext, intl, [ ++ AC_DEFINE(ENABLE_NLS, 1, ++ [Define if translation functions should be used.])])]) ++ ++ AC_CHECK_PROG(MSGFMT,msgfmt,msgfmt) ++ if test x"$MSGFMT" != x; then ++ po=po ++ fi + fi + AC_SUBST(po) + diff --git a/app-crypt/mit-krb5/mit-krb5-1.14.4.ebuild b/app-crypt/mit-krb5/mit-krb5-1.14.4.ebuild index 0eff67b..5662c02 100644 --- a/app-crypt/mit-krb5/mit-krb5-1.14.4.ebuild +++ b/app-crypt/mit-krb5/mit-krb5-1.14.4.ebuild @@ -16,7 +16,7 @@ SRC_URI="http://web.mit.edu/kerberos/dist/krb5/${P_DIR}/${MY_P}.tar.gz" LICENSE="openafs-krb5-a BSD MIT OPENLDAP BSD-2 HPND BSD-4 ISC RSA CC-BY-SA-3.0 || ( BSD-2 GPL-2+ )" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" -IUSE="doc +keyutils libressl openldap +pkinit selinux +threads test xinetd" +IUSE="doc +keyutils libressl nls openldap +pkinit selinux +threads test xinetd" CDEPEND=" !!app-crypt/heimdal @@ -59,6 +59,7 @@ src_prepare() { epatch "${FILESDIR}/${PN}-1.12_warn_cflags.patch" epatch "${FILESDIR}/${PN}-config_LDFLAGS.patch" epatch "${FILESDIR}/${PN}-1.14.2-redeclared-ttyname.patch" + epatch "${FILESDIR}/${PN}-1.14.4-disable-nls.patch" # Make sure we always use the system copies. rm -rf util/{et,ss,verto} @@ -82,6 +83,7 @@ multilib_src_configure() { econf \ $(use_with openldap ldap) \ "$(multilib_native_use_with test tcl "${EPREFIX}/usr")" \ + $(use_enable nls) \ $(use_enable pkinit) \ $(use_enable threads thread-support) \ --without-hesiod \ diff --git a/app-crypt/mit-krb5/mit-krb5-1.15.ebuild b/app-crypt/mit-krb5/mit-krb5-1.15.ebuild index 8d0ae5b..0859120 100644 --- a/app-crypt/mit-krb5/mit-krb5-1.15.ebuild +++ b/app-crypt/mit-krb5/mit-krb5-1.15.ebuild @@ -16,7 +16,7 @@ SRC_URI="http://web.mit.edu/kerberos/dist/krb5/${P_DIR}/${MY_P}.tar.gz" LICENSE="openafs-krb5-a BSD MIT OPENLDAP BSD-2 HPND BSD-4 ISC RSA CC-BY-SA-3.0 || ( BSD-2 GPL-2+ )" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" -IUSE="doc +keyutils libressl openldap +pkinit selinux +threads test xinetd" +IUSE="doc +keyutils libressl nls openldap +pkinit selinux +threads test xinetd" CDEPEND=" !!app-crypt/heimdal @@ -59,6 +59,7 @@ src_prepare() { eapply "${FILESDIR}/${PN}-1.12_warn_cflags.patch" eapply -p2 "${FILESDIR}/${PN}-config_LDFLAGS.patch" eapply -p0 "${FILESDIR}/${PN}-1.14.2-redeclared-ttyname.patch" + eapply "${FILESDIR}/${PN}-1.14.4-disable-nls.patch" # Make sure we always use the system copies. rm -rf util/{et,ss,verto} @@ -83,6 +84,7 @@ multilib_src_configure() { econf \ $(use_with openldap ldap) \ "$(multilib_native_use_with test tcl "${EPREFIX}/usr")" \ + $(use_enable nls) \ $(use_enable pkinit) \ $(use_enable threads thread-support) \ --without-hesiod \