On 19.4.2014 1:05, Bruce Dubbs wrote:
Ken Moffat wrote:

Thanks Ken.  I was given a URL to check out for teaching.  Please see if
you can use www.TestOut.com/newlabsim

I don't think there's a password for the beta test but I didn't get that
far.  If it seems to work for you, then I'll go build FF for this platform.

   It opened a new window, occupying the whole screen.  And then it
appears to need me to set up an ID, including email and activation
code - from that I guess that they (whoever they are) will use the
email to send me the activation code.  I'm not inclined to do that.

   Going back to the the site itself, I don't think you need to
bother.  The first item in "List of Known Issues and Bugs" is:

Mozilla Firefox not supported

Mozilla Firefox is not yet supported. For now, we encourage Linux OS
users to use Chrome to sign in to the HTML5 LabSim.

OK, thanks.  At least they are getting away from silverlight.

Has anyone looked into building chrome from source?

    -- Bruce


Chrome itself is just Open Source Chromium Browser (www.chromium.org) with few extra non-free additions and Google branding. You are probably looking for the second.

The answer is yes, I do. I combined Archlinux and Gentoo build instructions to get it to build. It does however require awful amount of deps which I haven't checked yet.

Sent using Windows version of Thunderbird, so forgive me if something's wrong with the attachment.
#!/bin/bash -e

#export PKGVER=30.0.1599.114
export PKGVER=34.0.1847.116
export TOOLCHAINVER=12773
export DEST=/binary/chromium-${PKGVER}

export -n CFLAGS="-march=native -mtune=native -O3"
export -n CXXFLAGS="-march=native -mtune=native -O3"

chromium_conf=(
    -Dgoogle_api_key=AIzaSyCnwAWeKPGN7pGmQJyDitvcb1uTSlE2R1w
    -Dgoogle_default_client_id=11433373901.apps.googleusercontent.com
    -Dgoogle_default_client_secret=xZ5yO6MG_uMyrh0srUAkJ4KG
    -Dwerror=
    -Dpython_ver=2.7
    -Dlinux_link_gsettings=1
    -Dlinux_link_libpci=1
    -Dlinux_link_libspeechd=1
    -Dlinux_link_pulseaudio=1
    -Dlinux_strip_binary=1
    -Dlinux_use_gold_binary=0
    -Dlinux_use_gold_flags=0
    -Dlogging_like_official_build=1
    -Drelease_extra_cflags="$CFLAGS -Wno-unused-local-typedefs"
    -Dlibspeechd_h_prefix=speech-dispatcher/
    -Dffmpeg_branding=Chrome
    -Dproprietary_codecs=1
    -Duse_system_bzip2=1
    -Duse_system_flac=1
    -Duse_system_ffmpeg=0
    -Duse_system_harfbuzz=1
    -Duse_system_libevent=1
    -Duse_system_libjpeg=1
    -Duse_system_libpng=1
    -Duse_system_libvpx=1
    -Duse_system_libwebp=1
    -Duse_system_libxml=1
    -Duse_system_libxslt=1
    -Duse_system_minizip=1
    -Duse_system_nspr=1
    -Duse_system_openssl=1
    -Duse_system_opus=1
    -Duse_system_snappy=0
    -Duse_system_speex=1
    -Duse_system_ssl=0
    -Duse_system_xdg_utils=1
    -Duse_system_yasm=1
    -Duse_system_zlib=1
    -Duse_gconf=0
    -Dusb_ids_path=/usr/share/misc/usb.ids
    -Dtarget_arch=x64
    -Dcups=1
    -Duse_gnome_keyring=1
    -Dlinux_link_gnome_keyring=1
    -Ddisable_glibc=1
    -Ddisable_sse2=1)

#    -Duse_system_icu=1

case "$1" in
   fetch)
      wget -c 
https://commondatastorage.googleapis.com/chromium-browser-official/chromium-${PKGVER}.tar.xz
      wget -c 
https://commondatastorage.googleapis.com/nativeclient-archive2/toolchain/${TOOLCHAINVER}/naclsdk_linux_x86.tgz
      wget -c 
https://commondatastorage.googleapis.com/nativeclient-archive2/toolchain/${TOOLCHAINVER}/naclsdk_pnacl_linux_x86.tgz
      wget -c 
https://commondatastorage.googleapis.com/nativeclient-archive2/toolchain/${TOOLCHAINVER}/naclsdk_pnacl_translator.tgz
      wget -c 
https://commondatastorage.googleapis.com/nativeclient-archive2/toolchain/${TOOLCHAINVER}/naclsdk_pnacl_translator.tgz.sha1hash

      rm -rf chromium-${PKGVER}
      tar xf chromium-${PKGVER}.tar.xz

      pushd chromium-${PKGVER}
         mkdir -p native_client/toolchain/.tars 
native_client/toolchain/pnacl_translator
         ln -sf $OLDPWD/naclsdk_linux_x86.tgz native_client/toolchain/.tars/
         ln -sf $OLDPWD/naclsdk_pnacl_linux_x86.tgz 
native_client/toolchain/.tars/
         ln -sf $OLDPWD/naclsdk_pnacl_translator.tgz 
native_client/toolchain/.tars/
         ln -sf $OLDPWD/naclsdk_pnacl_translator.tgz.sha1hash 
native_client/toolchain/pnacl_translator/SOURCE_SHA1

         sed -i "/not RunGN/,+1d" build/gyp_chromium
         sed -i "/import find_depot_tools/d" build/gyp_chromium

         #if [ -e /media/ntfs/Other/Linux/patches/chromium-fixes.patch ]; then
         #   patch -Np1 -i /media/ntfs/Other/Linux/patches/chromium-fixes.patch
         #fi
      popd
   ;;
   build)
      pushd chromium-${PKGVER}
         build/linux/unbundle/replace_gyp_files.py "${chromium_conf[@]}"
         build/gyp_chromium -f make --depth=. "${chromium_conf[@]}"

         make chrome chrome_sandbox chromedriver BUILDTYPE=Release -j4
      popd
   ;;
   install)
      install -dm755 ${DEST}/etc/chromium \
                     ${DEST}/usr/bin \
                     ${DEST}/usr/lib/chromium

cat > ${DEST}/etc/chromium/default << "EOF"
# Default settings for chromium. This file is sourced by /usr/bin/chromium

# Options to pass to chromium
CHROMIUM_FLAGS=""
EOF

cat > ${DEST}/usr/bin/chromium << "EOF"
#!/bin/bash

# Allow users to override command-line options
# Based on Gentoo's chromium package (and by extension, Debian's)
if [[ -f /etc/chromium/default ]]; then
        . /etc/chromium/default
fi

# Prefer user defined CHROMIUM_USER_FLAGS (from env) over system
# default CHROMIUM_FLAGS (from /etc/chromium/default)
CHROMIUM_FLAGS=${CHROMIUM_USER_FLAGS:-$CHROMIUM_FLAGS}

export CHROME_WRAPPER=$(readlink -f "$0")
export CHROME_DESKTOP=chromium.desktop

exec /usr/lib/chromium/chromium $CHROMIUM_FLAGS "$@"
EOF

      chmod 644 ${DEST}/etc/chromium/default
      chmod 755 ${DEST}/usr/bin/chromium

      install -Dm644 /media/ntfs/Other/Linux/chromium.desktop 
${DEST}/usr/share/applications/chromium.desktop

      pushd chromium-${PKGVER}
         install -m755 -o root -g root out/Release/chrome 
${DEST}/usr/lib/chromium/chromium
         install -m4755 -o root -g root out/Release/chrome_sandbox 
${DEST}/usr/lib/chromium/chrome-sandbox
         install -m755 -o root -g root out/Release/chromedriver 
${DEST}/usr/lib/chromium/chromedriver

         ln -sf ../lib/chromium/chromedriver ${DEST}/usr/bin/chromedriver

         install -Dm644 out/Release/chrome.1 
${DEST}/usr/share/man/man1/chromium.1

         for size in 22 24 48 64 128 256; do
            install -Dm644 chrome/app/theme/chromium/product_logo_${size}.png \
                           
${DEST}/usr/share/icons/hicolor/${size}x${size}/apps/chromium.png
         done

         cp -rf out/Release/locales ${DEST}/usr/lib/chromium/

         # Bundled ICU
         cp -rf out/Release/icudtl.dat ${DEST}/usr/lib/chromium/

         cp -rf out/Release/chrome_100_percent.pak \
                out/Release/content_resources.pak \
                out/Release/libffmpegsumo.so \
                out/Release/libppGoogleNaClPluginChrome.so \
                out/Release/nacl_helper \
                out/Release/nacl_helper_bootstrap \
                out/Release/nacl_irt_x86_64.nexe \
                out/Release/resources.pak \
                ${DEST}/usr/lib/chromium/

      popd

      strip --strip-unneeded ${DEST}/usr/lib/chromium/chromium
      strip --strip-unneeded ${DEST}/usr/lib/chromium/chrome-sandbox
      strip --strip-unneeded ${DEST}/usr/lib/chromium/chromedriver
      strip --strip-unneeded ${DEST}/usr/lib/chromium/nacl_helper
      strip --strip-unneeded ${DEST}/usr/lib/chromium/nacl_helper_bootstrap
      strip --strip-unneeded ${DEST}/usr/lib/chromium/libffmpegsumo.so
      strip --strip-unneeded 
${DEST}/usr/lib/chromium/libppGoogleNaClPluginChrome.so

cat > ${DEST}/INSTALL << "EOF"
#!/bin/bash

for dir in etc usr ; do cp -rf --remove-destination $dir / ; done

chmod 4755 /usr/lib/chromium/chrome-sandbox

[ -x /usr/bin/gtk-update-icon-cache ] && echo "Processing triggers for 
hicolor-icon-theme" && /usr/bin/gtk-update-icon-cache -qf 
/usr/share/icons/hicolor
[ -x /usr/bin/update-desktop-database ] && echo "Processing triggers for 
desktop-file-utils" && /usr/bin/update-desktop-database
[ -x /usr/bin/mandb ] && echo "Processing triggers for man-db" && 
/usr/bin/mandb -q
EOF

      chmod 755 ${DEST}/INSTALL

   ;;
esac
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to