public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mike Frysinger" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/python/files/, dev-lang/python/
Date: Wed, 14 Oct 2015 04:48:48 +0000 (UTC)	[thread overview]
Message-ID: <1444798122.d3f5509e59f54cf3f9b27886aa508ba3e2c6e0b0.vapier@gentoo> (raw)

commit:     d3f5509e59f54cf3f9b27886aa508ba3e2c6e0b0
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 14 04:48:13 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> 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 <stdio.h>
+         #include <stddef.h>

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 \


             reply	other threads:[~2015-10-14  4:49 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-14  4:48 Mike Frysinger [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-07-04  8:48 [gentoo-commits] repo/gentoo:master commit in: dev-lang/python/files/, dev-lang/python/ Michał Górny
2019-12-19  9:01 Michał Górny
2018-04-19 19:44 Mike Gilbert
2018-04-16 16:14 Aaron Bauman
2018-04-16 16:14 Aaron Bauman
2017-11-11 16:07 Mike Gilbert
2017-11-01 16:03 Mike Gilbert
2017-04-30  0:18 Mike Gilbert
2016-09-10 14:01 Mike Gilbert
2016-05-12  0:59 Mike Gilbert
2015-11-19 19:41 Mike Frysinger
2015-09-20 12:47 Julian Ospald
2015-09-20  2:07 Mike Gilbert
2015-08-09  9:08 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1444798122.d3f5509e59f54cf3f9b27886aa508ba3e2c6e0b0.vapier@gentoo \
    --to=vapier@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox