ungoogled-software / ungoogled-chromium

Google Chromium, sans integration with Google
BSD 3-Clause "New" or "Revised" License
20.84k stars 846 forks source link

missing dirs #410

Closed UnnoTed closed 6 years ago

UnnoTed commented 6 years ago

Hi, i need some help to build v65.0.3325.181-1 on linux mint 18.3.

first i ran into debian/files not found as staTed in debian/clean

/media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium-65.0.3325.181-1/buildspace/tree/debian/clean: 1: /media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium-65.0.3325.181-1/buildspace/tree/debian/clean: debian/files: not found
dh_clean: debian/clean (executable config) returned exit code 127
debian/rules:96: recipe for target 'clean' failed
make: *** [clean] Error 127
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2

so i commenTed it and it ran fine for hours until the same kind of issue appeared at debian/rules override_dh_auto_build-indep, but with usr/bin and etc/chromium.d missing instead.

[24215/24221] CXX obj/content/test/test_support/test_render_frame.o
warning: unknown warning option '-Wno-enum-compare-switch'; did you mean '-Wno-enum-compare'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-tautological-unsigned-zero-compare' [-Wunknown-warning-option]
warning: unknown warning option '-Wno-null-pointer-arithmetic'; did you mean '-Wno-null-arithmetic'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-tautological-constant-compare'; did you mean '-Wno-tautological-pointer-compare'? [-Wunknown-warning-option]
4 warnings generated.
[24216/24221] CXX obj/content/test/test_support/test_background_sync_manager.o
warning: unknown warning option '-Wno-enum-compare-switch'; did you mean '-Wno-enum-compare'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-tautological-unsigned-zero-compare' [-Wunknown-warning-option]
warning: unknown warning option '-Wno-null-pointer-arithmetic'; did you mean '-Wno-null-arithmetic'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-tautological-constant-compare'; did you mean '-Wno-tautological-pointer-compare'? [-Wunknown-warning-option]
4 warnings generated.
[24221/24221] LINK ./content_shell
make[1]: Leaving directory '/media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium-65.0.3325.181-1/buildspace/tree'
   debian/rules override_dh_auto_build-indep
make[1]: Entering directory '/media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium-65.0.3325.181-1/buildspace/tree'
./out/Default/gn gen out/Default --args="target_extra_ldflags=\"-Wl,--stats\" target_extra_cxxflags=\"-Wno-deprecated-declarations -Wno-dangling-else -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable\" host_cpu=\"x64\" use_jumbo_build=true enable_reporting=false use_kerberos=false google_default_client_secret=\"\" use_sysroot=false use_unofficial_version_number=false linux_use_bundled_binutils=false use_lld=true enable_nacl=false optimize_webui=false use_official_google_api_keys=false use_gtk3=true exclude_unwind_tables=true enable_iterator_debugging=false enable_widevine=true enable_mse_mpeg2ts_stream_parser=true ffmpeg_branding=\"Chrome\" treat_warnings_as_errors=false enable_remoting=false enable_hangout_services_extension=false enable_ac3_eac3_audio_demuxing=true enable_nacl_nonsfi=false enable_swiftshader=false enable_one_click_signin=false use_ozone=false clang_use_chrome_plugins=false google_api_key=\"\" fieldtrial_testing_like_official_build=true enable_google_now=false fatal_linker_warnings=false proprietary_codecs=true clang_base_path=getenv(\"CLANG_BASE_PATH\") safe_browsing_mode=0 is_debug=false enable_service_discovery=false optimize_for_size=false enable_mdns=false symbol_level=0 google_default_client_id=\"\" remove_webcore_debug_symbols=true use_gnome_keyring=false is_clang=true enable_reading_list=false enable_hevc_demuxing=true" --fail-on-unused-args
Done. Made 7179 targets from 1426 files in 68111ms
ninja  -C out/Default packed_resources
ninja: Entering directory `out/Default'
[1/18] ACTION //components/resources:about_credits(//build/toolchain/linux:clang_x64)
make[1]: Leaving directory '/media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium-65.0.3325.181-1/buildspace/tree'
   dh_auto_test
   dh_testroot
   dh_prep
    rm -f debian/ungoogled-chromium.substvars
    rm -f debian/ungoogled-chromium.*.debhelper
    rm -rf debian/ungoogled-chromium/
    rm -f debian/ungoogled-chromium-l10n.substvars
    rm -f debian/ungoogled-chromium-l10n.*.debhelper
    rm -rf debian/ungoogled-chromium-l10n/
    rm -f debian/ungoogled-chromium-shell.substvars
    rm -f debian/ungoogled-chromium-shell.*.debhelper
    rm -rf debian/ungoogled-chromium-shell/
    rm -f debian/ungoogled-chromium-widevine.substvars
    rm -f debian/ungoogled-chromium-widevine.*.debhelper
    rm -rf debian/ungoogled-chromium-widevine/
    rm -f debian/ungoogled-chromium-driver.substvars
    rm -f debian/ungoogled-chromium-driver.*.debhelper
    rm -rf debian/ungoogled-chromium-driver/
    rm -f debian/ungoogled-chromium-common.substvars
    rm -f debian/ungoogled-chromium-common.*.debhelper
    rm -rf debian/ungoogled-chromium-common/
   dh_installdirs
    install -d debian/ungoogled-chromium
/media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium-65.0.3325.181-1/buildspace/tree/debian/ungoogled-chromium.dirs: 1: /media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium-65.0.3325.181-1/buildspace/tree/debian/ungoogled-chromium.dirs: usr/bin: not found
/media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium-65.0.3325.181-1/buildspace/tree/debian/ungoogled-chromium.dirs: 3: /media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium-65.0.3325.181-1/buildspace/tree/debian/ungoogled-chromium.dirs: etc/chromium.d: not found
dh_installdirs: debian/ungoogled-chromium.dirs (executable config) returned exit code 127
debian/rules:96: recipe for target 'binary' failed
make: *** [binary] Error 127
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2

commands:

mkdir -p buildspace/downloads
./buildkit-launcher.py genbun linux_portable
./buildkit-launcher.py getsrc
./buildkit-launcher.py subdom
./buildkit-launcher.py genpkg debian --flavor minimal
cd buildspace/tree
dpkg-buildpackage -b -uc

full log: https://kevin.cx/chromium_log.txt

Eloston commented 6 years ago

Hmm, I've never seen this error before. Are you not able to use the latest version of ungoogled-chromium?

UnnoTed commented 6 years ago

Same thing with master

vasp375@vasp375 /media/vasp375/125EE02A0436C528/chromium $ git clone https://github.com/Eloston/ungoogled-chromium
Cloning into 'ungoogled-chromium'...
remote: Counting objects: 7575, done.
remote: Compressing objects: 100% (58/58), done.
remote: Total 7575 (delta 32), reused 64 (delta 28), pack-reused 7487
Receiving objects: 100% (7575/7575), 3.76 MiB | 2.21 MiB/s, done.
Resolving deltas: 100% (4659/4659), done.
Checking connectivity... done.
vasp375@vasp375 /media/vasp375/125EE02A0436C528/chromium $ cd ungoogled-chromium
vasp375@vasp375 /media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium $ ls
BUILDING.md  buildkit  buildkit-launcher.py  DESIGN.md  developer_utilities  DEVELOPING.md  FAQ.md  LICENSE  README.md  resources
vasp375@vasp375 /media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium $ mkdir -p buildspace/downloads
vasp375@vasp375 /media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium $ 
vasp375@vasp375 /media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium $ ./buildkit-launcher.py genbun linux_portable
vasp375@vasp375 /media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium $ ./buildkit-launcher.py getsrc
2018-05-15 11:32:38,686 - DEBUG: Initialized logger 'buildkit'
2018-05-15 11:32:38,686 - INFO: Downloading Chromium source code...
2018-05-15 11:32:38,687 - INFO: Downloading buildspace/downloads/chromium-66.0.3359.139.tar.xz ...
Progress: 100.0% of 583,978,636 B
2018-05-15 11:36:07,499 - INFO: Downloading buildspace/downloads/chromium-66.0.3359.139.tar.xz.hashes ...
2018-05-15 11:36:08,103 - INFO: Verifying hashes...
2018-05-15 11:36:13,897 - DEBUG: Verifying md5 hash...
2018-05-15 11:36:14,822 - DEBUG: Verifying sha1 hash...
2018-05-15 11:36:15,478 - DEBUG: Verifying sha224 hash...
2018-05-15 11:36:16,919 - DEBUG: Verifying sha256 hash...
2018-05-15 11:36:18,344 - DEBUG: Verifying sha384 hash...
2018-05-15 11:36:19,321 - DEBUG: Verifying sha512 hash...
2018-05-15 11:36:20,301 - INFO: Extracting archive...
2018-05-15 11:36:22,829 - DEBUG: Using BSD or GNU tar extractor
2018-05-15 11:36:22,829 - DEBUG: tar command line: /bin/tar -xf buildspace/downloads/chromium-66.0.3359.139.tar.xz -C /media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium/buildspace/tree
vasp375@vasp375 /media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium $ 
vasp375@vasp375 /media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium $ ./buildkit-launcher.py subdom
vasp375@vasp375 /media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium $ 
vasp375@vasp375 /media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium $ ./buildkit-launcher.py genpkg debian --flavor minimal
vasp375@vasp375 /media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium $ cd buildspace/tree
vasp375@vasp375 /media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium/buildspace/tree $ dpkg-buildpackage -b -uc
dpkg-buildpackage: source package ungoogled-chromium-browser
dpkg-buildpackage: source version 66.0.3359.139-1
dpkg-buildpackage: source distribution stable
dpkg-buildpackage: source changed by Maintainer <maintainer@null>
dpkg-buildpackage: host architecture amd64
 dpkg-source --before-build tree
dpkg-source: info: applying inox-patchset/fix-crash-in-is_cfi-true-builds-with-unbundled-ICU.patch
dpkg-source: info: applying inox-patchset/fix-frame-buttons-rendering-too-large-when-using-OSX.patch
dpkg-source: info: applying inox-patchset/chromium-exclude_unwind_tables.patch
dpkg-source: info: applying inox-patchset/chromium-ffmpeg-r1.patch
dpkg-source: info: applying inox-patchset/chromium-skia-harmony.patch
dpkg-source: info: applying inox-patchset/0001-fix-building-without-safebrowsing.patch
dpkg-source: info: applying inox-patchset/0002-fix-building-without-reporting.patch
dpkg-source: info: applying inox-patchset/0003-disable-autofill-download-manager.patch
dpkg-source: info: applying inox-patchset/0004-disable-google-url-tracker.patch
dpkg-source: info: applying inox-patchset/0005-disable-default-extensions.patch
dpkg-source: info: applying inox-patchset/0006-modify-default-prefs.patch
dpkg-source: info: applying inox-patchset/0007-disable-web-resource-service.patch
dpkg-source: info: applying inox-patchset/0008-restore-classic-ntp.patch
dpkg-source: info: applying inox-patchset/0009-disable-google-ipv6-probes.patch
dpkg-source: info: applying inox-patchset/0010-disable-gcm-status-check.patch
dpkg-source: info: applying inox-patchset/0011-add-duckduckgo-search-engine.patch
dpkg-source: info: applying inox-patchset/0013-disable-missing-key-warning.patch
dpkg-source: info: applying inox-patchset/0014-disable-translation-lang-fetch.patch
dpkg-source: info: applying inox-patchset/0015-disable-update-pings.patch
dpkg-source: info: applying inox-patchset/0016-chromium-sandbox-pie.patch
dpkg-source: info: applying inox-patchset/0017-disable-new-avatar-menu.patch
dpkg-source: info: applying inox-patchset/0018-disable-first-run-behaviour.patch
dpkg-source: info: applying inox-patchset/0019-disable-battery-status-service.patch
dpkg-source: info: applying inox-patchset/0021-disable-rlz.patch
dpkg-source: info: applying inox-patchset/9000-disable-metrics.patch
dpkg-source: info: applying debian/gn/libcxx.patch
dpkg-source: info: applying debian/gn/parallel.patch
dpkg-source: info: applying debian/gn/narrowing.patch
dpkg-source: info: applying debian/disable/fonts.patch
dpkg-source: info: applying debian/disable/fuzzers.patch
dpkg-source: info: applying debian/disable/welcome-page.patch
dpkg-source: info: applying debian/disable/google-api-warning.patch
dpkg-source: info: applying debian/disable/device-notifications.patch
dpkg-source: info: applying debian/fixes/mojo.patch
dpkg-source: info: applying debian/fixes/optional.patch
dpkg-source: info: applying debian/fixes/optimize.patch
dpkg-source: info: applying debian/fixes/ps-print.patch
dpkg-source: info: applying debian/fixes/inspector.patch
dpkg-source: info: applying debian/fixes/gpu-timeout.patch
dpkg-source: info: applying debian/fixes/duplicate-name.patch
dpkg-source: info: applying debian/fixes/overloaded-call.patch
dpkg-source: info: applying debian/fixes/incomplete-types.patch
dpkg-source: info: applying debian/fixes/ambiguous-aliases.patch
dpkg-source: info: applying debian/fixes/widevine-revision.patch
dpkg-source: info: applying debian/fixes/connection-message.patch
dpkg-source: info: applying debian/fixes/chromedriver-revision.patch
dpkg-source: info: applying debian/fixes/skia_buildfix.patch
dpkg-source: info: applying debian/warnings/sequence-point.patch
dpkg-source: info: applying debian/warnings/initialization.patch
dpkg-source: info: applying iridium-browser/net-cert-increase-default-key-length-for-newly-gener.patch
dpkg-source: info: applying iridium-browser/mime_util-force-text-x-suse-ymp-to-be-downloaded.patch
dpkg-source: info: applying iridium-browser/prefs-only-keep-cookies-until-exit.patch
dpkg-source: info: applying iridium-browser/prefs-always-prompt-for-download-directory-by-defaul.patch
dpkg-source: info: applying iridium-browser/updater-disable-auto-update.patch
dpkg-source: info: applying iridium-browser/Remove-EV-certificates.patch
dpkg-source: info: applying iridium-browser/safe_browsing-disable-incident-reporting.patch
dpkg-source: info: applying iridium-browser/safe_browsing-disable-reporting-of-safebrowsing-over.patch
dpkg-source: info: applying iridium-browser/safe_browsing-support-trk-prefix.patch
dpkg-source: info: applying iridium-browser/all-add-trk-prefixes-to-possibly-evil-connections.patch
dpkg-source: info: applying iridium-browser/promo-disable-Google-promotion-fetching.patch
dpkg-source: info: applying iridium-browser/browser-disable-profile-auto-import-on-first-run.patch
dpkg-source: info: applying ungoogled-chromium/clear-http-auth-cache-menu-item.patch
dpkg-source: info: applying ungoogled-chromium/disable-crash-reporter.patch
dpkg-source: info: applying ungoogled-chromium/disable-formatting-in-omnibox.patch
dpkg-source: info: applying ungoogled-chromium/disable-google-host-detection.patch
dpkg-source: info: applying ungoogled-chromium/replace-google-search-engine-with-nosearch.patch
dpkg-source: info: applying ungoogled-chromium/disable-signin.patch
dpkg-source: info: applying ungoogled-chromium/disable-translate.patch
dpkg-source: info: applying ungoogled-chromium/popups-to-tabs.patch
dpkg-source: info: applying ungoogled-chromium/disable-untraceable-urls.patch
dpkg-source: info: applying ungoogled-chromium/add-ipv6-probing-option.patch
dpkg-source: info: applying ungoogled-chromium/disable-profile-avatar-downloading.patch
dpkg-source: info: applying ungoogled-chromium/remove-disable-setuid-sandbox-as-bad-flag.patch
dpkg-source: info: applying ungoogled-chromium/disable-gcm.patch
dpkg-source: info: applying ungoogled-chromium/disable-domain-reliability.patch
dpkg-source: info: applying ungoogled-chromium/block-trk-and-subdomains.patch
dpkg-source: info: applying ungoogled-chromium/disable-intranet-redirect-detector.patch
dpkg-source: info: applying ungoogled-chromium/fix-building-without-one-click-signin.patch
dpkg-source: info: applying ungoogled-chromium/enable-page-saving-on-more-pages.patch
dpkg-source: info: applying ungoogled-chromium/disable-download-quarantine.patch
dpkg-source: info: applying ungoogled-chromium/disable-gaia.patch
dpkg-source: info: applying ungoogled-chromium/disable-fonts-googleapis-references.patch
dpkg-source: info: applying ungoogled-chromium/disable-webstore-urls.patch
dpkg-source: info: applying ungoogled-chromium/fix-learn-doubleclick-hsts.patch
dpkg-source: info: applying ungoogled-chromium/disable-webrtc-log-uploader.patch
dpkg-source: info: applying ungoogled-chromium/fix-building-without-mdns-and-service-discovery.patch
dpkg-source: info: applying ungoogled-chromium/use-local-devtools-files.patch
dpkg-source: info: applying ungoogled-chromium/add-flag-to-stack-tabs.patch
dpkg-source: info: applying ungoogled-chromium/add-flag-to-configure-extension-downloading.patch
dpkg-source: info: applying ungoogled-chromium/disable-network-time-tracker.patch
dpkg-source: info: applying ungoogled-chromium/add-flag-for-search-engine-collection.patch
dpkg-source: info: applying ungoogled-chromium/add-flag-to-disable-beforeunload.patch
dpkg-source: info: applying ungoogled-chromium/add-flag-to-enable-potentially-annoying-security-features.patch
dpkg-source: info: applying ungoogled-chromium/disable-mei-preload.patch
dpkg-source: info: applying ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch
dpkg-source: info: applying ungoogled-chromium/fix-screen-sharing-in-google-meet.patch
dpkg-source: info: applying ubuntu/no-new-ninja-flag.patch
dpkg-source: info: applying ubuntu/relax-ninja-version-requirement.patch
dpkg-source: info: applying ungoogled-chromium/linux/manpage.patch
 fakeroot debian/rules clean
dh clean
   dh_testdir
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium/buildspace/tree'
rm -rf out
find . -name \*.pyc -execdir rm -f {} \;
dh_auto_clean
make[1]: Leaving directory '/media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium/buildspace/tree'
   dh_clean
    rm -f debian/debhelper-build-stamp
    rm -f debian/ungoogled-chromium.substvars
    rm -f debian/ungoogled-chromium.*.debhelper
    rm -rf debian/ungoogled-chromium/
    rm -f debian/ungoogled-chromium-l10n.substvars
    rm -f debian/ungoogled-chromium-l10n.*.debhelper
    rm -rf debian/ungoogled-chromium-l10n/
    rm -f debian/ungoogled-chromium-shell.substvars
    rm -f debian/ungoogled-chromium-shell.*.debhelper
    rm -rf debian/ungoogled-chromium-shell/
    rm -f debian/ungoogled-chromium-widevine.substvars
    rm -f debian/ungoogled-chromium-widevine.*.debhelper
    rm -rf debian/ungoogled-chromium-widevine/
    rm -f debian/ungoogled-chromium-driver.substvars
    rm -f debian/ungoogled-chromium-driver.*.debhelper
    rm -rf debian/ungoogled-chromium-driver/
    rm -f debian/ungoogled-chromium-common.substvars
    rm -f debian/ungoogled-chromium-common.*.debhelper
    rm -rf debian/ungoogled-chromium-common/
    rm -rf debian/.debhelper/
    rm -f debian/*.debhelper.log
/media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium/buildspace/tree/debian/clean: 1: /media/vasp375/125EE02A0436C528/chromium/ungoogled-chromium/buildspace/tree/debian/clean: debian/files: not found
dh_clean: debian/clean (executable config) returned exit code 127
debian/rules:103: recipe for target 'clean' failed
make: *** [clean] Error 127
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
Eloston commented 6 years ago

Does your system have the proper dependencies to do a build using the Debian 9 building steps (or newer Debian)? If it does, I'd like to see if these errors still show up there.

UnnoTed commented 6 years ago

I was able to get it compiled through a docker container with Debian 9, I had to add deb http://deb.debian.org/debian stretch main to /etc/apt/sources.list just to install some deps that i couldn't find...

 libavformat57 : Depends: libchromaprint1 (>= 1.3.2) but it is not going to be installed
                 Depends: libopenmpt0 (>= 0.2.7025~beta20.1) but it is not going to be installed
 ungoogled-chromium : Depends: libicu57 (>= 57.1-1~) but it is not going to be installed
                      Depends: libjpeg62-turbo (>= 1:1.5.1-2) but it is not going to be installed
                      Depends: libre2-3 (>= 20160901) but it is not going to be installed
                      Depends: libvpx4 (>= 1.6.0) but it is not going to be installed
                      Depends: libwebpdemux2 (>= 0.5.1) but it is not going to be installed
                      Depends: libwebpmux2 (>= 0.5.1) but it is not going to be installed

But it's working fine now, thanks.

Eloston commented 6 years ago

So Linux Mint doesn't have the dependencies to build with the Debian stretch configuration? Hm, that's unfortunate.

I believe Linux minimal still works on Ubuntu, so I'm not sure why Linux Mint is different. Maybe the default debhelper configuration is different? If someone knows, I'd like to know.

Closing for now since a solution was found.