From c9a3aeed1946b245e8accd692ae6e67e9f77b333 Mon Sep 17 00:00:00 2001 From: davehome Date: Thu, 28 Jun 2012 00:34:00 -0600 Subject: [PATCH 1/4] chromium: disable nacl for i686 only. --- srcpkgs/chromium/template | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/srcpkgs/chromium/template b/srcpkgs/chromium/template index ebd88006bf9..ba71438110c 100644 --- a/srcpkgs/chromium/template +++ b/srcpkgs/chromium/template @@ -23,9 +23,10 @@ short_desc="Google's attempt at creating a safer, faster, and more stable browse maintainer="Juan RP " homepage="http://www.chromium.org/" license="BSD" +_url_base="http://commondatastorage.googleapis.com" distfiles=" -http://commondatastorage.googleapis.com/chromium-browser-official/$pkgname-$version.tar.bz2 -http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/nacl_sdk/$version/naclsdk_linux.bz2" +${_url_base}/chromium-browser-official/$pkgname-$version.tar.bz2 +${_url_base}/nativeclient-mirror/nacl/nacl_sdk/$version/naclsdk_linux.bz2" checksum=" c21bdee0ec136102e10c527a0d98e3a29e40406d8f7eb63e8e0ac23801722824 aa836ba493e659f028e8624764ba7662ef4eccd609be4c6812a7901eaf63f6e4" @@ -43,14 +44,21 @@ pre_configure() { # http://code.google.com/p/chromium/issues/detail?id=109527 sed -i 's|glib/gutils.h|glib.h|' ui/base/l10n/l10n_util.cc - # Unpack nacl, file is a real POSIX tar archive compressed with bzip2. - tar xf $wrksrc/naclsdk_linux -C $wrksrc + #XXX: nacl enabled only for x86_64 (can't build it on i686) + if [ "$XBPS_MACHINE" = "x86_64" ]; then + # Unpack nacl, its a POSIX tar archive compressed with bzip2. + tar xf $wrksrc/naclsdk_linux -C $wrksrc - ln -s $wrksrc/pepper_${version%%.*}/toolchain/linux_x86_newlib \ - native_client/toolchain/linux_x86_newlib + ln -s $wrksrc/pepper_${version%%.*}/toolchain/linux_x86_newlib \ + native_client/toolchain/linux_x86_newlib + fi } do_configure() { + local _nonacl + if [ "$XBPS_MACHINE" = "i686" ]; then + _nonacl="-Ddisable_nacl=1" + fi build/gyp_chromium -f make build/all.gyp --depth=. \ -Dwerror= -Dlinux_sandbox_path=/usr/lib/chromium/chromium-sandbox \ -Drelease_extra_cflags="$CFLAGS" -Dlinux_use_gold_binary=0 \ @@ -62,7 +70,7 @@ do_configure() { -Duse_system_libevent=1 -Duse_system_ssl=0 \ -Duse_system_xdg_utils=1 -Duse_system_vpx=1 \ -Duse_system_speex=1 -Duse_system_libwebp=1 \ - -Duse_hunspell=1 -Duse_system_flac=1 -Duse_gconf=0 + -Duse_hunspell=1 -Duse_system_flac=1 -Duse_gconf=0 ${_nonacl} } do_build() { @@ -75,10 +83,13 @@ do_install() { vinstall out/Release/chrome.pak 644 usr/lib/${pkgname} vinstall out/Release/resources.pak 644 usr/lib/${pkgname} vinstall out/Release/libffmpegsumo.so 755 usr/lib/${pkgname} - vinstall out/Release/libppGoogleNaClPluginChrome.so 755 usr/lib/${pkgname} - vinstall out/Release/nacl_helper 755 usr/lib/$pkgname - vinstall out/Release/nacl_helper_bootstrap 755 usr/lib/$pkgname - vcopy "out/Release/nacl_irt_*.nexe" usr/lib/${pkgname} + if [ "$XBPS_MACHINE" = "x86_64" ]; then + vinstall out/Release/libppGoogleNaClPluginChrome.so 755 \ + usr/lib/${pkgname} + vinstall out/Release/nacl_helper 755 usr/lib/$pkgname + vinstall out/Release/nacl_helper_bootstrap 755 usr/lib/$pkgname + vcopy "out/Release/nacl_irt_*.nexe" usr/lib/${pkgname} + fi for f in locales resources; do vcopy out/Release/${f} usr/lib/chromium From b67d294e4c34bdf63573d7680d94838ca851a4f2 Mon Sep 17 00:00:00 2001 From: davehome Date: Thu, 28 Jun 2012 00:51:33 -0600 Subject: [PATCH 2/4] v8: update to 3.11.10.12 --- srcpkgs/v8/template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srcpkgs/v8/template b/srcpkgs/v8/template index 98c7f5d66c9..dfda2944b31 100644 --- a/srcpkgs/v8/template +++ b/srcpkgs/v8/template @@ -1,14 +1,14 @@ # Template file for 'v8' pkgname=v8 -version=3.9.8 +version=3.11.10.12 distfiles="http://commondatastorage.googleapis.com/chromium-browser-official/${pkgname}-$version.tar.bz2" -makedepends="python readline-devel" +makedepends="python readline-devel which" revision=1 short_desc="V8 JavaScript Engine" maintainer="davehome " homepage="http://code.google.com/p/v8/" license="BSD" -checksum=cb52a10450d99e2005b9193bd2d6b4bb716ba1d1645cfc64fd98dc4bdac01787 +checksum=fc7b0e54ba1d5f07ce0bb9cf0f09aab66c9aa14861e5e8a28ef0bb2a3f729430 long_desc=" V8 is Google's open source JavaScript engine. V8 is written in C++ and is used in Google Chrome, the open source browser from Google. From 4e47e1048a4a9021824c082f2bef6e3643198139 Mon Sep 17 00:00:00 2001 From: davehome Date: Thu, 28 Jun 2012 01:16:46 -0600 Subject: [PATCH 3/4] nodejs: update to 0.8.0 --- srcpkgs/nodejs/nodejs-docs.template | 2 +- srcpkgs/nodejs/nodejs.rshlibs | 3 -- .../nodejs/patches/fix_v8_includes__git.patch | 31 +++++++++++++++++++ srcpkgs/nodejs/template | 10 +++--- 4 files changed, 36 insertions(+), 10 deletions(-) create mode 100644 srcpkgs/nodejs/patches/fix_v8_includes__git.patch diff --git a/srcpkgs/nodejs/nodejs-docs.template b/srcpkgs/nodejs/nodejs-docs.template index 764ca151a41..2faa71efaff 100644 --- a/srcpkgs/nodejs/nodejs-docs.template +++ b/srcpkgs/nodejs/nodejs-docs.template @@ -9,5 +9,5 @@ do_install() { vmove usr/share/man usr/share vmkdir usr/share/doc/nodejs - vcopy "doc/api/api/*" usr/share/doc/nodejs + cp -r ${wrksrc}/doc/api ${DESTDIR}/usr/share/doc/nodejs } diff --git a/srcpkgs/nodejs/nodejs.rshlibs b/srcpkgs/nodejs/nodejs.rshlibs index 647864a1784..41555d66d35 100644 --- a/srcpkgs/nodejs/nodejs.rshlibs +++ b/srcpkgs/nodejs/nodejs.rshlibs @@ -1,8 +1,5 @@ librt.so.1 -libssl.so.1 -libcrypto.so.1 libdl.so.2 -libz.so.1 libv8.so libstdc++.so.6 libgcc_s.so.1 diff --git a/srcpkgs/nodejs/patches/fix_v8_includes__git.patch b/srcpkgs/nodejs/patches/fix_v8_includes__git.patch new file mode 100644 index 00000000000..d43fc5a640e --- /dev/null +++ b/srcpkgs/nodejs/patches/fix_v8_includes__git.patch @@ -0,0 +1,31 @@ +diff --git a/configure b/configure +index 338ec3c..8dd6884 100755 +--- configure ++++ configure +@@ -330,7 +330,6 @@ def configure_v8(o): + o['libraries'] += ['-lv8'] + if options.shared_v8_includes: + o['include_dirs'] += [options.shared_v8_includes] +- o['variables']['node_shared_v8_includes'] = options.shared_v8_includes + + + def configure_openssl(o): +diff --git a/node.gyp b/node.gyp +index 0816442..933812e 100644 +--- node.gyp ++++ node.gyp +@@ -177,12 +177,7 @@ + '<(SHARED_INTERMEDIATE_DIR)/node_etw_provider.rc', + ] + } ], +- [ 'node_shared_v8=="true"', { +- 'sources': [ +- '<(node_shared_v8_includes)/v8.h', +- '<(node_shared_v8_includes)/v8-debug.h', +- ], +- }, { ++ [ 'node_shared_v8=="false"', { + 'sources': [ + 'deps/v8/include/v8.h', + 'deps/v8/include/v8-debug.h', + diff --git a/srcpkgs/nodejs/template b/srcpkgs/nodejs/template index 8186a033c2e..fb2807c5421 100644 --- a/srcpkgs/nodejs/template +++ b/srcpkgs/nodejs/template @@ -1,15 +1,15 @@ # Template file for 'nodejs' pkgname=nodejs -version=0.6.11 +version=0.8.0 homepage="http://nodejs.org/" distfiles="${homepage}/dist/v${version}/node-v${version}.tar.gz" makedepends="pkg-config openssl-devel v8-devel zlib-devel" fulldepends="python" -revision=2 +revision=1 short_desc="Evented I/O for V8 javascript" maintainer="davehome " license="MIT" -checksum=94bbdb2d62645fd2ad5b96e41cfec68abf004fd03fabaaf7d71c48b39013cbd1 +checksum=ecafca018b5109a28537633d0433d513f68b1bae7191a1821e8eaa84ccf128ee long_desc=" Node.js is a software system designed for writing highly-scalable internet applications, notably web servers. Programs are written in JavaScript, using @@ -33,11 +33,9 @@ subpackages="${pkgname}-devel ${pkgname}-docs" wrksrc=node-v${version} - - do_configure() { - ./configure --prefix=/usr --shared-v8 --shared-zlib + ./configure --prefix=/usr --shared-v8 } do_build() From 777b8379487e188b6bc5624df40221d342ab9c67 Mon Sep 17 00:00:00 2001 From: davehome Date: Thu, 28 Jun 2012 01:30:59 -0600 Subject: [PATCH 4/4] nodejs: use nostrip=yes --- srcpkgs/nodejs/nodejs.rshlibs | 3 +++ srcpkgs/nodejs/template | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/srcpkgs/nodejs/nodejs.rshlibs b/srcpkgs/nodejs/nodejs.rshlibs index 41555d66d35..df20c778878 100644 --- a/srcpkgs/nodejs/nodejs.rshlibs +++ b/srcpkgs/nodejs/nodejs.rshlibs @@ -5,3 +5,6 @@ libstdc++.so.6 libgcc_s.so.1 libpthread.so.0 libc.so.6 +libz.so.1 +libssl.so.1 +libcrypto.so.1 diff --git a/srcpkgs/nodejs/template b/srcpkgs/nodejs/template index fb2807c5421..33ad6832331 100644 --- a/srcpkgs/nodejs/template +++ b/srcpkgs/nodejs/template @@ -5,7 +5,8 @@ homepage="http://nodejs.org/" distfiles="${homepage}/dist/v${version}/node-v${version}.tar.gz" makedepends="pkg-config openssl-devel v8-devel zlib-devel" fulldepends="python" -revision=1 +nostrip=yes +revision=2 short_desc="Evented I/O for V8 javascript" maintainer="davehome " license="MIT" @@ -35,7 +36,7 @@ wrksrc=node-v${version} do_configure() { - ./configure --prefix=/usr --shared-v8 + ./configure --prefix=/usr --openssl-use-sys --shared-v8 --shared-zlib } do_build()