diff options
| author | Sam James <sam@gentoo.org> | 2025-04-28 03:40:02 +0100 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-04-28 03:40:02 +0100 |
| commit | be73c7ef71ee9fc93015a39f305a85972d7cc8f5 (patch) | |
| tree | 2d337f0bb3661079fa03157320f8f4a5c166cc29 /dev-lisp | |
| parent | 7228e480692cdfff634582e18f88ac3aea5fb4f6 (diff) | |
| download | gentoo-be73c7ef71ee9fc93015a39f305a85972d7cc8f5.tar.gz gentoo-be73c7ef71ee9fc93015a39f305a85972d7cc8f5.tar.bz2 gentoo-be73c7ef71ee9fc93015a39f305a85972d7cc8f5.zip | |
dev-lisp/clisp: pass further workarounds
My earlier workaround was insufficient. While here, make sure we
respect CC/CFLAGS/LDFLAGS, and wire up src_test (while restricted, as
at least one test (socket?) segfaults).
Bug: https://bugs.gentoo.org/932564
Closes: https://bugs.gentoo.org/954892
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lisp')
| -rw-r--r-- | dev-lisp/clisp/clisp-2.49.92-r2.ebuild | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/dev-lisp/clisp/clisp-2.49.92-r2.ebuild b/dev-lisp/clisp/clisp-2.49.92-r2.ebuild index 8573be8fc5fe..5e8634dd7b5d 100644 --- a/dev-lisp/clisp/clisp-2.49.92-r2.ebuild +++ b/dev-lisp/clisp/clisp-2.49.92-r2.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit edo flag-o-matic xdg-utils +inherit edo flag-o-matic toolchain-funcs xdg-utils DESCRIPTION="Portable, bytecode-compiled implementation of Common Lisp" HOMEPAGE="https://clisp.sourceforge.io/" @@ -12,8 +12,10 @@ SRC_URI="mirror://gentoo/${P}.tar.bz2" LICENSE="GPL-2+" SLOT="2/8" KEYWORDS="~alpha ~amd64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" -IUSE="hyperspec X berkdb dbus fastcgi gdbm gtk +pcre postgres +readline svm threads +unicode +zlib" # "jit" disabled ATM +IUSE="hyperspec X berkdb dbus fastcgi gdbm gtk +pcre postgres +readline svm threads +unicode +zlib" +# Needs work still +RESTRICT="test" RDEPEND=" >=dev-lisp/asdf-2.33-r3 @@ -40,6 +42,10 @@ DEPEND=" " BDEPEND="X? ( x11-misc/imake )" +PATCHES=( + "${FILESDIR}"/${P}-after_glibc_cfree_bdb.patch +) + BUILDDIR="builddir" enable_modules() { @@ -47,18 +53,18 @@ enable_modules() { local m for m in "$@" ; do - einfo "Enabling module $m" + einfo "Enabling module ${m}" myconf+=( --with-module=${m} ) done } src_prepare() { + default + # More than -O1 breaks alpha if use alpha; then sed -i -e 's/-O2//g' src/makemake.in || die fi - eapply "${FILESDIR}"/"${P}"-after_glibc_cfree_bdb.patch - eapply_user xdg_environment_reset } @@ -76,7 +82,8 @@ src_configure() { # Temporary workaround for bug #932564 with GCC 15 # This can be dropped with a new release. - append-flags -fno-tree-dce + strip-flags + append-flags -fno-tree-dce -fno-tree-dse -fno-tree-pta # -Werror=lto-type-mismatch # https://bugs.gentoo.org/856103 @@ -139,6 +146,13 @@ src_configure() { CLHSROOT="http://www.lispworks.com/reference/HyperSpec/" fi + myconf+=( + --config + CC="$(tc-getCC)" + CFLAGS="${CFLAGS}" + LDFLAGS="${LDFLAGS}" + ) + # configure chokes on --sysconfdir option edo ./configure "${myconf[@]}" ${BUILDDIR} @@ -153,6 +167,12 @@ src_compile() { emake -C "${BUILDDIR}" -j1 } +src_test() { + emake -C "${BUILDDIR}" -j1 check + # Test non-portable features and modules + emake -C "${BUILDDIR}" -j1 extracheck mod-check +} + src_install() { pushd "${BUILDDIR}" || die emake -j1 DESTDIR="${D}" prefix="${EPREFIX}"/usr install-bin |
