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