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