From: "Mike Gilbert" <floppym@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/python/files/, dev-lang/python/
Date: Sun, 20 Sep 2015 02:07:58 +0000 (UTC) [thread overview]
Message-ID: <1442714873.c0d97a27e1a8ab3e695624d222c46bc80a6de618.floppym@gentoo> (raw)
commit: c0d97a27e1a8ab3e695624d222c46bc80a6de618
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 20 02:07:40 2015 +0000
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> 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=
next reply other threads:[~2015-09-20 2:08 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-20 2:07 Mike Gilbert [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-10-14 4:48 Mike Frysinger
2015-09-20 12:47 Julian Ospald
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=1442714873.c0d97a27e1a8ab3e695624d222c46bc80a6de618.floppym@gentoo \
--to=floppym@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