1 |
commit: 4da2b081512174f7f86d19fe5625c3edbe19aec3 |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 2 14:12:46 2022 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 2 14:12:46 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4da2b081 |
7 |
|
8 |
dev-lisp/sbcl: bump to 2.2.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org> |
12 |
|
13 |
dev-lisp/sbcl/Manifest | 2 + |
14 |
dev-lisp/sbcl/sbcl-2.2.0.ebuild | 238 ++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 240 insertions(+) |
16 |
|
17 |
diff --git a/dev-lisp/sbcl/Manifest b/dev-lisp/sbcl/Manifest |
18 |
index 0e519f0954ce..584d7c385a7b 100644 |
19 |
--- a/dev-lisp/sbcl/Manifest |
20 |
+++ b/dev-lisp/sbcl/Manifest |
21 |
@@ -22,3 +22,5 @@ DIST sbcl-2.1.11-source.tar.bz2 6687529 BLAKE2B 06deb2cc4f55aeb9ddfdf267d541ffbd |
22 |
DIST sbcl-2.1.11-x86-64-linux-binary.tar.bz2 10159401 BLAKE2B e40631dd49dea23759c6f8330944c354ca025c11765ee18f64a92faaa64aea05504ba4ff431651ea8403a7c8ac6705364bde826736ec5e1d378f197b3c233867 SHA512 ac3c5cbd8df596c838d61833e431427c80875b2f5379a855d4426cebf5d90fc5210d74b28db9c3fdbef4d315eeaba75fc18fd9f2f129a1e72d90fa1055421d6b |
23 |
DIST sbcl-2.1.8-source.tar.bz2 6663139 BLAKE2B 3a1bdadfcda284c6f7c909f996bc9f9a5d0a1132a55b68d435d89138b2d144f48848d33f1c38d2b7728711660b59a0ee70e3d76f88f6528dc37e3661c7621f62 SHA512 0e2d839d262cb60b35a20558bb64b5bf4b4158dd8008c1efef74b99e300e4412b20fd9af99633ad5a0cc3c91bbfc34405ce7012d95195517d6b6f425904fb4d3 |
24 |
DIST sbcl-2.1.8-x86-64-linux-binary.tar.bz2 10118495 BLAKE2B 5fd53f4e491018f4abd98ef3026982d80777f8ef38e046078679e452a00b3fddecf65139f69d1c43e21c13e1ef9b061c8d89c09de2454376a0a4e9aea2ec90f0 SHA512 9415290c1cd7d4fcb2f4da689c341af3d52346e25059a118a06fc2dd24f622ed0a7f664adddba3adb2b0ceb07c6a49a3ac9dbacf2e326d5813c44d330a6fe258 |
25 |
+DIST sbcl-2.2.0-source.tar.bz2 6697729 BLAKE2B de89a3725ab68e7c189b225ee43bda3f53ca457c7c63a12c593e6f44559833cb1c95bda4e66181429a32cff614177a5650f94b45add5a5013c7a80b43608c04d SHA512 0afd424e6b8dbc574e928fbfb1ce264211b94e5bdef35b131a9f672b5051819d6978ea5338863e1321305dc562d8d81ae33c1e1fffdbaf6a60a3fbef0926e99f |
26 |
+DIST sbcl-2.2.0-x86-64-linux-binary.tar.bz2 10178679 BLAKE2B 7a38af9f548807852fc602bb2cb4be3d50ab9fef875919f5c38df6fa9a43e80323cd005064c2e373cbb72d8e7e01a1ee4e0732c3ca9b8ee558e6c2f965d4631f SHA512 a148cf90b2b31ecd49a767468355eca166f428d491588ce5bd577da6efa32e0531b92fba1bfbf034b058a9af8baa45842e41ec24411bd3d5766b9cf20206453b |
27 |
|
28 |
diff --git a/dev-lisp/sbcl/sbcl-2.2.0.ebuild b/dev-lisp/sbcl/sbcl-2.2.0.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..3f76c8467042 |
31 |
--- /dev/null |
32 |
+++ b/dev-lisp/sbcl/sbcl-2.2.0.ebuild |
33 |
@@ -0,0 +1,238 @@ |
34 |
+# Copyright 1999-2022 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
38 |
+ |
39 |
+inherit multilib 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.2.0 |
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 zlib" |
75 |
+ |
76 |
+CDEPEND=">=dev-lisp/asdf-3.3:=" |
77 |
+BDEPEND="${CDEPEND} |
78 |
+ doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )" |
79 |
+RDEPEND="${CDEPEND} |
80 |
+ !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )" |
81 |
+ |
82 |
+# Disable warnings about executable stacks, as this won't be fixed soon by upstream |
83 |
+QA_EXECSTACK="usr/bin/sbcl" |
84 |
+ |
85 |
+CONFIG="${S}/customize-target-features.lisp" |
86 |
+ENVD="${T}/50sbcl" |
87 |
+ |
88 |
+# Prevent ASDF from using the system libraries |
89 |
+CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" |
90 |
+ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" |
91 |
+ |
92 |
+usep() { |
93 |
+ use ${1} && echo "true" || echo "false" |
94 |
+} |
95 |
+ |
96 |
+sbcl_feature() { |
97 |
+ echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}" |
98 |
+} |
99 |
+ |
100 |
+sbcl_apply_features() { |
101 |
+ sed 's/^X//' > "${CONFIG}" <<-'EOF' |
102 |
+ (lambda (list) |
103 |
+ X (flet ((enable (x) (pushnew x list)) |
104 |
+ X (disable (x) (setf list (remove x list)))) |
105 |
+ EOF |
106 |
+ if use x86 || use amd64; then |
107 |
+ sbcl_feature "$(usep threads)" ":sb-thread" |
108 |
+ fi |
109 |
+ sbcl_feature "true" ":sb-ldb" |
110 |
+ sbcl_feature "false" ":sb-test" |
111 |
+ sbcl_feature "$(usep unicode)" ":sb-unicode" |
112 |
+ sbcl_feature "$(usep zlib)" ":sb-core-compression" |
113 |
+ sbcl_feature "$(usep debug)" ":sb-xref-for-internals" |
114 |
+ sed 's/^X//' >> "${CONFIG}" <<-'EOF' |
115 |
+ X ) |
116 |
+ X list) |
117 |
+ EOF |
118 |
+ cat "${CONFIG}" |
119 |
+} |
120 |
+ |
121 |
+src_unpack() { |
122 |
+ unpack ${A} |
123 |
+ mv sbcl-*-* sbcl-binary || die |
124 |
+ cd "${S}" |
125 |
+} |
126 |
+ |
127 |
+src_prepare() { |
128 |
+ # bug #468482 |
129 |
+ eapply "${FILESDIR}"/concurrency-test-2.0.1.patch |
130 |
+ # bugs #486552, #527666, #517004 |
131 |
+ eapply "${FILESDIR}"/bsd-sockets-test-2.0.5.patch |
132 |
+ # bugs #560276, #561018 |
133 |
+ eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch |
134 |
+ # bug #767742 |
135 |
+ eapply "${FILESDIR}"/etags-2.1.0.patch |
136 |
+ |
137 |
+ eapply "${FILESDIR}"/verbose-build-2.0.3.patch |
138 |
+ |
139 |
+ eapply_user |
140 |
+ |
141 |
+ # Make sure the *FLAGS variables are sane. |
142 |
+ # sbcl needs symbols in resulting binaries, so building with the -s linker flag will fail. |
143 |
+ strip-unsupported-flags |
144 |
+ filter-flags -fomit-frame-pointer -Wl,-s |
145 |
+ filter-ldflags -s |
146 |
+ |
147 |
+ # original bugs #526194, #620532 |
148 |
+ # this broke no-pie default builds, c.f. bug #632670 |
149 |
+ # Pass CFLAGS down by appending our value, to let users override |
150 |
+ # the default values. |
151 |
+ # Keep passing LDFLAGS down via the LINKFLAGS variable. |
152 |
+ sed -e "s@\(CFLAGS += -g .*\)\$@\1 ${CFLAGS}@" \ |
153 |
+ -e "s@LINKFLAGS += -g\$@LINKFLAGS += ${LDFLAGS}@" \ |
154 |
+ -i src/runtime/GNUmakefile || die |
155 |
+ |
156 |
+ sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \ |
157 |
+ -i make-config.sh || die |
158 |
+ |
159 |
+ # Use installed ASDF version |
160 |
+ cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die |
161 |
+ # Avoid installation of ASDF info page. See bug #605752 |
162 |
+ sed '/INFOFILES/s/asdf.info//' -i doc/manual/Makefile || 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 |
+ # clear the environment to get rid of non-ASCII strings, see bug #174702 |
191 |
+ # set HOME for paludis |
192 |
+ env - HOME="${T}" PATH="${PATH}" \ |
193 |
+ CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \ |
194 |
+ CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \ |
195 |
+ GNUMAKE=make ./make.sh \ |
196 |
+ "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \ |
197 |
+ || die "make failed" |
198 |
+ |
199 |
+ # need to set HOME because libpango(used by graphviz) complains about it |
200 |
+ if use doc; then |
201 |
+ env - HOME="${T}" PATH="${PATH}" \ |
202 |
+ CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \ |
203 |
+ ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \ |
204 |
+ make -C doc/manual info html || die "Cannot build manual" |
205 |
+ env - HOME="${T}" PATH="${PATH}" \ |
206 |
+ CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \ |
207 |
+ ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \ |
208 |
+ make -C doc/internals info html || die "Cannot build internal docs" |
209 |
+ fi |
210 |
+} |
211 |
+ |
212 |
+src_test() { |
213 |
+ ewarn "Unfortunately, it is known that some tests fail eg." |
214 |
+ ewarn "run-program.impure.lisp. This is an issue of the upstream's" |
215 |
+ ewarn "development and not of Gentoo's side. Please, before filing" |
216 |
+ ewarn "any bug(s) search for older submissions. Thank you." |
217 |
+ time ( cd tests && sh run-tests.sh ) |
218 |
+} |
219 |
+ |
220 |
+src_install() { |
221 |
+ # install system-wide initfile |
222 |
+ dodir /etc/ |
223 |
+ sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF |
224 |
+ ;;; The following is required if you want source location functions to |
225 |
+ ;;; work in SLIME, for example. |
226 |
+ X |
227 |
+ (setf (logical-pathname-translations "SYS") |
228 |
+ X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*") |
229 |
+ X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*"))) |
230 |
+ X |
231 |
+ ;;; Setup ASDF2 |
232 |
+ (load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp") |
233 |
+ EOF |
234 |
+ |
235 |
+ # Install documentation |
236 |
+ unset SBCL_HOME |
237 |
+ INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \ |
238 |
+ sh install.sh || die "install.sh failed" |
239 |
+ |
240 |
+ # bug #517008 |
241 |
+ pax-mark -mr "${D}"/usr/bin/sbcl |
242 |
+ |
243 |
+ # rm empty directories lest paludis complain about this |
244 |
+ find "${ED}" -empty -type d -exec rmdir -v {} + |
245 |
+ |
246 |
+ if use doc; then |
247 |
+ dodoc -r doc/internals/sbcl-internals |
248 |
+ |
249 |
+ doinfo doc/manual/*.info* |
250 |
+ doinfo doc/internals/sbcl-internals.info |
251 |
+ |
252 |
+ docinto internals-notes |
253 |
+ dodoc doc/internals-notes/* |
254 |
+ else |
255 |
+ rm -Rv "${ED}/usr/share/doc/${PF}" || die |
256 |
+ fi |
257 |
+ |
258 |
+ # install the SBCL source |
259 |
+ if use source; then |
260 |
+ ./clean.sh |
261 |
+ cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die |
262 |
+ for d in contrib/*/; do |
263 |
+ cp -av "$d" "${ED}/usr/$(get_libdir)/sbcl/" || die |
264 |
+ done |
265 |
+ fi |
266 |
+ |
267 |
+ # necessary for running newly-saved images |
268 |
+ echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}" |
269 |
+ echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}" |
270 |
+ doenvd "${ENVD}" |
271 |
+} |