From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 81BDE13888F for ; Wed, 14 Oct 2015 04:49:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 43128E07C7; Wed, 14 Oct 2015 04:49:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D440FE07C7 for ; Wed, 14 Oct 2015 04:48:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 933B93409A4 for ; Wed, 14 Oct 2015 04:48:54 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 81F24E36 for ; Wed, 14 Oct 2015 04:48:48 +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: <1444798122.d3f5509e59f54cf3f9b27886aa508ba3e2c6e0b0.vapier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/python/files/, dev-lang/python/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/python/files/python-2.7.10-cross-compile-warn-test.patch dev-lang/python/python-2.7.10-r2.ebuild X-VCS-Directories: dev-lang/python/files/ dev-lang/python/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: d3f5509e59f54cf3f9b27886aa508ba3e2c6e0b0 X-VCS-Branch: master Date: Wed, 14 Oct 2015 04:48:48 +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: 465b7d38-a509-4377-a69b-75301a82a2b5 X-Archives-Hash: 41ad037ec6423e9327b29e030266ce3a commit: d3f5509e59f54cf3f9b27886aa508ba3e2c6e0b0 Author: Mike Frysinger gentoo org> AuthorDate: Wed Oct 14 04:48:13 2015 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Wed Oct 14 04:48:42 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3f5509e dev-lang/python: fix cross-compiling checks w/-Wformat .../python-2.7.10-cross-compile-warn-test.patch | 24 ++++++++++++++++++++++ dev-lang/python/python-2.7.10-r2.ebuild | 1 + 2 files changed, 25 insertions(+) diff --git a/dev-lang/python/files/python-2.7.10-cross-compile-warn-test.patch b/dev-lang/python/files/python-2.7.10-cross-compile-warn-test.patch new file mode 100644 index 0000000..38433de --- /dev/null +++ b/dev-lang/python/files/python-2.7.10-cross-compile-warn-test.patch @@ -0,0 +1,24 @@ +https://bugs.python.org/issue25397 + +improve the cross-compile tests to be more focused + +--- a/configure.ac ++++ b/configure.ac +@@ -1339,7 +1339,7 @@ if test "$GCC" = "yes" + then + AC_MSG_CHECKING(whether gcc supports ParseTuple __format__) + save_CFLAGS=$CFLAGS +- CFLAGS="$CFLAGS -Werror -Wformat" ++ CFLAGS="$CFLAGS -Werror=format" + AC_COMPILE_IFELSE([ + AC_LANG_PROGRAM([[void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));]], [[]]) + ],[ +@@ -4458,7 +4458,7 @@ then + [ac_cv_have_long_long_format="cross -- assuming no" + if test x$GCC = xyes; then + save_CFLAGS=$CFLAGS +- CFLAGS="$CFLAGS -Werror -Wformat" ++ CFLAGS="$CFLAGS -Werror=format" + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ + #include + #include diff --git a/dev-lang/python/python-2.7.10-r2.ebuild b/dev-lang/python/python-2.7.10-r2.ebuild index a516f70..1b5a219 100644 --- a/dev-lang/python/python-2.7.10-r2.ebuild +++ b/dev-lang/python/python-2.7.10-r2.ebuild @@ -100,6 +100,7 @@ src_prepare() { # Fix for cross-compiling. epatch "${FILESDIR}/python-2.7.5-nonfatal-compileall.patch" epatch "${FILESDIR}/python-2.7.9-ncurses-pkg-config.patch" + epatch "${FILESDIR}/python-2.7.10-cross-compile-warn-test.patch" sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \ Lib/distutils/command/install.py \