From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/db/
Date: Wed, 8 May 2019 21:24:51 +0000 (UTC) [thread overview]
Message-ID: <1557350682.c8762844e2a26ab7ed62a161195106652675828b.robbat2@gentoo> (raw)
commit: c8762844e2a26ab7ed62a161195106652675828b
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Wed May 8 21:19:50 2019 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Wed May 8 21:24:42 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8762844
sys-libs/db: compile-fix by dropping mutex=ARM/gcc-assembly
This is a compile-fix so that old versions build on newer ARM hardware.
The ARM assembly code does not work on newer hardware
so you CANNOT use --with-mutex=ARM/gcc-assembly anymore.
Specifically, it uses the SWPB op, which was deprecated [1]
The SWPB op ALSO cannot be used in ARM-Thumb mode.
>=sys-libs/db-6.1 uses LDREX instead, but that fix CANNOT be backported
due differing licenses in the new versions (the new version is AGPL).
Trust the compiler instead for older sys-libs/db versions, and just drop
--with-mutex=ARM/gcc-assembly from the configure.
[1] http://www.keil.com/support/man/docs/armasm/armasm_dom1361289909499.htm
Fixes: https://bugs.gentoo.org/555740
Reported-By: Christohper Harrington <ironiridis <AT> gmail.com>
Reported-By: Luke-Jr <luke-jr <AT> utopios.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
sys-libs/db/db-4.7.25_p4.ebuild | 10 ++++++++--
sys-libs/db/db-4.8.30-r2.ebuild | 10 ++++++++--
sys-libs/db/db-5.1.29-r1.ebuild | 10 ++++++++--
sys-libs/db/db-5.3.28-r2.ebuild | 8 +++++++-
sys-libs/db/db-5.3.28-r3.ebuild | 8 +++++++-
sys-libs/db/db-6.0.35-r1.ebuild | 8 +++++++-
sys-libs/db/db-6.0.35.ebuild | 8 +++++++-
7 files changed, 52 insertions(+), 10 deletions(-)
diff --git a/sys-libs/db/db-4.7.25_p4.ebuild b/sys-libs/db/db-4.7.25_p4.ebuild
index 2f341da53d5..807fc0adc02 100644
--- a/sys-libs/db/db-4.7.25_p4.ebuild
+++ b/sys-libs/db/db-4.7.25_p4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=0
@@ -118,13 +118,19 @@ src_compile() {
--enable-o_direct \
--without-uniquename \
$(use_enable rpc) \
- $(use arm && echo --with-mutex=ARM/gcc-assembly) \
$(use amd64 && echo --with-mutex=x86/gcc-assembly) \
$(use_enable cxx) \
$(use_enable java) \
${myconf} \
$(use_enable test) \
"$@"
+ # The embedded assembly on ARM does not work on newer hardware
+ # so you CANNOT use --with-mutex=ARM/gcc-assembly anymore.
+ # Specifically, it uses the SWPB op, which was deprecated:
+ # http://www.keil.com/support/man/docs/armasm/armasm_dom1361289909499.htm
+ # The op ALSO cannot be used in ARM-Thumb mode.
+ # Trust the compiler instead.
+ # >=db-6.1 uses LDREX instead.
emake || die "make failed"
}
diff --git a/sys-libs/db/db-4.8.30-r2.ebuild b/sys-libs/db/db-4.8.30-r2.ebuild
index b19ec4fc505..bdedb3547a7 100644
--- a/sys-libs/db/db-4.8.30-r2.ebuild
+++ b/sys-libs/db/db-4.8.30-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -125,13 +125,19 @@ multilib_src_configure() {
--enable-compat185 \
--enable-o_direct \
--without-uniquename \
- $([[ ${ABI} == arm ]] && echo --with-mutex=ARM/gcc-assembly) \
$([[ ${ABI} == amd64 ]] && echo --with-mutex=x86/gcc-assembly) \
$(use_enable cxx) \
$(use_enable cxx stl) \
$(multilib_native_use_enable java) \
"${myconf[@]}" \
$(use_enable test)
+ # The embedded assembly on ARM does not work on newer hardware
+ # so you CANNOT use --with-mutex=ARM/gcc-assembly anymore.
+ # Specifically, it uses the SWPB op, which was deprecated:
+ # http://www.keil.com/support/man/docs/armasm/armasm_dom1361289909499.htm
+ # The op ALSO cannot be used in ARM-Thumb mode.
+ # Trust the compiler instead.
+ # >=db-6.1 uses LDREX instead.
}
multilib_src_test() {
diff --git a/sys-libs/db/db-5.1.29-r1.ebuild b/sys-libs/db/db-5.1.29-r1.ebuild
index a00e96a4a1b..5f28da0d367 100644
--- a/sys-libs/db/db-5.1.29-r1.ebuild
+++ b/sys-libs/db/db-5.1.29-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -148,7 +148,6 @@ src_configure() {
--enable-sql \
--enable-sql_codegen \
--disable-sql_compat \
- $(use arm && echo --with-mutex=ARM/gcc-assembly) \
$(use amd64 && echo --with-mutex=x86/gcc-assembly) \
$(use_enable cxx) \
$(use_enable cxx stl) \
@@ -156,6 +155,13 @@ src_configure() {
${myconf} \
$(use_enable test) \
"$@"
+ # The embedded assembly on ARM does not work on newer hardware
+ # so you CANNOT use --with-mutex=ARM/gcc-assembly anymore.
+ # Specifically, it uses the SWPB op, which was deprecated:
+ # http://www.keil.com/support/man/docs/armasm/armasm_dom1361289909499.htm
+ # The op ALSO cannot be used in ARM-Thumb mode.
+ # Trust the compiler instead.
+ # >=db-6.1 uses LDREX instead.
}
src_compile() {
diff --git a/sys-libs/db/db-5.3.28-r2.ebuild b/sys-libs/db/db-5.3.28-r2.ebuild
index 8738e10e008..47b37d93ea6 100644
--- a/sys-libs/db/db-5.3.28-r2.ebuild
+++ b/sys-libs/db/db-5.3.28-r2.ebuild
@@ -159,13 +159,19 @@ multilib_src_configure() {
--enable-sql \
--enable-sql_codegen \
--disable-sql_compat \
- $([[ ${ABI} == arm ]] && echo --with-mutex=ARM/gcc-assembly) \
$([[ ${ABI} == amd64 ]] && echo --with-mutex=x86/gcc-assembly) \
$(use_enable cxx) \
$(use_enable cxx stl) \
$(multilib_native_use_enable java) \
"${myconf[@]}" \
$(use_enable test)
+ # The embedded assembly on ARM does not work on newer hardware
+ # so you CANNOT use --with-mutex=ARM/gcc-assembly anymore.
+ # Specifically, it uses the SWPB op, which was deprecated:
+ # http://www.keil.com/support/man/docs/armasm/armasm_dom1361289909499.htm
+ # The op ALSO cannot be used in ARM-Thumb mode.
+ # Trust the compiler instead.
+ # >=db-6.1 uses LDREX instead.
}
multilib_src_install() {
diff --git a/sys-libs/db/db-5.3.28-r3.ebuild b/sys-libs/db/db-5.3.28-r3.ebuild
index 24f0d3c333b..d29b9bb65a4 100644
--- a/sys-libs/db/db-5.3.28-r3.ebuild
+++ b/sys-libs/db/db-5.3.28-r3.ebuild
@@ -161,13 +161,19 @@ multilib_src_configure() {
--disable-sql \
--disable-sql_codegen \
--disable-sql_compat \
- $([[ ${ABI} == arm ]] && echo --with-mutex=ARM/gcc-assembly) \
$([[ ${ABI} == amd64 ]] && echo --with-mutex=x86/gcc-assembly) \
$(use_enable cxx) \
$(use_enable cxx stl) \
$(multilib_native_use_enable java) \
"${myconf[@]}" \
$(use_enable test)
+ # The embedded assembly on ARM does not work on newer hardware
+ # so you CANNOT use --with-mutex=ARM/gcc-assembly anymore.
+ # Specifically, it uses the SWPB op, which was deprecated:
+ # http://www.keil.com/support/man/docs/armasm/armasm_dom1361289909499.htm
+ # The op ALSO cannot be used in ARM-Thumb mode.
+ # Trust the compiler instead.
+ # >=db-6.1 uses LDREX instead.
}
multilib_src_install() {
diff --git a/sys-libs/db/db-6.0.35-r1.ebuild b/sys-libs/db/db-6.0.35-r1.ebuild
index 0cd34cc3b7a..a2d1df993e5 100644
--- a/sys-libs/db/db-6.0.35-r1.ebuild
+++ b/sys-libs/db/db-6.0.35-r1.ebuild
@@ -159,13 +159,19 @@ multilib_src_configure() {
--disable-sql \
--disable-sql_codegen \
--disable-sql_compat \
- $([[ ${ABI} == arm ]] && echo --with-mutex=ARM/gcc-assembly) \
$([[ ${ABI} == amd64 ]] && echo --with-mutex=x86/gcc-assembly) \
$(use_enable cxx) \
$(use_enable cxx stl) \
$(multilib_native_use_enable java) \
"${myconf[@]}" \
$(use_enable test)
+ # The embedded assembly on ARM does not work on newer hardware
+ # so you CANNOT use --with-mutex=ARM/gcc-assembly anymore.
+ # Specifically, it uses the SWPB op, which was deprecated:
+ # http://www.keil.com/support/man/docs/armasm/armasm_dom1361289909499.htm
+ # The op ALSO cannot be used in ARM-Thumb mode.
+ # Trust the compiler instead.
+ # >=db-6.1 uses LDREX instead.
}
multilib_src_install() {
diff --git a/sys-libs/db/db-6.0.35.ebuild b/sys-libs/db/db-6.0.35.ebuild
index b03e9d66b02..476381c66a9 100644
--- a/sys-libs/db/db-6.0.35.ebuild
+++ b/sys-libs/db/db-6.0.35.ebuild
@@ -157,13 +157,19 @@ multilib_src_configure() {
--enable-sql \
--enable-sql_codegen \
--disable-sql_compat \
- $([[ ${ABI} == arm ]] && echo --with-mutex=ARM/gcc-assembly) \
$([[ ${ABI} == amd64 ]] && echo --with-mutex=x86/gcc-assembly) \
$(use_enable cxx) \
$(use_enable cxx stl) \
$(multilib_native_use_enable java) \
"${myconf[@]}" \
$(use_enable test)
+ # The embedded assembly on ARM does not work on newer hardware
+ # so you CANNOT use --with-mutex=ARM/gcc-assembly anymore.
+ # Specifically, it uses the SWPB op, which was deprecated:
+ # http://www.keil.com/support/man/docs/armasm/armasm_dom1361289909499.htm
+ # The op ALSO cannot be used in ARM-Thumb mode.
+ # Trust the compiler instead.
+ # >=db-6.1 uses LDREX instead.
}
multilib_src_install() {
next reply other threads:[~2019-05-08 21:24 UTC|newest]
Thread overview: 108+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-08 21:24 Robin H. Johnson [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-26 6:42 [gentoo-commits] repo/gentoo:master commit in: sys-libs/db/ Sam James
2024-11-21 15:51 Sam James
2024-11-21 15:51 Sam James
2024-11-21 15:51 Sam James
2024-11-21 15:51 Sam James
2024-11-21 15:51 Sam James
2024-11-21 15:51 Sam James
2024-11-21 15:51 Sam James
2024-11-21 15:51 Sam James
2024-11-21 15:51 Sam James
2024-11-21 15:51 Sam James
2024-11-18 4:18 Eli Schwartz
2024-11-01 17:38 Arthur Zamarin
2024-11-01 17:38 Arthur Zamarin
2024-10-31 17:06 Arthur Zamarin
2024-10-31 17:06 Arthur Zamarin
2024-10-31 17:06 Arthur Zamarin
2024-10-31 17:06 Arthur Zamarin
2023-11-04 17:51 Mike Gilbert
2023-11-04 17:51 Mike Gilbert
2023-06-01 5:39 Sam James
2022-12-07 15:42 Sam James
2022-12-05 9:29 WANG Xuerui
2022-12-02 13:21 Arthur Zamarin
2022-12-01 18:59 Arthur Zamarin
2022-11-25 12:01 Arthur Zamarin
2022-11-25 12:01 Arthur Zamarin
2022-11-25 12:01 Arthur Zamarin
2022-11-25 12:00 Arthur Zamarin
2022-11-25 12:00 Arthur Zamarin
2022-11-25 9:54 Arthur Zamarin
2022-10-19 10:07 WANG Xuerui
2022-10-08 19:21 Sam James
2022-04-30 0:25 Sam James
2022-01-06 9:07 David Seifert
2021-05-26 9:33 Lars Wendler
2021-05-25 10:37 David Seifert
2021-05-25 10:37 David Seifert
2021-05-24 22:38 Sam James
2021-05-24 22:38 Sam James
2021-05-24 22:38 Sam James
2021-05-24 22:38 Sam James
2021-05-24 22:38 Sam James
2021-05-24 2:31 Sam James
2021-05-24 2:31 Sam James
2021-05-24 2:31 Sam James
2021-05-24 2:31 Sam James
2021-05-24 2:31 Sam James
2021-05-23 11:48 David Seifert
2021-05-19 17:31 Sam James
2021-05-19 17:31 Sam James
2021-05-19 17:31 Sam James
2021-05-19 17:31 Sam James
2021-05-19 17:31 Sam James
2021-05-15 20:07 Joshua Kinard
2021-04-30 10:53 Miroslav Šulc
2021-04-29 18:42 Sergei Trofimovich
2021-04-29 17:26 Mike Gilbert
2021-04-29 8:49 Lars Wendler
2021-04-29 8:12 Lars Wendler
2021-04-29 8:12 Lars Wendler
2021-02-05 21:36 Sam James
2021-01-30 16:15 Sam James
2021-01-25 17:09 Lars Wendler
2021-01-24 17:51 Mike Gilbert
2021-01-24 17:41 Mike Gilbert
2021-01-07 10:09 Sam James
2021-01-06 15:35 Fabian Groffen
2020-12-14 20:15 Fabian Groffen
2020-10-30 17:23 David Seifert
2020-10-04 16:59 Sam James
2020-09-12 16:57 Sam James
2020-09-11 20:47 Sam James
2020-03-27 19:06 Robin H. Johnson
2019-11-12 13:23 Lars Wendler
2019-11-12 9:17 Lars Wendler
2019-11-12 9:17 Lars Wendler
2019-11-10 15:27 Michał Górny
2019-11-08 7:44 Mikle Kolyada
2019-11-07 17:05 Lars Wendler
2019-05-04 13:21 Mikle Kolyada
2019-04-15 12:44 Lars Wendler
2019-04-15 12:44 Lars Wendler
2019-03-05 9:28 Lars Wendler
2019-01-27 18:34 Mike Gilbert
2019-01-25 14:10 Lars Wendler
2018-03-22 15:06 Mart Raudsepp
2018-03-05 19:49 Robin H. Johnson
2017-10-06 21:29 Sergei Trofimovich
2017-07-11 7:08 Lars Wendler
2017-07-10 22:49 Robin H. Johnson
2017-07-10 22:24 Robin H. Johnson
2017-07-10 22:22 Robin H. Johnson
2017-06-08 12:26 Sergei Trofimovich
2017-01-27 22:11 Robin H. Johnson
2017-01-27 22:11 Robin H. Johnson
2017-01-09 13:59 Jeroen Roovers
2017-01-05 12:55 Aaron Bauman
2016-12-08 6:14 Mike Frysinger
2016-11-26 10:04 Markus Meier
2016-11-16 8:27 Tobias Klausmann
2016-11-14 14:50 Mike Frysinger
2016-10-25 13:45 Lars Wendler
2016-10-25 13:45 Lars Wendler
2016-04-16 12:48 Lars Wendler
2015-11-28 20:26 Mike Frysinger
2015-09-02 16:30 Justin Lecher
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=1557350682.c8762844e2a26ab7ed62a161195106652675828b.robbat2@gentoo \
--to=robbat2@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