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