Ubuntu

Chromium PPA builds failing: Stable and Beta channels (chromium_useragent.patch does not apply)

Reported by Piet Delport on 2012-01-01
58
This bug affects 10 people
Affects Status Importance Assigned to Milestone
chromium-browser (Ubuntu)
Undecided
Unassigned

Bug Description

(Apologies for filing this bug here first; i can't seem to report it on the Chromium team or project pages.)

The <https://launchpad.net/~chromium-daily> builds for the Beta and Stable channels (Chromium 16.0.912.63) are currently failing, due to chromium_useragent.patch not applying. The error message in the build log is as follows:

Applying patch chromium_useragent.patch
patching file webkit/glue/user_agent.cc
Hunk #1 FAILED at 127.
1 out of 1 hunk FAILED -- rejects in file webkit/glue/user_agent.cc
Patch chromium_useragent.patch does not apply (enforce with -f)

I encountered this error while trying to upgrade to Chromium 16 for debugging purposes: this error is causing the PPA to be stuck at 15.

The Dev (version 17) and Daily (version 18) channels do not seem to be affected by this problem.

Related Ask Ubuntu question: http://askubuntu.com/questions/89058/how-to-install-the-latest-stable-version-of-chromium

Additional details:

Package summaries:
* https://launchpad.net/~chromium-daily/+archive/beta/+packages
* https://launchpad.net/~chromium-daily/+archive/stable/+packages

Build failures:
* https://launchpad.net/~chromium-daily/+archive/beta/+build/2993897
* https://launchpad.net/~chromium-daily/+archive/stable/+build/3006421

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in chromium-browser (Ubuntu):
status: New → Confirmed
Miklos Juhasz (mjuhasz) wrote :

Indeed, it seems that the chromium_useragent.patch has not been updated for but Chromium 16 but it was updated for 17 according to this changelog entry for chromium in the dev ppa:

[ Chris Coulson <email address hidden> ]
  * Refresh patches
    - update debian/patches/chromium_useragent.patch.in

With the updated useragent patch Chromium 16 (local) build was successful for me.

Miklos Juhasz (mjuhasz) wrote :

I uploaded Chromium 16 to my ppa:mjuhasz/backports if anyone's in need of it. Other than the updated user agent patch it contains a simple patch I backported to restore the unity integration which never worked with Oneiric (see changelog for details).

Micah Gersten (micahg) wrote :
Download full text (3.3 KiB)

Sorry, this is not building for me and I don't know why ATM. This is both in precise and oneiric chroots.
cd /«PKGBUILDDIR»/build-tree/src && GYP_GENERATORS=make GYP_DEFINES="disable_sse2=1 use_third_party_translations=1 werror= target_arch=x64 werror= linux_sandbox_path=/usr/lib/chromium-browser/chromium-browser-sandbox linux_sandbox_chrome_path=/usr/lib/chromium-browser/chromium-browser proprietary_codecs=1 build_ffmpegsumo=0 " python build/gyp_chromium --no-circular-check build/all.gyp
Updating projects from gyp files...
Traceback (most recent call last):
  File "build/gyp_chromium", line 171, in <module>
    sys.exit(gyp.main(args))
  File "/«PKGBUILDDIR»/build-tree/src/tools/gyp/pylib/gyp/__init__.py", line 465, in main
    options.circular_check)
  File "/«PKGBUILDDIR»/build-tree/src/tools/gyp/pylib/gyp/__init__.py", line 101, in Load
    depth, generator_input_info, check, circular_check)
  File "/«PKGBUILDDIR»/build-tree/src/tools/gyp/pylib/gyp/input.py", line 2265, in Load
    depth, check)
  File "/«PKGBUILDDIR»/build-tree/src/tools/gyp/pylib/gyp/input.py", line 435, in LoadTargetBuildFile
    includes, depth, check)
  File "/«PKGBUILDDIR»/build-tree/src/tools/gyp/pylib/gyp/input.py", line 435, in LoadTargetBuildFile
    includes, depth, check)
  File "/«PKGBUILDDIR»/build-tree/src/tools/gyp/pylib/gyp/input.py", line 389, in LoadTargetBuildFile
    build_file_path)
  File "/«PKGBUILDDIR»/build-tree/src/tools/gyp/pylib/gyp/input.py", line 986, in ProcessVariablesAndConditionsInDict
    ProcessConditionsInDict(the_dict, is_late, variables, build_file)
  File "/«PKGBUILDDIR»/build-tree/src/tools/gyp/pylib/gyp/input.py", line 863, in ProcessConditionsInDict
    variables, build_file)
  File "/«PKGBUILDDIR»/build-tree/src/tools/gyp/pylib/gyp/input.py", line 1012, in ProcessVariablesAndConditionsInDict
    build_file)
  File "/«PKGBUILDDIR»/build-tree/src/tools/gyp/pylib/gyp/input.py", line 1027, in ProcessVariablesAndConditionsInList
    ProcessVariablesAndConditionsInDict(item, is_late, variables, build_file)
  File "/«PKGBUILDDIR»/build-tree/src/tools/gyp/pylib/gyp/input.py", line 986, in ProcessVariablesAndConditionsInDict
    ProcessConditionsInDict(the_dict, is_late, variables, build_file)
  File "/«PKGBUILDDIR»/build-tree/src/tools/gyp/pylib/gyp/input.py", line 863, in ProcessConditionsInDict
    variables, build_file)
  File "/«PKGBUILDDIR»/build-tree/src/tools/gyp/pylib/gyp/input.py", line 1012, in ProcessVariablesAndConditionsInDict
    build_file)
  File "/«PKGBUILDDIR»/build-tree/src/tools/gyp/pylib/gyp/input.py", line 1027, in ProcessVariablesAndConditionsInList
    ProcessVariablesAndConditionsInDict(item, is_late, variables, build_file)
  File "/«PKGBUILDDIR»/build-tree/src/tools/gyp/pylib/gyp/input.py", line 1012, in ProcessVariablesAndConditionsInDict
    build_file)
  File "/«PKGBUILDDIR»/build-tree/src/tools/gyp/pylib/gyp/input.py", line 1031, in ProcessVariablesAndConditionsInList
    expanded = ExpandVariables(item, is_late, variables, build_file)
  File "/«PKGBUILDDIR»/build-tree/src/tools/gyp/pylib/gyp/input.py", line 698, in ExpandVariables
    (contents, p.returncode))
Exception: Call to 'python build_nacl_irt.p...

Read more...

Miklos Juhasz (mjuhasz) wrote :

The Chromium 16 source in my ppa is a sheer copy of what is in chromium-stable (other than the user-agent patch fix and the unity-service patch).

In my diff I see that nacl is actually disabled:

# Disable NaCl until we figure out what to do with the private toolchain
GYP_DEFINES += disable_nacl=1

BTW, a quick search between Chromium issues brought up similar errors to yours (e.g. issue 94518).

Micah Gersten (micahg) wrote :

I fixed this last week

Changed in chromium-browser (Ubuntu):
status: Confirmed → Fix Released
Piet Delport (pjdelport) wrote :

Thanks! Stable seems to build successfully now.

The Beta build still seems to failing, though, with the next patch now:

Applying patch disable_dlog_and_dcheck_in_release_builds.patch
patching file base/logging.h
Hunk #1 FAILED at 495.
1 out of 1 hunk FAILED -- rejects in file base/logging.h
Patch disable_dlog_and_dcheck_in_release_builds.patch does not apply (enforce with -f)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers