Gentoo Archives: gentoo-commits

From: "Andrey Grozin (grozin)" <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lisp/sbcl: sbcl-1.1.18.ebuild ChangeLog
Date: Wed, 30 Apr 2014 15:25:27
Message-Id: 20140430152522.1F49C2004B@flycatcher.gentoo.org
1 grozin 14/04/30 15:25:22
2
3 Modified: ChangeLog
4 Added: sbcl-1.1.18.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.10/cvs/Linux i686, signed Manifest commit with key 0x3AFFCE974D34BD8C!)
9
10 Revision Changes Path
11 1.205 dev-lisp/sbcl/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/sbcl/ChangeLog?rev=1.205&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/sbcl/ChangeLog?rev=1.205&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/sbcl/ChangeLog?r1=1.204&r2=1.205
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v
20 retrieving revision 1.204
21 retrieving revision 1.205
22 diff -u -r1.204 -r1.205
23 --- ChangeLog 28 Apr 2014 07:44:03 -0000 1.204
24 +++ ChangeLog 30 Apr 2014 15:25:21 -0000 1.205
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-lisp/sbcl
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.204 2014/04/28 07:44:03 ulm Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/ChangeLog,v 1.205 2014/04/30 15:25:21 grozin Exp $
30 +
31 +*sbcl-1.1.18 (30 Apr 2014)
32 +
33 + 30 Apr 2014; Andrey Grozin <grozin@g.o> +sbcl-1.1.18.ebuild:
34 + Version bump
35
36 28 Apr 2014; Ulrich Müller <ulm@g.o> sbcl-1.1.17.ebuild:
37 QA: Fix whitespace issues.
38
39
40
41 1.1 dev-lisp/sbcl/sbcl-1.1.18.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/sbcl/sbcl-1.1.18.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lisp/sbcl/sbcl-1.1.18.ebuild?rev=1.1&content-type=text/plain
45
46 Index: sbcl-1.1.18.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-lisp/sbcl/sbcl-1.1.18.ebuild,v 1.1 2014/04/30 15:25:21 grozin Exp $
51
52 EAPI=5
53 inherit multilib eutils flag-o-matic pax-utils
54
55 #same order as http://www.sbcl.org/platform-table.html
56 BV_X86=1.0.58
57 BV_AMD64=1.1.18
58 BV_PPC=1.0.28
59 BV_SPARC=1.0.28
60 BV_ALPHA=1.0.28
61
62 DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp."
63 HOMEPAGE="http://sbcl.sourceforge.net/"
64 SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
65 x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
66 amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
67 ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
68 sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
69 alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )"
70
71 LICENSE="MIT"
72 SLOT="0/${PV}"
73 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
74 IUSE="debug doc source +threads +unicode zlib"
75
76 CDEPEND=">=dev-lisp/asdf-2.33-r3:="
77 DEPEND="${CDEPEND}
78 doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )"
79 RDEPEND="${CDEPEND}
80 elibc_glibc? ( >=sys-libs/glibc-2.3 || ( <sys-libs/glibc-2.6[nptl] >=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-*-linux sbcl-binary || die
124 cd "${S}"
125 }
126
127 src_prepare() {
128 epatch "${FILESDIR}"/gentoo-fix_install_man.patch
129 epatch "${FILESDIR}"/gentoo-fix_linux-os-c.patch
130 # bug #468482
131 epatch "${FILESDIR}"/concurrency-test.patch
132 # bug #486552
133 epatch "${FILESDIR}"/bsd-sockets-test.patch
134
135 # To make the hardened compiler NOT compile with -fPIE -pie
136 if gcc-specs-pie ; then
137 einfo "Disabling PIE..."
138 epatch "${FILESDIR}"/${PN}-1.1.17-gentoo-fix_nopie_for_hardened_toolchain.patch
139 fi
140
141 cp /usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
142
143 use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
144
145 # Some shells(such as dash) don't have "time" as builtin
146 # and we don't want to DEPEND on sys-process/time
147 sed "s,^time ,," -i make.sh || die
148 sed "s,/lib,/$(get_libdir),g" -i install.sh || die
149 # #define SBCL_HOME ...
150 sed "s,/usr/local/lib,/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
151
152 find . -type f -name .cvsignore -delete
153 }
154
155 src_configure() {
156 # customizing SBCL version as per
157 # http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
158 echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
159
160 # applying customizations
161 sbcl_apply_features
162 }
163
164 src_compile() {
165 local bindir="${WORKDIR}"/sbcl-binary
166
167 strip-unsupported-flags ; filter-flags -fomit-frame-pointer
168
169 if host-is-pax ; then
170 # To disable PaX on hardened systems
171 pax-mark -C "${bindir}"/src/runtime/sbcl
172 pax-mark -mr "${bindir}"/src/runtime/sbcl
173
174 # Hack to disable PaX on second GENESIS stage
175 sed -i -e '/load/!s/^echo \/\/doing warm.*$/&\npaxctl -C \.\/src\/runtime\/sbcl\npaxctl -mprexs \.\/src\/runtime\/sbcl/' \
176 "${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
177 fi
178
179 # clear the environment to get rid of non-ASCII strings, see bug 174702
180 # set HOME for paludis
181 env - HOME="${T}" \
182 CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
183 CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
184 GNUMAKE=make ./make.sh \
185 "sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
186 || die "make failed"
187
188 # need to set HOME because libpango(used by graphviz) complains about it
189 if use doc; then
190 env - HOME="${T}" \
191 CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
192 ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
193 make -C doc/manual info html || die "Cannot build manual"
194 env - HOME="${T}" \
195 CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
196 ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
197 make -C doc/internals info html || die "Cannot build internal docs"
198 fi
199 }
200
201 src_test() {
202 ewarn "Unfortunately, it is known that some tests fail eg."
203 ewarn "run-program.impure.lisp. This is an issue of the upstream's"
204 ewarn "development and not of Gentoo's side. Please, before filing"
205 ewarn "any bug(s) search for older submissions. Thank you."
206 time ( cd tests && sh run-tests.sh )
207 }
208
209 src_install() {
210 # install system-wide initfile
211 dodir /etc/
212 sed 's/^X//' > "${D}"/etc/sbclrc <<-EOF
213 ;;; The following is required if you want source location functions to
214 ;;; work in SLIME, for example.
215 X
216 (setf (logical-pathname-translations "SYS")
217 X '(("SYS:SRC;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/src/**/*.*")
218 X ("SYS:CONTRIB;**;*.*.*" #p"/usr/$(get_libdir)/sbcl/**/*.*")))
219 X
220 ;;; Setup ASDF2
221 (load "/etc/common-lisp/gentoo-init.lisp")
222 EOF
223
224 # Install documentation
225 unset SBCL_HOME
226 INSTALL_ROOT="${D}/usr" LIB_DIR="/usr/$(get_libdir)" DOC_DIR="${D}/usr/share/doc/${PF}" \
227 sh install.sh || die "install.sh failed"
228
229 # rm empty directories lest paludis complain about this
230 find "${D}" -empty -type d -exec rmdir -v {} +
231
232 if use doc; then
233 dohtml -r doc/manual/
234 doinfo doc/manual/*.info*
235 dohtml -r doc/internals/sbcl-internals
236 doinfo doc/internals/sbcl-internals.info
237 docinto internals-notes && dodoc doc/internals-notes/*
238 else
239 rm -Rv "${D}/usr/share/doc/${PF}" || die
240 fi
241
242 dodoc BUGS CREDITS INSTALL NEWS OPTIMIZATIONS PRINCIPLES README TLA TODO
243
244 # install the SBCL source
245 if use source; then
246 ./clean.sh
247 cp -av src "${D}/usr/$(get_libdir)/sbcl/" || die
248 fi
249
250 # necessary for running newly-saved images
251 echo "SBCL_HOME=/usr/$(get_libdir)/${PN}" > "${ENVD}"
252 echo "SBCL_SOURCE_ROOT=/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
253 doenvd "${ENVD}"
254 }