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 7CA391384AE for ; Sun, 20 Sep 2015 02:08:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1B6AD21C002; Sun, 20 Sep 2015 02:08:02 +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 7E16421C002 for ; Sun, 20 Sep 2015 02:08:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A3FEF340901 for ; Sun, 20 Sep 2015 02:08:00 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6A4C4202 for ; Sun, 20 Sep 2015 02:07:58 +0000 (UTC) From: "Mike Gilbert" 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 Gilbert" Message-ID: <1442714873.c0d97a27e1a8ab3e695624d222c46bc80a6de618.floppym@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/3.5-secondary-targets.patch dev-lang/python/python-3.5.0.ebuild X-VCS-Directories: dev-lang/python/ dev-lang/python/files/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: c0d97a27e1a8ab3e695624d222c46bc80a6de618 X-VCS-Branch: master Date: Sun, 20 Sep 2015 02:07:58 +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: 492c2e4e-f61e-40b9-b18b-f9ca7557be17 X-Archives-Hash: 0076e80b27dfb1328fa033dfae0bf3cf commit: c0d97a27e1a8ab3e695624d222c46bc80a6de618 Author: Mike Gilbert gentoo org> AuthorDate: Sun Sep 20 02:07:40 2015 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Sun Sep 20 02:07:53 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0d97a27 dev-lang/python: Fix cross-compiling for 3.5 Package-Manager: portage-2.2.20_p169_p6532 dev-lang/python/files/3.5-secondary-targets.patch | 19 +++++++++++++++++++ dev-lang/python/python-3.5.0.ebuild | 4 ++++ 2 files changed, 23 insertions(+) diff --git a/dev-lang/python/files/3.5-secondary-targets.patch b/dev-lang/python/files/3.5-secondary-targets.patch new file mode 100644 index 0000000..eb3b0c7 --- /dev/null +++ b/dev-lang/python/files/3.5-secondary-targets.patch @@ -0,0 +1,19 @@ +Mark all targets as "secondary" + +This allows make to avoid rebuilding unnecessary intermediate files, which +is useful when cross-compiling. + +See Parser/pgen and Programs/_freeze_importlib in Makefile.pre.in. + +diff --git a/Makefile.pre.in b/Makefile.pre.in +--- a/Makefile.pre.in ++++ b/Makefile.pre.in +@@ -1672,6 +1672,8 @@ + .PHONY: smelly funny patchcheck touch altmaninstall commoninstall + .PHONY: gdbhooks + ++.SECONDARY: ++ + # IF YOU PUT ANYTHING HERE IT WILL GO AWAY + # Local Variables: + # mode: makefile diff --git a/dev-lang/python/python-3.5.0.ebuild b/dev-lang/python/python-3.5.0.ebuild index ca56f88..1dcd769 100644 --- a/dev-lang/python/python-3.5.0.ebuild +++ b/dev-lang/python/python-3.5.0.ebuild @@ -66,6 +66,7 @@ src_prepare() { EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" epatch "${FILESDIR}/${PN}-3.4.3-ncurses-pkg-config.patch" + epatch "${FILESDIR}/3.5-secondary-targets.patch" sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \ configure.ac \ @@ -171,6 +172,9 @@ src_configure() { } src_compile() { + # Avoid regenerating these for cross-compiles + touch Include/graminit.h Python/graminit.c Python/importlib.h Python/importlib_external.h || die + cd "${BUILD_DIR}" || die emake CPPFLAGS= CFLAGS= LDFLAGS=