1 |
commit: a853c73260088cef2d21450f5fa34a6a12e6923f |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 6 16:40:54 2020 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 6 16:40:54 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a853c732 |
7 |
|
8 |
dev-lisp/sbcl: bump to 2.0.9 |
9 |
|
10 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
11 |
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org> |
12 |
|
13 |
dev-lisp/sbcl/Manifest | 2 + |
14 |
dev-lisp/sbcl/sbcl-2.0.9.ebuild | 246 ++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 248 insertions(+) |
16 |
|
17 |
diff --git a/dev-lisp/sbcl/Manifest b/dev-lisp/sbcl/Manifest |
18 |
index f01a06677dc..5c98ca80fc9 100644 |
19 |
--- a/dev-lisp/sbcl/Manifest |
20 |
+++ b/dev-lisp/sbcl/Manifest |
21 |
@@ -36,3 +36,5 @@ DIST sbcl-2.0.7-source.tar.bz2 6622306 BLAKE2B a3395f390f6b58c86f6494eb035446168 |
22 |
DIST sbcl-2.0.7-x86-64-linux-binary.tar.bz2 10199088 BLAKE2B f7ef2743958410b815dc2d235b9faa1d1df9c393bc06a6001de17a07be48d93caee577b29084448d787ce916a18b55dc97c0fa2bdbdb6c9b05ce0fe61357dd65 SHA512 d98d5a080c463a78ea3109a3350d22b816631d50fabed474cc267436b6eb6bf2dfbdd1fd6d29355c1a5714c5fba11ccf95247ffe9573049cb7f18035562a7d12 |
23 |
DIST sbcl-2.0.8-source.tar.bz2 6628106 BLAKE2B 9b284919d7281a7f1bd169e86aaac8ad970e59a8936fa80821ecc71ad9bf5607ad0bf4dfd67b9d4c6291268e2d8462528132ad4e6293bfdf91127c115a79163b SHA512 d27c97162406298e5ecbbb33f35e6bc5d578942f24c6ae107496cb7dd6d3e5faa72fa810b2330ba59547950c5cd2365ade804cf4909685e674682b90ab841470 |
24 |
DIST sbcl-2.0.8-x86-64-linux-binary.tar.bz2 10202393 BLAKE2B e0a4b4ff52224d9bd2c59dd6353051fabcbebe2e9413025fbd5a770a0140f097f9c36c631af5e35112b69c680f7d225592cec53c0e22eeac4a5f73bd7225f41f SHA512 2700fe1157b7a82aab8da62f738670e4a45b4bbd028bb4e493481f0c1ce0cf148c26f59b4777361c619d8e7d8c7f124c209c1b2851724fdc7e0772b1ac89da8e |
25 |
+DIST sbcl-2.0.9-source.tar.bz2 6521140 BLAKE2B 3a4924cb908b7c8728d4b34a0014890018cb7f2f80f0a0e26d3aea5c92bb537d99d3ef8fa38e23aff40d3759dc77147036a2cb32dbf6c7d3578630fabb7fc68d SHA512 bc2351d524d6184ee9e60bc33a517f186e55a1dbfbf23288187d9a083fb2ba07985154ff03449eb49a0e2ff7aad9facd5d1ef43472201869561fb694bf04d4dd |
26 |
+DIST sbcl-2.0.9-x86-64-linux-binary.tar.bz2 10202709 BLAKE2B 75e21401f536388b55b62468f104a34cedfd2835fe4c67eae789666eb8f14e0fd95d1ee2411bd84502cce53ee59018f2960c7a168226a3a94da2de7614579c46 SHA512 2f70018af8ad4cd5a978fc6c1ac3a67ef8a44e2be779579a23b89788398551f3d9612f4dae0ffe100f007ca9aa5999b5e5b28bb6d1a11ed4d65a2778fdaeae88 |
27 |
|
28 |
diff --git a/dev-lisp/sbcl/sbcl-2.0.9.ebuild b/dev-lisp/sbcl/sbcl-2.0.9.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..b3f599221e8 |
31 |
--- /dev/null |
32 |
+++ b/dev-lisp/sbcl/sbcl-2.0.9.ebuild |
33 |
@@ -0,0 +1,246 @@ |
34 |
+# Copyright 1999-2020 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=6 |
38 |
+ |
39 |
+inherit multilib eutils flag-o-matic pax-utils toolchain-funcs |
40 |
+ |
41 |
+#same order as http://www.sbcl.org/platform-table.html |
42 |
+BV_X86=1.4.3 |
43 |
+BV_AMD64=2.0.9 |
44 |
+BV_PPC=1.2.7 |
45 |
+BV_SPARC=1.0.28 |
46 |
+BV_ALPHA=1.0.28 |
47 |
+BV_ARM=1.4.11 |
48 |
+BV_ARM64=1.4.2 |
49 |
+BV_X86_MACOS=1.1.6 |
50 |
+BV_X64_MACOS=1.2.11 |
51 |
+BV_PPC_MACOS=1.0.47 |
52 |
+BV_X86_SOLARIS=1.2.7 |
53 |
+BV_X64_SOLARIS=1.2.7 |
54 |
+BV_SPARC_SOLARIS=1.0.23 |
55 |
+ |
56 |
+DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp" |
57 |
+HOMEPAGE="http://sbcl.sourceforge.net/" |
58 |
+SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2 |
59 |
+ x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 ) |
60 |
+ amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 ) |
61 |
+ ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 ) |
62 |
+ sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 ) |
63 |
+ alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 ) |
64 |
+ arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 ) |
65 |
+ arm64? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM64}-arm64-linux-binary.tar.bz2 ) |
66 |
+ x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 ) |
67 |
+ x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 ) |
68 |
+ ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 ) |
69 |
+ x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 ) |
70 |
+ x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 ) |
71 |
+ sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 )" |
72 |
+ |
73 |
+LICENSE="MIT" |
74 |
+SLOT="0/${PV}" |
75 |
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris" |
76 |
+IUSE="debug doc source +threads +unicode pax_kernel zlib" |
77 |
+ |
78 |
+CDEPEND=">=dev-lisp/asdf-3.1:=" |
79 |
+DEPEND="${CDEPEND} |
80 |
+ doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 ) |
81 |
+ pax_kernel? ( sys-apps/elfix )" |
82 |
+RDEPEND="${CDEPEND} |
83 |
+ !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )" |
84 |
+ |
85 |
+# Disable warnings about executable stacks, as this won't be fixed soon by upstream |
86 |
+QA_EXECSTACK="usr/bin/sbcl" |
87 |
+ |
88 |
+CONFIG="${S}/customize-target-features.lisp" |
89 |
+ENVD="${T}/50sbcl" |
90 |
+ |
91 |
+# Prevent ASDF from using the system libraries |
92 |
+CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" |
93 |
+ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" |
94 |
+ |
95 |
+usep() { |
96 |
+ use ${1} && echo "true" || echo "false" |
97 |
+} |
98 |
+ |
99 |
+sbcl_feature() { |
100 |
+ echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}" |
101 |
+} |
102 |
+ |
103 |
+sbcl_apply_features() { |
104 |
+ sed 's/^X//' > "${CONFIG}" <<-'EOF' |
105 |
+ (lambda (list) |
106 |
+ X (flet ((enable (x) (pushnew x list)) |
107 |
+ X (disable (x) (setf list (remove x list)))) |
108 |
+ EOF |
109 |
+ if use x86 || use amd64; then |
110 |
+ sbcl_feature "$(usep threads)" ":sb-thread" |
111 |
+ fi |
112 |
+ sbcl_feature "true" ":sb-ldb" |
113 |
+ sbcl_feature "false" ":sb-test" |
114 |
+ sbcl_feature "$(usep unicode)" ":sb-unicode" |
115 |
+ sbcl_feature "$(usep zlib)" ":sb-core-compression" |
116 |
+ sbcl_feature "$(usep debug)" ":sb-xref-for-internals" |
117 |
+ sed 's/^X//' >> "${CONFIG}" <<-'EOF' |
118 |
+ X ) |
119 |
+ X list) |
120 |
+ EOF |
121 |
+ cat "${CONFIG}" |
122 |
+} |
123 |
+ |
124 |
+src_unpack() { |
125 |
+ unpack ${A} |
126 |
+ mv sbcl-*-* sbcl-binary || die |
127 |
+ cd "${S}" |
128 |
+} |
129 |
+ |
130 |
+src_prepare() { |
131 |
+ # bug #468482 |
132 |
+ eapply "${FILESDIR}"/concurrency-test-2.0.1.patch |
133 |
+ # bugs #486552, #527666, #517004 |
134 |
+ eapply "${FILESDIR}"/bsd-sockets-test-2.0.5.patch |
135 |
+ # bugs #560276, #561018 |
136 |
+ eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch |
137 |
+ |
138 |
+ eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch |
139 |
+ eapply "${FILESDIR}"/verbose-build-2.0.3.patch |
140 |
+ |
141 |
+ eapply_user |
142 |
+ |
143 |
+ # Make sure the *FLAGS variables are sane. |
144 |
+ # sbcl needs symbols in resulting binaries, so building with the -s linker flag will fail. |
145 |
+ strip-unsupported-flags |
146 |
+ filter-flags -fomit-frame-pointer -Wl,-s |
147 |
+ filter-ldflags -s |
148 |
+ |
149 |
+ # original bugs #526194, #620532 |
150 |
+ # this broke no-pie default builds, c.f. bug #632670 |
151 |
+ # Pass CFLAGS down by appending our value, to let users override |
152 |
+ # the default values. |
153 |
+ # Keep passing LDFLAGS down via the LINKFLAGS variable. |
154 |
+ sed -e "s@\(CFLAGS += -g .*\)\$@\1 ${CFLAGS}@" \ |
155 |
+ -e "s@LINKFLAGS += -g\$@LINKFLAGS += ${LDFLAGS}@" \ |
156 |
+ -i src/runtime/GNUmakefile || die |
157 |
+ |
158 |
+ sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \ |
159 |
+ -i make-config.sh || die |
160 |
+ |
161 |
+ # Use installed ASDF version |
162 |
+ cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die |
163 |
+ # Avoid installation of ASDF info page. See bug #605752 |
164 |
+ sed '/INFOFILES/s/asdf.info//' -i doc/manual/Makefile || die |
165 |
+ |
166 |
+ use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk |
167 |
+ |
168 |
+ # Some shells(such as dash) don't have "time" as builtin |
169 |
+ # and we don't want to DEPEND on sys-process/time |
170 |
+ sed "s,^time ,," -i make.sh || die |
171 |
+ sed "s,/lib,/$(get_libdir),g" -i install.sh || die |
172 |
+ # #define SBCL_HOME ... |
173 |
+ sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die |
174 |
+ # change location of /etc/sbclrc ... |
175 |
+ sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die |
176 |
+ |
177 |
+ find . -type f -name .cvsignore -delete |
178 |
+} |
179 |
+ |
180 |
+src_configure() { |
181 |
+ # customizing SBCL version as per |
182 |
+ # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup |
183 |
+ echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr |
184 |
+ |
185 |
+ # applying customizations |
186 |
+ sbcl_apply_features |
187 |
+} |
188 |
+ |
189 |
+src_compile() { |
190 |
+ local bindir="${WORKDIR}"/sbcl-binary |
191 |
+ |
192 |
+ if use pax_kernel ; then |
193 |
+ # To disable PaX on hardened systems |
194 |
+ pax-mark -mr "${bindir}"/src/runtime/sbcl |
195 |
+ |
196 |
+ # Hack to disable PaX on second GENESIS stage |
197 |
+ sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \ |
198 |
+ "${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime" |
199 |
+ fi |
200 |
+ |
201 |
+ # clear the environment to get rid of non-ASCII strings, see bug #174702 |
202 |
+ # set HOME for paludis |
203 |
+ env - HOME="${T}" PATH="${PATH}" \ |
204 |
+ CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \ |
205 |
+ CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \ |
206 |
+ GNUMAKE=make ./make.sh \ |
207 |
+ "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \ |
208 |
+ || die "make failed" |
209 |
+ |
210 |
+ # need to set HOME because libpango(used by graphviz) complains about it |
211 |
+ if use doc; then |
212 |
+ env - HOME="${T}" PATH="${PATH}" \ |
213 |
+ CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \ |
214 |
+ ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \ |
215 |
+ make -C doc/manual info html || die "Cannot build manual" |
216 |
+ env - HOME="${T}" PATH="${PATH}" \ |
217 |
+ CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \ |
218 |
+ ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \ |
219 |
+ make -C doc/internals info html || die "Cannot build internal docs" |
220 |
+ fi |
221 |
+} |
222 |
+ |
223 |
+src_test() { |
224 |
+ ewarn "Unfortunately, it is known that some tests fail eg." |
225 |
+ ewarn "run-program.impure.lisp. This is an issue of the upstream's" |
226 |
+ ewarn "development and not of Gentoo's side. Please, before filing" |
227 |
+ ewarn "any bug(s) search for older submissions. Thank you." |
228 |
+ time ( cd tests && sh run-tests.sh ) |
229 |
+} |
230 |
+ |
231 |
+src_install() { |
232 |
+ # install system-wide initfile |
233 |
+ dodir /etc/ |
234 |
+ sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF |
235 |
+ ;;; The following is required if you want source location functions to |
236 |
+ ;;; work in SLIME, for example. |
237 |
+ X |
238 |
+ (setf (logical-pathname-translations "SYS") |
239 |
+ X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*") |
240 |
+ X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*"))) |
241 |
+ X |
242 |
+ ;;; Setup ASDF2 |
243 |
+ (load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp") |
244 |
+ EOF |
245 |
+ |
246 |
+ # Install documentation |
247 |
+ unset SBCL_HOME |
248 |
+ INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \ |
249 |
+ sh install.sh || die "install.sh failed" |
250 |
+ |
251 |
+ # bug #517008 |
252 |
+ pax-mark -mr "${D}"/usr/bin/sbcl |
253 |
+ |
254 |
+ # rm empty directories lest paludis complain about this |
255 |
+ find "${ED}" -empty -type d -exec rmdir -v {} + |
256 |
+ |
257 |
+ if use doc; then |
258 |
+ dodoc -r doc/internals/sbcl-internals |
259 |
+ |
260 |
+ doinfo doc/manual/*.info* |
261 |
+ doinfo doc/internals/sbcl-internals.info |
262 |
+ |
263 |
+ docinto internals-notes |
264 |
+ dodoc doc/internals-notes/* |
265 |
+ else |
266 |
+ rm -Rv "${ED}/usr/share/doc/${PF}" || die |
267 |
+ fi |
268 |
+ |
269 |
+ # install the SBCL source |
270 |
+ if use source; then |
271 |
+ ./clean.sh |
272 |
+ cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die |
273 |
+ fi |
274 |
+ |
275 |
+ # necessary for running newly-saved images |
276 |
+ echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}" |
277 |
+ echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}" |
278 |
+ doenvd "${ENVD}" |
279 |
+} |