How to install the latest version of Chrome browser?

Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

How to install the latest version of Chrome browser?

Postby kenorb » 09 Nov 2010, 11:45

Following this thread:
http://forums.freebsd.org/showthread.php?t=18985
and my crashes.

I'd like to install the latest version of Chrome browser.

My version:
/usr/local/bin/chrome was installed by package chromium-5.0.375.127

See:
http://wiki.freebsd.org/Chromium
http://chromium.hybridsource.org/
http://www.chromium.org/developers/design-documents/software-updates-courgette
> uname -a
FreeBSD kenorb 8.1-STABLE FreeBSD 8.1-STABLE #0: Tue Oct 19 15:28:55 BST 2010 root@kenorb:/usr/obj/usr/src/sys/BRO amd64
kenorb
Member
 
Posts: 330
Joined: 20 Oct 2010, 11:32
Location: London

Postby kenorb » 09 Nov 2010, 11:51

Following this:
http://wiki.freebsd.org/Chromium

Problem 1
Code: Select all
> sudo git clone git://git.chromium.org/chromium.git src
Cloning into src...
git.chromium.org[0: 74.125.248.73]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)

Solved by:
Code: Select all
wget http://chromium-browser-source.commondatastorage.googleapis.com/chromium.r65344.tgz


Problem 2
Code: Select all
> sudo python -d build/gyp_chromium -D'use_system_libxml=1' build/all.gyp
Updating projects from gyp files...
readlink: illegal option -- f
usage: readlink [-n] [file ...]
Traceback (most recent call last):
  File "build/gyp_chromium", line 97, in <module>
    sys.exit(gyp.main(args))
> grep -R "readlink" build/*
build/linux/.svn/text-base/dump_app_syms.svn-base:SCRIPTDIR="$(readlink -f "$(dirname "$0")")"
build/linux/.svn/text-base/python_arch.sh.svn-base:python=$(readlink -f "$1")
build/linux/dump_app_syms:SCRIPTDIR="$(readlink -f "$(dirname "$0")")"
build/linux/python_arch.sh:python=$(readlink -f "$1")

Reported issue here:
http://code.google.com/p/chromium/issues/detail?id=62486
and another one:
http://code.google.com/p/chromium/issues/detail?id=62492
> uname -a
FreeBSD kenorb 8.1-STABLE FreeBSD 8.1-STABLE #0: Tue Oct 19 15:28:55 BST 2010 root@kenorb:/usr/obj/usr/src/sys/BRO amd64
kenorb
Member
 
Posts: 330
Joined: 20 Oct 2010, 11:32
Location: London

Postby kenorb » 09 Nov 2010, 12:33

Simple steps:
Code: Select all
sudo mkdir /usr/ports/distfiles/chromium && cd /usr/ports/distfiles/chromium
sudo fetch [url]http://chromium.hybridsource.org/old/patches/latest.patch[/url] # or choose different one: [url]http://chromium.hybridsource.org/old/patches/[/url]
sudo svn co [url]http://gclient.googlecode.com/svn/trunk/[/url] gclient
sudo python gclient/gclient/gclient.py config [url]http://src.chromium.org/svn/trunk/src[/url]
sudo git clone git://git.chromium.org/chromium.git src || wget [url]http://chromium-browser-source.commondatastorage.googleapis.com/chromium.r65344.tgz[/url] && tar --strip-components=4 -xzvf chromium.*.tgz
sudo sed -i 'bak' 's@--- a/@--- @' latest.patch # latest patch has the syntax error, fix it
sudo sed -i 'bak' 's@+++ b/@+++ @' latest.patch # latest patch has the syntax error, fix it
cd src && sudo patch -f -p0 < ../latest.patch
# svn diff # to show the applied changes
setenv PATH "/usr/compat/linux/usr/bin:$PATH" || export PATH="/usr/compat/linux/usr/bin:$PATH" # temporary use linux version of readlink tcsh||bash
sudo python -d build/gyp_chromium -D'use_system_libxml=1' build/all.gyp
sudo gmake -j5 BUILDTYPE=Release chrome
./out/Release/chrome #run

Based on: http://wiki.freebsd.org/Chromium
With some modifications, because some of the information there is out-dated.
> uname -a
FreeBSD kenorb 8.1-STABLE FreeBSD 8.1-STABLE #0: Tue Oct 19 15:28:55 BST 2010 root@kenorb:/usr/obj/usr/src/sys/BRO amd64
kenorb
Member
 
Posts: 330
Joined: 20 Oct 2010, 11:32
Location: London

Postby ahavatar » 10 Nov 2010, 03:06

Currently, you have to be a paid member of chromium.hybridsource.org to get access to the lastest Chromium FreeBSD patch, or you have to figure out yourself.
ahavatar
Member
 
Posts: 196
Joined: 06 Sep 2010, 21:13

Postby kenorb » 16 Nov 2010, 10:03

> uname -a
FreeBSD kenorb 8.1-STABLE FreeBSD 8.1-STABLE #0: Tue Oct 19 15:28:55 BST 2010 root@kenorb:/usr/obj/usr/src/sys/BRO amd64
kenorb
Member
 
Posts: 330
Joined: 20 Oct 2010, 11:32
Location: London

Postby DutchDaemon » 16 Nov 2010, 18:42

Yeah, installing experimental kernel changes is just what you should do ;)
Talk to the chromium people/porters if you must, nothing these forums can do.
User avatar
DutchDaemon
Old Fart
 
Posts: 10466
Joined: 16 Nov 2008, 20:17
Location: The Netherlands


Return to Installation and Maintenance of FreeBSD Ports or Packages

Who is online

Users browsing this forum: No registered users and 2 guests