packages: v8/v8.spec - 3.3.6.1 - patch SConstruct to build properly instead...
aredridel
aredridel at pld-linux.org
Mon May 16 09:41:31 CEST 2011
Author: aredridel Date: Mon May 16 07:41:31 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- 3.3.6.1
- patch SConstruct to build properly instead of the hackery that needed a
list of modules edited each time
- TODO: fix readline
---- Files affected:
packages/v8:
v8.spec (1.22 -> 1.23)
---- Diffs:
================================================================
Index: packages/v8/v8.spec
diff -u packages/v8/v8.spec:1.22 packages/v8/v8.spec:1.23
--- packages/v8/v8.spec:1.22 Tue Mar 22 10:10:50 2011
+++ packages/v8/v8.spec Mon May 16 09:41:26 2011
@@ -1,20 +1,26 @@
# $Revision$, $Date$
+#
+# TODO: fix readline
+#
+
%define sover %(v=%{version}; echo ${v%.*})
%define somajor %(v=%{version}; echo ${v%%%%.*})
Summary: JavaScript Engine
Name: v8
-Version: 3.2.0.1
+Version: 3.3.6.1
Release: 1
License: New BSD License
Group: Libraries
URL: http://code.google.com/p/v8
# No tarballs, pulled from svn
-# svn export http://v8.googlecode.com/svn/trunk/ v8
+# svn export http://v8.googlecode.com/svn/tags/%{version} v8-%{version}
Source0: http://distfiles.gentoo.org/distfiles/%{name}-%{version}.tar.gz
-# Source0-md5: c8c6ae903e4ff6e70730f09b6c3a0fee
-Patch1: %{name}-2.0.0-d8-allocation.patch
+# Source0-md5: b8504e98681669c95738724717c4e93f
+#Patch1: %{name}-2.0.0-d8-allocation.patch
Patch2: %{name}-cstdio.patch
Patch3: %{name}-strndup.patch
+Patch4: %{name}-soname.patch
+Patch5: %{name}-dynlink.patch
BuildRequires: libstdc++-devel >= 5:4.0
BuildRequires: readline-devel
BuildRequires: scons
@@ -50,20 +56,12 @@
%prep
%setup -q
-%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch4 -p1
+%patch5 -p1
%{__sed} -i -e "s,'-O3','%{rpmcxxflags}'.split(' ')," SConstruct
-# create simple makefile
-cat <<'EOF'> Makefile
-V8_OBJS = obj/release/d8-debug.os obj/release/d8-posix.os obj/release/d8-readline.os obj/release/d8.os obj/release/d8-js.os obj/release/extensions/externalize-string-extension.os obj/release/extensions/gc-extension.os
-V8_LIBS = -lpthread -lreadline -lpthread -L. -lv8
-
-v8:
- $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $(V8_OBJS) $(V8_LIBS)
-EOF
-
%build
# build library
@@ -81,7 +79,7 @@
%scons \
library=shared \
snapshots=on \
- soname=off \
+ soname=on \
console=readline \
visibility=default \
%ifarch x86_64
@@ -89,18 +87,7 @@
%endif
env=CCFLAGS:"-fPIC"
-# the soname=on creates soname as libv8-1.3.11.1.so, that's wrong
-rm libv8.so
-# Now, lets make it right.
-%ifarch arm
-%{__cxx} %{rpmcflags} %{rpmldflags} -fPIC -o libv8.so.%{sover} -shared -Wl,-soname,libv8.so.%{somajor} obj/release/*.os obj/release/arm/*.os obj/release/extensions/*.os -lpthread
-%endif
-%ifarch %{ix86}
-%{__cxx} %{rpmcflags} %{rpmldflags} -fPIC -o libv8.so.%{sover} -shared -Wl,-soname,libv8.so.%{somajor} obj/release/*.os obj/release/ia32/*.os obj/release/extensions/*.os -lpthread
-%endif
-%ifarch %{x8664}
-%{__cxx} %{rpmcflags} %{rpmldflags} -fPIC -o libv8.so.%{sover} -shared -Wl,-soname,libv8.so.%{somajor} obj/release/*.os obj/release/x64/*.os obj/release/extensions/*.os -lpthread
-%endif
+mv libv8.so libv8.so.%{sover}
# We need to do this so d8 binary can link against it.
ln -sf libv8.so.%{sover} libv8.so
@@ -109,25 +96,17 @@
%scons d8 \
library=shared \
snapshots=on \
- console=readline \
+ console=dumb \
visibility=default \
%ifarch x86_64
arch=x64 \
%endif
env=CCFLAGS:"-fPIC"
-# Sigh. scons links all statically, relink
-mv d8 d8.static
-
-%{__make} v8 \
- CXX="%{__cxx}" \
- CXXFLAGS="%{rpmcxxflags}" \
- LDFLAGS="%{rpmldflags}"
-
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir}}
-install -p v8 $RPM_BUILD_ROOT%{_bindir}
+install -p d8 $RPM_BUILD_ROOT%{_bindir}/v8
cp -a include/*.h $RPM_BUILD_ROOT%{_includedir}
install -p libv8.so.*.*.* $RPM_BUILD_ROOT%{_libdir}
@@ -162,6 +141,12 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.23 2011/05/16 07:41:26 aredridel
+- 3.3.6.1
+- patch SConstruct to build properly instead of the hackery that needed a
+ list of modules edited each time
+- TODO: fix readline
+
Revision 1.22 2011/03/22 09:10:50 caleb
- Up to 3.2.0.1
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/v8/v8.spec?r1=1.22&r2=1.23&f=u
More information about the pld-cvs-commit
mailing list