From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libffi/
Date: Wed, 05 Feb 2025 00:13:06 +0000 (UTC) [thread overview]
Message-ID: <1738714286.fd45b77ea1fc68fff191eb7d4ec40f5cb74d5466.sam@gentoo> (raw)
commit: fd45b77ea1fc68fff191eb7d4ec40f5cb74d5466
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 5 00:09:24 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Feb 5 00:11:26 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd45b77e
dev-libs/libffi: drop problematic SSE patch
While this works fine with GCC, it causes 2 test failures with Clang (not
the test just added, either), and then also causes failures w/ Clang-built
libffi in guile's testsuite. Drop libffi-3.4.6-x86-sse.patch and the followup
libffi-3.4.6-tests.patch accordingly for now, given that while it seems
to fix a real issue in libffi, it wasn't reported as a "real bug" in Gentoo,
and the status quo seems worse than reverting it.
Thanks to Jeff for the original report and also unhappy-ending for looking
into it and narrowing down which patch was the problem, and mentioning
the fallout in guile.
Bug: https://github.com/libffi/libffi/issues/879
Bug: https://bugs.gentoo.org/949051
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-libs/libffi/libffi-3.4.6-r3.ebuild | 94 ++++++++++++++++++++++++++++++++++
1 file changed, 94 insertions(+)
diff --git a/dev-libs/libffi/libffi-3.4.6-r3.ebuild b/dev-libs/libffi/libffi-3.4.6-r3.ebuild
new file mode 100644
index 000000000000..e8471b2b545b
--- /dev/null
+++ b/dev-libs/libffi/libffi-3.4.6-r3.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit multilib-minimal preserve-libs
+
+MY_PV=${PV/_rc/-rc}
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="Portable, high level programming interface to various calling conventions"
+HOMEPAGE="https://sourceware.org/libffi/"
+
+if [[ ${PV} == 9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/libffi/libffi"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/libffi/libffi/releases/download/v${MY_PV}/${MY_P}.tar.gz"
+
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
+fi
+
+S="${WORKDIR}"/${MY_P}
+
+LICENSE="MIT"
+# This is a core package which is depended on by e.g. Python.
+# Please use preserve-libs.eclass in pkg_{pre,post}inst to cover users
+# with FEATURES="-preserved-libs" or another package manager if SONAME changes.
+SLOT="0/8" # SONAME=libffi.so.8
+IUSE="debug exec-static-trampoline pax-kernel static-libs test"
+
+RESTRICT="!test? ( test )"
+BDEPEND="test? ( dev-util/dejagnu )"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-arm64-bti.patch
+ "${FILESDIR}"/${P}-arm64-bti-spelling.patch
+ "${FILESDIR}"/${P}-arm64-support-pac.patch
+ "${FILESDIR}"/${P}-arm64-fix-build.patch
+ "${FILESDIR}"/${P}-sparc-struct-targs.patch
+ "${FILESDIR}"/${P}-test-typo.patch
+ "${FILESDIR}"/${P}-arm64-cfi.patch
+ "${FILESDIR}"/${P}-asan.patch
+ "${FILESDIR}"/${P}-regenerate-autotools.patch
+ "${FILESDIR}"/${P}-c23-tests.patch
+)
+
+src_prepare() {
+ default
+
+ if [[ ${CHOST} == arm64-*-darwin* ]] ; then
+ # ensure we use aarch64 asm, not x86 on arm64
+ sed -i -e 's/aarch64\*-\*-\*/arm64*-*-*|&/' \
+ configure configure.host || die
+ fi
+}
+
+multilib_src_configure() {
+ # --includedir= path maintains a few properties:
+ # 1. have stable name across libffi versions: some packages like
+ # dev-lang/ghc or kde-frameworks/networkmanager-qt embed
+ # ${includedir} at build-time. Don't require those to be
+ # rebuilt unless SONAME changes. bug #695788
+ #
+ # We use /usr/.../${PN} (instead of former /usr/.../${P}).
+ #
+ # 2. have ${ABI}-specific location as ffi.h is target-dependent.
+ #
+ # We use /usr/$(get_libdir)/... to have ABI identifier.
+ ECONF_SOURCE="${S}" econf \
+ --includedir="${EPREFIX}"/usr/$(get_libdir)/${PN}/include \
+ --disable-multi-os-directory \
+ $(use_enable static-libs static) \
+ $(use_enable exec-static-trampoline exec-static-tramp) \
+ $(use_enable pax-kernel pax_emutramp) \
+ $(use_enable debug)
+}
+
+multilib_src_test() {
+ emake -Onone check
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ find "${ED}" -name "*.la" -delete || die
+}
+
+pkg_preinst() {
+ preserve_old_lib /usr/$(get_libdir)/libffi.so.7
+}
+
+pkg_postinst() {
+ preserve_old_lib_notify /usr/$(get_libdir)/libffi.so.7
+}
next reply other threads:[~2025-02-05 0:13 UTC|newest]
Thread overview: 146+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-05 0:13 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-05-10 17:56 [gentoo-commits] repo/gentoo:master commit in: dev-libs/libffi/ Sam James
2025-04-18 19:43 Sam James
2025-04-10 9:09 Sam James
2025-03-08 13:37 Sam James
2025-03-03 15:10 Sam James
2025-02-09 4:32 Sam James
2025-02-09 4:32 Sam James
2025-02-09 4:32 Sam James
2025-02-09 4:32 Sam James
2025-02-09 4:32 Sam James
2025-02-09 4:32 Sam James
2025-02-09 3:37 Sam James
2025-02-04 13:24 Sam James
2025-01-21 3:36 Sam James
2025-01-21 3:36 Sam James
2025-01-21 1:30 Jakov Smolić
2025-01-21 1:30 Jakov Smolić
2025-01-21 1:30 Jakov Smolić
2024-10-16 4:34 Sam James
2024-10-16 3:17 Sam James
2024-10-12 23:06 Sam James
2024-10-12 23:06 Sam James
2024-09-11 23:59 Sam James
2024-09-11 14:15 Sam James
2024-09-06 3:33 Sam James
2024-09-06 3:33 Sam James
2024-09-05 23:10 Jakov Smolić
2024-09-05 23:10 Jakov Smolić
2024-05-18 17:06 Sam James
2024-03-19 3:42 Ionen Wolkens
2024-03-04 8:11 Sam James
2024-03-03 2:27 Sam James
2024-03-03 1:16 Sam James
2024-03-02 23:30 Sam James
2024-02-29 23:17 Sam James
2024-02-29 22:17 Sam James
2024-02-29 22:17 Sam James
2024-02-29 22:17 Sam James
2024-02-19 0:48 Sam James
2024-02-15 14:19 Sam James
2024-02-07 17:37 Jakov Smolić
2024-02-03 13:38 Sam James
2024-02-03 11:02 Sam James
2024-02-03 6:56 Sam James
2024-02-02 5:13 Sam James
2024-02-02 4:44 Sam James
2024-02-02 4:44 Sam James
2024-02-02 3:58 Sam James
2024-01-05 6:42 Sam James
2023-12-26 16:37 Sam James
2023-12-18 9:01 Arthur Zamarin
2023-12-17 11:45 Sam James
2023-12-16 20:56 Sam James
2023-12-16 19:16 Arthur Zamarin
2023-12-16 11:47 Arthur Zamarin
2023-12-16 11:29 Arthur Zamarin
2023-12-16 11:29 Arthur Zamarin
2023-04-25 1:01 Sam James
2023-04-25 0:45 Sam James
2023-04-24 12:38 Jakov Smolić
2023-04-24 8:25 Arthur Zamarin
2023-04-24 8:25 Arthur Zamarin
2023-04-24 8:25 Arthur Zamarin
2023-04-23 22:59 Sam James
2023-04-23 22:24 Sam James
2022-11-23 14:12 Jakov Smolić
2022-11-23 13:56 Jakov Smolić
2022-11-18 8:42 Arthur Zamarin
2022-11-18 6:06 Arthur Zamarin
2022-11-18 6:06 Arthur Zamarin
2022-11-18 6:03 Arthur Zamarin
2022-11-18 5:59 Arthur Zamarin
2022-11-18 5:59 Arthur Zamarin
2022-10-24 11:47 Sam James
2022-10-24 11:47 Sam James
2022-10-19 8:17 WANG Xuerui
2022-09-19 19:01 Sam James
2022-08-24 5:29 Agostino Sarubbo
2022-08-23 20:26 Agostino Sarubbo
2022-06-14 16:36 Arthur Zamarin
2022-06-14 16:36 Arthur Zamarin
2022-06-14 16:36 Arthur Zamarin
2022-06-14 16:34 Sam James
2022-06-14 8:15 Jakov Smolić
2022-06-14 7:15 Agostino Sarubbo
2022-06-14 6:09 Jakov Smolić
2022-06-14 5:54 Jakov Smolić
2022-01-06 9:07 David Seifert
2021-09-12 23:19 Sam James
2021-08-01 10:06 Marek Szuba
2021-07-24 22:53 Sergei Trofimovich
2021-07-07 21:48 Sergei Trofimovich
2021-07-01 9:21 Marek Szuba
2020-12-27 14:21 Fabian Groffen
2020-12-18 13:04 Fabian Groffen
2020-11-10 22:22 Sergei Trofimovich
2020-09-07 20:46 Sergei Trofimovich
2020-08-30 1:57 Sam James
2020-08-11 18:53 Agostino Sarubbo
2020-08-11 14:13 Agostino Sarubbo
2020-08-10 13:52 Agostino Sarubbo
2020-08-09 16:50 Sergei Trofimovich
2020-08-08 10:31 Sergei Trofimovich
2020-08-07 17:44 Sam James
2020-08-07 17:44 Sam James
2020-07-16 20:55 Sergei Trofimovich
2020-05-02 17:51 Sergei Trofimovich
2020-04-12 21:52 Mart Raudsepp
2020-03-30 13:39 Agostino Sarubbo
2020-03-29 8:57 Sergei Trofimovich
2020-03-29 8:57 Sergei Trofimovich
2020-03-23 23:58 Sergei Trofimovich
2020-03-15 12:46 Mikle Kolyada
2020-02-13 20:58 Sergei Trofimovich
2020-02-13 13:03 Agostino Sarubbo
2020-02-13 12:46 Agostino Sarubbo
2020-02-13 12:38 Agostino Sarubbo
2020-02-13 12:27 Agostino Sarubbo
2020-02-13 12:19 Agostino Sarubbo
2020-02-13 12:03 Agostino Sarubbo
2020-02-13 8:57 Agostino Sarubbo
2019-11-27 22:58 Sergei Trofimovich
2019-11-24 21:09 Sergei Trofimovich
2019-11-07 17:36 Aaron Bauman
2019-11-06 6:59 Sergei Trofimovich
2019-11-06 0:03 Sergei Trofimovich
2019-10-20 15:49 Sergei Trofimovich
2019-10-20 8:53 Mikle Kolyada
2019-10-03 8:14 Agostino Sarubbo
2019-10-03 8:12 Agostino Sarubbo
2019-10-03 8:09 Agostino Sarubbo
2019-09-29 9:11 Sergei Trofimovich
2019-09-26 19:02 Thomas Deutschmann
2019-09-26 18:35 Mikle Kolyada
2019-09-21 13:50 Sergei Trofimovich
2019-09-21 7:14 Matt Turner
2019-05-04 18:29 Andreas K. Hüttel
2019-01-07 13:28 Fabian Groffen
2018-01-10 4:28 Mike Frysinger
2018-01-06 13:26 Sergei Trofimovich
2017-12-24 9:46 Mart Raudsepp
2017-01-29 16:08 Fabian Groffen
2016-05-25 7:44 Jeroen Roovers
2016-05-25 6:29 Matt Turner
2016-05-01 6:49 Markus Meier
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=1738714286.fd45b77ea1fc68fff191eb7d4ec40f5cb74d5466.sam@gentoo \
--to=sam@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