SPECS: sqlite3.spec - ugly hack to get it built on ac-alpha builder
glen
glen at pld-linux.org
Wed Oct 1 20:30:09 CEST 2008
Author: glen Date: Wed Oct 1 18:30:09 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- ugly hack to get it built on ac-alpha builder
---- Files affected:
SPECS:
sqlite3.spec (1.57 -> 1.58)
---- Diffs:
================================================================
Index: SPECS/sqlite3.spec
diff -u SPECS/sqlite3.spec:1.57 SPECS/sqlite3.spec:1.58
--- SPECS/sqlite3.spec:1.57 Wed Oct 1 18:24:20 2008
+++ SPECS/sqlite3.spec Wed Oct 1 20:30:04 2008
@@ -158,7 +158,19 @@
%patch0 -p1
%patch1 -p1
-sed -i 's/mkdir doc/#mkdir doc/' Makefile*
+%{__sed} -i 's/mkdir doc/#mkdir doc/' Makefile*
+
+%ifarch alpha
+# See also LP#276821
+# wrapper script to reset stack to 8192 as if ran from make it's insanely huge!:
+# stack(kbytes) 18014398509481983
+cat <<'EOF' > tclsh.sh
+#!/bin/sh
+ulimit -s 8192
+exec tclsh "$@"
+EOF
+chmod +x tclsh.sh
+%endif
%build
%{__libtoolize}
@@ -171,7 +183,10 @@
%{?with_tcl:--with-tcl=%{_ulibdir}} \
%{!?with_tcl:--disable-tcl} \
--enable-threadsafe
-%{__make}
+%{__make} \
+%ifarch alpha
+ TCLSH_CMD=./tclsh.sh
+%endif
%if %{with doc}
%{__make} doc
@@ -184,6 +199,9 @@
install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir},%{_mandir}/man1}
%{__make} install \
+%ifarch alpha
+ TCLSH_CMD=./tclsh.sh \
+%endif
DESTDIR=$RPM_BUILD_ROOT \
TCLLIBDIR=%{_libdir}/tcl%{tclver}
@@ -233,6 +251,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.58 2008/10/01 18:30:04 glen
+- ugly hack to get it built on ac-alpha builder
+
Revision 1.57 2008/10/01 16:24:20 adamg
- updated to 3.6.3
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/sqlite3.spec?r1=1.57&r2=1.58&f=u
More information about the pld-cvs-commit
mailing list