Gentoo Archives: gentoo-commits

From: "José María Alonso" <nimiux@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/lisp:master commit in: dev-lisp/sbcl/files/, dev-lisp/sbcl/
Date: Tue, 04 Apr 2017 18:09:44
Message-Id: 1491329415.21e2aec9632483273ccc7d9dbfe6ecbf5aad99e0.nimiux@gentoo
1 commit: 21e2aec9632483273ccc7d9dbfe6ecbf5aad99e0
2 Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 4 18:10:15 2017 +0000
4 Commit: José María Alonso <nimiux <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 4 18:10:15 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/lisp.git/commit/?id=21e2aec9
7
8 dev-lisp/sbcl: Drops old versions
9
10 dev-lisp/sbcl/files/1.1.6-fix-svref.patch | 59 ------
11 dev-lisp/sbcl/files/bsd-sockets-test-1.2.patch | 24 ---
12 dev-lisp/sbcl/files/concurrency-test-1.2.6.patch | 24 ---
13 dev-lisp/sbcl/files/gentoo-fix_linux-os-c.patch | 14 --
14 .../gentoo-fix_nopie_for_hardened_toolchain.patch | 24 ---
15 ...7-gentoo-fix_nopie_for_hardened_toolchain.patch | 22 ---
16 dev-lisp/sbcl/sbcl-1.1.6-r3.ebuild | 205 --------------------
17 dev-lisp/sbcl/sbcl-1.1.7.ebuild | 204 --------------------
18 dev-lisp/sbcl/sbcl-1.2.6.ebuild | 206 ---------------------
19 9 files changed, 782 deletions(-)
20
21 diff --git a/dev-lisp/sbcl/files/1.1.6-fix-svref.patch b/dev-lisp/sbcl/files/1.1.6-fix-svref.patch
22 deleted file mode 100644
23 index 95861ad7..00000000
24 --- a/dev-lisp/sbcl/files/1.1.6-fix-svref.patch
25 +++ /dev/null
26 @@ -1,59 +0,0 @@
27 -commit 66ee499237be5778b44b0d7b2de396562137228e
28 -Author: Paul Khuong <pvk@×××.ca>
29 -Date: Sat Mar 30 19:22:46 2013 +0100
30 -
31 - Fix a compilation failure on svref of a symbol macro
32 -
33 - Introduced in 0892423b (faster SVREF and (SETF SVREF) compilation)
34 -
35 - Thanks to James M. Lawrence for the quick report, with a reduced
36 - test case.
37 -
38 -diff --git a/NEWS b/NEWS
39 -index 0774be8..0357268 100644
40 ---- a/NEWS
41 -+++ b/NEWS
42 -@@ -1,4 +1,8 @@
43 - ;;;; -*- coding: utf-8; fill-column: 78 -*-
44 -+changes relative to sbcl-1.1.6
45 -+ * bug fix: svref/(setf svref) on symbol macros don't crash the compiler
46 -+ anymore. (Minimal test case provided by James M. Lawrence on sbcl-devel)
47 -+
48 - changes in sbcl-1.1.6 relative to sbcl-1.1.5:
49 - * enhancement: the continuable error when defknown-ing over extant
50 - fndb entries can be ignored by passing :overwrite-fndb-silently t
51 -diff --git a/src/compiler/array-tran.lisp b/src/compiler/array-tran.lisp
52 -index a595e63..d70cdb5 100644
53 ---- a/src/compiler/array-tran.lisp
54 -+++ b/src/compiler/array-tran.lisp
55 -@@ -1023,7 +1023,7 @@
56 - (define-source-transform svref (vector index)
57 - (let ((elt-type (or (when (symbolp vector)
58 - (let ((var (lexenv-find vector vars)))
59 -- (when var
60 -+ (when (lambda-var-p var)
61 - (type-specifier
62 - (array-type-declared-element-type (lambda-var-type var))))))
63 - t)))
64 -@@ -1036,7 +1036,7 @@
65 - (define-source-transform %svset (vector index value)
66 - (let ((elt-type (or (when (symbolp vector)
67 - (let ((var (lexenv-find vector vars)))
68 -- (when var
69 -+ (when (lambda-var-p var)
70 - (type-specifier
71 - (array-type-declared-element-type (lambda-var-type var))))))
72 - t)))
73 -diff --git a/tests/compiler.pure.lisp b/tests/compiler.pure.lisp
74 -index 833c5ee..1a4fc7d 100644
75 ---- a/tests/compiler.pure.lisp
76 -+++ b/tests/compiler.pure.lisp
77 -@@ -4378,3 +4378,8 @@
78 - (with-test (:name :second-open-coded)
79 - (let ((fun (compile nil `(lambda (x) (second x)))))
80 - (assert (not (ctu:find-named-callees fun)))))
81 -+
82 -+(with-test (:name :svref-of-symbol-macro)
83 -+ (compile nil `(lambda (x)
84 -+ (symbol-macrolet ((sv x))
85 -+ (values (svref sv 0) (setf (svref sv 0) 99))))))
86
87 diff --git a/dev-lisp/sbcl/files/bsd-sockets-test-1.2.patch b/dev-lisp/sbcl/files/bsd-sockets-test-1.2.patch
88 deleted file mode 100644
89 index 7a7b12bd..00000000
90 --- a/dev-lisp/sbcl/files/bsd-sockets-test-1.2.patch
91 +++ /dev/null
92 @@ -1,24 +0,0 @@
93 -diff -r -U1 sbcl-1.2.2.orig/contrib/sb-bsd-sockets/tests.lisp sbcl-1.2.2/contrib/sb-bsd-sockets/tests.lisp
94 ---- sbcl-1.2.2.orig/contrib/sb-bsd-sockets/tests.lisp 2014-07-28 17:15:05.000000000 +0700
95 -+++ sbcl-1.2.2/contrib/sb-bsd-sockets/tests.lisp 2014-08-01 19:48:30.011931081 +0700
96 -@@ -31,11 +31,11 @@
97 - ;;; for unknown protocols...
98 --#-(and freebsd sb-thread)
99 --#-(and dragonfly sb-thread)
100 --(deftest get-protocol-by-name/error
101 -- (handler-case (get-protocol-by-name "nonexistent-protocol")
102 -- (unknown-protocol ()
103 -- t)
104 -- (:no-error ()
105 -- nil))
106 -- t)
107 -+;#-(and freebsd sb-thread)
108 -+;#-(and dragonfly sb-thread)
109 -+;(deftest get-protocol-by-name/error
110 -+; (handler-case (get-protocol-by-name "nonexistent-protocol")
111 -+; (unknown-protocol ()
112 -+; t)
113 -+; (:no-error ()
114 -+; nil))
115 -+; t)
116 -
117
118 diff --git a/dev-lisp/sbcl/files/concurrency-test-1.2.6.patch b/dev-lisp/sbcl/files/concurrency-test-1.2.6.patch
119 deleted file mode 100644
120 index b85fc168..00000000
121 --- a/dev-lisp/sbcl/files/concurrency-test-1.2.6.patch
122 +++ /dev/null
123 @@ -1,24 +0,0 @@
124 -diff -Nuar a/contrib/sb-concurrency/tests/test-frlock.lisp b/contrib/sb-concurrency/tests/test-frlock.lisp
125 ---- a/contrib/sb-concurrency/tests/test-frlock.lisp 2014-11-29 19:56:58.000000000 +0100
126 -+++ b/contrib/sb-concurrency/tests/test-frlock.lisp 2014-12-16 23:52:18.569947139 +0100
127 -@@ -22,9 +22,9 @@
128 - #+openbsd 0.01
129 - #-openbsd 0.0001)
130 -
131 --(defun test-frlocks (&key (reader-count 100) (read-count 1000000)
132 -+(defun test-frlocks (&key (reader-count 50) (read-count 500000)
133 - (outer-read-pause 0) (inner-read-pause 0)
134 -- (writer-count 10) (write-count (/ 1 *minimum-sleep*))
135 -+ (writer-count 10) (write-count 5000)
136 - (outer-write-pause *minimum-sleep*) (inner-write-pause 0))
137 - (let ((rw (make-frlock))
138 - (a 0)
139 -@@ -87,7 +87,7 @@
140 - #+sb-thread
141 - (deftest* (frlock.1 :fails-on :win32)
142 - (handler-case
143 -- (sb-ext:with-timeout 60 (test-frlocks))
144 -+ (sb-ext:with-timeout 240 (test-frlocks))
145 - (sb-ext:timeout (c)
146 - (error "~A" c)))
147 - nil
148
149 diff --git a/dev-lisp/sbcl/files/gentoo-fix_linux-os-c.patch b/dev-lisp/sbcl/files/gentoo-fix_linux-os-c.patch
150 deleted file mode 100644
151 index b5c59305..00000000
152 --- a/dev-lisp/sbcl/files/gentoo-fix_linux-os-c.patch
153 +++ /dev/null
154 @@ -1,14 +0,0 @@
155 ---- a/src/runtime/linux-os.c 2009-05-01 13:30:51.000000000 +0300
156 -+++ b/src/runtime/linux-os.c 2010-03-24 02:30:48.000000000 +0200
157 -@@ -56,11 +56,7 @@
158 - #include "cheneygc-internal.h"
159 - #endif
160 -
161 --#ifdef LISP_FEATURE_X86
162 --/* Prototype for personality(2). Done inline here since the header file
163 -- * for this isn't available on old versions of glibc. */
164 - int personality (unsigned long);
165 --#endif
166 -
167 - size_t os_vm_page_size;
168 -
169
170 diff --git a/dev-lisp/sbcl/files/gentoo-fix_nopie_for_hardened_toolchain.patch b/dev-lisp/sbcl/files/gentoo-fix_nopie_for_hardened_toolchain.patch
171 deleted file mode 100644
172 index d4f94ca2..00000000
173 --- a/dev-lisp/sbcl/files/gentoo-fix_nopie_for_hardened_toolchain.patch
174 +++ /dev/null
175 @@ -1,24 +0,0 @@
176 -diff -ur b/src/runtime/Config.x86-linux a/src/runtime/Config.x86-linux
177 ---- b/src/runtime/Config.x86-linux 2012-01-09 02:08:10.000000000 +0000
178 -+++ a/src/runtime/Config.x86-linux 2012-02-02 14:32:56.000000000 +0000
179 -@@ -27,7 +27,7 @@
180 - # (You *are* encouraged to design and implement a coherent stable
181 - # interface, though.:-| As far as I (WHN 2002-05-19) know, no one is
182 - # working on one and it would be a nice thing to have.)
183 --LINKFLAGS += -Wl,--export-dynamic -m32
184 -+LINKFLAGS += -Wl,--export-dynamic -m32 -nopie
185 - OS_LIBS = -ldl
186 -
187 - ifdef LISP_FEATURE_LARGEFILE
188 -diff -ur b/src/runtime/Config.x86_64-linux a/src/runtime/Config.x86_64-linux
189 ---- b/src/runtime/Config.x86_64-linux 2012-01-09 02:08:10.000000000 +0000
190 -+++ a/src/runtime/Config.x86_64-linux 2012-02-02 14:32:44.000000000 +0000
191 -@@ -27,7 +27,7 @@
192 - # (You *are* encouraged to design and implement a coherent stable
193 - # interface, though.:-| As far as I (WHN 2002-05-19) know, no one is
194 - # working on one and it would be a nice thing to have.)
195 --LINKFLAGS += -Wl,--export-dynamic
196 -+LINKFLAGS += -Wl,--export-dynamic -nopie
197 - OS_LIBS = -ldl
198 -
199 - ifdef LISP_FEATURE_LARGEFILE
200
201 diff --git a/dev-lisp/sbcl/files/sbcl-1.1.17-gentoo-fix_nopie_for_hardened_toolchain.patch b/dev-lisp/sbcl/files/sbcl-1.1.17-gentoo-fix_nopie_for_hardened_toolchain.patch
202 deleted file mode 100644
203 index bf03ada5..00000000
204 --- a/dev-lisp/sbcl/files/sbcl-1.1.17-gentoo-fix_nopie_for_hardened_toolchain.patch
205 +++ /dev/null
206 @@ -1,22 +0,0 @@
207 ---- sbcl-1.1.17-orig/src/runtime/Config.x86-linux 2014-03-31 03:14:22.000000000 +1100
208 -+++ sbcl-1.1.17/src/runtime/Config.x86-linux 2014-04-28 15:34:59.822482441 +1000
209 -@@ -27,7 +27,7 @@
210 - # (You *are* encouraged to design and implement a coherent stable
211 - # interface, though.:-| As far as I (WHN 2002-05-19) know, no one is
212 - # working on one and it would be a nice thing to have.)
213 --LINKFLAGS += -Wl,--export-dynamic -m32
214 -+LINKFLAGS += -Wl,--export-dynamic -m32 -nopie
215 - OS_LIBS = -ldl
216 -
217 - ifdef LISP_FEATURE_LARGEFILE
218 ---- sbcl-1.1.17-orig/src/runtime/Config.x86-64-linux 2014-03-31 03:14:22.000000000 +1100
219 -+++ sbcl-1.1.17/src/runtime/Config.x86-64-linux 2014-04-28 15:35:22.364623003 +1000
220 -@@ -27,7 +27,7 @@
221 - # (You *are* encouraged to design and implement a coherent stable
222 - # interface, though.:-| As far as I (WHN 2002-05-19) know, no one is
223 - # working on one and it would be a nice thing to have.)
224 --LINKFLAGS += -Wl,--export-dynamic
225 -+LINKFLAGS += -Wl,--export-dynamic -nopie
226 - OS_LIBS = -ldl
227 -
228 - ifdef LISP_FEATURE_LARGEFILE
229
230 diff --git a/dev-lisp/sbcl/sbcl-1.1.6-r3.ebuild b/dev-lisp/sbcl/sbcl-1.1.6-r3.ebuild
231 deleted file mode 100644
232 index 56854706..00000000
233 --- a/dev-lisp/sbcl/sbcl-1.1.6-r3.ebuild
234 +++ /dev/null
235 @@ -1,205 +0,0 @@
236 -# Copyright 1999-2016 Gentoo Foundation
237 -# Distributed under the terms of the GNU General Public License v2
238 -# $Id$
239 -
240 -EAPI=5
241 -inherit multilib eutils flag-o-matic pax-utils
242 -
243 -#same order as http://www.sbcl.org/platform-table.html
244 -BV_X86=1.0.58
245 -BV_AMD64=1.1.5
246 -BV_PPC=1.0.28
247 -BV_SPARC=1.0.28
248 -BV_ALPHA=1.0.28
249 -
250 -DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp."
251 -HOMEPAGE="http://sbcl.sourceforge.net/"
252 -SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
253 - x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
254 - amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
255 - ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
256 - sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
257 - alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )"
258 -
259 -RESTRICT="mirror"
260 -LICENSE="MIT"
261 -SLOT="0"
262 -KEYWORDS="~amd64 ~ppc ~sparc ~x86"
263 -IUSE="debug doc source +threads +unicode zlib"
264 -
265 -CDEPEND=">=dev-lisp/asdf-2.33-r3:="
266 -DEPEND="${CDEPEND}
267 - doc? ( <sys-apps/texinfo-5.0 >=media-gfx/graphviz-2.26.0 )"
268 -RDEPEND="${CDEPEND}
269 - elibc_glibc? ( >=sys-libs/glibc-2.3 || ( <sys-libs/glibc-2.6[nptl] >=sys-libs/glibc-2.6 ) )"
270 -
271 -# Disable warnings about executable stacks, as this won't be fixed soon by upstream
272 -QA_EXECSTACK="usr/bin/sbcl"
273 -
274 -CONFIG="${S}/customize-target-features.lisp"
275 -ENVD="${T}/50sbcl"
276 -
277 -# Prevent ASDF from using the system libraries
278 -CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
279 -ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
280 -
281 -usep() {
282 - use ${1} && echo "true" || echo "false"
283 -}
284 -
285 -sbcl_feature() {
286 - echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
287 -}
288 -
289 -sbcl_apply_features() {
290 - cat > "${CONFIG}" <<'EOF'
291 -(lambda (list)
292 - (flet ((enable (x) (pushnew x list))
293 - (disable (x) (setf list (remove x list))))
294 -EOF
295 - if use x86 || use amd64; then
296 - sbcl_feature "$(usep threads)" ":sb-thread"
297 - fi
298 - sbcl_feature "true" ":sb-ldb"
299 - sbcl_feature "false" ":sb-test"
300 - sbcl_feature "$(usep unicode)" ":sb-unicode"
301 - sbcl_feature "$(usep zlib)" ":sb-core-compression"
302 - sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
303 - cat >> "${CONFIG}" <<'EOF'
304 - )
305 - list)
306 -EOF
307 - cat "${CONFIG}"
308 -}
309 -
310 -src_unpack() {
311 - unpack ${A}
312 - mv sbcl-*-linux sbcl-binary || die
313 - cd "${S}"
314 -}
315 -
316 -src_prepare() {
317 - epatch "${FILESDIR}"/gentoo-fix_install_man.patch
318 - epatch "${FILESDIR}"/gentoo-fix_linux-os-c.patch
319 - epatch "${FILESDIR}"/1.1.6-fix-svref.patch
320 -
321 - # To make the hardened compiler NOT compile with -fPIE -pie
322 - if gcc-specs-pie ; then
323 - einfo "Disabling PIE..."
324 - epatch "${FILESDIR}"/gentoo-fix_nopie_for_hardened_toolchain.patch
325 - fi
326 -
327 - cp /usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
328 -
329 - use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
330 -
331 - # Some shells(such as dash) don't have "time" as builtin
332 - # and we don't want to DEPEND on sys-process/time
333 - sed "s,^time ,," -i make.sh || die
334 - sed "s,/lib,/$(get_libdir),g" -i install.sh || die
335 - # #define SBCL_HOME ...
336 - sed "s,/usr/local/lib,/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
337 -
338 - find . -type f -name .cvsignore -delete
339 -}
340 -
341 -src_configure() {
342 - # customizing SBCL version as per
343 - # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
344 - echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
345 -
346 - # applying customizations
347 - sbcl_apply_features
348 -}
349 -
350 -src_compile() {
351 - local bindir="${WORKDIR}"/sbcl-binary
352 -
353 - strip-unsupported-flags ; filter-flags -fomit-frame-pointer
354 -
355 - if host-is-pax ; then
356 - # To disable PaX on hardened systems
357 - pax-mark -C "${bindir}"/src/runtime/sbcl
358 - pax-mark -mr "${bindir}"/src/runtime/sbcl
359 -
360 - # Hack to disable PaX on second GENESIS stage
361 - sed -i -e '/load/!s/^echo \/\/doing warm.*$/&\npaxctl -C \.\/src\/runtime\/sbcl\npaxctl -mprexs \.\/src\/runtime\/sbcl/' \
362 - "${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
363 - fi
364 -
365 - # clear the environment to get rid of non-ASCII strings, see bug 174702
366 - # set HOME for paludis
367 - env - HOME="${T}" \
368 - CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
369 - CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
370 - GNUMAKE=make ./make.sh \
371 - "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
372 - || die "make failed"
373 -
374 - # need to set HOME because libpango(used by graphviz) complains about it
375 - if use doc; then
376 - env - HOME="${T}" \
377 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
378 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
379 - make -C doc/manual info html || die "Cannot build manual"
380 - env - HOME="${T}" \
381 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
382 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
383 - make -C doc/internals info html || die "Cannot build internal docs"
384 - fi
385 -}
386 -
387 -src_test() {
388 - ewarn "Unfortunately, it is known that some tests fail eg."
389 - ewarn "run-program.impure.lisp. This is an issue of the upstream's"
390 - ewarn "development and not of Gentoo's side. Please, before filing"
391 - ewarn "any bug(s) search for older submissions. Thank you."
392 - time ( cd tests && sh run-tests.sh )
393 -}
394 -
395 -src_install() {
396 - # install system-wide initfile
397 - dodir /etc/
398 - cat > "${D}"/etc/sbclrc <<EOF
399 -;;; The following is required if you want source location functions to
400 -;;; work in SLIME, for example.
401 -
402 -(setf (logical-pathname-translations "SYS")
403 - '(("SYS:SRC;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/src/**/*.*")
404 - ("SYS:CONTRIB;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/**/*.*")))
405 -
406 -;;; Setup ASDF2
407 -(load "/etc/common-lisp/gentoo-init.lisp")
408 -EOF
409 -
410 - # Install documentation
411 - unset SBCL_HOME
412 - INSTALL_ROOT="${D}/usr" LIB_DIR="/usr/$(get_libdir)" DOC_DIR="${D}/usr/share/doc/${PF}" \
413 - sh install.sh || die "install.sh failed"
414 -
415 - # rm empty directories lest paludis complain about this
416 - find "${D}" -empty -type d -exec rmdir -v {} +
417 -
418 - if use doc; then
419 - dohtml -r doc/manual/
420 - doinfo doc/manual/*.info*
421 - dohtml -r doc/internals/sbcl-internals
422 - doinfo doc/internals/sbcl-internals.info
423 - docinto internals-notes && dodoc doc/internals-notes/*
424 - else
425 - rm -Rv "${D}/usr/share/doc/${PF}" || die
426 - fi
427 -
428 - dodoc BUGS CREDITS INSTALL NEWS OPTIMIZATIONS PRINCIPLES README TLA TODO
429 -
430 - # install the SBCL source
431 - if use source; then
432 - ./clean.sh
433 - cp -av src "${D}/usr/$(get_libdir)/sbcl/" || die
434 - fi
435 -
436 - # necessary for running newly-saved images
437 - echo "SBCL_HOME=/usr/$(get_libdir)/${PN}" > "${ENVD}"
438 - echo "SBCL_SOURCE_ROOT=/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
439 - doenvd "${ENVD}"
440 -}
441
442 diff --git a/dev-lisp/sbcl/sbcl-1.1.7.ebuild b/dev-lisp/sbcl/sbcl-1.1.7.ebuild
443 deleted file mode 100644
444 index 1141cf8d..00000000
445 --- a/dev-lisp/sbcl/sbcl-1.1.7.ebuild
446 +++ /dev/null
447 @@ -1,204 +0,0 @@
448 -# Copyright 1999-2016 Gentoo Foundation
449 -# Distributed under the terms of the GNU General Public License v2
450 -# $Id$
451 -
452 -EAPI=5
453 -inherit multilib eutils flag-o-matic pax-utils
454 -
455 -#same order as http://www.sbcl.org/platform-table.html
456 -BV_X86=1.0.58
457 -BV_AMD64=1.1.5
458 -BV_PPC=1.0.28
459 -BV_SPARC=1.0.28
460 -BV_ALPHA=1.0.28
461 -
462 -DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp."
463 -HOMEPAGE="http://sbcl.sourceforge.net/"
464 -SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
465 - x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
466 - amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
467 - ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
468 - sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
469 - alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )"
470 -
471 -RESTRICT="mirror"
472 -LICENSE="MIT"
473 -SLOT="0"
474 -KEYWORDS="~amd64 ~ppc ~sparc ~x86"
475 -IUSE="debug doc source +threads +unicode zlib"
476 -
477 -CDEPEND=">=dev-lisp/asdf-2.33-r3:="
478 -DEPEND="${CDEPEND}
479 - doc? ( <sys-apps/texinfo-5.0 >=media-gfx/graphviz-2.26.0 )"
480 -RDEPEND="${CDEPEND}
481 - elibc_glibc? ( >=sys-libs/glibc-2.3 || ( <sys-libs/glibc-2.6[nptl] >=sys-libs/glibc-2.6 ) )"
482 -
483 -# Disable warnings about executable stacks, as this won't be fixed soon by upstream
484 -QA_EXECSTACK="usr/bin/sbcl"
485 -
486 -CONFIG="${S}/customize-target-features.lisp"
487 -ENVD="${T}/50sbcl"
488 -
489 -# Prevent ASDF from using the system libraries
490 -CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
491 -ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
492 -
493 -usep() {
494 - use ${1} && echo "true" || echo "false"
495 -}
496 -
497 -sbcl_feature() {
498 - echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
499 -}
500 -
501 -sbcl_apply_features() {
502 - cat > "${CONFIG}" <<'EOF'
503 -(lambda (list)
504 - (flet ((enable (x) (pushnew x list))
505 - (disable (x) (setf list (remove x list))))
506 -EOF
507 - if use x86 || use amd64; then
508 - sbcl_feature "$(usep threads)" ":sb-thread"
509 - fi
510 - sbcl_feature "true" ":sb-ldb"
511 - sbcl_feature "false" ":sb-test"
512 - sbcl_feature "$(usep unicode)" ":sb-unicode"
513 - sbcl_feature "$(usep zlib)" ":sb-core-compression"
514 - sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
515 - cat >> "${CONFIG}" <<'EOF'
516 - )
517 - list)
518 -EOF
519 - cat "${CONFIG}"
520 -}
521 -
522 -src_unpack() {
523 - unpack ${A}
524 - mv sbcl-*-linux sbcl-binary || die
525 - cd "${S}"
526 -}
527 -
528 -src_prepare() {
529 - epatch "${FILESDIR}"/gentoo-fix_install_man.patch
530 - epatch "${FILESDIR}"/gentoo-fix_linux-os-c.patch
531 -
532 - # To make the hardened compiler NOT compile with -fPIE -pie
533 - if gcc-specs-pie ; then
534 - einfo "Disabling PIE..."
535 - epatch "${FILESDIR}"/gentoo-fix_nopie_for_hardened_toolchain.patch
536 - fi
537 -
538 - cp /usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
539 -
540 - use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
541 -
542 - # Some shells(such as dash) don't have "time" as builtin
543 - # and we don't want to DEPEND on sys-process/time
544 - sed "s,^time ,," -i make.sh || die
545 - sed "s,/lib,/$(get_libdir),g" -i install.sh || die
546 - # #define SBCL_HOME ...
547 - sed "s,/usr/local/lib,/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
548 -
549 - find . -type f -name .cvsignore -delete
550 -}
551 -
552 -src_configure() {
553 - # customizing SBCL version as per
554 - # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
555 - echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
556 -
557 - # applying customizations
558 - sbcl_apply_features
559 -}
560 -
561 -src_compile() {
562 - local bindir="${WORKDIR}"/sbcl-binary
563 -
564 - strip-unsupported-flags ; filter-flags -fomit-frame-pointer
565 -
566 - if host-is-pax ; then
567 - # To disable PaX on hardened systems
568 - pax-mark -C "${bindir}"/src/runtime/sbcl
569 - pax-mark -mr "${bindir}"/src/runtime/sbcl
570 -
571 - # Hack to disable PaX on second GENESIS stage
572 - sed -i -e '/load/!s/^echo \/\/doing warm.*$/&\npaxctl -C \.\/src\/runtime\/sbcl\npaxctl -mprexs \.\/src\/runtime\/sbcl/' \
573 - "${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
574 - fi
575 -
576 - # clear the environment to get rid of non-ASCII strings, see bug 174702
577 - # set HOME for paludis
578 - env - HOME="${T}" \
579 - CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
580 - CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
581 - GNUMAKE=make ./make.sh \
582 - "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
583 - || die "make failed"
584 -
585 - # need to set HOME because libpango(used by graphviz) complains about it
586 - if use doc; then
587 - env - HOME="${T}" \
588 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
589 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
590 - make -C doc/manual info html || die "Cannot build manual"
591 - env - HOME="${T}" \
592 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
593 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
594 - make -C doc/internals info html || die "Cannot build internal docs"
595 - fi
596 -}
597 -
598 -src_test() {
599 - ewarn "Unfortunately, it is known that some tests fail eg."
600 - ewarn "run-program.impure.lisp. This is an issue of the upstream's"
601 - ewarn "development and not of Gentoo's side. Please, before filing"
602 - ewarn "any bug(s) search for older submissions. Thank you."
603 - time ( cd tests && sh run-tests.sh )
604 -}
605 -
606 -src_install() {
607 - # install system-wide initfile
608 - dodir /etc/
609 - cat > "${D}"/etc/sbclrc <<EOF
610 -;;; The following is required if you want source location functions to
611 -;;; work in SLIME, for example.
612 -
613 -(setf (logical-pathname-translations "SYS")
614 - '(("SYS:SRC;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/src/**/*.*")
615 - ("SYS:CONTRIB;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/**/*.*")))
616 -
617 -;;; Setup ASDF2
618 -(load "/etc/common-lisp/gentoo-init.lisp")
619 -EOF
620 -
621 - # Install documentation
622 - unset SBCL_HOME
623 - INSTALL_ROOT="${D}/usr" LIB_DIR="/usr/$(get_libdir)" DOC_DIR="${D}/usr/share/doc/${PF}" \
624 - sh install.sh || die "install.sh failed"
625 -
626 - # rm empty directories lest paludis complain about this
627 - find "${D}" -empty -type d -exec rmdir -v {} +
628 -
629 - if use doc; then
630 - dohtml -r doc/manual/
631 - doinfo doc/manual/*.info*
632 - dohtml -r doc/internals/sbcl-internals
633 - doinfo doc/internals/sbcl-internals.info
634 - docinto internals-notes && dodoc doc/internals-notes/*
635 - else
636 - rm -Rv "${D}/usr/share/doc/${PF}" || die
637 - fi
638 -
639 - dodoc BUGS CREDITS INSTALL NEWS OPTIMIZATIONS PRINCIPLES README TLA TODO
640 -
641 - # install the SBCL source
642 - if use source; then
643 - ./clean.sh
644 - cp -av src "${D}/usr/$(get_libdir)/sbcl/" || die
645 - fi
646 -
647 - # necessary for running newly-saved images
648 - echo "SBCL_HOME=/usr/$(get_libdir)/${PN}" > "${ENVD}"
649 - echo "SBCL_SOURCE_ROOT=/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
650 - doenvd "${ENVD}"
651 -}
652
653 diff --git a/dev-lisp/sbcl/sbcl-1.2.6.ebuild b/dev-lisp/sbcl/sbcl-1.2.6.ebuild
654 deleted file mode 100644
655 index 660ba9c9..00000000
656 --- a/dev-lisp/sbcl/sbcl-1.2.6.ebuild
657 +++ /dev/null
658 @@ -1,206 +0,0 @@
659 -# Copyright 1999-2016 Gentoo Foundation
660 -# Distributed under the terms of the GNU General Public License v2
661 -# $Id$
662 -
663 -EAPI=5
664 -inherit multilib eutils flag-o-matic pax-utils
665 -
666 -#same order as http://www.sbcl.org/platform-table.html
667 -BV_X86=1.0.58
668 -BV_AMD64=1.2.6
669 -BV_PPC=1.0.28
670 -BV_SPARC=1.0.28
671 -BV_ALPHA=1.0.28
672 -
673 -DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
674 -HOMEPAGE="http://sbcl.sourceforge.net/"
675 -SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
676 - x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
677 - amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
678 - ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
679 - sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
680 - alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )"
681 -
682 -LICENSE="MIT"
683 -SLOT="0/${PV}"
684 -KEYWORDS="~amd64 ~ppc ~sparc ~x86"
685 -IUSE="debug doc source +threads +unicode pax_kernel zlib"
686 -
687 -CDEPEND=">=dev-lisp/asdf-3.1:="
688 -DEPEND="${CDEPEND}
689 - doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
690 - pax_kernel? ( sys-apps/paxctl sys-apps/elfix )"
691 -RDEPEND="${CDEPEND}
692 - elibc_glibc? ( >=sys-libs/glibc-2.6 )"
693 -
694 -# Disable warnings about executable stacks, as this won't be fixed soon by upstream
695 -QA_EXECSTACK="usr/bin/sbcl"
696 -
697 -CONFIG="${S}/customize-target-features.lisp"
698 -ENVD="${T}/50sbcl"
699 -
700 -# Prevent ASDF from using the system libraries
701 -CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
702 -ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
703 -
704 -usep() {
705 - use ${1} && echo "true" || echo "false"
706 -}
707 -
708 -sbcl_feature() {
709 - echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
710 -}
711 -
712 -sbcl_apply_features() {
713 - sed 's/^X//' > "${CONFIG}" <<-'EOF'
714 - (lambda (list)
715 - X (flet ((enable (x) (pushnew x list))
716 - X (disable (x) (setf list (remove x list))))
717 - EOF
718 - if use x86 || use amd64; then
719 - sbcl_feature "$(usep threads)" ":sb-thread"
720 - fi
721 - sbcl_feature "true" ":sb-ldb"
722 - sbcl_feature "false" ":sb-test"
723 - sbcl_feature "$(usep unicode)" ":sb-unicode"
724 - sbcl_feature "$(usep zlib)" ":sb-core-compression"
725 - sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
726 - sed 's/^X//' >> "${CONFIG}" <<-'EOF'
727 - X )
728 - X list)
729 - EOF
730 - cat "${CONFIG}"
731 -}
732 -
733 -src_unpack() {
734 - unpack ${A}
735 - mv sbcl-*-linux sbcl-binary || die
736 - cd "${S}"
737 -}
738 -
739 -src_prepare() {
740 - epatch "${FILESDIR}"/gentoo-fix_install_man.patch
741 - # bug #468482
742 - epatch "${FILESDIR}/concurrency-test-${PV}.patch"
743 - # bug #486552
744 - epatch "${FILESDIR}"/bsd-sockets-test-1.2.patch
745 -
746 - # To make the hardened compiler NOT compile with -fPIE -pie
747 - if gcc-specs-pie ; then
748 - einfo "Disabling PIE..."
749 - epatch "${FILESDIR}"/${PN}-1.1.17-gentoo-fix_nopie_for_hardened_toolchain.patch
750 - fi
751 -
752 - cp /usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
753 -
754 - use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
755 -
756 - # Some shells(such as dash) don't have "time" as builtin
757 - # and we don't want to DEPEND on sys-process/time
758 - sed "s,^time ,," -i make.sh || die
759 - sed "s,/lib,/$(get_libdir),g" -i install.sh || die
760 - # #define SBCL_HOME ...
761 - sed "s,/usr/local/lib,/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
762 -
763 - find . -type f -name .cvsignore -delete
764 -}
765 -
766 -src_configure() {
767 - # customizing SBCL version as per
768 - # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
769 - echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
770 -
771 - # applying customizations
772 - sbcl_apply_features
773 -}
774 -
775 -src_compile() {
776 - local bindir="${WORKDIR}"/sbcl-binary
777 -
778 - strip-unsupported-flags ; filter-flags -fomit-frame-pointer
779 -
780 - if host-is-pax ; then
781 - # To disable PaX on hardened systems
782 - pax-mark -mr "${bindir}"/src/runtime/sbcl
783 -
784 - # Hack to disable PaX on second GENESIS stage
785 - sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \
786 - "${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
787 - fi
788 -
789 - # clear the environment to get rid of non-ASCII strings, see bug 174702
790 - # set HOME for paludis
791 - env - HOME="${T}" \
792 - CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
793 - CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
794 - GNUMAKE=make ./make.sh \
795 - "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
796 - || die "make failed"
797 -
798 - # need to set HOME because libpango(used by graphviz) complains about it
799 - if use doc; then
800 - env - HOME="${T}" \
801 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
802 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
803 - make -C doc/manual info html || die "Cannot build manual"
804 - env - HOME="${T}" \
805 - CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
806 - ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
807 - make -C doc/internals info html || die "Cannot build internal docs"
808 - fi
809 -}
810 -
811 -src_test() {
812 - ewarn "Unfortunately, it is known that some tests fail eg."
813 - ewarn "run-program.impure.lisp. This is an issue of the upstream's"
814 - ewarn "development and not of Gentoo's side. Please, before filing"
815 - ewarn "any bug(s) search for older submissions. Thank you."
816 - time ( cd tests && sh run-tests.sh )
817 -}
818 -
819 -src_install() {
820 - # install system-wide initfile
821 - dodir /etc/
822 - sed 's/^X//' > "${D}"/etc/sbclrc <<-EOF
823 - ;;; The following is required if you want source location functions to
824 - ;;; work in SLIME, for example.
825 - X
826 - (setf (logical-pathname-translations "SYS")
827 - X '(("SYS:SRC;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/src/**/*.*")
828 - X ("SYS:CONTRIB;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/**/*.*")))
829 - X
830 - ;;; Setup ASDF2
831 - (load "/etc/common-lisp/gentoo-init.lisp")
832 - EOF
833 -
834 - # Install documentation
835 - unset SBCL_HOME
836 - INSTALL_ROOT="${D}/usr" LIB_DIR="/usr/$(get_libdir)" DOC_DIR="${D}/usr/share/doc/${PF}" \
837 - sh install.sh || die "install.sh failed"
838 -
839 - # rm empty directories lest paludis complain about this
840 - find "${D}" -empty -type d -exec rmdir -v {} +
841 -
842 - if use doc; then
843 - dohtml -r doc/manual/
844 - doinfo doc/manual/*.info*
845 - dohtml -r doc/internals/sbcl-internals
846 - doinfo doc/internals/sbcl-internals.info
847 - docinto internals-notes && dodoc doc/internals-notes/*
848 - else
849 - rm -Rv "${D}/usr/share/doc/${PF}" || die
850 - fi
851 -
852 - dodoc BUGS CREDITS INSTALL NEWS OPTIMIZATIONS PRINCIPLES README TLA TODO
853 -
854 - # install the SBCL source
855 - if use source; then
856 - ./clean.sh
857 - cp -av src "${D}/usr/$(get_libdir)/sbcl/" || die
858 - fi
859 -
860 - # necessary for running newly-saved images
861 - echo "SBCL_HOME=/usr/$(get_libdir)/${PN}" > "${ENVD}"
862 - echo "SBCL_SOURCE_ROOT=/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
863 - doenvd "${ENVD}"
864 -}