From: "Andrey Grozin" <grozin@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lisp/sbcl/
Date: Sun, 10 Nov 2024 13:45:31 +0000 (UTC) [thread overview]
Message-ID: <1731246311.d8200d5a038d0cd1d8411f4ea697f91fe270b0de.grozin@gentoo> (raw)
commit: d8200d5a038d0cd1d8411f4ea697f91fe270b0de
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 10 13:45:11 2024 +0000
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
CommitDate: Sun Nov 10 13:45:11 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8200d5a
dev-lisp/sbcl: remove old versions
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
dev-lisp/sbcl/Manifest | 5 -
dev-lisp/sbcl/sbcl-2.3.5.ebuild | 274 ---------------------------------------
dev-lisp/sbcl/sbcl-2.4.3.ebuild | 276 ----------------------------------------
3 files changed, 555 deletions(-)
diff --git a/dev-lisp/sbcl/Manifest b/dev-lisp/sbcl/Manifest
index eea685e761fd..d012819c9103 100644
--- a/dev-lisp/sbcl/Manifest
+++ b/dev-lisp/sbcl/Manifest
@@ -1,4 +1,3 @@
-DIST bsd-sockets-test-2.3.1.patch.gz 3451 BLAKE2B 3f1499df0346852d3337d741e4f2e99dddc178f8f31d79911ba3206a83f0d56ad86967ed4deccc7c28a3e24e302814db63a1fafe3b88991cfba7a1c40c8b3851 SHA512 bccf0d4a46b6fcfea40a287863e72267717fa6860d8dc3e3e0bd4f616d9b825eec1195f4e88b0650c12c76360e2fc3c7e32930c0319ecae0ab66834be22fca83
DIST bsd-sockets-test-2.3.6.patch.gz 3459 BLAKE2B f8ee83904a21944f15890c781aa46f66e0e5c5f59b5c03ba78b54fc8c1d4b1d88cae71bbb6f3f88451435eb7a3ab39a7168df047d9684391b46afc644dc9e96c SHA512 baaf803210c00074042d04e12e47919e8e187c8ae3374651a4205aded9d10bec078e5e17e04fcdcb666ab3f4bb1d7195c453b0f1d8b1fc5038e1ac22bf99ca35
DIST sbcl-1.0.28-alpha-linux-binary.tar.bz2 7573824 BLAKE2B ab8e139adb4fbc0ac7b34457c3361b044d04d8d9dedba2008cb19220915900e2d1bf540b617c738145923d74fa28ab7d979fd0d1bf4b9d17c445dfb080731263 SHA512 85ceb4d3bf971777f5444a63cbabd88ccfaf16ed3b3c86cc5ea6cb3fd3189c4cd5a5ebbf785c97366afb7026604ffc34a1129936291deede5993056e158125ab
DIST sbcl-1.0.28-sparc-linux-binary.tar.bz2 8032042 BLAKE2B ca4213ef00447d66406d1c752a1653fd628deba0e112f55a5625dad61da30c0be7c60fe4e84e8dcc9d9946db553ad544dc39b28d62124d8e3d6197943efc944a SHA512 cea1ba06f85169fca9fe3026813c6e7e8e8209b874e048b7bd63cb3a1c5bd7c829e8dbb2c486977e190a0390d28e4845938a9e84378f4f2f16f72bf0b6f45c80
@@ -10,11 +9,7 @@ DIST sbcl-1.4.2-arm64-linux-binary.tar.bz2 10578821 BLAKE2B 1cd25c548be0f1b7ec01
DIST sbcl-1.4.3-x86-linux-binary.tar.bz2 10227185 BLAKE2B 6d77c4f4177cbdb72fb9bab0da5bd91e0aa8deafffd238818a2551332f0ab246715d9489b5c1156f3481aa7fb79d161a988404620fc09fe86ff927543a1ee678 SHA512 41cd63d61dd7c46370341dce39a362287a23b528bfebe8e5571614aeefdea03d318207d25562e995db9ccedb6c1f50ea4d66627721f0fd9486e99440126e6a38
DIST sbcl-1.5.8-ppc64le-linux-binary.tar.bz2 10025597 BLAKE2B aac079e3585ebe9d5b610cf096e958edfd4410361b0d96b2fa88a285cbdce4133d89e1ddf0cf6729d43d6c3057365d07a3d73362f906fd8798b76c993210a8e5 SHA512 443ab604caa768c756f3322d7c599142a50227914bcd6be12434432daf1e3d5af0740d1ebdb166b856cc77ddf02451e29fcef9e29099f7bc4fb49ad61db17674
DIST sbcl-2.3.3-armhf-linux-binary.tar.bz2 9932803 BLAKE2B 77e0da4a60fd74caaef3adbf29446a50323c18433cc36418d9e670e410882137cdd482ef4b2da989190c27d1cc737dba0848ad652044832337e39243088813f3 SHA512 b9810c2fe9f34ee974cb90b3b79dbb4c77053300fd029eae216fbb2772da539f2b71ca13c868772adf618f364fc73994a3a467e0a535fe5195b7eb6b0fee3571
-DIST sbcl-2.3.4-x86-64-linux-binary.tar.bz2 11783208 BLAKE2B 40e77c69a3df76749941138720e85cb8b4df4a334b19e4bf998caace63bb016efd321a51b9b3a86cf34a5ad10c7967a2b131d83b63f506f6e196ac5436d874e1 SHA512 2b7ab43f8fb10b4dd2effdd7209b4028a4a48fcc52564406acb9470ab5c6079217369da2a4f170f1ceb56ccc8cc11d129c1cb4daba85e20aa1a3345daa9e19b9
-DIST sbcl-2.3.5-source.tar.bz2 7474392 BLAKE2B 0b4f678dccbb18c18d59709aa2ce9facec3ada9f32cf1d398e1686f63615ab82781da68d6b5914294adab88e18501945d57b6d630507e02a8d89351379f769f3 SHA512 89635b6ebd18a481c56bb40b69ef58f13b2e2ebdb6b1244a1eea3b0d9e85dc1659391754b7c8ba533455575e91989889fe41be05314297f8e49bf11170001004
DIST sbcl-2.4.10-source.tar.bz2 8169178 BLAKE2B 2f4c289f2c0e8eafc2d1a118b1c3ae3466f297bf54275f2c6c780c31dc5c62e90b8b4c197381415f218f7f325a6d90600df86c512ba91cf8d3de2e2308a18cc8 SHA512 267302ce36926cc16046095d61cf02821334bba9cad9b46f3919ead97920b1483adc0cbd6100190ec4741acaa7e09ee9c2ac252a9f9d62b615ad53c3a924ed0c
DIST sbcl-2.4.10-x86-64-linux-binary.tar.bz2 11383001 BLAKE2B aea004bcdbbff53890a62b46c994d2c999f272999ada087dd84171fe63b221786f6ed921d06f1f6ac382e49d080fae6d3eb782ac29daa79e5f2df156dd15d5b8 SHA512 101d993afb372589c815c62cf8148696eb199a356cd5f00452979b29bc61a78f7fd8c58c3df64794fc0cc259fd8440c5b699d15a4dbc9deed41c7b55420e6ca4
-DIST sbcl-2.4.3-source.tar.bz2 8126417 BLAKE2B 11c304c4f28e41940e2981e6f9f3401dbc0352e8572cdcd42fddaa1387e19eb35760d8e2b734544953eaa4058f8a867b3a6e492f9d13770b80de376191ce10d1 SHA512 ac61e02af16b81cb25a806b44272956dd72875ae884a04b075c983881be70b618908bad7ebddb763358401f7207c05adde932e4a845e5b8cffccc0c7b76e7557
-DIST sbcl-2.4.3-x86-64-linux-binary.tar.bz2 12003023 BLAKE2B a833630bf3c8ceac1aab64d351d7a19b73cac4906c60c6344ba2222c17831da749bc3b5d0d5fa3246c9c2a847c60e9c78567845efdd9cba50d59f2dfaef1b186 SHA512 c884d04b317b1a7ebd4c5f00b17058819d32c59e3cab437296868bc132a77e34bb6e286e7378c7d27f2b07055f879171533273978bbda84d7de9618638219088
DIST sbcl-2.4.9-source.tar.bz2 8162242 BLAKE2B 55f10e6b91bf0a67723cd59db22aa149349a0faf4d9254c2274d414ea58664a5da3695e9f790fb6082072294652998becebe739db98862c805d0da52589bbdab SHA512 867feda50f607188bdee3d739f4267a79d7f22a8d428ead34044a0b56be7ca8073e792ca2f72252e504dc06a5e0be6e9556ee602025ac0fe97c554166c3ee2ee
DIST sbcl-2.4.9-x86-64-linux-binary.tar.bz2 11353060 BLAKE2B c344e343d3a50adf19b109d5751a68199c27771617166ea3673207c911418c4fe5957512856c9a0a477a938218ef3986236f509dcfd53cd0ca7e7a7918b9e458 SHA512 18cdc2b4f53c9e1ab6981007c94fcaf2c46e9f48cd6238cad668348c6b206d032d6096c07b26f55b864fef111a84adbf9e1d920b1d56a725884ec0d3847a8bf0
diff --git a/dev-lisp/sbcl/sbcl-2.3.5.ebuild b/dev-lisp/sbcl/sbcl-2.3.5.ebuild
deleted file mode 100644
index 7322fa7996a5..000000000000
--- a/dev-lisp/sbcl/sbcl-2.3.5.ebuild
+++ /dev/null
@@ -1,274 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit flag-o-matic pax-utils toolchain-funcs
-
-#same order as http://www.sbcl.org/platform-table.html
-BV_X86=1.4.3
-BV_AMD64=2.3.4
-BV_PPC=1.2.7
-BV_PPC64LE=1.5.8
-BV_SPARC=1.0.28
-BV_ALPHA=1.0.28
-BV_ARM=2.3.3
-BV_ARM64=1.4.2
-BV_X64_MACOS=1.2.11
-BV_PPC_MACOS=1.0.47
-BV_X86_SOLARIS=1.2.7
-BV_X64_SOLARIS=1.2.7
-BV_SPARC_SOLARIS=1.0.23
-
-DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
-HOMEPAGE="https://www.sbcl.org/ https://sbcl.sourceforge.net/"
-BSD_SOCKETS_TEST_PATCH=bsd-sockets-test-2.3.1.patch
-SRC_URI="https://downloads.sourceforge.net/sbcl/${P}-source.tar.bz2
- https://dev.gentoo.org/~grozin/${BSD_SOCKETS_TEST_PATCH}.gz
- !system-bootstrap? (
- x86? ( https://downloads.sourceforge.net/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
- amd64? ( https://downloads.sourceforge.net/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
- ppc? ( https://downloads.sourceforge.net/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
- ppc64? ( https://downloads.sourceforge.net/sbcl/${PN}-${BV_PPC64LE}-ppc64le-linux-binary.tar.bz2 )
- sparc? ( https://downloads.sourceforge.net/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
- alpha? ( https://downloads.sourceforge.net/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
- arm? ( https://downloads.sourceforge.net/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 )
- arm64? ( https://downloads.sourceforge.net/sbcl/${PN}-${BV_ARM64}-arm64-linux-binary.tar.bz2 )
- x64-macos? ( https://downloads.sourceforge.net/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 )
- ppc-macos? ( https://downloads.sourceforge.net/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )
- x64-solaris? ( https://downloads.sourceforge.net/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )
- )"
-
-LICENSE="MIT"
-SLOT="0/${PV}"
-KEYWORDS="-* amd64 ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
-IUSE="system-bootstrap debug doc source +threads +unicode +zstd"
-
-CDEPEND=">=dev-lisp/asdf-3.3:= \
- prefix? ( dev-util/patchelf )"
-# bug #843851
-BDEPEND="${CDEPEND}
- dev-debug/strace
- doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
- system-bootstrap? ( || ( dev-lisp/clisp dev-lisp/sbcl ) )"
-RDEPEND="${CDEPEND}
- zstd? ( app-arch/zstd )
- !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )"
-
-# Disable warnings about executable stacks, as this won't be fixed soon by upstream
-QA_EXECSTACK="usr/bin/sbcl"
-
-CONFIG="${S}/customize-target-features.lisp"
-ENVD="${T}/50sbcl"
-
-# Prevent ASDF from using the system libraries
-CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
-ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
-
-usep() {
- use ${1} && echo "true" || echo "false"
-}
-
-sbcl_feature() {
- echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
-}
-
-sbcl_apply_features() {
- sed 's/^X//' > "${CONFIG}" <<-'EOF'
- (lambda (list)
- X (flet ((enable (x) (pushnew x list))
- X (disable (x) (setf list (remove x list))))
- EOF
- if use x86 || use amd64; then
- sbcl_feature "$(usep threads)" ":sb-thread"
- fi
- sbcl_feature "true" ":sb-ldb"
- sbcl_feature "false" ":sb-test"
- sbcl_feature "$(usep unicode)" ":sb-unicode"
- sbcl_feature "$(usep zstd)" ":sb-core-compression"
- sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
- sed 's/^X//' >> "${CONFIG}" <<-'EOF'
- X )
- X list)
- EOF
- cat "${CONFIG}"
-}
-
-src_unpack() {
- unpack ${A}
- if ! use system-bootstrap ; then
- mv sbcl-*-* sbcl-binary || die
- fi
- cd "${S}"
-}
-
-src_prepare() {
- # bug #468482
- eapply "${FILESDIR}"/concurrency-test-2.0.1.patch
- # bugs #486552, #527666, #517004
- eapply "${WORKDIR}"/${BSD_SOCKETS_TEST_PATCH}
- # bugs #560276, #561018
- eapply "${FILESDIR}"/sb-posix-test-2.2.9.patch
- # bug #767742
- eapply "${FILESDIR}"/etags-2.1.0.patch
-
- eapply "${FILESDIR}"/verbose-build-2.0.3.patch
-
- eapply_user
-
- # Make sure the *FLAGS variables are sane.
- # sbcl needs symbols in resulting binaries, so building with the -s linker flag will fail.
- strip-unsupported-flags
- filter-flags -fomit-frame-pointer -Wl,-s
- filter-ldflags -s
-
- # -Werror=lto-type-mismatch
- # https://bugs.gentoo.org/917557
- # https://bugs.launchpad.net/gentoo/+bug/2072800
- filter-lto
-
- # original bugs #526194, #620532
- # this broke no-pie default builds, c.f. bug #632670
- # Pass CFLAGS down by appending our value, to let users override
- # the default values.
- # Keep passing LDFLAGS down via the LINKFLAGS variable.
- sed -e "s@\(CFLAGS += -g .*\)\$@\1 ${CFLAGS}@" \
- -e "s@LINKFLAGS += -g\$@LINKFLAGS += ${LDFLAGS}@" \
- -i src/runtime/GNUmakefile || die
-
- sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
- -i make-config.sh || die
-
- # Use installed ASDF version
- cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
- # Avoid installation of ASDF info page. See bug #605752
- sed '/INFOFILES/s/asdf.info//' -i doc/manual/Makefile || die
-
- use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
-
- # Some shells(such as dash) don't have "time" as builtin
- # and we don't want to DEPEND on sys-process/time
- sed "s,^time ,," -i make.sh || die
- sed "s,/lib,/$(get_libdir),g" -i install.sh || die
- # #define SBCL_HOME ...
- sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
- # change location of /etc/sbclrc ...
- sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die
-
- find . -type f -name .cvsignore -delete
-}
-
-src_configure() {
- # customizing SBCL version as per
- # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
- echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
-
- # set interpreter for Prefix
- if use prefix ; then
- patchelf --set-interpreter \
- "${EPREFIX}/$(get_libdir)"/ld-linux-x86-64.so.2 \
- "${WORKDIR}"/sbcl-binary/src/runtime/sbcl
- fi
-
- # applying customizations
- sbcl_apply_features
-}
-
-src_compile() {
- local bindir="${WORKDIR}"/sbcl-binary
- local bootstrap_lisp="sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger"
-
- if use system-bootstrap ; then
- if has_version "dev-lisp/sbcl" ; then
- bootstrap_lisp="sbcl --no-sysinit --no-userinit --disable-debugger"
- else
- bootstrap_lisp="clisp"
- fi
- fi
-
- # Bug #869434
- append-cppflags -D_GNU_SOURCE
-
- # clear the environment to get rid of non-ASCII strings, see bug #174702
- # set HOME for paludis
- env - HOME="${T}" PATH="${PATH}" \
- CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
- CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
- SBCL_HOME="/usr/$(get_libdir)/sbcl" SBCL_SOURCE_ROOT="/usr/$(get_libdir)/sbcl/src" \
- GNUMAKE=make ./make.sh \
- "${bootstrap_lisp}" \
- || die "make failed"
-
- # need to set HOME because libpango(used by graphviz) complains about it
- if use doc; then
- env - HOME="${T}" PATH="${PATH}" \
- CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
- ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
- make -C doc/manual info html || die "Cannot build manual"
- env - HOME="${T}" PATH="${PATH}" \
- CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
- ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
- make -C doc/internals info html || die "Cannot build internal docs"
- fi
-}
-
-src_test() {
- ewarn "Unfortunately, it is known that some tests fail eg."
- ewarn "run-program.impure.lisp. This is an issue of the upstream's"
- ewarn "development and not of Gentoo's side. Please, before filing"
- ewarn "any bug(s) search for older submissions. Thank you."
- time ( cd tests && sh run-tests.sh )
-}
-
-src_install() {
- # install system-wide initfile
- dodir /etc/
- sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF
- ;;; The following is required if you want source location functions to
- ;;; work in SLIME, for example.
- X
- (setf (logical-pathname-translations "SYS")
- X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*")
- X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*")))
- X
- ;;; Setup ASDF2
- (load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp")
- EOF
-
- # Install documentation
- unset SBCL_HOME
- INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \
- sh install.sh || die "install.sh failed"
-
- # bug #517008
- pax-mark -mr "${D}"/usr/bin/sbcl
-
- # rm empty directories lest paludis complain about this
- find "${ED}" -empty -type d -exec rmdir -v {} +
-
- if use doc; then
- dodoc -r doc/internals/sbcl-internals
-
- doinfo doc/manual/*.info*
- doinfo doc/internals/sbcl-internals.info
-
- docinto internals-notes
- dodoc doc/internals-notes/*
- else
- rm -Rv "${ED}/usr/share/doc/${PF}" || die
- fi
-
- # install the SBCL source
- if use source; then
- ./clean.sh
- cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die
- for d in contrib/*/; do
- cp -av "$d" "${ED}/usr/$(get_libdir)/sbcl/" || die
- done
- fi
-
- # necessary for running newly-saved images
- echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}"
- echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
- doenvd "${ENVD}"
-}
diff --git a/dev-lisp/sbcl/sbcl-2.4.3.ebuild b/dev-lisp/sbcl/sbcl-2.4.3.ebuild
deleted file mode 100644
index 7899f26fcd22..000000000000
--- a/dev-lisp/sbcl/sbcl-2.4.3.ebuild
+++ /dev/null
@@ -1,276 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit flag-o-matic pax-utils toolchain-funcs
-
-#same order as http://www.sbcl.org/platform-table.html
-BV_X86=1.4.3
-BV_AMD64=2.4.3
-BV_PPC=1.2.7
-BV_PPC64LE=1.5.8
-BV_SPARC=1.0.28
-BV_ALPHA=1.0.28
-BV_ARM=2.3.3
-BV_ARM64=1.4.2
-BV_X64_MACOS=1.2.11
-BV_PPC_MACOS=1.0.47
-BV_X86_SOLARIS=1.2.7
-BV_X64_SOLARIS=1.2.7
-BV_SPARC_SOLARIS=1.0.23
-
-DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
-HOMEPAGE="https://www.sbcl.org/ https://sbcl.sourceforge.net/"
-BSD_SOCKETS_TEST_PATCH=bsd-sockets-test-2.3.6.patch
-SRC_URI="https://downloads.sourceforge.net/sbcl/${P}-source.tar.bz2
- https://dev.gentoo.org/~grozin/${BSD_SOCKETS_TEST_PATCH}.gz
- !system-bootstrap? (
- x86? ( https://downloads.sourceforge.net/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
- amd64? ( https://downloads.sourceforge.net/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
- ppc? ( https://downloads.sourceforge.net/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
- ppc64? ( https://downloads.sourceforge.net/sbcl/${PN}-${BV_PPC64LE}-ppc64le-linux-binary.tar.bz2 )
- sparc? ( https://downloads.sourceforge.net/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
- alpha? ( https://downloads.sourceforge.net/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
- arm? ( https://downloads.sourceforge.net/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 )
- arm64? ( https://downloads.sourceforge.net/sbcl/${PN}-${BV_ARM64}-arm64-linux-binary.tar.bz2 )
- x64-macos? ( https://downloads.sourceforge.net/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 )
- ppc-macos? ( https://downloads.sourceforge.net/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )
- x64-solaris? ( https://downloads.sourceforge.net/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )
- )"
-
-LICENSE="MIT"
-SLOT="0/${PV}"
-KEYWORDS="-* amd64 ~ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
-IUSE="system-bootstrap debug doc source +threads +unicode +zstd"
-
-CDEPEND=">=dev-lisp/asdf-3.3:= \
- prefix? ( dev-util/patchelf )"
-# bug #843851
-BDEPEND="${CDEPEND}
- dev-debug/strace
- doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
- system-bootstrap? ( || ( dev-lisp/clisp dev-lisp/sbcl ) )"
-RDEPEND="${CDEPEND}
- zstd? ( app-arch/zstd )
- !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )"
-
-# Disable warnings about executable stacks, as this won't be fixed soon by upstream
-QA_EXECSTACK="usr/bin/sbcl"
-
-CONFIG="${S}/customize-target-features.lisp"
-ENVD="${T}/50sbcl"
-
-# Prevent ASDF from using the system libraries
-CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
-ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
-
-usep() {
- use ${1} && echo "true" || echo "false"
-}
-
-sbcl_feature() {
- echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
-}
-
-sbcl_apply_features() {
- sed 's/^X//' > "${CONFIG}" <<-'EOF'
- (lambda (list)
- X (flet ((enable (x) (pushnew x list))
- X (disable (x) (setf list (remove x list))))
- EOF
- if use x86 || use amd64; then
- sbcl_feature "$(usep threads)" ":sb-thread"
- fi
- sbcl_feature "true" ":sb-ldb"
- sbcl_feature "false" ":sb-test"
- sbcl_feature "$(usep unicode)" ":sb-unicode"
- sbcl_feature "$(usep zstd)" ":sb-core-compression"
- sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
- sed 's/^X//' >> "${CONFIG}" <<-'EOF'
- X )
- X list)
- EOF
- cat "${CONFIG}"
-}
-
-src_unpack() {
- unpack ${A}
- if ! use system-bootstrap ; then
- mv sbcl-*-* sbcl-binary || die
- fi
- cd "${S}"
-}
-
-src_prepare() {
- # bug #468482
- eapply "${FILESDIR}"/concurrency-test-2.0.1.patch
- # bugs #486552, #527666, #517004
- eapply "${WORKDIR}"/${BSD_SOCKETS_TEST_PATCH}
- # bugs #560276, #561018
- eapply "${FILESDIR}"/sb-posix-test-2.2.9.patch
- # bug #767742
- eapply "${FILESDIR}"/etags-2.1.0.patch
- # Use ${PV} as build-id, bug #797574
- eapply "${FILESDIR}"/build-id-2.4.3.patch
-
- eapply "${FILESDIR}"/verbose-build-2.0.3.patch
-
- eapply_user
-
- # Make sure the *FLAGS variables are sane.
- # sbcl needs symbols in resulting binaries, so building with the -s linker flag will fail.
- strip-unsupported-flags
- filter-flags -fomit-frame-pointer -Wl,-s
- filter-ldflags -s
-
- # -Werror=lto-type-mismatch
- # https://bugs.gentoo.org/917557
- # https://bugs.launchpad.net/gentoo/+bug/2072800
- filter-lto
-
- # original bugs #526194, #620532
- # this broke no-pie default builds, c.f. bug #632670
- # Pass CFLAGS down by appending our value, to let users override
- # the default values.
- # Keep passing LDFLAGS down via the LINKFLAGS variable.
- sed -e "s@\(CFLAGS += -g .*\)\$@\1 ${CFLAGS}@" \
- -e "s@LINKFLAGS += -g\$@LINKFLAGS += ${LDFLAGS}@" \
- -i src/runtime/GNUmakefile || die
-
- sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
- -i make-config.sh || die
-
- # Use installed ASDF version
- cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
- # Avoid installation of ASDF info page. See bug #605752
- sed '/INFOFILES/s/asdf.info//' -i doc/manual/Makefile || die
-
- use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
-
- # Some shells(such as dash) don't have "time" as builtin
- # and we don't want to DEPEND on sys-process/time
- sed "s,^time ,," -i make.sh || die
- sed "s,/lib,/$(get_libdir),g" -i install.sh || die
- # #define SBCL_HOME ...
- sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
- # change location of /etc/sbclrc ...
- sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die
-
- find . -type f -name .cvsignore -delete
-}
-
-src_configure() {
- # customizing SBCL version as per
- # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
- echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
-
- # set interpreter for Prefix
- if use prefix ; then
- patchelf --set-interpreter \
- "${EPREFIX}/$(get_libdir)"/ld-linux-x86-64.so.2 \
- "${WORKDIR}"/sbcl-binary/src/runtime/sbcl
- fi
-
- # applying customizations
- sbcl_apply_features
-}
-
-src_compile() {
- local bindir="${WORKDIR}"/sbcl-binary
- local bootstrap_lisp="sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger"
-
- if use system-bootstrap ; then
- if has_version "dev-lisp/sbcl" ; then
- bootstrap_lisp="sbcl --no-sysinit --no-userinit --disable-debugger"
- else
- bootstrap_lisp="clisp"
- fi
- fi
-
- # Bug #869434
- append-cppflags -D_GNU_SOURCE
-
- # clear the environment to get rid of non-ASCII strings, see bug #174702
- # set HOME for paludis
- env - HOME="${T}" PATH="${PATH}" \
- CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
- CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
- SBCL_HOME="/usr/$(get_libdir)/sbcl" SBCL_SOURCE_ROOT="/usr/$(get_libdir)/sbcl/src" \
- GNUMAKE=make PV=${PV} ./make.sh \
- "${bootstrap_lisp}" \
- || die "make failed"
-
- # need to set HOME because libpango(used by graphviz) complains about it
- if use doc; then
- env - HOME="${T}" PATH="${PATH}" \
- CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
- ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
- make -C doc/manual info html || die "Cannot build manual"
- env - HOME="${T}" PATH="${PATH}" \
- CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
- ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
- make -C doc/internals info html || die "Cannot build internal docs"
- fi
-}
-
-src_test() {
- ewarn "Unfortunately, it is known that some tests fail eg."
- ewarn "run-program.impure.lisp. This is an issue of the upstream's"
- ewarn "development and not of Gentoo's side. Please, before filing"
- ewarn "any bug(s) search for older submissions. Thank you."
- time ( cd tests && sh run-tests.sh )
-}
-
-src_install() {
- # install system-wide initfile
- dodir /etc/
- sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF
- ;;; The following is required if you want source location functions to
- ;;; work in SLIME, for example.
- X
- (setf (logical-pathname-translations "SYS")
- X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*")
- X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*")))
- X
- ;;; Setup ASDF2
- (load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp")
- EOF
-
- # Install documentation
- unset SBCL_HOME
- INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \
- sh install.sh || die "install.sh failed"
-
- # bug #517008
- pax-mark -mr "${D}"/usr/bin/sbcl
-
- # rm empty directories lest paludis complain about this
- find "${ED}" -empty -type d -exec rmdir -v {} +
-
- if use doc; then
- dodoc -r doc/internals/sbcl-internals
-
- doinfo doc/manual/*.info*
- doinfo doc/internals/sbcl-internals.info
-
- docinto internals-notes
- dodoc doc/internals-notes/*
- else
- rm -Rv "${ED}/usr/share/doc/${PF}" || die
- fi
-
- # install the SBCL source
- if use source; then
- ./clean.sh
- cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die
- for d in contrib/*/; do
- cp -av "$d" "${ED}/usr/$(get_libdir)/sbcl/" || die
- done
- fi
-
- # necessary for running newly-saved images
- echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}"
- echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
- doenvd "${ENVD}"
-}
next reply other threads:[~2024-11-10 13:45 UTC|newest]
Thread overview: 186+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-10 13:45 Andrey Grozin [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-06 9:15 [gentoo-commits] repo/gentoo:master commit in: dev-lisp/sbcl/ Andrey Grozin
2024-11-10 15:30 Sam James
2024-11-02 9:43 Arthur Zamarin
2024-11-02 1:42 Sam James
2024-11-01 20:42 Sam James
2024-11-01 7:13 Sam James
2024-11-01 6:00 Andrey Grozin
2024-11-01 5:54 Andrey Grozin
2024-10-03 13:02 Andrey Grozin
2024-10-03 13:00 Andrey Grozin
2024-09-01 14:58 Andrey Grozin
2024-09-01 14:56 Andrey Grozin
2024-08-01 3:46 Eli Schwartz
2024-07-29 11:16 Andrey Grozin
2024-07-29 11:12 Andrey Grozin
2024-07-12 5:55 Eli Schwartz
2024-07-12 5:55 Eli Schwartz
2024-06-30 17:21 Andrey Grozin
2024-06-30 17:19 Andrey Grozin
2024-05-30 13:52 Andrey Grozin
2024-05-13 12:06 Arthur Zamarin
2024-05-12 22:41 Sam James
2024-05-12 22:41 Sam James
2024-05-12 13:57 Andrey Grozin
2024-05-12 13:55 Andrey Grozin
2024-04-03 15:41 Andrey Grozin
2024-03-03 16:31 Andrey Grozin
2024-02-12 4:53 Andrey Grozin
2024-02-09 15:09 Andrey Grozin
2024-02-09 15:07 Andrey Grozin
2023-12-31 10:59 Andrey Grozin
2023-12-31 10:57 Andrey Grozin
2023-11-30 5:00 Andrey Grozin
2023-11-30 4:59 Andrey Grozin
2023-11-17 11:29 Andrey Grozin
2023-11-17 11:27 Andrey Grozin
2023-10-10 10:21 Andrey Grozin
2023-08-29 12:39 Andrey Grozin
2023-08-29 11:21 Andrey Grozin
2023-08-06 11:51 Sam James
2023-08-06 11:17 Andrey Grozin
2023-08-05 4:17 Sam James
2023-07-21 12:49 Sam James
2023-07-21 11:43 Arthur Zamarin
2023-07-21 11:16 Arthur Zamarin
2023-07-21 9:10 Andrey Grozin
2023-06-16 15:01 Andrey Grozin
2023-05-04 15:53 Andrey Grozin
2023-05-04 15:51 Andrey Grozin
2023-04-29 6:44 Sam James
2023-04-12 12:03 Andrey Grozin
2023-04-12 12:02 Andrey Grozin
2023-03-27 10:24 Andrey Grozin
2023-03-27 10:17 Andrey Grozin
2023-01-15 15:09 Andrey Grozin
2023-01-15 15:08 Andrey Grozin
2023-01-15 10:59 Andrey Grozin
2023-01-15 10:56 Andrey Grozin
2022-11-30 15:32 Andrey Grozin
2022-11-23 14:12 Jakov Smolić
2022-11-13 11:49 Matthew Smith
2022-11-11 20:27 Sam James
2022-11-11 7:04 Sam James
2022-11-11 7:04 Sam James
2022-11-01 9:32 Andrey Grozin
2022-11-01 9:30 Andrey Grozin
2022-10-01 10:22 Andrey Grozin
2022-09-22 4:09 Sam James
2022-09-02 15:50 Andrey Grozin
2022-07-14 12:36 Andrey Grozin
2022-06-04 13:43 Andrey Grozin
2022-06-04 13:41 Andrey Grozin
2022-05-04 8:48 Andrey Grozin
2022-05-04 8:46 Andrey Grozin
2022-03-30 15:46 Andrey Grozin
2022-03-07 3:22 Andrey Grozin
2022-03-07 3:20 Andrey Grozin
2022-02-28 4:55 Sam James
2022-02-17 11:15 Jakov Smolić
2022-02-17 11:00 Jakov Smolić
2022-02-02 13:01 Andrey Grozin
2022-02-02 9:47 Sam James
2022-02-02 9:47 Sam James
2022-01-31 15:31 Andrey Grozin
2022-01-18 23:35 Sam James
2022-01-18 23:27 Sam James
2022-01-02 14:15 Andrey Grozin
2022-01-02 14:13 Andrey Grozin
2021-12-12 5:22 Andrey Grozin
2021-11-04 10:49 Andrey Grozin
2021-11-04 10:47 Andrey Grozin
2021-09-04 11:49 Andrey Grozin
2021-08-09 16:51 Andrey Grozin
2021-07-19 3:12 Andrey Grozin
2021-07-19 3:10 Andrey Grozin
2021-06-22 10:27 Ulrich Müller
2021-06-02 7:56 Andrey Grozin
2021-04-30 9:14 Andrey Grozin
2021-04-18 13:44 Andrey Grozin
2021-03-31 9:55 Andrey Grozin
2021-03-03 6:30 Andrey Grozin
2021-02-08 6:16 Andrey Grozin
2021-01-28 5:24 Andrey Grozin
2021-01-07 8:20 Fabian Groffen
2021-01-06 19:34 Fabian Groffen
2020-12-10 6:03 Andrey Grozin
2020-12-10 5:07 Andrey Grozin
2020-10-30 15:40 Andrey Grozin
2020-10-06 16:41 Andrey Grozin
2020-09-09 15:32 Andrey Grozin
2020-08-05 12:20 Andrey Grozin
2020-04-28 16:55 Andrey Grozin
2020-01-05 15:55 Andrey Grozin
2019-11-20 14:52 Andrey Grozin
2019-11-20 14:39 Andrey Grozin
2019-10-01 13:23 Andrey Grozin
2019-09-24 10:23 Andrey Grozin
2019-06-01 14:58 Jonas Stein
2019-03-12 18:29 Andrey Grozin
2019-01-01 5:06 Andrey Grozin
2018-12-14 22:48 Sergei Trofimovich
2018-12-14 2:13 Thomas Deutschmann
2018-11-23 14:10 Andrey Grozin
2018-10-01 16:02 Andrey Grozin
2018-09-05 15:18 Andrey Grozin
2018-08-04 18:34 José María Alonso
2018-08-04 11:17 Patrick Lauer
2018-07-02 19:33 José María Alonso
2018-05-29 20:00 José María Alonso
2018-05-01 14:37 José María Alonso
2018-05-01 14:35 José María Alonso
2018-04-08 19:05 Aaron Bauman
2018-04-01 20:53 José María Alonso
2018-04-01 13:47 Sergei Trofimovich
2018-03-10 12:23 Pacho Ramos
2018-02-28 17:15 José María Alonso
2018-02-11 10:36 Michał Górny
2018-01-31 22:04 José María Alonso
2017-12-31 13:24 José María Alonso
2017-11-30 22:07 José María Alonso
2017-11-13 22:15 José María Alonso
2017-10-31 19:29 José María Alonso
2017-10-31 19:08 José María Alonso
2017-10-11 13:27 José María Alonso
2017-09-02 14:58 José María Alonso
2017-08-23 21:07 José María Alonso
2017-08-07 20:54 Amy Liffey
2017-08-01 13:18 Andrey Grozin
2017-07-02 17:26 Alexis Ballier
2017-06-01 10:03 José María Alonso
2017-04-29 17:28 José María Alonso
2017-02-14 22:37 José María Alonso
2017-02-08 18:03 José María Alonso
2017-01-22 17:34 Andrey Grozin
2017-01-22 17:32 Andrey Grozin
2017-01-22 16:46 Andrey Grozin
2017-01-12 16:27 Andrey Grozin
2016-12-29 10:05 Agostino Sarubbo
2016-11-15 11:30 Andrey Grozin
2016-09-11 17:17 Andrey Grozin
2016-09-11 16:47 Andrey Grozin
2016-08-04 6:48 Andrey Grozin
2016-06-19 2:16 Göktürk Yüksek
2016-06-15 5:43 Andrey Grozin
2016-05-02 16:18 Andrey Grozin
2016-04-03 8:32 Andrey Grozin
2016-03-19 23:45 Ian Delaney
2016-03-19 23:45 Ian Delaney
2016-03-18 11:20 Andrey Grozin
2016-02-24 17:07 Andrey Grozin
2016-02-24 17:05 Andrey Grozin
2016-02-13 15:13 Ulrich Müller
2016-02-13 15:13 Ulrich Müller
2016-02-13 14:38 Ulrich Müller
2016-02-07 21:47 Ian Delaney
2016-02-07 21:47 Ian Delaney
2015-12-12 6:42 Andrey Grozin
2015-11-04 4:55 Andrey Grozin
2015-10-27 19:01 Magnus Granberg
2015-10-12 10:45 Andrey Grozin
2015-10-10 4:56 Andrey Grozin
2015-10-08 10:07 José María Alonso
2015-09-07 12:33 Andrey Grozin
2015-08-29 11:24 Andrey Grozin
2015-08-27 21:14 José María Alonso
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=1731246311.d8200d5a038d0cd1d8411f4ea697f91fe270b0de.grozin@gentoo \
--to=grozin@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