commit: 9be40ff687666f78b3c2ffda7f4b9203885ed438 Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> AuthorDate: Wed Feb 26 23:42:55 2025 +0000 Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> CommitDate: Wed Feb 26 23:57:12 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9be40ff6
dev-db/sqlite: Sync live ebuild Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org> dev-db/sqlite/sqlite-9999.ebuild | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/dev-db/sqlite/sqlite-9999.ebuild b/dev-db/sqlite/sqlite-9999.ebuild index 2b47259e17d4..2d4ae2f9926b 100644 --- a/dev-db/sqlite/sqlite-9999.ebuild +++ b/dev-db/sqlite/sqlite-9999.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit flag-o-matic multilib-minimal toolchain-funcs +inherit flag-o-matic multilib multilib-minimal toolchain-funcs DESCRIPTION="SQL database engine" HOMEPAGE="https://sqlite.org/" @@ -318,8 +318,10 @@ multilib_src_configure() { fi fi - # set SONAME for the library - options+=( --soname=legacy ) + if [[ ${CHOST} != *-darwin* ]] ; then + # set SONAME for the library + options+=( --soname=legacy ) + fi # https://sqlite.org/forum/forumpost/4f4d06a9f6683bb9 tc-export_build_env BUILD_CC @@ -370,6 +372,15 @@ multilib_src_test() { multilib_src_install() { emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install + if [[ ${CHOST} == *-darwin* ]] ; then + # fix install_name, soname=legacy doesn't work for this (but + # breaks the build instead) + install_name_tool \ + -id "${EPREFIX}/usr/$(get_libdir)/libsqlite3$(get_libname 0)" \ + "${ED}/usr/$(get_libdir)/libsqlite3$(get_libname ${PV})" \ + || die "failed to fix install_name" + fi + if use tools && multilib_is_native_abi; then install_tool() { if [[ -f ".libs/${1}" ]]; then
