1 |
commit: aa3a49d0a28df9c9dd4d39c9c105ed865393642d |
2 |
Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 8 18:02:50 2017 +0000 |
4 |
Commit: José María Alonso <nimiux <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 8 18:03:20 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa3a49d0 |
7 |
|
8 |
dev-lisp/sbcl: Bumps version to 1.3.14 |
9 |
|
10 |
Package-Manager: portage-2.3.3 |
11 |
|
12 |
dev-lisp/sbcl/Manifest | 3 + |
13 |
dev-lisp/sbcl/sbcl-1.3.14.ebuild | 241 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 244 insertions(+) |
15 |
|
16 |
diff --git a/dev-lisp/sbcl/Manifest b/dev-lisp/sbcl/Manifest |
17 |
index 9ba5469d55..17fd030750 100644 |
18 |
--- a/dev-lisp/sbcl/Manifest |
19 |
+++ b/dev-lisp/sbcl/Manifest |
20 |
@@ -13,8 +13,11 @@ DIST sbcl-1.3.0-source.tar.bz2 5722767 SHA256 d60caf6a0a495e41fc9e7f6a797e7c4188 |
21 |
DIST sbcl-1.3.0-x86-64-linux-binary.tar.bz2 9830954 SHA256 e6e801f0cc31fd6a14cf20b983c6ef2be5750225fad221bf9621788c0a0a90c5 SHA512 916fdd1627903b7227a6d5962a2534fa2cd9003f832b975c96d0e11c301d73c7c3225cfd4121f10cbcdde87dcac9079b9a48e6737ba9a3d2c18c484bae3c371d WHIRLPOOL a4372dd59df03e0e0e8d2359799e0580b6829e001c219ef28504cc7db8b3a8ad7429ecdcd36bb72ed5196192d9f66b2854c5b6960cd5f97c31afd758a17c6a67 |
22 |
DIST sbcl-1.3.11-source.tar.bz2 5790557 SHA256 077a2d98f94c62076bcb4dea715a11975b92d85d8de20f5a0d1c36d280397642 SHA512 07cce0b33f1d41bc208827d228ae356b56165bb55fab72c48973a15a63e2e680aafc16db67d36cc4952f71101faaacafd9660276cd67673314f1699d6a91af82 WHIRLPOOL 0e61c415775c4c11d111d6ae830f8be1611fd1674b23c2fc8fead59277af507adc9c4683b066fde9e3c0dfa52023b850f6714f2ec480901718d452e0f25818bf |
23 |
DIST sbcl-1.3.11-x86-64-linux-binary.tar.bz2 9248214 SHA256 9ab2c149b7ba43e7f6237c1a23e3037078db46a83913040958fa08dd6011dba5 SHA512 ffb443f9e3ede2f9dbdc1bf28554bd59ef1fd5ad855465ee10f9835221fde20211188e881be854b4760870b122dfc6c5ad5c8cad1bea613ffb3b6a6f67a36056 WHIRLPOOL 0a34701abd81cdea411ac37e276660e29f43279509bef28600e7084e9ffc525883e18c42338492b0ccb5fb21e85c91726f978aa20a87deeb92e813a15b36d9fa |
24 |
+DIST sbcl-1.3.12-armhf-linux-binary.tar.bz2 917504 SHA256 d11c5a7cd844e9f275b8c86a76137620ae856f357be822fe6b5c9a9e13edbbb2 SHA512 aa34ab53f5b579ba210a4808649782211f3ee8be7d80e970300822a7d256f818474fcfbed00e17818e0f800fbb80898bed8ac4f4aa9255ac8fd8ed0d4799b78d WHIRLPOOL cb4a5876a0372b9b60d4a47d169a9a0c2886db75badfb94e6ae83b540aba444a5ff126c2f7267e4670fbc806ca14a93e45b5e2e4795a084a3333d4561cae0c67 |
25 |
DIST sbcl-1.3.12-source.tar.bz2 5795516 SHA256 8039ec01d04baad3ee3ebee7a830757dc488be33ca128f4a0592f8af701759c2 SHA512 2a2969b826dcf9d568204a01546c47af777d5866baa8da809c49ace1655b54cd4c8db1872e322a1d08a4983b0962cc0e2e346816488212709b28867c53233275 WHIRLPOOL 019f5919d2203e1ffde465d460575ad8517e176723d00acc99c6c50bbdd7ee68b90df4c8f10ab63646b0a2f5266a0328182e3c55cbfa9562ef7bac2897011663 |
26 |
DIST sbcl-1.3.12-x86-64-linux-binary.tar.bz2 9235579 SHA256 6508577bd6a2769a74d7b6fa7885e12932acf7a18736c4df599fc41f1b5db237 SHA512 536710d498f98edc2ca9bd794a09d57b37fab2595d1b8eb2f4c1dff186d262c059b674a7786cf78f8bc4a87dc27dc3f7cc61c21bb826abc8a4e99854742595b0 WHIRLPOOL 41daaff2dbcbe4e4b172ae45c29987eee7aeb4ae37eddfb808cd9cb7600289559f79e8395930e7364fe28b00efdcd947ba951771e6b2724d59759221ec6a63e9 |
27 |
DIST sbcl-1.3.13-source.tar.bz2 5783599 SHA256 4c6935e4a9022637da95f2aab04d08326762f55a35942b40cb6a4276838c76cc SHA512 c0aac045f19f8f49642027eb37be21bb68b4cdb58895f4adbb92b67d0025ab50dd4eb1725d90c6a4ad592d59395d119623cdff3a2c838b2206efbf1e37d34f4e WHIRLPOOL d4451aa39c9a90c14a2986869915c343bd1397b58bc35910e63dc97284c8190cd071cf45fe704d2cb6185e9e304ae6166ca1fb90456289c3ebaf279e03cd31a3 |
28 |
DIST sbcl-1.3.13-x86-64-linux-binary.tar.bz2 9103731 SHA256 f92dbcb379f3a35ba13fd75a10912b767e5d8b2b10698413e5a217cea2f49cca SHA512 0e6302e408ea0b05f89c982a1660187cf2054cc65b464e340166c8fea962c4e52960f143cd2393491c60c83f5d90ff828a0807ee7f45bc1213ba5f13a6950c2b WHIRLPOOL 1e25fc22c6cf8725380cbe018d7a4a6875e457ec76428894f00568e8b9d3872ab4fdfee932d151efae5c726aca4161753131029347d5397e5f1dc9a4ea486e76 |
29 |
+DIST sbcl-1.3.14-source.tar.bz2 5784135 SHA256 bf963d58533d839eb76a8028abd17071708d964d5dce07787839cfb6d0d6dcca SHA512 3bcfb27c75864290f47814cdac3c6d0ab7e88fce2fef11062f71993383470bd4f9bc2888314e016a80d3a629d748bf45358261fd320bf67ce55981b2fba42420 WHIRLPOOL 9f2c5460ea604d71eacb8f197782fc2bc9c8d2c974c8e0b06cca56078c2f83cf513c99a4a717d4856316aded939a05146a44a5bcf8d4c314ffdaa970cdc03c6d |
30 |
+DIST sbcl-1.3.14-x86-64-linux-binary.tar.bz2 9077586 SHA256 84dae89aa4741cac41e163fe9c85b9ab42ff8c2cbdcb31111d60e9019e2d4235 SHA512 0bff8737f389bf59f1fed2d76de32ce977da9c8c685c7f73280eef93428edcc48ca451adc26a305ea31f23507d7c45ffa5893aa4add2418048a1087fab686534 WHIRLPOOL 194a775092a4a035b65126ec6de63c981796e3618ca324d431fa544dbdbaaf3b790574d2e3c6813125ed55ace4b58be0727f2b6f4abffb686e3b773fdc8d3149 |
31 |
DIST sbcl-1.3.9-armhf-linux-binary.tar.bz2 9161130 SHA256 da2d296a8ab107a7b2e10831836648d882b01193f60269853932af4f63a06571 SHA512 309e2ac7ef9ac95bf751432cf243af0de022c5b21054df2bf4e99da4ff087218af72b0ab3be69214eba3df1b6bbe707cc28840508e960c5d2ed2af0e86de3fdd WHIRLPOOL d2dde314d2b49e4246823032d953bbfe0858f7c69d0445da356426f9c5fac73036b32c1c048cf7f43615fa02707e8e434d8b085942e79d1e2b20f6fcb7e08919 |
32 |
|
33 |
diff --git a/dev-lisp/sbcl/sbcl-1.3.14.ebuild b/dev-lisp/sbcl/sbcl-1.3.14.ebuild |
34 |
new file mode 100644 |
35 |
index 0000000000..f737a35455 |
36 |
--- /dev/null |
37 |
+++ b/dev-lisp/sbcl/sbcl-1.3.14.ebuild |
38 |
@@ -0,0 +1,241 @@ |
39 |
+# Copyright 1999-2017 Gentoo Foundation |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+# $Id$ |
42 |
+ |
43 |
+EAPI=6 |
44 |
+inherit multilib eutils flag-o-matic pax-utils |
45 |
+ |
46 |
+#same order as http://www.sbcl.org/platform-table.html |
47 |
+BV_X86=1.2.7 |
48 |
+BV_AMD64=1.3.14 |
49 |
+BV_PPC=1.2.7 |
50 |
+BV_SPARC=1.0.28 |
51 |
+BV_ALPHA=1.0.28 |
52 |
+BV_ARM=1.3.12 |
53 |
+BV_ARM64=1.3.11 |
54 |
+BV_PPC_MACOS=1.0.47 |
55 |
+BV_X86_MACOS=1.1.6 |
56 |
+BV_X64_MACOS=1.2.11 |
57 |
+BV_SPARC_SOLARIS=1.0.23 |
58 |
+BV_X86_SOLARIS=1.2.7 |
59 |
+BV_X64_SOLARIS=1.2.7 |
60 |
+ |
61 |
+DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp" |
62 |
+HOMEPAGE="http://sbcl.sourceforge.net/" |
63 |
+SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2 |
64 |
+ x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 ) |
65 |
+ amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 ) |
66 |
+ ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 ) |
67 |
+ sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 ) |
68 |
+ alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 ) |
69 |
+ arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 ) |
70 |
+ ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 ) |
71 |
+ x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 ) |
72 |
+ x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 ) |
73 |
+ sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 ) |
74 |
+ x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 ) |
75 |
+ x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )" |
76 |
+ |
77 |
+LICENSE="MIT" |
78 |
+SLOT="0/${PV}" |
79 |
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris" |
80 |
+IUSE="debug doc source +threads +unicode pax_kernel zlib" |
81 |
+ |
82 |
+CDEPEND=">=dev-lisp/asdf-3.1:=" |
83 |
+DEPEND="${CDEPEND} |
84 |
+ doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 ) |
85 |
+ pax_kernel? ( sys-apps/elfix )" |
86 |
+RDEPEND="${CDEPEND} |
87 |
+ !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )" |
88 |
+ |
89 |
+# Disable warnings about executable stacks, as this won't be fixed soon by upstream |
90 |
+QA_EXECSTACK="usr/bin/sbcl" |
91 |
+ |
92 |
+CONFIG="${S}/customize-target-features.lisp" |
93 |
+ENVD="${T}/50sbcl" |
94 |
+ |
95 |
+# Prevent ASDF from using the system libraries |
96 |
+CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" |
97 |
+ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" |
98 |
+ |
99 |
+usep() { |
100 |
+ use ${1} && echo "true" || echo "false" |
101 |
+} |
102 |
+ |
103 |
+sbcl_feature() { |
104 |
+ echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}" |
105 |
+} |
106 |
+ |
107 |
+sbcl_apply_features() { |
108 |
+ sed 's/^X//' > "${CONFIG}" <<-'EOF' |
109 |
+ (lambda (list) |
110 |
+ X (flet ((enable (x) (pushnew x list)) |
111 |
+ X (disable (x) (setf list (remove x list)))) |
112 |
+ EOF |
113 |
+ if use x86 || use amd64; then |
114 |
+ sbcl_feature "$(usep threads)" ":sb-thread" |
115 |
+ fi |
116 |
+ sbcl_feature "true" ":sb-ldb" |
117 |
+ sbcl_feature "false" ":sb-test" |
118 |
+ sbcl_feature "$(usep unicode)" ":sb-unicode" |
119 |
+ sbcl_feature "$(usep zlib)" ":sb-core-compression" |
120 |
+ sbcl_feature "$(usep debug)" ":sb-xref-for-internals" |
121 |
+ sed 's/^X//' >> "${CONFIG}" <<-'EOF' |
122 |
+ X ) |
123 |
+ X list) |
124 |
+ EOF |
125 |
+ cat "${CONFIG}" |
126 |
+} |
127 |
+ |
128 |
+src_unpack() { |
129 |
+ unpack ${A} |
130 |
+ mv sbcl-*-* sbcl-binary || die |
131 |
+ cd "${S}" |
132 |
+} |
133 |
+ |
134 |
+src_prepare() { |
135 |
+ eapply "${FILESDIR}"/gentoo-fix_install_man.patch |
136 |
+ # bug #468482 |
137 |
+ eapply "${FILESDIR}"/concurrency-test-1.2.6.patch |
138 |
+ # bugs #486552, #527666, #517004 |
139 |
+ eapply "${FILESDIR}"/bsd-sockets-test-1.3.12.patch |
140 |
+ # bugs #560276, #561018 |
141 |
+ eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch |
142 |
+ |
143 |
+ eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch |
144 |
+ eapply "${FILESDIR}"/${PN}-1.2.13-verbose-build.patch |
145 |
+ |
146 |
+ # To make the hardened compiler NOT compile with -fPIE -pie |
147 |
+ if gcc-specs-pie ; then |
148 |
+ einfo "Disabling PIE..." |
149 |
+ eapply "${FILESDIR}"/${PN}-1.1.17-gentoo-fix_nopie_for_hardened_toolchain.patch |
150 |
+ fi |
151 |
+ |
152 |
+ eapply_user |
153 |
+ |
154 |
+ # bug #526194 |
155 |
+ sed -e "s@CFLAGS =.*\$@CFLAGS = ${CFLAGS} -g -Wall -Wsign-compare@" \ |
156 |
+ -e "s@LINKFLAGS =.*\$@LINKFLAGS = ${LDFLAGS} -g@" \ |
157 |
+ -i src/runtime/GNUmakefile || die |
158 |
+ |
159 |
+ sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \ |
160 |
+ -i make-config.sh || die |
161 |
+ |
162 |
+ cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die |
163 |
+ |
164 |
+ use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk |
165 |
+ |
166 |
+ # Some shells(such as dash) don't have "time" as builtin |
167 |
+ # and we don't want to DEPEND on sys-process/time |
168 |
+ sed "s,^time ,," -i make.sh || die |
169 |
+ sed "s,/lib,/$(get_libdir),g" -i install.sh || die |
170 |
+ # #define SBCL_HOME ... |
171 |
+ sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die |
172 |
+ # change location of /etc/sbclrc ... |
173 |
+ sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die |
174 |
+ |
175 |
+ find . -type f -name .cvsignore -delete |
176 |
+} |
177 |
+ |
178 |
+src_configure() { |
179 |
+ # customizing SBCL version as per |
180 |
+ # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup |
181 |
+ echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr |
182 |
+ |
183 |
+ # applying customizations |
184 |
+ sbcl_apply_features |
185 |
+} |
186 |
+ |
187 |
+src_compile() { |
188 |
+ local bindir="${WORKDIR}"/sbcl-binary |
189 |
+ |
190 |
+ strip-unsupported-flags ; filter-flags -fomit-frame-pointer |
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 |
+} |