From 6b9fa5b797564f63bdc2f43fcfad81bd70f03ae7 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 19 Aug 2012 12:13:22 +0200 Subject: [PATCH] chromium: disable nacl on i686 for now. --- srcpkgs/chromium/template | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/srcpkgs/chromium/template b/srcpkgs/chromium/template index 6f3a0693ab..d8e9140d4b 100644 --- a/srcpkgs/chromium/template +++ b/srcpkgs/chromium/template @@ -46,13 +46,18 @@ pre_configure() { sed -i 's|glib/gutils.h|glib.h|' ui/base/l10n/l10n_util.cc # Unpack nacl, its a POSIX tar archive compressed with bzip2. - tar xf ${wrksrc}/naclsdk_linux -C ${wrksrc} - - ln -s ${wrksrc}/pepper_${_naclsdkver%%.*}/toolchain/linux_x86_newlib \ - native_client/toolchain/linux_x86_newlib + if [ "${XBPS_MACHINE}" != "i686" ]; then + tar xf ${wrksrc}/naclsdk_linux -C ${wrksrc} + ln -s ${wrksrc}/pepper_${_naclsdkver%%.*}/toolchain/linux_x86_newlib \ + native_client/toolchain/linux_x86_newlib + fi } do_configure() { + if [ "${XBPS_MACHINE}" = "i686" ]; then + _nacl="-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 \ @@ -65,7 +70,7 @@ do_configure() { -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 -Ddisable_glibc=1 + -Duse_gconf=0 -Ddisable_glibc=1 ${_nacl} } do_build() { @@ -76,12 +81,12 @@ do_install() { vinstall out/Release/chrome 755 usr/lib/${pkgname} ${pkgname} vinstall out/Release/chrome_sandbox 4755 usr/lib/${pkgname} ${pkgname}-sandbox - cp out/Release/{*.pak,libffmpegsumo.so,nacl_helper{,_bootstrap}} \ - out/Release/{libppGoogleNaClPluginChrome.so,nacl_irt_*.nexe} \ - ${DESTDIR}/usr/lib/chromium + cp out/Release/{*.pak,libffmpegsumo.so} ${DESTDIR}/usr/lib/chromium - if [ "${XBPS_MACHINE}" = "i686" ]; then - rm ${DESTDIR}/usr/lib/chromium/nacl_irt_x86_64.nexe + if [ "${XBPS_MACHINE}" != "i686" ]; then + cp out/Release/{nacl_helper{,_bootstrap}} \ + out/Release/{libppGoogleNaClPluginChrome.so,nacl_irt_*.nexe} \ + ${DESTDIR}/usr/lib/chromium fi cp -a out/Release/locales ${DESTDIR}/usr/lib/chromium