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