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 AD912138334 for ; Sun, 16 Sep 2018 21:28:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2D003E0A03; Sun, 16 Sep 2018 21:28:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DF00AE0A03 for ; Sun, 16 Sep 2018 21:28:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6DD48335CD6 for ; Sun, 16 Sep 2018 21:28:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 896F03C4 for ; Sun, 16 Sep 2018 21:28:49 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1537133320.68b4b694543cddeb2f33115f5581403d1187fe3f.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/boost-build/, dev-util/boost-build/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/boost-build/boost-build-1.62.0-r1.ebuild dev-util/boost-build/boost-build-1.63.0.ebuild dev-util/boost-build/boost-build-1.65.0.ebuild dev-util/boost-build/boost-build-1.66.0.ebuild dev-util/boost-build/boost-build-1.67.0.ebuild dev-util/boost-build/files/boost-build-1.62.0-sparc-no-default-flags.patch X-VCS-Directories: dev-util/boost-build/ dev-util/boost-build/files/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 68b4b694543cddeb2f33115f5581403d1187fe3f X-VCS-Branch: master Date: Sun, 16 Sep 2018 21:28:49 +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: 2e7c8c13-2af4-49d7-8bd9-de218a0bebfa X-Archives-Hash: 23e67bb81cdd8db49b62db33d8bf39e5 commit: 68b4b694543cddeb2f33115f5581403d1187fe3f Author: Rolf Eike Beer sf-mail de> AuthorDate: Fri Sep 7 18:57:31 2018 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Sun Sep 16 21:28:40 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68b4b694 dev-util/boost-build: add patch to unbreak compiler options on sparc Boost tries to autodetect the processor architecture and overrides any flags set with CXXFLAGS with the -mcpu value it thinks it is appropiate. Sadly the most recent architecture it knows of is ultrasparc3. For every newer cpu type it falls back to it's default, which is v7 (which would be the compiler default anyway). This avoids any advanced cpu instructions, e.g. those that support atomic operations on thing larger than a byte. Remove the whole outdated cruft and just use whatever the user passed in. Closes: https://bugs.gentoo.org/646234 Closes: https://github.com/gentoo/gentoo/pull/9802 Signed-off-by: Sergei Trofimovich gentoo.org> Package-Manager: Portage-2.3.40, Repoman-2.3.9 dev-util/boost-build/boost-build-1.62.0-r1.ebuild | 1 + dev-util/boost-build/boost-build-1.63.0.ebuild | 1 + dev-util/boost-build/boost-build-1.65.0.ebuild | 1 + dev-util/boost-build/boost-build-1.66.0.ebuild | 1 + dev-util/boost-build/boost-build-1.67.0.ebuild | 1 + ...boost-build-1.62.0-sparc-no-default-flags.patch | 47 ++++++++++++++++++++++ 6 files changed, 52 insertions(+) diff --git a/dev-util/boost-build/boost-build-1.62.0-r1.ebuild b/dev-util/boost-build/boost-build-1.62.0-r1.ebuild index 0178c2e3dfb..3d4aef3be4b 100644 --- a/dev-util/boost-build/boost-build-1.62.0-r1.ebuild +++ b/dev-util/boost-build/boost-build-1.62.0-r1.ebuild @@ -38,6 +38,7 @@ PATCHES=( "${FILESDIR}/${PN}-1.52.0-darwin-no-python-framework.patch" "${FILESDIR}/${PN}-1.54.0-support_dots_in_python-buildid.patch" "${FILESDIR}/${PN}-1.55.0-ppc-aix.patch" + "${FILESDIR}/${PN}-1.62.0-sparc-no-default-flags.patch" ) pkg_setup() { diff --git a/dev-util/boost-build/boost-build-1.63.0.ebuild b/dev-util/boost-build/boost-build-1.63.0.ebuild index 070a8e4d603..4dbc423b535 100644 --- a/dev-util/boost-build/boost-build-1.63.0.ebuild +++ b/dev-util/boost-build/boost-build-1.63.0.ebuild @@ -38,6 +38,7 @@ PATCHES=( "${FILESDIR}/${PN}-1.52.0-darwin-no-python-framework.patch" "${FILESDIR}/${PN}-1.54.0-support_dots_in_python-buildid.patch" "${FILESDIR}/${PN}-1.55.0-ppc-aix.patch" + "${FILESDIR}/${PN}-1.62.0-sparc-no-default-flags.patch" ) pkg_setup() { diff --git a/dev-util/boost-build/boost-build-1.65.0.ebuild b/dev-util/boost-build/boost-build-1.65.0.ebuild index 0a977472723..7f4df21c771 100644 --- a/dev-util/boost-build/boost-build-1.65.0.ebuild +++ b/dev-util/boost-build/boost-build-1.65.0.ebuild @@ -38,6 +38,7 @@ PATCHES=( "${FILESDIR}/${PN}-1.52.0-darwin-no-python-framework.patch" "${FILESDIR}/${PN}-1.54.0-support_dots_in_python-buildid.patch" "${FILESDIR}/${PN}-1.55.0-ppc-aix.patch" + "${FILESDIR}/${PN}-1.62.0-sparc-no-default-flags.patch" ) pkg_setup() { diff --git a/dev-util/boost-build/boost-build-1.66.0.ebuild b/dev-util/boost-build/boost-build-1.66.0.ebuild index ec3e64b01f9..2fdc1e47312 100644 --- a/dev-util/boost-build/boost-build-1.66.0.ebuild +++ b/dev-util/boost-build/boost-build-1.66.0.ebuild @@ -38,6 +38,7 @@ PATCHES=( "${FILESDIR}/${PN}-1.52.0-darwin-no-python-framework.patch" "${FILESDIR}/${PN}-1.54.0-support_dots_in_python-buildid.patch" "${FILESDIR}/${PN}-1.55.0-ppc-aix.patch" + "${FILESDIR}/${PN}-1.62.0-sparc-no-default-flags.patch" "${FILESDIR}/${PN}-1.66.0-add-none-feature-options.patch" ) diff --git a/dev-util/boost-build/boost-build-1.67.0.ebuild b/dev-util/boost-build/boost-build-1.67.0.ebuild index 87f9bb67439..4dda7f0a6aa 100644 --- a/dev-util/boost-build/boost-build-1.67.0.ebuild +++ b/dev-util/boost-build/boost-build-1.67.0.ebuild @@ -38,6 +38,7 @@ PATCHES=( "${FILESDIR}/${PN}-1.52.0-darwin-no-python-framework.patch" "${FILESDIR}/${PN}-1.54.0-support_dots_in_python-buildid.patch" "${FILESDIR}/${PN}-1.55.0-ppc-aix.patch" + "${FILESDIR}/${PN}-1.62.0-sparc-no-default-flags.patch" "${FILESDIR}/${PN}-1.66.0-add-none-feature-options.patch" ) diff --git a/dev-util/boost-build/files/boost-build-1.62.0-sparc-no-default-flags.patch b/dev-util/boost-build/files/boost-build-1.62.0-sparc-no-default-flags.patch new file mode 100644 index 00000000000..a3f450b0edf --- /dev/null +++ b/dev-util/boost-build/files/boost-build-1.62.0-sparc-no-default-flags.patch @@ -0,0 +1,47 @@ +--- a/tools/gcc.py 2018-09-07 17:44:59.668796217 +0200 ++++ b/tools/gcc.py 2018-09-07 17:45:56.378794314 +0200 +@@ -811,20 +811,6 @@ + # Sparc + flags('gcc', 'OPTIONS', ['sparc/32'], ['-m32']) + flags('gcc', 'OPTIONS', ['sparc/64'], ['-m64']) +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'v7', ['-mcpu=v7'], default=True) +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'cypress', ['-mcpu=cypress']) +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'v8', ['-mcpu=v8']) +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'supersparc', ['-mcpu=supersparc']) +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'sparclite', ['-mcpu=sparclite']) +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'hypersparc', ['-mcpu=hypersparc']) +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'sparclite86x', ['-mcpu=sparclite86x']) +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'f930', ['-mcpu=f930']) +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'f934', ['-mcpu=f934']) +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'sparclet', ['-mcpu=sparclet']) +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'tsc701', ['-mcpu=tsc701']) +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'v9', ['-mcpu=v9']) +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'ultrasparc', ['-mcpu=ultrasparc']) +-cpu_flags('gcc', 'OPTIONS', 'sparc', 'ultrasparc3', ['-mcpu=ultrasparc3']) + # RS/6000 & PowerPC + flags('gcc', 'OPTIONS', ['power/32'], ['-m32']) + flags('gcc', 'OPTIONS', ['power/64'], ['-m64']) +--- a/tools/gcc.jam 2018-09-07 17:45:12.168795797 +0200 ++++ b/tools/gcc.jam 2018-09-07 17:46:25.498793337 +0200 +@@ -1134,21 +1134,6 @@ + cpu-flags gcc OPTIONS : x86 : c3-2 : -march=c3-2 ; + ## + cpu-flags gcc OPTIONS : x86 : atom : -march=atom ; +-# Sparc +-cpu-flags gcc OPTIONS : sparc : v7 : -mcpu=v7 : default ; +-cpu-flags gcc OPTIONS : sparc : cypress : -mcpu=cypress ; +-cpu-flags gcc OPTIONS : sparc : v8 : -mcpu=v8 ; +-cpu-flags gcc OPTIONS : sparc : supersparc : -mcpu=supersparc ; +-cpu-flags gcc OPTIONS : sparc : sparclite : -mcpu=sparclite ; +-cpu-flags gcc OPTIONS : sparc : hypersparc : -mcpu=hypersparc ; +-cpu-flags gcc OPTIONS : sparc : sparclite86x : -mcpu=sparclite86x ; +-cpu-flags gcc OPTIONS : sparc : f930 : -mcpu=f930 ; +-cpu-flags gcc OPTIONS : sparc : f934 : -mcpu=f934 ; +-cpu-flags gcc OPTIONS : sparc : sparclet : -mcpu=sparclet ; +-cpu-flags gcc OPTIONS : sparc : tsc701 : -mcpu=tsc701 ; +-cpu-flags gcc OPTIONS : sparc : v9 : -mcpu=v9 ; +-cpu-flags gcc OPTIONS : sparc : ultrasparc : -mcpu=ultrasparc ; +-cpu-flags gcc OPTIONS : sparc : ultrasparc3 : -mcpu=ultrasparc3 ; + # RS/6000 & PowerPC + cpu-flags gcc OPTIONS : power : 403 : -mcpu=403 ; + cpu-flags gcc OPTIONS : power : 505 : -mcpu=505 ;