question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build fails checking linux package deps on other distros when --official-build=false

See original GitHub issue

Description

The build fails while doing the create_dist step with the following logs:

Steps to Reproduce

  1. sudo ./src/build/install-build-deps.sh --no-prompt
  2. yarn build Release --debug_build=false --official_build=false --channel=beta
  3. yarn run create_dist Release --debug_build=false --official_build=false --channel=beta

Actual result:

01:00:26 [607/644] STAMP obj/chrome/installer/linux/calculate_rpm_dependencies.inputdeps.stamp
01:00:26 [608/644] STAMP obj/chrome/installer/linux/calculate_deb_dependencies.inputdeps.stamp
01:00:26 [609/644] ACTION //chrome/installer/linux:calculate_rpm_dependencies(//build/toolchain/linux:clang_x64)
01:00:26 [610/644] ACTION //chrome/installer/linux:calculate_rpm_dependencies(//build/toolchain/linux:clang_x64)
01:00:26 FAILED: rpm_brave.deps 
01:00:26 python ../../chrome/installer/linux/rpm/calculate_package_deps.py brave rpm_brave.deps --distro-check
01:00:26 Unexpected new dependency libresolv.so.2()(64bit) on distro openSUSE Leap 42.3 caused by binary brave
01:00:26 Unexpected new dependency libcairo-gobject.so.2()(64bit) on distro openSUSE Leap 42.3 caused by binary brave
01:00:26 Unexpected new dependency libplc4.so()(64bit) on distro openSUSE Leap 42.3 caused by binary brave
01:00:26 Unexpected new dependency libz.so.1()(64bit) on distro openSUSE Leap 42.3 caused by binary brave
01:00:26 Unexpected new dependency libplds4.so()(64bit) on distro openSUSE Leap 42.3 caused by binary brave
01:00:26 Unexpected new dependency libresolv.so.2()(64bit) on distro Fedora 26 caused by binary brave
01:00:26 Unexpected new dependency libcairo-gobject.so.2()(64bit) on distro Fedora 26 caused by binary brave
01:00:26 Unexpected new dependency libplc4.so()(64bit) on distro Fedora 26 caused by binary brave
01:00:26 Unexpected new dependency libz.so.1()(64bit) on distro Fedora 26 caused by binary brave
01:00:26 Unexpected new dependency libplds4.so()(64bit) on distro Fedora 26 caused by binary brave
01:00:26 Unexpected new dependency libresolv.so.2()(64bit) on distro Fedora 27 caused by binary brave
01:00:26 Unexpected new dependency libcairo-gobject.so.2()(64bit) on distro Fedora 27 caused by binary brave
01:00:26 Unexpected new dependency libplc4.so()(64bit) on distro Fedora 27 caused by binary brave
01:00:26 Unexpected new dependency libz.so.1()(64bit) on distro Fedora 27 caused by binary brave
01:00:26 Unexpected new dependency libplds4.so()(64bit) on distro Fedora 27 caused by binary brave
01:00:26 Unexpected new dependency libresolv.so.2()(64bit) on distro openSUSE Leap 42.2 caused by binary brave
01:00:26 Unexpected new dependency libcairo-gobject.so.2()(64bit) on distro openSUSE Leap 42.2 caused by binary brave
01:00:26 Unexpected new dependency libplc4.so()(64bit) on distro openSUSE Leap 42.2 caused by binary brave
01:00:26 Unexpected new dependency libz.so.1()(64bit) on distro openSUSE Leap 42.2 caused by binary brave
01:00:26 Unexpected new dependency libplds4.so()(64bit) on distro openSUSE Leap 42.2 caused by binary brave
01:00:26 Unexpected new dependency libresolv.so.2()(64bit) on distro Fedora 25 caused by binary brave
01:00:26 Unexpected new dependency libcairo-gobject.so.2()(64bit) on distro Fedora 25 caused by binary brave
01:00:26 Unexpected new dependency libplc4.so()(64bit) on distro Fedora 25 caused by binary brave
01:00:26 Unexpected new dependency libz.so.1()(64bit) on distro Fedora 25 caused by binary brave
01:00:26 Unexpected new dependency libplds4.so()(64bit) on distro Fedora 25 caused by binary brave
01:00:26 [611/644] ACTION //chrome/installer/linux:calculate_deb_dependencies(//build/toolchain/linux:clang_x64)
01:00:29 [612/644] ACTION //chrome/installer/linux:calculate_deb_dependencies(//build/toolchain/linux:clang_x64)
01:00:29 FAILED: deb_brave.deps 
01:00:29 python ../../chrome/installer/linux/debian/calculate_package_deps.py brave ../../build/linux/debian_sid_amd64-sysroot x64 deb_brave.deps --distro-check
01:00:29 Dependency libcairo-gobject2 (>= 1.10.0) not satisfiable on distro Ubuntu 14.04 (Trusty) caused by binary brave
01:00:29 Dependency zlib1g (>= 1:1.1.4) not satisfiable on distro Ubuntu 14.04 (Trusty) caused by binary brave
01:00:29 Dependency libcairo-gobject2 (>= 1.10.0) not satisfiable on distro Debian 9 (Stretch) caused by binary brave
01:00:29 Dependency zlib1g (>= 1:1.1.4) not satisfiable on distro Debian 9 (Stretch) caused by binary brave
01:00:29 Dependency libcairo-gobject2 (>= 1.10.0) not satisfiable on distro Ubuntu 16.04 (Xenial) caused by binary brave
01:00:29 Dependency zlib1g (>= 1:1.1.4) not satisfiable on distro Ubuntu 16.04 (Xenial) caused by binary brave
01:00:29 Dependency libcairo-gobject2 (>= 1.10.0) not satisfiable on distro Debian 10 (Buster) caused by binary brave
01:00:29 Dependency zlib1g (>= 1:1.1.4) not satisfiable on distro Debian 10 (Buster) caused by binary brave
01:00:29 Dependency libcairo-gobject2 (>= 1.10.0) not satisfiable on distro Ubuntu 17.10 (Artful) caused by binary brave
01:00:29 Dependency zlib1g (>= 1:1.1.4) not satisfiable on distro Ubuntu 17.10 (Artful) caused by binary brave
01:00:29 Dependency libcairo-gobject2 (>= 1.10.0) not satisfiable on distro Debian 8 (Jessie) caused by binary brave
01:00:29 Dependency zlib1g (>= 1:1.1.4) not satisfiable on distro Debian 8 (Jessie) caused by binary brave
01:00:34 [613/644] ACTION //brave/app/linux:generate_breakpad_symbols(//build/toolchain/linux:clang_x64)
01:00:34 ninja: build stopped: subcommand failed.
01:00:34 null
01:00:34 null
01:00:34 error Command failed with exit code 1.

Expected result:

Reproduces how often:

Brave version (about:brave info)

Reproducible on current release:

Website problems only:

  • Does the issue gets fixed with Brave Shields disabled?
  • Does the issue reproduces on Chrome?

Additional Information

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Jacalzcommented, Jun 7, 2018

You might want to update https://github.com/brave/brave-browser/wiki/Linux-Development-Environment arter this gets fixed 😉

0reactions
bscliftoncommented, Jul 18, 2019

@fmarier good question… I know I have built with --official-build=false, but I haven’t tried to do create_dist. I’ll keep open until we can confirm that

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating packages for other distributions - ArchWiki
Use distribution-specific packaging tools. Examples: dh-makeAUR, dpkg (Debian), rpm-tools (Fedora). Shortcuts such as dpkg-deb may be suited ...
Read more >
apt - How do I resolve unmet dependencies after adding a PPA?
One possible cause of unmet dependencies could be corrupted package database, and/or some packages weren't installed properly. To fix this problem, ...
Read more >
Package Manager Issues (Pop!_OS) - System76 Support
If your system complains about a failed upgrade, package manager conflicts, broken upgrades, or other package-related issues, there are several common fixes ...
Read more >
[MANUAL] Building .DEB packages on clean Ubuntu or other ...
added dependency python-requests. if during install get message about systemctl: error while loading shared libraries: libjson-c.so.3: cannot open shared ...
Read more >
7. Declaring relationships between packages - Debian
For binary relationship fields and the Built-Using field, the architecture restriction syntax is only supported in the source package control file debian/ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found