Ten Points Random

Archive for March, 2013

Building Chromium or Berkelium in Fedora 18

by on Mar.16, 2013, under General

To get the Chromium aspect of Berkelium built this is roughly the process I used. There’s a lot of manual patching I didn’t put together patches for, but hopefully someone will find this helpful.

This was a bit ridiculous, here’s my somewhat organized notes for anyone that might be trying the same:

General setup:
 - git clone https://github.com/sirikata/berkelium
 - cd berkelium
 - git submodule update --init --recursive
 - sudo yum install subversion pkgconfig python perl ruby gcc-c++ bison \
                        flex gperf nss-devel nspr-devel gtk2-devel glib2-devel \
                        freetype-devel atk-devel pango-devel cairo-devel \
                        fontconfig-devel GConf2-devel dbus-devel alsa-lib-devel \
                        gnome-keyring-devel
 - sudo yum install subversion pkgconfig python perl gcc-c++ bison \
        flex gperf nss-devel nspr-devel gtk2-devel glib2-devel freetype-devel \
        atk-devel pango-devel cairo-devel fontconfig-devel GConf2-devel \
        dbus-devel alsa-lib-devel libX11-devel expat-devel bzip2-devel \
        dbus-glib-devel elfutils-libelf-devel libjpeg-devel \
        mesa-libGLU-devel libXScrnSaver-devel \
        libgnome-keyring-devel cups-devel libXtst-devel libXt-devel pam-devel

Stuff I had to figure out:
 - sudo yum install perl-Switch perl-Digest-MD5
 - run Berkelium's util/build-chromium.sh
   - once it finishes downloading stop it. (The compile will fail, but the download should work fine.)
 - patch build/chromium/src/third_party/tcmalloc/chromium/src/base/linuxthreads.cc
    alter line 196 to "static void SignalHandler(int signum, siginfo *si, void *data) {"
      (change siginfo_t to siginfo)
 - patch build/chromium/src/ui/base/l10n/l10n_util.cc
    remove line 8 "#include <glib/gutils.h>"
 - add "#include <unistd.h>" to the following files in build/chromium/src:
    - src/base/test/test_file_util_linux.cc
    - build/chromium/net/tools/flip_server/flip_config.cc
    - net/tools/flip_server/mem_cache.cc
    - net/tools/flip_server/sm_connection.cc
  - cd build/chromium/src/third_party/WebKit && curl "https://bug-92264-attachments.webkit.org/attachment.cgi?id=154643" | patch -p1
    (make sure it all gets applied, I had to handle one chunk manually)
  - in chrome/browser/net/quoted_printable_unittest.cc
    comment out all that broken SCOPED_TRACE stuff (170, 185, 199)
  - run Berkelium's util/build-chromium.sh again
    - go get dinner while it compiles
Comments Off more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...