1 |
commit: 49cce86fe5ac6f57f4913f39ce8bbbd925500897 |
2 |
Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 31 19:08:06 2017 +0000 |
4 |
Commit: José María Alonso <nimiux <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 31 19:08:06 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49cce86f |
7 |
|
8 |
dev-lisp/sbcl: Bumps version to 1.4.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
11 |
|
12 |
dev-lisp/sbcl/Manifest | 2 + |
13 |
dev-lisp/sbcl/metadata.xml | 24 ++-- |
14 |
dev-lisp/sbcl/sbcl-1.4.1.ebuild | 240 ++++++++++++++++++++++++++++++++++++++++ |
15 |
3 files changed, 254 insertions(+), 12 deletions(-) |
16 |
|
17 |
diff --git a/dev-lisp/sbcl/Manifest b/dev-lisp/sbcl/Manifest |
18 |
index 048c2bfe8d6..f89fad8bbe9 100644 |
19 |
--- a/dev-lisp/sbcl/Manifest |
20 |
+++ b/dev-lisp/sbcl/Manifest |
21 |
@@ -39,3 +39,5 @@ DIST sbcl-1.3.21-x86-64-linux-binary.tar.bz2 10633302 SHA256 c1c3e17e1857fb1c22a |
22 |
DIST sbcl-1.3.9-armhf-linux-binary.tar.bz2 9161130 SHA256 da2d296a8ab107a7b2e10831836648d882b01193f60269853932af4f63a06571 SHA512 309e2ac7ef9ac95bf751432cf243af0de022c5b21054df2bf4e99da4ff087218af72b0ab3be69214eba3df1b6bbe707cc28840508e960c5d2ed2af0e86de3fdd WHIRLPOOL d2dde314d2b49e4246823032d953bbfe0858f7c69d0445da356426f9c5fac73036b32c1c048cf7f43615fa02707e8e434d8b085942e79d1e2b20f6fcb7e08919 |
23 |
DIST sbcl-1.4.0-source.tar.bz2 5907661 SHA256 08d59ca79f78311304664d5093764cda94ff2693d92736d1321fa6074b570769 SHA512 fe22f06cf645b20445e55700cbb3a54d27de58f3cffafb67b0970a0f6962e9914708d0718ffd3dda0a75dfdf8c9f6830dd995ccf7e9c2384ee043eeb27bb3d1b WHIRLPOOL 2b229c0568b69ec9bd4ed74e37df88a9dedc1f4705747332180f730892ebca6943e118d1bbc848289e02168cb9e76e2c5f934087bfbbae5a2ad662c7f982790b |
24 |
DIST sbcl-1.4.0-x86-64-linux-binary.tar.bz2 10573661 SHA256 2b8d5256cb7e3057f47c3d81355d46dd96d966928652c011da613c519c532b67 SHA512 7cd8ea2a411b55a85df5113c0bcb63078d67c9c31edf12f3ee87075569436711725c325027b6bbdd6d5a2c79511da12a034278d734c7cc75c96f0a44941ee437 WHIRLPOOL e97ceb6736072d3e48885db92ccec0f153b79532c0ad6371c0cafa62f3d4d2f37984c92bfea12857f1f8ba0bfeb488e6332dac15c413e32f76b69905b13370ad |
25 |
+DIST sbcl-1.4.1-source.tar.bz2 5935675 SHA256 e8c7c6068241b13941d357a0a1f5a04ba04c7c83a52b00f0fbe296770872aae1 SHA512 d9f77194c096724bb1f212e1f5c2086d781ca4c7180c0ce524f892d259ac4a0adabccce468eb5eca511d3b1e9054fbcac9716e757352d71ddacf7710e681616c WHIRLPOOL 632c7b5ea46449239e21118208ec8e43cbd26404ba809d071f12b8c75ff98944c2a73932cecf42fc336bfef30c185341ceb88ba427a0825a28de1fbf0260627a |
26 |
+DIST sbcl-1.4.1-x86-64-linux-binary.tar.bz2 10566390 SHA256 77e08c682b12cc9b19a36addd63b65d781b1cd12a92727e673d4a016760255ca SHA512 bbf7f5d5d7d729e54f8c3eb85c270aeae690fe3ccde088825f71c3b8b317d0126b4f52a06db73992f200e7ee9fa14328ee0cb399f79adb8b24217d4b7cea9c06 WHIRLPOOL 16aa37d7580eb792cc169297c575a0512e53d39e065f1060631d2ff21599835c7fcb2a467defa2e8e7e73850f6cbc9f4e128c51beed3152224302430a55a60d3 |
27 |
|
28 |
diff --git a/dev-lisp/sbcl/metadata.xml b/dev-lisp/sbcl/metadata.xml |
29 |
index e4a3f6aa22b..a9ce7fa666f 100644 |
30 |
--- a/dev-lisp/sbcl/metadata.xml |
31 |
+++ b/dev-lisp/sbcl/metadata.xml |
32 |
@@ -20,18 +20,18 @@ |
33 |
<name>Proxy Maintainers</name> |
34 |
</maintainer> |
35 |
<longdescription>Steel Bank Common Lisp is an open source Common |
36 |
- Lisp implementation. It provides an integrated native compiler, |
37 |
- interpreter, and debugger. SBCL is a fork off of the main branch |
38 |
- of CMUCL. SBCL is distinguished from CMUCL by a greater emphasis |
39 |
- on maintainability. In particular, the SBCL system can be built |
40 |
- directly from its source code, so that the output corresponds to |
41 |
- the source code in a controlled, verifiable way, and arbitrary |
42 |
- changes can be made to the system without causing bootstrapping |
43 |
- problems. SBCL also places less emphasis than CMU CL does on new |
44 |
- non-ANSI extensions, or on backward compatibility with old |
45 |
- non-ANSI features. Support for native threading on GNU/Linux is |
46 |
- available for the x86 and amd64 platforms using an NPTL enabled |
47 |
- GLIBC. SBCL 0.8.17 and later support Unicode. |
48 |
+ Lisp implementation. It provides an integrated native compiler, |
49 |
+ interpreter, and debugger. SBCL is a fork off of the main branch |
50 |
+ of CMUCL. SBCL is distinguished from CMUCL by a greater emphasis |
51 |
+ on maintainability. In particular, the SBCL system can be built |
52 |
+ directly from its source code, so that the output corresponds to |
53 |
+ the source code in a controlled, verifiable way, and arbitrary |
54 |
+ changes can be made to the system without causing bootstrapping |
55 |
+ problems. SBCL also places less emphasis than CMU CL does on new |
56 |
+ non-ANSI extensions, or on backward compatibility with old |
57 |
+ non-ANSI features. Support for native threading on GNU/Linux is |
58 |
+ available for the x86 and amd64 platforms using an NPTL enabled |
59 |
+ GLIBC. SBCL 0.8.17 and later support Unicode. |
60 |
</longdescription> |
61 |
<use> |
62 |
<flag name="pax_kernel">Enable if the user plans to run the package under a pax enabled hardened kernel</flag> |
63 |
|
64 |
diff --git a/dev-lisp/sbcl/sbcl-1.4.1.ebuild b/dev-lisp/sbcl/sbcl-1.4.1.ebuild |
65 |
new file mode 100644 |
66 |
index 00000000000..adb1f0e29a5 |
67 |
--- /dev/null |
68 |
+++ b/dev-lisp/sbcl/sbcl-1.4.1.ebuild |
69 |
@@ -0,0 +1,240 @@ |
70 |
+# Copyright 1999-2017 Gentoo Foundation |
71 |
+# Distributed under the terms of the GNU General Public License v2 |
72 |
+ |
73 |
+EAPI=6 |
74 |
+ |
75 |
+inherit multilib eutils flag-o-matic pax-utils |
76 |
+ |
77 |
+#same order as http://www.sbcl.org/platform-table.html |
78 |
+BV_X86=1.2.7 |
79 |
+BV_AMD64=1.4.1 |
80 |
+BV_PPC=1.2.7 |
81 |
+BV_SPARC=1.0.28 |
82 |
+BV_ALPHA=1.0.28 |
83 |
+BV_ARM=1.3.12 |
84 |
+BV_ARM64=1.3.16 |
85 |
+BV_PPC_MACOS=1.0.47 |
86 |
+BV_X86_MACOS=1.1.6 |
87 |
+BV_X64_MACOS=1.2.11 |
88 |
+BV_SPARC_SOLARIS=1.0.23 |
89 |
+BV_X86_SOLARIS=1.2.7 |
90 |
+BV_X64_SOLARIS=1.2.7 |
91 |
+ |
92 |
+DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp" |
93 |
+HOMEPAGE="http://sbcl.sourceforge.net/" |
94 |
+SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2 |
95 |
+ x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 ) |
96 |
+ amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 ) |
97 |
+ ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 ) |
98 |
+ sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 ) |
99 |
+ alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 ) |
100 |
+ arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 ) |
101 |
+ arm64? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM64}-arm64-linux-binary.tar.bz2 ) |
102 |
+ ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 ) |
103 |
+ x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 ) |
104 |
+ x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 ) |
105 |
+ sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 ) |
106 |
+ x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 ) |
107 |
+ x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )" |
108 |
+ |
109 |
+LICENSE="MIT" |
110 |
+SLOT="0/${PV}" |
111 |
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris" |
112 |
+IUSE="debug doc source +threads +unicode pax_kernel zlib" |
113 |
+ |
114 |
+CDEPEND=">=dev-lisp/asdf-3.1:=" |
115 |
+DEPEND="${CDEPEND} |
116 |
+ doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 ) |
117 |
+ pax_kernel? ( sys-apps/elfix )" |
118 |
+RDEPEND="${CDEPEND} |
119 |
+ !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )" |
120 |
+ |
121 |
+# Disable warnings about executable stacks, as this won't be fixed soon by upstream |
122 |
+QA_EXECSTACK="usr/bin/sbcl" |
123 |
+ |
124 |
+CONFIG="${S}/customize-target-features.lisp" |
125 |
+ENVD="${T}/50sbcl" |
126 |
+ |
127 |
+# Prevent ASDF from using the system libraries |
128 |
+CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" |
129 |
+ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" |
130 |
+ |
131 |
+usep() { |
132 |
+ use ${1} && echo "true" || echo "false" |
133 |
+} |
134 |
+ |
135 |
+sbcl_feature() { |
136 |
+ echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}" |
137 |
+} |
138 |
+ |
139 |
+sbcl_apply_features() { |
140 |
+ sed 's/^X//' > "${CONFIG}" <<-'EOF' |
141 |
+ (lambda (list) |
142 |
+ X (flet ((enable (x) (pushnew x list)) |
143 |
+ X (disable (x) (setf list (remove x list)))) |
144 |
+ EOF |
145 |
+ if use x86 || use amd64; then |
146 |
+ sbcl_feature "$(usep threads)" ":sb-thread" |
147 |
+ fi |
148 |
+ sbcl_feature "true" ":sb-ldb" |
149 |
+ sbcl_feature "false" ":sb-test" |
150 |
+ sbcl_feature "$(usep unicode)" ":sb-unicode" |
151 |
+ sbcl_feature "$(usep zlib)" ":sb-core-compression" |
152 |
+ sbcl_feature "$(usep debug)" ":sb-xref-for-internals" |
153 |
+ sed 's/^X//' >> "${CONFIG}" <<-'EOF' |
154 |
+ X ) |
155 |
+ X list) |
156 |
+ EOF |
157 |
+ cat "${CONFIG}" |
158 |
+} |
159 |
+ |
160 |
+src_unpack() { |
161 |
+ unpack ${A} |
162 |
+ mv sbcl-*-* sbcl-binary || die |
163 |
+ cd "${S}" |
164 |
+} |
165 |
+ |
166 |
+src_prepare() { |
167 |
+ # bug #468482 |
168 |
+ eapply "${FILESDIR}"/concurrency-test-1.3.15.patch |
169 |
+ # bugs #486552, #527666, #517004 |
170 |
+ eapply "${FILESDIR}"/${PN}-1.4.0-bsd-sockets-test.patch |
171 |
+ # bugs #560276, #561018 |
172 |
+ eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch |
173 |
+ |
174 |
+ eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch |
175 |
+ eapply "${FILESDIR}"/${PN}-1.4.0-verbose-build.patch |
176 |
+ |
177 |
+ eapply_user |
178 |
+ |
179 |
+ # bugs #526194, #620532 |
180 |
+ sed -e "s@CFLAGS +=.*\$@CFLAGS = ${CFLAGS} -Wall -Wsign-compare -Wpointer-arith@" \ |
181 |
+ -e "s@LINKFLAGS += -g\$@LINKFLAGS = ${LDFLAGS}@" \ |
182 |
+ -e "s@LINKFLAGS += -no-pie\$@LINKFLAGS = ${LDFLAGS} -no-pie@" \ |
183 |
+ -e "s@LINKFLAGS += -nopie\$@LINKFLAGS = ${LDFLAGS} -nopie@" \ |
184 |
+ -i src/runtime/GNUmakefile || die |
185 |
+ |
186 |
+ sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \ |
187 |
+ -i make-config.sh || die |
188 |
+ |
189 |
+ # Use installed ASDF version |
190 |
+ cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die |
191 |
+ # Avoid installation of ASDF info page. See bug #605752 |
192 |
+ sed '/INFOFILES/s/asdf.info//' -i doc/manual/Makefile || die |
193 |
+ |
194 |
+ use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk |
195 |
+ |
196 |
+ # Some shells(such as dash) don't have "time" as builtin |
197 |
+ # and we don't want to DEPEND on sys-process/time |
198 |
+ sed "s,^time ,," -i make.sh || die |
199 |
+ sed "s,/lib,/$(get_libdir),g" -i install.sh || die |
200 |
+ # #define SBCL_HOME ... |
201 |
+ sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die |
202 |
+ # change location of /etc/sbclrc ... |
203 |
+ sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die |
204 |
+ |
205 |
+ find . -type f -name .cvsignore -delete |
206 |
+} |
207 |
+ |
208 |
+src_configure() { |
209 |
+ # customizing SBCL version as per |
210 |
+ # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup |
211 |
+ echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr |
212 |
+ |
213 |
+ # applying customizations |
214 |
+ sbcl_apply_features |
215 |
+} |
216 |
+ |
217 |
+src_compile() { |
218 |
+ local bindir="${WORKDIR}"/sbcl-binary |
219 |
+ |
220 |
+ strip-unsupported-flags ; filter-flags -fomit-frame-pointer |
221 |
+ |
222 |
+ if use pax_kernel ; then |
223 |
+ # To disable PaX on hardened systems |
224 |
+ pax-mark -mr "${bindir}"/src/runtime/sbcl |
225 |
+ |
226 |
+ # Hack to disable PaX on second GENESIS stage |
227 |
+ sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \ |
228 |
+ "${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime" |
229 |
+ fi |
230 |
+ |
231 |
+ # clear the environment to get rid of non-ASCII strings, see bug #174702 |
232 |
+ # set HOME for paludis |
233 |
+ env - HOME="${T}" PATH="${PATH}" \ |
234 |
+ CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \ |
235 |
+ CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \ |
236 |
+ GNUMAKE=make ./make.sh \ |
237 |
+ "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \ |
238 |
+ || die "make failed" |
239 |
+ |
240 |
+ # need to set HOME because libpango(used by graphviz) complains about it |
241 |
+ if use doc; then |
242 |
+ env - HOME="${T}" PATH="${PATH}" \ |
243 |
+ CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \ |
244 |
+ ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \ |
245 |
+ make -C doc/manual info html || die "Cannot build manual" |
246 |
+ env - HOME="${T}" PATH="${PATH}" \ |
247 |
+ CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \ |
248 |
+ ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \ |
249 |
+ make -C doc/internals info html || die "Cannot build internal docs" |
250 |
+ fi |
251 |
+} |
252 |
+ |
253 |
+src_test() { |
254 |
+ ewarn "Unfortunately, it is known that some tests fail eg." |
255 |
+ ewarn "run-program.impure.lisp. This is an issue of the upstream's" |
256 |
+ ewarn "development and not of Gentoo's side. Please, before filing" |
257 |
+ ewarn "any bug(s) search for older submissions. Thank you." |
258 |
+ time ( cd tests && sh run-tests.sh ) |
259 |
+} |
260 |
+ |
261 |
+src_install() { |
262 |
+ # install system-wide initfile |
263 |
+ dodir /etc/ |
264 |
+ sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF |
265 |
+ ;;; The following is required if you want source location functions to |
266 |
+ ;;; work in SLIME, for example. |
267 |
+ X |
268 |
+ (setf (logical-pathname-translations "SYS") |
269 |
+ X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*") |
270 |
+ X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*"))) |
271 |
+ X |
272 |
+ ;;; Setup ASDF2 |
273 |
+ (load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp") |
274 |
+ EOF |
275 |
+ |
276 |
+ # Install documentation |
277 |
+ unset SBCL_HOME |
278 |
+ INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \ |
279 |
+ sh install.sh || die "install.sh failed" |
280 |
+ |
281 |
+ # bug #517008 |
282 |
+ pax-mark -mr "${D}"/usr/bin/sbcl |
283 |
+ |
284 |
+ # rm empty directories lest paludis complain about this |
285 |
+ find "${ED}" -empty -type d -exec rmdir -v {} + |
286 |
+ |
287 |
+ if use doc; then |
288 |
+ dodoc -r doc/internals/sbcl-internals |
289 |
+ |
290 |
+ doinfo doc/manual/*.info* |
291 |
+ doinfo doc/internals/sbcl-internals.info |
292 |
+ |
293 |
+ docinto internals-notes |
294 |
+ dodoc doc/internals-notes/* |
295 |
+ else |
296 |
+ rm -Rv "${ED}/usr/share/doc/${PF}" || die |
297 |
+ fi |
298 |
+ |
299 |
+ # install the SBCL source |
300 |
+ if use source; then |
301 |
+ ./clean.sh |
302 |
+ cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die |
303 |
+ fi |
304 |
+ |
305 |
+ # necessary for running newly-saved images |
306 |
+ echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}" |
307 |
+ echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}" |
308 |
+ doenvd "${ENVD}" |
309 |
+} |