Package Details: firedragon 1:11.21.0_1-1

Git Clone URL: https://aur.archlinux.org/firedragon.git (read-only, click to copy)
Package Base: firedragon
Description: Floorp fork build using custom branding and settings
Upstream URL: https://firedragon.garudalinux.org
Keywords: browser firedragon firefox floorp
Licenses: MPL2
Replaces: firedragon-next
Submitter: polyzen
Maintainer: dr460nf1r3 (FGD, garudalinux)
Last Packager: garudalinux
Votes: 23
Popularity: 0.32
First Submitted: 2021-04-22 10:57 (UTC)
Last Updated: 2024-11-24 16:56 (UTC)

Dependencies (52)

Sources (3)

Pinned Comments

dr460nf1r3 commented on 2024-04-17 16:23 (UTC) (edited on 2024-04-17 16:26 (UTC) by dr460nf1r3)

Everyone can now participate in the general package update process! The process is almost entirely automated, these are the necessary steps:

  1. Create an MR with your changes to the source repo (the firedragon folder contains the files of this repo)
  2. Wait for a maintainer to review and merge it
  3. Done! When merging, the PKGBUILD will automatically be deployed to AUR via the CI pipeline.

FGD commented on 2024-02-03 22:31 (UTC)

We are finally there! After being frozen on version 119 and investing quite some time improving the app, Firedragon now has an entirely new base!

Please see the Announcement post:

https://forum.garudalinux.org/t/new-firedragon-major-version-is-out/34585

Latest Comments

« First ‹ Previous 1 .. 5 6 7 8 9 10 11 12 Next › Last »

prg commented on 2021-11-28 17:50 (UTC) (edited on 2021-11-28 22:25 (UTC) by prg)

Anyone able to get this to build recently?

edit: I was able to get 92.0.2-3 to build on a clean build VM. Not sure why it was failing for me in my previous post

prg commented on 2021-11-25 06:35 (UTC)

My builds seem to be freezing at this point. It doesn't actually fail, but stalls here forever

 0:26.34 make: Leaving directory '/home/user/firedragon/src/firefox-94.0.2/obj'
created virtual environment CPython3.9.7.final.0-64 in 81ms
  creator CPython3Posix(dest=/home/user/firedragon/src/firefox-94.0.2/obj/_virtualenvs/common, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/user/.local/share/virtualenv)
    added seed packages: pip==21.2.3, setuptools==51.2.0, wheel==0.37.0
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator
console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at /tmp/tmp9d4dgsgo/search.json.mozlz4", (void 0)))

###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost


###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost


###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost


###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost

jarlog: /home/user/firedragon/src/firefox-94.0.2/jarlog
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
1637821649868   addons.xpi      ERROR   System addon update list error Error: got node name: parsererror, expected: updates

Neko-san commented on 2021-11-05 21:49 (UTC)

@dr460f1r3 can you merge the PKGBUILD I mentioned?

Neko-san commented on 2021-10-30 22:36 (UTC) (edited on 2021-10-31 05:30 (UTC) by Neko-san)

I managed to find the issue; some edits to the PKGBUILD fixed it, but it does still end up resulting in what @prg mentioned with the rust errors:

# Maintainer: dr460nf1r3 <dr460nf1r3 at garudalinux dot org>
# Contributor: torvic9 AT mailbox DOT org
# Contributor: lsf

pkgname=firedragon
_pkgname=FireDragon
pkgver=93.0
pkgrel=3
pkgdesc="Librewolf fork build using custom branding, settings & KDE patches by OpenSUSE"
arch=(x86_64 x86_64_v3 aarch64)
backup=('usr/lib/firedragon/firedragon.cfg'
        'usr/lib/firedragon/distribution/policies.json')
license=(MPL GPL LGPL)
url="https://gitlab.com/dr460nf1r3/settings/"
depends=(gtk3 libxt mime-types dbus-glib ffmpeg nss nspr ttf-font libpulse
        libwebp libvpx libjpeg zlib icu libevent pipewire aom harfbuzz
        graphite dav1d kfiredragonhelper)
makedepends=(unzip zip diffutils yasm mesa imake inetutils xorg-server-xvfb
             rust ccache autoconf2.13 clang llvm jack nodejs cbindgen nasm
             python-setuptools python-psutil python-zstandard git binutils lld dump_syms)
optdepends=('firejail-git: Sandboxing the browser using the included profiles'
            'profile-sync-daemon: Load the browser profile into RAM'
            'whoogle: Searching the web using a locally running Whoogle instance'
            'searx: Searching the web using a locally running searX instance'
            'networkmanager: Location detection via available WiFi networks'
            'libnotify: Notification integration'
            'pulseaudio: Audio support'
            'speech-dispatcher: Text-to-Speech'
            'hunspell-en_US: Spell checking, American English'
            'libappindicator-gtk3: Global menu support for GTK apps'
            'appmenu-gtk-module-git: Appmenu for GTK only'
            'plasma5-applets-window-appmenu: Appmenu for Plasma only')
options=(!emptydirs !makeflags !strip !lto)
conflicts=('firedragon-hg')
install=$pkgname.install
source=(https://archive.mozilla.org/pub/firefox/releases/$pkgver/source/firefox-$pkgver.source.tar.xz
        $pkgname.desktop
        "git+https://gitlab.com/dr460nf1r3/common.git"
        "git+https://gitlab.com/dr460nf1r3/settings.git")

sha256sums=('a78f080f5849bc284b84299f3540934a12e961a7ea368b592ae6576ea1f97102'
            '158152bdb9ef6a83bad62ae03a3d9bc8ae693b34926e53cc8c4de07df20ab22d'
            'SKIP'
            'SKIP')

prepare() {
  if [[ ! -d mozbuild ]];then
      mkdir mozbuild
  fi
  cd firefox-$pkgver

  local _patches_dir="${srcdir}/common/patches"

  sed -i 's/\"BrowserApplication\"\, \"firefox\"/\"BrowserApplication\"\, \"firedragon\"/g' ${_patches_dir}/kde/firefox-kde.patch
  sed -i 's/kmozillahelper/kfiredragonhelper/g' ${_patches_dir}/kde/mozilla-kde.patch

  # Arch patches
  echo "---- Arch patches"
  patch -Np1 -i ${_patches_dir}/arch/0001-Use-remoting-name-for-GDK-application-names.patch

  # KDE patches (W. Rosenauer)
  echo "---- Patching for KDE"
  patch -Np1 -i ${_patches_dir}/kde/mozilla-nongnome-proxies.patch
  patch -Np1 -i ${_patches_dir}/kde/mozilla-kde.patch
  #patch -Np1 -i ${_patches_dir}/kde/firefox-kde.patch Currently broken with PGO

  # Ubuntu patches
  echo "---- Misc patches"
  patch -Np1 -i ${_patches_dir}/misc/fix-hidden-buttons-with-csd-menubar.patch

  # Rust
  patch -Np1 -i ${_patches_dir}/misc/reduce-rust-debuginfo.patch

  # Gentoo patches
  echo "---- Gentoo patches"
  patch -Np1 -i ${_patches_dir}/gentoo/0021-bmo-1516081-Disable-watchdog-during-PGO-builds.patch
  patch -Np1 -i ${_patches_dir}/gentoo/0029-LTO-Only-enable-LTO-for-Rust-when-complete-build-use.patch

  # Use more system libs
  echo "---- Patching for system libs"
  patch -Np1 -i ${_patches_dir}/gentoo/0004-bmo-847568-Support-system-harfbuzz.patch
  patch -Np1 -i ${_patches_dir}/gentoo/0005-bmo-847568-Support-system-graphite2.patch
  patch -Np1 -i ${_patches_dir}/gentoo/0006-bmo-1559213-Support-system-av1.patch

  # Remove some pre-installed addons that might be questionable
  echo "---- Librewolf patches"
  patch -Np1 -i ${_patches_dir}/librewolf/remove_addons.patch

  # Disable (some) megabar functionality
  # Adapted from https://github.com/WesleyBranton/userChrome.css-Customizations
  patch -Np1 -i ${_patches_dir}/librewolf/megabar.patch

  # Debian patch to enable global menubar
  patch -Np1 -i ${_patches_dir}/librewolf/unity-menubar.patch

  # Disabling Pocket
  patch -Np1 -i ${_patches_dir}/sed-patches/disable-pocket.patch

  # Remove Mozilla VPN ads
  patch -Np1 -i ${_patches_dir}/librewolf/mozilla-vpn-ad.patch

  # Allow overriding the color scheme light/dark preference with RFP
  patch -Np1 -i ${_patches_dir}/librewolf/allow_dark_preference_with_rfp.patch

  # Remove Internal Plugin Certificates
  # => breaks profiled builds since 90.0, it seems
  # patch -Np1 -i ${_patches_dir}/sed-patches/remove-internal-plugin-certs.patch

  # Allow SearchEngines option in non-ESR builds
  patch -Np1 -i ${_patches_dir}/sed-patches/allow-searchengines-non-esr.patch

  # Stop some undesired requests (https://gitlab.com/librewolf-community/browser/common/-/issues/10)
  patch -Np1 -i ${_patches_dir}/sed-patches/stop-undesired-requests.patch

  # Needed patch to have build working
  patch -Np1 -i ${_patches_dir}/misc/fix-wayland.patch

  cat >../mozconfig <<END
ac_add_options --enable-application=browser
mk_add_options MOZ_OBJDIR=${PWD@Q}/obj

ac_add_options --prefix=/usr
ac_add_options --enable-release
ac_add_options --enable-hardening
ac_add_options --enable-rust-simd
ac_add_options --with-ccache
export CC=clang
export CXX=clang++
export RANLIB=llvm-ranlib
export STRIP=llvm-strip
export AR=llvm-ar
export NM=llvm-nm
export LD=lld
export OBJCOPY='/usr/bin/llvm-objcopy'
ac_add_options --enable-linker=lld

# Branding
ac_add_options --enable-update-channel=release
ac_add_options --with-app-name=${pkgname}
ac_add_options --with-app-basename='${_pkgname}'
ac_add_options --with-branding=browser/branding/firedragon
ac_add_options --with-distribution-id=org.garudalinux
ac_add_options --with-unsigned-addon-scopes=app,system
ac_add_options --allow-addon-sideload

#export STRIP_FLAGS="--strip-debug --strip-unneeded"

# System libraries
#ac_add_options --disable-libproxy
ac_add_options --enable-system-pixman
ac_add_options --with-system-av1
ac_add_options --with-system-ffi
ac_add_options --with-system-graphite2
ac_add_options --with-system-harfbuzz
ac_add_options --with-system-icu
ac_add_options --with-system-jpeg
ac_add_options --with-system-libevent
#ac_add_options --with-system-libvpx
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
ac_add_options --with-system-webp
ac_add_options --with-system-zlib

# Features
ac_add_options --disable-crashreporter
#ac_add_options --disable-debug
#ac_add_options --disable-debug-js-modules
#ac_add_options --disable-debug-symbols
ac_add_options --disable-gpsd
#ac_add_options --disable-ipdl-tests
#ac_add_options --disable-necko-wifi
#ac_add_options --disable-rust-tests
#ac_add_options --disable-synth-speechd
ac_add_options --disable-tests
#ac_add_options --disable-trace-logging
ac_add_options --disable-updater
#ac_add_options --disable-warnings-as-errors
#ac_add_options --disable-webspeech
#ac_add_options --disable-webspeechtestbackend
ac_add_options --enable-alsa
ac_add_options --enable-jack
ac_add_options --enable-pulseaudio
ac_add_options --enable-strip

# Disables crash reporting, telemetry and other data gathering tools
mk_add_options MOZ_CRASHREPORTER=0
mk_add_options MOZ_DATA_REPORTING=0
mk_add_options MOZ_SERVICES_HEALTHREPORT=0
mk_add_options MOZ_TELEMETRY_REPORTING=0

# options for ci / weaker build systems
# mk_add_options MOZ_MAKE_FLAGS="-j4"
# ac_add_options --enable-linker=gold
END

if [[ $CARCH == 'aarch64' ]]; then
  cat >>../mozconfig <<END
# taken from manjaro build:
ac_add_options --enable-optimize="-g0 -O2"
# from ALARM
# ac_add_options --disable-webrtc

END

  export MOZ_DEBUG_FLAGS=" "
  export CFLAGS+=" -g0"
  export CXXFLAGS+=" -g0"
  export RUSTFLAGS+="-C debuginfo=0"

  # we should have more than enough RAM on the CI spot instances.
  # ...or maybe not?
  export LDFLAGS+=" -Wl,--no-keep-memory"
  patch -Np1 -i ${_patches_dir}/librewolf/arm.patch
  patch -Np1 -i ${_patches_dir}/arch/build-arm-libopus.patch

else

  cat >>../mozconfig <<END
# probably not needed, enabled by default?
ac_add_options --enable-optimize
END
fi

  rm -f ${srcdir}/common/source_files/mozconfig
  cp -r ${srcdir}/common/source_files/* ./
}

build() {
  cd firefox-$pkgver

  export MOZ_NOSPAM=1
  export MOZBUILD_STATE_PATH="$srcdir/mozbuild"
  export MOZ_ENABLE_FULL_SYMBOLS=1
  export MACH_USE_SYSTEM_PYTHON=1
    export CC=clang
    export CXX=clang++
    export RANLIB=llvm-ranlib
    export STRIP=llvm-strip
    export AR=llvm-ar
    export NM=llvm-nm
    export LD=lld
    export OBJCOPY='/usr/bin/llvm-objcopy'

  # LTO needs more open files
  ulimit -n 4096

  # -fno-plt with cross-LTO causes obscure LLVM errors
  # LLVM ERROR: Function Import: link error
  CFLAGS="${CFLAGS/-fno-plt/}"
  CXXFLAGS="${CXXFLAGS/-fno-plt/}"

  # Do 3-tier PGO
  echo "Building instrumented browser..."

if [[ $CARCH == 'aarch64' ]]; then

  cat >.mozconfig ../mozconfig - <<END
ac_add_options --enable-profile-generate
END

else

  cat >.mozconfig ../mozconfig - <<END
ac_add_options --enable-profile-generate=cross
END

fi

  ./mach build

  echo "Profiling instrumented browser..."
  ./mach package
  LLVM_PROFDATA=llvm-profdata \
    JARLOG_FILE="$PWD/jarlog" \
    xvfb-run -s "-screen 0 1920x1080x24 -nolisten local" \
    ./mach python build/pgo/profileserver.py

  stat -c "Profile data found (%s bytes)" merged.profdata
  test -s merged.profdata

  stat -c "Jar log found (%s bytes)" jarlog
  test -s jarlog

  echo "Removing instrumented browser..."
  ./mach clobber

  echo "Building optimized browser..."

    if [[ $CARCH == 'aarch64' ]]; then

      cat >.mozconfig ../mozconfig - <<END
    ac_add_options --enable-lto
    ac_add_options --enable-profile-use
    ac_add_options --with-pgo-profile-path=${PWD@Q}/merged.profdata
    ac_add_options --with-pgo-jarlog=${PWD@Q}/jarlog
    ac_add_options --enable-linker=lld
END

    else

      cat >.mozconfig ../mozconfig - <<END
    ac_add_options --enable-lto=cross
    ac_add_options --enable-profile-use=cross
    ac_add_options --with-pgo-profile-path=${PWD@Q}/merged.profdata
    ac_add_options --with-pgo-jarlog=${PWD@Q}/jarlog
    ac_add_options --enable-linker=lld
    ac_add_options --disable-elf-hack
    ac_add_options --disable-bootstrap
END

    fi

  ./mach build

  echo "Building symbol archive..."
  ./mach buildsymbols
}

package() {
  cd firefox-$pkgver
  DESTDIR="$pkgdir" ./mach install

  install -Dvm644 "$srcdir/settings/$pkgname.psd" "$pkgdir/usr/share/psd/browsers/$pkgname"

  local vendorjs="$pkgdir/usr/lib/$pkgname/browser/defaults/preferences/vendor.js"

  install -Dvm644 /dev/stdin "$vendorjs" <<END
// Use system-provided dictionaries
pref("spellchecker.dictionary_path", "/usr/share/hunspell");

// Don't disable extensions in the application directory
// done in librewolf.cfg
// pref("extensions.autoDisableScopes", 11);
END

  # cd ${srcdir}/settings
  # git checkout ${_settings_commit}
  cd ${srcdir}/firefox-$pkgver
  cp -r ${srcdir}/settings/* ${pkgdir}/usr/lib/${pkgname}/

  local distini="$pkgdir/usr/lib/$pkgname/distribution/distribution.ini"
  install -Dvm644 /dev/stdin "$distini" <<END
[Global]
id=garudalinux
version=${pkgver}
about=${_pkgname} for Arch Linux

[Preferences]
app.distributor="Garuda Linux"
app.distributor.channel=$pkgname
app.partner.archlinux=garudalinux
END

  for i in 16 32 48 64 128; do
    install -Dvm644 browser/branding/${pkgname}/default$i.png \
      "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/$pkgname.png"
  done
  install -Dvm644 browser/branding/${pkgname}/content/about-logo.png \
    "$pkgdir/usr/share/icons/hicolor/192x192/apps/$pkgname.png"

  # Arch upstream provides a separate svg for this. we don't have that, so let's re-use 16.png
  install -Dvm644 browser/branding/${pkgname}/default16.png \
    "$pkgdir/usr/share/icons/hicolor/symbolic/apps/$pkgname-symbolic.png"

  install -Dvm644 ../$pkgname.desktop \
    "$pkgdir/usr/share/applications/$pkgname.desktop"

  # Install a wrapper to avoid confusion about binary path
  install -Dvm755 /dev/stdin "$pkgdir/usr/bin/$pkgname" <<END
#!/bin/sh
exec /usr/lib/$pkgname/$pkgname "\$@"
END

  # Replace duplicate binary with wrapper
  # https://bugzilla.mozilla.org/show_bug.cgi?id=658850
  ln -srfv "$pkgdir/usr/bin/$pkgname" "$pkgdir/usr/lib/$pkgname/$pkgname-bin"
  # Use system certificates
  local nssckbi="$pkgdir/usr/lib/$pkgname/libnssckbi.so"
  if [[ -e $nssckbi ]]; then
    ln -srfv "$pkgdir/usr/lib/libnssckbi.so" "$nssckbi"
  fi

  # Delete unneeded things from settings repo
  rm "$pkgdir/usr/lib/firedragon/LICENSE.txt"
  rm "$pkgdir/usr/lib/firedragon/about.png"
  rm "$pkgdir/usr/lib/firedragon/firedragon.psd"
  rm "$pkgdir/usr/lib/firedragon/home.png"
  rm "$pkgdir/usr/lib/firedragon/tabliss.json"
}

prg commented on 2021-10-27 13:01 (UTC)

Unfortunately, firedragon is failing to build on bare-metal also. It seems that its likely a separate issue from the failing-to-build in a chroot issue, though.

1:09.89    Compiling iovec v0.1.4                                                                                                                                                                                                                                                                                              
 1:09.89 For more information about this error, try `rustc --explain E0557`.                                                                                                                                                                                                                                                    
 1:09.91 The following warnings were emitted during compilation:                                                                                                                                                                                                                                                                
 1:09.91 warning: Cannot set `RUSTC_BOOTSTRAP=1` from build script of `packed_simd v0.3.4 (https://github.com/hsivonen/packed_simd?rev=6a16f954950401b92b4e220fbf2dfaf6f00e1fb2#6a16f954)`.                                                                                                                                     
 1:09.92 note: Crates cannot set `RUSTC_BOOTSTRAP` themselves, as doing so would subvert the stability guarantees of Rust for your project.                                                                                                                                                                                     
 1:09.92 error: could not compile `packed_simd` due to 13 previous errors                                                                                                                                                                                                                                                       
 1:09.92 warning: build failed, waiting for other jobs to finish...                                                                                                                                                                                                                                                             
 1:09.93 image/encoders/ico                                                                                                                                                                                                                                                                                                     
 1:09.95 image/encoders/jpeg                                                                                                                                                                                                                                                                                                    
 1:09.98 image/encoders/png                                                                                                                                                                                                                                                                                                     
 1:10.01 image                                                                                                                                                                                                                                                                                                                  
 1:10.13 intl/components                                                                                                                                                                                                                                                                                                        
 1:10.13 intl/hyphenation/glue                                                                                                                                                                                                                                                                                                  
 1:10.18 intl/l10n                                                                                                                                                                                                                                                                                                              
 1:10.19 intl/locale/gtk                                                                                                                                                                                                                                                                                                        
 1:10.21 intl/locale                                                                                                                                                                                                                                                                                                            
 1:10.22 intl/lwbrk                                                                                                                                                                                                                                                                                                             
 1:10.24 intl/strres                                                                                                                                                                                                                                                                                                            
 1:10.25 intl/uconv                                                                                                                                                                                                                                                                                                             
 1:10.26 intl/unicharutil/util                                                                                                                                                                                                                                                                                                  
 1:10.27 ipc/app                                                                                                                                                                                                                                                                                                                
 1:10.55 toolkit/library/build/symverscript.stub                                                                                                                                                                                                                                                                                
 1:10.56 media/libsoundtouch/src                                                                                                                                                                                                                                                                                                
 1:10.56 config/external/sqlite/libmozsqlite3.so.symbols.stub                                                                                                                                                                                                                                                                   
 1:10.57 In file included from Unified_cpp_libsoundtouch_src0.cpp:20:                                                                                                                                                                                                                                                           
 1:10.57 /home/user/firedragon/src/firefox-93.0/media/libsoundtouch/src/FIRFilter.cpp:81:12: warning: unused variable 'dScaler' [-Wunused-variable]                                                                                                                                                                            
 1:10.57     double dScaler = 1.0 / (double)resultDivider;                                                                                                                                                                                                                                                                      
 1:10.57            ^                                                                                                                                                                                                                                                                                                           
 1:10.57 /home/user/firedragon/src/firefox-93.0/media/libsoundtouch/src/FIRFilter.cpp:127:12: warning: unused variable 'dScaler' [-Wunused-variable]                                                                                                                                                                           
 1:10.57     double dScaler = 1.0 / (double)resultDivider;                                                                                                                                                                                                                                                                      
 1:10.57            ^                                                                                                                                                                                                                                                                                                           
 1:10.57 /home/user/firedragon/src/firefox-93.0/media/libsoundtouch/src/FIRFilter.cpp:166:12: warning: unused variable 'dScaler' [-Wunused-variable]                                                                                                                                                                           
 1:10.57     double dScaler = 1.0 / (double)resultDivider;                                                                                                                                                                                                                                                                      
 1:10.57            ^                                                                                                                                                                                                                                                                                                           
 1:10.57 In file included from Unified_cpp_libsoundtouch_src0.cpp:47:                                                                                                                                                                                                                                                           
 1:10.57 /home/user/firedragon/src/firefox-93.0/media/libsoundtouch/src/InterpolateShannon.cpp:71:9: warning: 'PI' macro redefined [-Wmacro-redefined]                                                                                                                                                                         
 1:10.57 #define PI 3.1415926536                                                                                                                                                                                                                                                                                                
 1:10.57         ^                                                                                                                                                                                                                                                                                                              
 1:10.57 /home/user/firedragon/src/firefox-93.0/media/libsoundtouch/src/AAFilter.cpp:45:9: note: previous definition is here                                                                                                                                                                                                   
 1:10.57 #define PI       M_PI                                                                                                                                                                                                                                                                                                  
 1:10.57         ^                                                                                                                                                                                                                                                                                                              
 1:10.57 In file included from Unified_cpp_libsoundtouch_src0.cpp:92:                                                                                                                                                                                                                                                           
 1:10.57 /home/user/firedragon/src/firefox-93.0/media/libsoundtouch/src/cpu_detect_x86.cpp:48:12: warning: 'bit_MMX' macro redefined [-Wmacro-redefined]                                                                                                                                                                       
 1:10.57    #define bit_MMX     (1 << 23)                                                                                                                                                                                                                                                                                       
 1:10.57            ^                                                                                                                                                                                                                                                                                                           
 1:10.57 /usr/lib/clang/12.0.1/include/cpuid.h:133:9: note: previous definition is here                                                                                                                                                                                                                                         
 1:10.57 #define bit_MMX         0x00800000                                                                                                                                                                                                                                                                                     
 1:10.57         ^                                                                                                                                                                                                                                                                                                              
 1:10.57 In file included from Unified_cpp_libsoundtouch_src0.cpp:92:                                                                                                                                                                                                                                                           
 1:10.57 /home/user/firedragon/src/firefox-93.0/media/libsoundtouch/src/cpu_detect_x86.cpp:49:12: warning: 'bit_SSE' macro redefined [-Wmacro-redefined]                                                                                                                                                                       
 1:10.57    #define bit_SSE     (1 << 25)                                                                                                                                                                                                                                                                                       
 1:10.57            ^                                                                                                                                                                                                                                                                                                           
 1:10.57 /usr/lib/clang/12.0.1/include/cpuid.h:136:9: note: previous definition is here                                                                                                                                                                                                                                         
 1:10.57 #define bit_SSE         0x02000000                                                                                                                                                                                                                                                                                     
 1:10.57         ^                                                                                                                                                                                                                                                                                                              
 1:10.57 In file included from Unified_cpp_libsoundtouch_src0.cpp:92:                                                                                                                                                                                                                                                           
 1:10.57 /home/user/firedragon/src/firefox-93.0/media/libsoundtouch/src/cpu_detect_x86.cpp:50:12: warning: 'bit_SSE2' macro redefined [-Wmacro-redefined]                                                                                                                                                                      
 1:10.57    #define bit_SSE2    (1 << 26)                                                                                                                                                                                                                                                                                       
 1:10.57            ^                                                                                                                                                                           
 1:10.57 /usr/lib/clang/12.0.1/include/cpuid.h:137:9: note: previous definition is here                                                                                                         
 1:10.57 #define bit_SSE2        0x04000000                                                                                                                                                     
 1:10.57         ^                                                                                                                                                                              
 1:10.57 7 warnings generated.                                                                                                                                                                  
 1:10.57 third_party/sqlite3/src                                                                                                                                                                
 1:10.59 ipc/chromium                                                                                                                                                                           
 1:10.71 ipc/glue                                                                                                                                                                               
 1:10.72 ipc/ipdl                                                                                                                                                                               
 1:21.62 ipc/testshell                                                                                                                                                                          
 1:27.83 js/ductwork/debugger                                                                                                                                                                   
 1:29.50 js/src/debugger                                                                                                                                                                        
 1:30.60 js/src/frontend                                                                                                                                                                        
 1:32.75 js/src/gc/StatsPhasesGenerated.inc.stub                                                                                                                                                
 1:32.93 js/src/irregexp                                                                                                                                                                        
 1:33.76 js/src/jit                                                                                                                                                                             
 1:35.12 js/src                                                                                                                                                                                 
 1:36.94 js/src/wasm                                                                                                                                                                            
 1:40.84 modules/fdlibm/src                                                                                                                                                                     
 1:43.10 error: build failed                                                                                                                                                                    
 1:43.11 make[4]: *** [/home/user/firedragon/src/firefox-93.0/config/makefiles/rust.mk:408: force-cargo-library-build] Error 101                                                               
 1:43.11 make[3]: *** [/home/user/firedragon/src/firefox-93.0/config/recurse.mk:72: toolkit/library/rust/target] Error 2                                                                       
 1:43.11 make[3]: *** Waiting for unfinished jobs....                                                                                                                                           
 2:16.98 /home/user/firedragon/src/firefox-93.0/third_party/sqlite3/src/sqlite3.c:161544:9: warning: code will never be executed [-Wunreachable-code]                                          
 2:16.98         YYMINORTYPE yylhsminor;                                                                                                                                                        
 2:16.98         ^~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                        
 2:16.98 1 warning generated.                                                                                                                                                                   
 3:08.11 make[2]: *** [/home/user/firedragon/src/firefox-93.0/config/recurse.mk:34: compile] Error 2                                                                                           
 3:08.11 make[1]: *** [/home/user/firedragon/src/firefox-93.0/config/rules.mk:358: default] Error 2                                                                                            
 3:08.11 make: *** [client.mk:65: build] Error 2                                                                                                                                                
 3:08.13 34 compiler warnings present.                                                                                                                                                          
 3:08.18 Failed to parse ccache stats output: Summary:                                                                  
==> ERROR: A failure occurred in build().                                                                               
    Aborting...                                  

Neko-san commented on 2021-10-25 20:03 (UTC) (edited on 2021-10-27 20:07 (UTC) by Neko-san)

@dr460nf1r3 I managed to set up a chroot (with Paru) and it fails even in that environment for me (I really hope I can get help with this; I've never been able to compile it and my chroot log is essentially identical to my bare-metal one):

==> Starting build()...
Building instrumented browser...
 0:01.01 Failed to parse ccache stats output: Summary:
 0:01.02 Clobber not needed.
 0:01.02 /usr/bin/python3 /build/firedragon/src/firefox-93.0/configure.py
 0:01.13 Creating Python 3 environment
 0:01.46 created virtual environment CPython3.9.7.final.0-64 in 164ms
 0:01.46   creator CPython3Posix(dest=/build/firedragon/src/firefox-93.0/obj/_virtualenvs/common, clear=False, no_vcs_ignore=False, global=False)
 0:01.46   seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/build/.local/share/virtualenv)
 0:01.46     added seed packages: pip==20.3.1, setuptools==51.0.0, wheel==0.36.1
 0:01.46   activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
 0:01.52 Re-executing in the virtualenv
 0:01.68 Adding configure options from /build/firedragon/src/firefox-93.0/.mozconfig
 0:01.68   --enable-application=browser
 0:01.68   --prefix=/usr
 0:01.68   --enable-release
 0:01.68   --enable-hardening
 0:01.68   --enable-rust-simd
 0:01.68   --with-ccache
 0:01.68   --enable-update-channel=release
 0:01.68   --with-app-name=firedragon
 0:01.68   --with-app-basename=FireDragon
 0:01.68   --with-branding=browser/branding/firedragon
 0:01.68   --with-distribution-id=org.garudalinux
 0:01.68   --with-unsigned-addon-scopes=app,system
 0:01.68   --allow-addon-sideload
 0:01.68   --enable-system-pixman
 0:01.68   --with-system-av1
 0:01.68   --with-system-ffi
 0:01.68   --with-system-graphite2
 0:01.68   --with-system-harfbuzz
 0:01.68   --with-system-icu
 0:01.68   --with-system-jpeg
 0:01.68   --with-system-libevent
 0:01.68   --with-system-nspr
 0:01.68   --with-system-nss
 0:01.68   --with-system-webp
 0:01.68   --with-system-zlib
 0:01.68   --disable-crashreporter
 0:01.68   --disable-gpsd
 0:01.68   --disable-tests
 0:01.68   --disable-updater
 0:01.68   --enable-alsa
 0:01.68   --enable-jack
 0:01.68   --enable-pulseaudio
 0:01.68   --enable-strip
 0:01.68   --enable-optimize
 0:01.68   --enable-profile-generate=cross
 0:01.68   NM=llvm-nm
 0:01.68   RANLIB=llvm-ranlib
 0:01.68   OBJCOPY=/usr/bin/llvm-objcopy
 0:01.68   STRIP=llvm-strip
 0:01.68 checking for vcs source checkout... no
 0:01.70 checking for a shell... /usr/bin/sh
 0:01.73 checking for host system type... x86_64-pc-linux-gnu
 0:01.73 checking for target system type... x86_64-pc-linux-gnu
 0:02.02 checking whether cross compiling... no
 0:02.10 checking for pkg_config... /usr/bin/pkg-config
 0:02.11 checking for aom >= 1.0.0... yes
 0:02.11 checking MOZ_SYSTEM_LIBAOM_CFLAGS...
 0:02.11 checking MOZ_SYSTEM_LIBAOM_LIBS... -laom
 0:02.11 checking for dav1d >= 0.1.1... yes
 0:02.12 checking MOZ_SYSTEM_LIBDAV1D_CFLAGS...
 0:02.12 checking MOZ_SYSTEM_LIBDAV1D_LIBS... -ldav1d
 0:02.12 checking for Python 3... /build/firedragon/src/firefox-93.0/obj/_virtualenvs/common/bin/python (3.9.7)
 0:02.13 checking for wget... not found
 0:02.14 checking for ccache... /usr/bin/ccache
 0:02.16 checking for the target C compiler... /usr/bin/clang
 0:03.80 checking whether the target C compiler can be used... yes
 0:03.80 checking the target C compiler version... 12.0.1
 0:03.93 checking the target C compiler works... yes
 0:03.93 WARNING: The value of LD is not used by this build system.
 0:03.94 checking for the target C++ compiler... /usr/bin/clang++
 0:03.97 checking whether the target C++ compiler can be used... yes
 0:03.97 checking the target C++ compiler version... 12.0.1
 0:04.00 checking the target C++ compiler works... yes
 0:04.00 checking for the host C compiler... /usr/bin/clang
 0:04.04 checking whether the host C compiler can be used... yes
 0:04.04 checking the host C compiler version... 12.0.1
 0:04.07 checking the host C compiler works... yes
 0:04.07 checking for the host C++ compiler... /usr/bin/clang++
 0:04.10 checking whether the host C++ compiler can be used... yes
 0:04.10 checking the host C++ compiler version... 12.0.1
 0:04.13 checking the host C++ compiler works... yes
 0:04.17 checking for 64-bit OS... yes
 0:04.23 checking for new enough STL headers from libstdc++... yes
 0:04.29 checking for linker... bfd
 0:04.29 checking for the assembler... /usr/bin/clang
 0:04.30 checking for ar... /usr/bin/llvm-ar
 0:04.31 checking for nm... /usr/bin/llvm-nm
 0:04.32 checking for pkg-config version... 1.8.0
 0:04.37 checking for stdint.h... yes
 0:04.43 checking for inttypes.h... yes
 0:04.47 checking for malloc.h... yes
 0:04.51 checking for alloca.h... yes
 0:04.53 checking for sys/byteorder.h... no
 0:04.57 checking for getopt.h... yes
 0:04.61 checking for unistd.h... yes
 0:04.65 checking for nl_types.h... yes
 0:04.70 checking for cpuid.h... yes
 0:04.75 checking for fts.h... yes
 0:04.78 checking for sys/statvfs.h... yes
 0:04.82 checking for sys/statfs.h... yes
 0:04.85 checking for sys/vfs.h... yes
 0:04.90 checking for sys/mount.h... yes
 0:04.94 checking for sys/quota.h... yes
 0:04.98 checking for linux/quota.h... yes
 0:05.04 checking for linux/if_addr.h... yes
 0:05.09 checking for linux/rtnetlink.h... yes
 0:05.13 checking for sys/queue.h... yes
 0:05.16 checking for sys/types.h... yes
 0:05.20 checking for netinet/in.h... yes
 0:05.23 checking for byteswap.h... yes
 0:05.27 checking for memfd_create in sys/mman.h... yes
 0:05.33 checking for linux/perf_event.h... yes
 0:05.36 checking for perf_event_open system call... yes
 0:05.39 checking whether the C compiler supports -Wbitfield-enum-conversion... yes
 0:05.43 checking whether the C++ compiler supports -Wbitfield-enum-conversion... yes
 0:05.46 checking whether the C++ compiler supports -Wdeprecated-this-capture... yes
 0:05.49 checking whether the C compiler supports -Wformat-type-confusion... yes
 0:05.52 checking whether the C++ compiler supports -Wformat-type-confusion... yes
 0:05.55 checking whether the C compiler supports -Wshadow-field-in-constructor-modified... yes
 0:05.58 checking whether the C++ compiler supports -Wshadow-field-in-constructor-modified... yes
 0:05.61 checking whether the C++ compiler supports -Wshadow-uncaptured-local... yes
 0:05.64 checking whether the C compiler supports -Wno-error=tautological-type-limit-compare... yes
 0:05.67 checking whether the C++ compiler supports -Wno-error=tautological-type-limit-compare... yes
 0:05.70 checking whether the C compiler supports -Wunreachable-code-return... yes
 0:05.73 checking whether the C++ compiler supports -Wunreachable-code-return... yes
 0:05.76 checking whether the C compiler supports -Wclass-varargs... yes
 0:05.79 checking whether the C++ compiler supports -Wclass-varargs... yes
 0:05.82 checking whether the C++ compiler supports -Wempty-init-stmt... yes
 0:05.85 checking whether the C compiler supports -Wfloat-overflow-conversion... yes
 0:05.88 checking whether the C++ compiler supports -Wfloat-overflow-conversion... yes
 0:05.91 checking whether the C compiler supports -Wfloat-zero-conversion... yes
 0:05.94 checking whether the C++ compiler supports -Wfloat-zero-conversion... yes
 0:05.97 checking whether the C compiler supports -Wloop-analysis... yes
 0:06.00 checking whether the C++ compiler supports -Wloop-analysis... yes
 0:06.04 checking whether the C compiler supports -Wno-range-loop-analysis... yes
 0:06.07 checking whether the C++ compiler supports -Wno-range-loop-analysis... yes
 0:06.10 checking whether the C++ compiler supports -Wc++2a-compat... yes
 0:06.13 checking whether the C++ compiler supports -Wcomma... yes
 0:06.16 checking whether the C compiler supports -Wduplicated-cond... no
 0:06.18 checking whether the C++ compiler supports -Wduplicated-cond... no
 0:06.21 checking whether the C compiler supports -Wenum-compare-conditional... yes
 0:06.24 checking whether the C++ compiler supports -Wenum-compare-conditional... yes
 0:06.28 checking whether the C++ compiler supports -Wimplicit-fallthrough... yes
 0:06.32 checking whether the C compiler supports -Wstring-conversion... yes
 0:06.35 checking whether the C++ compiler supports -Wstring-conversion... yes
 0:06.38 checking whether the C++ compiler supports -Wno-inline-new-delete... yes
 0:06.41 checking whether the C compiler supports -Wno-error=maybe-uninitialized... no
 0:06.44 checking whether the C++ compiler supports -Wno-error=maybe-uninitialized... no
 0:06.47 checking whether the C compiler supports -Wno-error=deprecated-declarations... yes
 0:06.50 checking whether the C++ compiler supports -Wno-error=deprecated-declarations... yes
 0:06.53 checking whether the C compiler supports -Wno-error=array-bounds... yes
 0:06.56 checking whether the C++ compiler supports -Wno-error=array-bounds... yes
 0:06.59 checking whether the C compiler supports -Wno-error=coverage-mismatch... no
 0:06.61 checking whether the C++ compiler supports -Wno-error=coverage-mismatch... no
 0:06.64 checking whether the C compiler supports -Wno-error=backend-plugin... yes
 0:06.68 checking whether the C++ compiler supports -Wno-error=backend-plugin... yes
 0:06.71 checking whether the C compiler supports -Wno-error=free-nonheap-object... yes
 0:06.74 checking whether the C++ compiler supports -Wno-error=free-nonheap-object... yes
 0:06.76 checking whether the C compiler supports -Wno-multistatement-macros... no
 0:06.79 checking whether the C++ compiler supports -Wno-multistatement-macros... no
 0:06.82 checking whether the C compiler supports -Wno-error=return-std-move... yes
 0:06.85 checking whether the C++ compiler supports -Wno-error=return-std-move... yes
 0:06.88 checking whether the C compiler supports -Wno-error=class-memaccess... no
 0:06.91 checking whether the C++ compiler supports -Wno-error=class-memaccess... no
 0:06.94 checking whether the C compiler supports -Wno-error=atomic-alignment... yes
 0:06.97 checking whether the C++ compiler supports -Wno-error=atomic-alignment... yes
 0:07.00 checking whether the C compiler supports -Wno-error=deprecated-copy... yes
 0:07.04 checking whether the C++ compiler supports -Wno-error=deprecated-copy... yes
 0:07.06 checking whether the C compiler supports -Wno-error=unused-but-set-variable... no
 0:07.09 checking whether the C++ compiler supports -Wno-error=unused-but-set-variable... no
 0:07.12 checking whether the C compiler supports -Wformat... yes
 0:07.16 checking whether the C++ compiler supports -Wformat... yes
 0:07.19 checking whether the C compiler supports -Wformat-security... yes
 0:07.22 checking whether the C++ compiler supports -Wformat-security... yes
 0:07.24 checking whether the C compiler supports -Wformat-overflow=2... no
 0:07.27 checking whether the C++ compiler supports -Wformat-overflow=2... no
 0:07.31 checking whether the C compiler supports -Wno-gnu-zero-variadic-macro-arguments... yes
 0:07.34 checking whether the C++ compiler supports -Wno-gnu-zero-variadic-macro-arguments... yes
 0:07.37 checking whether the C compiler supports -Werror=implicit-function-declaration... yes
 0:07.40 checking whether the C compiler supports -Wno-psabi... yes
 0:07.43 checking whether the C++ compiler supports -Wno-psabi... yes
 0:07.46 checking whether the C++ compiler supports -fno-sized-deallocation... yes
 0:07.49 checking whether the C++ compiler supports -fno-aligned-new... yes
 0:07.49 checking for llvm_profdata... /usr/bin/llvm-profdata
 0:07.51 checking for alsa... yes
 0:07.52 checking MOZ_ALSA_CFLAGS...
 0:07.52 checking MOZ_ALSA_LIBS... -lasound
 0:07.52 checking for jack... yes
 0:07.52 checking MOZ_JACK_CFLAGS...
 0:07.52 checking MOZ_JACK_LIBS... -ljack
 0:07.52 checking for libpulse... yes
 0:07.52 checking MOZ_PULSEAUDIO_CFLAGS... -D_REENTRANT
 0:07.53 checking MOZ_PULSEAUDIO_LIBS... -lpulse -pthread
 0:07.53 checking for nspr >= 4.32... yes
 0:07.53 checking NSPR_CFLAGS... -I/usr/include/nspr
 0:07.53 checking NSPR_LIBS... -lplds4 -lplc4 -lnspr4
 0:07.53 checking for rustc... /usr/bin/rustc
 0:07.53 checking for cargo... /usr/bin/cargo
 0:08.23 checking rustc version... 1.56.0
 0:08.24 checking cargo version... 1.56.0
 0:09.80 checking for rust host triplet... x86_64-unknown-linux-gnu
 0:09.84 checking for rust target triplet... x86_64-unknown-linux-gnu
 0:09.84 checking for rustdoc... /usr/bin/rustdoc
 0:09.91 checking for cbindgen... /usr/bin/cbindgen
 0:09.91 checking for rustfmt... /usr/bin/rustfmt
 0:09.91 checking for clang for bindgen... /usr/bin/clang++
 0:09.93 checking for libclang for bindgen... /usr/lib/libclang.so
 0:10.58 checking that libclang is new enough... yes
 0:10.58 checking bindgen cflags... -x c++ -fno-sized-deallocation -fno-aligned-new -DTRACING=1 -DIMPL_LIBXUL -DMOZILLA_INTERNAL_API -DRUST_BINDGEN -DOS_POSIX=1 -DOS_LINUX=1 -std=gnu++17
 0:10.59 checking for libffi > 3.0.9... yes
 0:10.59 checking MOZ_FFI_CFLAGS...
 0:10.59 checking MOZ_FFI_LIBS... -lffi
 0:10.59 checking for icu-i18n >= 69.1... yes
 0:10.59 checking MOZ_ICU_CFLAGS...
 0:10.59 checking MOZ_ICU_LIBS... -licui18n -licuuc -licudata
 0:13.32 checking for nodejs... /usr/bin/node (16.11.1)
 0:13.48 checking for gtk+-wayland-3.0 >= 3.14 xkbcommon >= 0.4.1 libdrm >= 2.4... yes
 0:13.77 checking MOZ_WAYLAND_CFLAGS... -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread -I/usr/include/libdrm
 0:13.77 checking MOZ_WAYLAND_LIBS... -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lxkbcommon -ldrm
 0:13.77 checking for pango >= 1.22.0... yes
 0:13.77 checking MOZ_PANGO_CFLAGS... -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -pthread -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/pixman-1
 0:13.78 checking MOZ_PANGO_LIBS... -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz
 0:13.78 checking for fontconfig >= 2.7.0... yes
 0:13.78 checking _FONTCONFIG_CFLAGS... -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
 0:13.78 checking _FONTCONFIG_LIBS... -lfontconfig -lfreetype
 0:13.78 checking for freetype2 >= 6.1.0... yes
 0:13.78 checking _FT2_CFLAGS... -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
 0:13.78 checking _FT2_LIBS... -lfreetype
 0:13.79 checking for graphite2... yes
 0:13.79 checking MOZ_GRAPHITE2_CFLAGS...
 0:13.79 checking MOZ_GRAPHITE2_LIBS... -lgraphite2
 0:13.79 checking for harfbuzz >= 2.7.4... yes
 0:13.79 checking MOZ_HARFBUZZ_CFLAGS... -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
 0:13.79 checking MOZ_HARFBUZZ_LIBS... -lharfbuzz
 0:13.79 checking for tar... /usr/bin/tar
 0:13.79 checking for unzip... /usr/bin/unzip
 0:13.79 checking for zip... /usr/bin/zip
 0:13.79 checking for gn... not found
 0:13.79 checking for the Mozilla API key... no
 0:13.79 checking for the Google Location Service API key... no
 0:13.79 checking for the Google Safebrowsing API key... no
 0:13.79 checking for the Bing API key... no
 0:13.79 checking for the Adjust SDK key... no
 0:13.79 checking for the Leanplum SDK key... no
 0:13.80 checking for the Pocket API key... no
 0:13.80 checking for libwebp >= 1.0.2 libwebpdemux >= 1.0.2... yes
 0:13.80 checking MOZ_WEBP_CFLAGS...
 0:13.80 checking MOZ_WEBP_LIBS... -lwebpdemux -lwebp
 0:13.80 checking for x11 xcb xcb-shm x11-xcb xext xrender xcomposite xcursor xdamage xfixes xi... yes
 0:13.80 checking MOZ_X11_CFLAGS...
 0:13.81 checking MOZ_X11_LIBS... -lxcb-shm -lX11-xcb -lxcb -lXext -lXrender -lX11 -lXcomposite -lXcursor -lXdamage -lXfixes -lXi
 0:14.07 checking for jpeg_destroy_compress... yes
 0:14.30 checking for sufficient jpeg library version... yes
 0:14.34 checking for sufficient libjpeg-turbo JCS_EXTENSIONS... yes
 0:14.34 checking for nasm... /usr/bin/nasm
 0:14.45 checking nasm version... 2.15.05
 0:14.45 checking for dump_syms... /usr/bin/dump_syms
 0:14.49 checking for getcontext... yes
 0:14.49 checking for nss >= 3.70... yes
 0:14.49 checking NSS_CFLAGS... -I/usr/include/nss -I/usr/include/nspr
 0:14.49 checking NSS_LIBS... -lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4
 0:14.50 checking for awk... /usr/bin/gawk
 0:14.50 checking for perl... /usr/bin/perl
 0:14.64 checking for minimum required perl version >= 5.006... 5.034000
 0:14.80 checking for full perl installation... yes
 0:14.80 checking for gmake... /usr/bin/make
 0:14.80 checking for watchman... not found
 0:14.80 checking for xargs... /usr/bin/xargs
 0:14.80 checking for rpmbuild... not found
 0:14.80 checking for NSIS version... no
 0:14.81 checking for llvm-objdump... /usr/bin/llvm-objdump
 0:14.82 checking for zlib >= 1.2.3... yes
 0:14.82 checking MOZ_ZLIB_CFLAGS...
 0:14.82 checking MOZ_ZLIB_LIBS... -lz
 0:14.82 checking for m4... /usr/bin/m4
 0:14.82 Refreshing /build/firedragon/src/firefox-93.0/old-configure with /build/firedragon/src/firefox-93.0/build/autoconf/autoconf.sh
 0:15.29 creating cache ./config.cache
 0:15.30 checking host system type... x86_64-pc-linux-gnu
 0:15.31 checking target system type... x86_64-pc-linux-gnu
 0:15.31 checking build system type... x86_64-pc-linux-gnu
 0:15.31 checking for objcopy... /usr/bin/llvm-objcopy
 0:15.34 checking for Cygwin environment... no
 0:15.37 checking for mingw32 environment... no
 0:15.94 checking for executable suffix... no
 0:15.94 checking for gcc... (cached) /usr/bin/ccache /usr/bin/clang -std=gnu99
 0:15.94 checking whether the C compiler (/usr/bin/ccache /usr/bin/clang -std=gnu99 -march=native -mtune=native -O3 -pipe -fno-plt -minline-all-stringops -fexceptions -Wall         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now ) works... (cached) yes
 0:15.94 checking whether the C compiler (/usr/bin/ccache /usr/bin/clang -std=gnu99 -march=native -mtune=native -O3 -pipe -fno-plt -minline-all-stringops -fexceptions -Wall         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now ) is a cross-compiler... no
 0:15.94 checking whether we are using GNU C... (cached) yes
 0:15.94 checking whether /usr/bin/ccache /usr/bin/clang -std=gnu99 accepts -g... (cached) yes
 0:15.94 checking for c++... (cached) /usr/bin/ccache /usr/bin/clang++ -std=gnu++17
 0:15.94 checking whether the C++ compiler (/usr/bin/ccache /usr/bin/clang++ -std=gnu++17 -march=native -mtune=native -O3 -pipe -fno-plt -minline-all-stringops -fexceptions -Wall         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now ) works... (cached) yes
 0:15.94 checking whether the C++ compiler (/usr/bin/ccache /usr/bin/clang++ -std=gnu++17 -march=native -mtune=native -O3 -pipe -fno-plt -minline-all-stringops -fexceptions -Wall         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now ) is a cross-compiler... no
 0:15.94 checking whether we are using GNU C++... (cached) yes
 0:15.94 checking whether /usr/bin/ccache /usr/bin/clang++ -std=gnu++17 accepts -g... (cached) yes
 0:15.94 checking for /usr/bin/ccache... (cached) /usr/bin/ccache /usr/bin/clang -std=gnu99
 0:15.94 checking for strip... llvm-strip
 0:15.94 checking for otool... no
 0:16.02 checking for --noexecstack option to as... yes
 0:16.07 checking for -z noexecstack option to ld... yes
 0:16.12 checking for -z text option to ld... yes
 0:16.17 checking for -z relro option to ld... yes
 0:16.22 checking for -z nocopyreloc option to ld... yes
 0:16.26 checking for -Bsymbolic-functions option to ld... yes
 0:16.31 checking for --build-id=sha1 option to ld... yes
 0:16.36 checking for --ignore-unresolved-symbol option to ld... yes
 0:16.39 checking if toolchain supports -mssse3 option... yes
 0:16.43 checking if toolchain supports -msse4.1 option... yes
 0:16.46 checking for x86 AVX2 asm support in compiler... yes
 0:16.49 checking whether the linker supports Identical Code Folding... no
 0:16.52 checking for working const... yes
 0:16.54 checking for mode_t... yes
 0:16.56 checking for off_t... yes
 0:16.57 checking for pid_t... yes
 0:16.59 checking for size_t... yes
 0:17.39 checking whether 64-bits std::atomic requires -latomic... no
 0:17.54 checking for dirent.h that defines DIR... yes
 0:17.58 checking for opendir in -ldir... no
 0:17.66 checking for sockaddr_in.sin_len... false
 0:17.69 checking for sockaddr_in6.sin6_len... false
 0:17.73 checking for sockaddr.sa_len... false
 0:17.77 checking for gethostbyname_r in -lc_r... no
 0:17.87 checking for library containing dlopen... -ldl
 0:18.02 checking for dlfcn.h... yes
 0:18.07 checking for dladdr... yes
 0:18.14 checking for memmem... yes
 0:18.18 checking for socket in -lsocket... no
 0:18.21 checking for pthread_create in -lpthreads... no
 0:18.27 checking for pthread_create in -lpthread... yes
 0:18.30 checking whether /usr/bin/ccache /usr/bin/clang -std=gnu99 accepts -pthread... yes
 0:18.36 checking for pthread.h... yes
 0:18.41 checking for stat64... yes
 0:18.47 checking for lstat64... yes
 0:18.52 checking for truncate64... yes
 0:18.57 checking for statvfs64... yes
 0:18.63 checking for statvfs... yes
 0:18.68 checking for statfs64... yes
 0:18.73 checking for statfs... yes
 0:18.79 checking for getpagesize... yes
 0:18.84 checking for gmtime_r... yes
 0:18.89 checking for localtime_r... yes
 0:18.95 checking for arc4random... no
 0:19.00 checking for arc4random_buf... no
 0:19.05 checking for mallinfo... yes
 0:19.10 checking for gettid... yes
 0:19.16 checking for lchown... yes
 0:19.21 checking for setpriority... yes
 0:19.26 checking for strerror... yes
 0:19.32 checking for syscall... yes
 0:19.37 checking for lutimes... yes
 0:19.42 checking for clock_gettime(CLOCK_MONOTONIC)...
 0:19.46 checking for pthread_cond_timedwait_monotonic_np...
 0:19.56 checking for res_ninit()... yes
 0:19.60 checking for an implementation of va_copy()... yes
 0:19.64 checking whether va_list can be copied by value... no
 0:19.70 checking for __thread keyword for TLS variables... yes
 0:19.75 checking for localeconv... yes
 0:19.79 checking for malloc.h... yes
 0:19.85 checking for strndup... yes
 0:19.90 checking for posix_memalign... yes
 0:19.95 checking for memalign... yes
 0:20.01 checking for malloc_usable_size... yes
 0:20.04 checking whether malloc_usable_size definition can use const argument... no
 0:20.06 checking for valloc in malloc.h... yes
 0:20.08 checking for valloc in unistd.h... no
 0:20.10 checking for _aligned_malloc in malloc.h... no
 0:20.10 checking for libevent... yes
 0:20.10 checking MOZ_LIBEVENT_CFLAGS...
 0:20.10 checking MOZ_LIBEVENT_LIBS... -levent
 0:20.10 checking if app-specific confvars.sh exists... /build/firedragon/src/firefox-93.0/browser/confvars.sh
 0:20.10 checking for gtk+-3.0 >= 3.14.0 gtk+-unix-print-3.0 glib-2.0 gobject-2.0 gio-unix-2.0 ... yes
 0:20.12 checking MOZ_GTK3_CFLAGS... -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -I/usr/include/gtk-3.0/unix-print -pthread
 0:20.13 checking MOZ_GTK3_LIBS... -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
 0:20.13 checking for dbus-1 >= 0.60... yes
 0:20.13 checking MOZ_DBUS_CFLAGS... -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
 0:20.13 checking MOZ_DBUS_LIBS... -ldbus-1
 0:20.13 checking for dbus-glib-1 >= 0.60... yes
 0:20.13 checking MOZ_DBUS_GLIB_CFLAGS... -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
 0:20.13 checking MOZ_DBUS_GLIB_LIBS... -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0
 0:20.22 checking for linux/joystick.h... yes
 0:20.27 checking for fdatasync... yes
 0:20.31 checking for valid C compiler optimization flags... yes
 0:20.40 checking for __cxa_demangle... yes
 0:20.45 checking for unwind.h... yes
 0:20.52 checking for _Unwind_Backtrace... yes
 0:20.52 checking for -pipe support... yes
 0:20.59 checking what kind of list files are supported by the linker... configure: error: Couldn't find one that works
 0:20.60 DEBUG: <truncated - see config.log for full output>
 0:20.60 DEBUG: configure:7511: /usr/bin/ccache /usr/bin/clang -std=gnu99 -c -march=native -mtune=native -O3 -pipe -fno-plt -minline-all-stringops -fexceptions -Wall         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto -fno-strict-aliasing -fPIC -ffunction-sections -fdata-sections -fno-math-errno -pthread -O2 -Qunused-arguments  conftest.c 1>&5
 0:20.60 DEBUG: configure:7781: checking for __cxa_demangle
 0:20.60 DEBUG: configure:7816: /usr/bin/ccache /usr/bin/clang++ -std=gnu++17 -o conftest -march=native -mtune=native -O3 -pipe -fno-plt -minline-all-stringops -fexceptions -Wall         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto -fno-exceptions -fno-strict-aliasing -fPIC -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -Qunused-arguments  -lpthread -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now  -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions -Wl,--build-id=sha1 conftest.C -ldl  1>&5
 0:20.60 DEBUG: configure:7886: checking for unwind.h
 0:20.60 DEBUG: configure:7899: /usr/bin/ccache /usr/bin/clang++ -std=gnu++17 -c -march=native -mtune=native -O3 -pipe -fno-plt -minline-all-stringops -fexceptions -Wall         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto -fno-exceptions -fno-strict-aliasing -fPIC -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -Qunused-arguments  conftest.C 1>&5
 0:20.60 DEBUG: configure:7916: checking for _Unwind_Backtrace
 0:20.60 DEBUG: configure:7953: /usr/bin/ccache /usr/bin/clang++ -std=gnu++17 -o conftest -march=native -mtune=native -O3 -pipe -fno-plt -minline-all-stringops -fexceptions -Wall         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto -fno-exceptions -fno-strict-aliasing -fPIC -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -Qunused-arguments  -lpthread -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now  -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions -Wl,--build-id=sha1 conftest.C -ldl  1>&5
 0:20.60 DEBUG: configure:8021: checking for -pipe support
 0:20.60 DEBUG: configure:8048: checking what kind of list files are supported by the linker
 0:20.60 DEBUG: configure:8053: /usr/bin/ccache /usr/bin/clang -std=gnu99 -o conftest.o -c  -march=native -mtune=native -O3 -pipe -fno-plt -minline-all-stringops -fexceptions -Wall         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto -fno-strict-aliasing -fPIC -ffunction-sections -fdata-sections -fno-math-errno -pthread -pipe -Qunused-arguments  conftest.c 1>&5
 0:20.60 DEBUG: configure:8060: /usr/bin/ccache /usr/bin/clang -std=gnu99 -o conftest  -lpthread -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now  -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions -Wl,--build-id=sha1 conftest.list -ldl  1>&5
 0:20.60 DEBUG: ./conftest.o: file not recognized: file format not recognized
 0:20.60 DEBUG: clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
 0:20.60 DEBUG: configure:8064: /usr/bin/ccache /usr/bin/clang -std=gnu99 -o conftest  -lpthread -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now  -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions -Wl,--build-id=sha1 -Wl,-filelist,conftest.list -ldl  1>&5
 0:20.60 DEBUG: /usr/bin/ld: -f may not be used without -shared
 0:20.60 DEBUG: clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
 0:20.60 DEBUG: configure:8066: /usr/bin/ccache /usr/bin/clang -std=gnu99 -o conftest  -lpthread -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now  -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions -Wl,--build-id=sha1 @conftest.list -ldl  1>&5
 0:20.60 DEBUG: conftest.o: file not recognized: file format not recognized
 0:20.60 DEBUG: clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
 0:20.60 DEBUG: configure: error: Couldn't find one that works
 0:20.60 ERROR: old-configure failed
 Config object not found by mach.
Error running mach:

    ['build']

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file build| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

Exception: Process executed with non-0 exit code 1: ['/usr/bin/python3', '/build/firedragon/src/firefox-93.0/configure.py']

  File "/build/firedragon/src/firefox-93.0/python/mozbuild/mozbuild/build_commands.py", line 155, in build
    return driver.build(
  File "/build/firedragon/src/firefox-93.0/python/mozbuild/mozbuild/controller/building.py", line 1144, in build
    config_rc = self.configure(
  File "/build/firedragon/src/firefox-93.0/python/mozbuild/mozbuild/controller/building.py", line 1528, in configure
    status = self._run_command_in_objdir(
  File "/build/firedragon/src/firefox-93.0/python/mozbuild/mozbuild/base.py", line 845, in _run_command_in_objdir
    return self.run_process(cwd=self.topobjdir, **args)
  File "/build/firedragon/src/firefox-93.0/python/mach/mach/mixin/process.py", line 174, in run_process
    raise Exception(
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /mnt/extraStorage/AUR/ParuChroot/neko-san/build
error: failed to build 'firedragon-93.0-3': failed to run: makechrootpkg -r /mnt/extraStorage/AUR/ParuChroot/ -D /mnt/extraStorage/AUR/ParuChroot/repo/aur -d /var/cache/pacman/pkg/ -- -feA --noconfirm --noprepare --holdver: 
error: packages failed to build: firedragon-93.0-3
neko-san@ARCH ~ [1]> 

Neko-san commented on 2021-10-25 04:54 (UTC) (edited on 2021-10-25 05:19 (UTC) by Neko-san)

Ah, I remember why I have difficulty with building in chroots:

It can install everything it needs in preparation for building packages but, every time it needs to grab dependencies for PKGBUILDs, it fails and says:

sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges

But this is weird because neither of these is the case for my system :/

I can't use a chroot for building if doesn't do that

(I use Paru for the AUR, and it has support for chroots, but I always get this problem)

ptr1337 commented on 2021-10-24 23:03 (UTC)

@prg

yes, https://mirror.cachyos.org/?search=firedragon.

compiled in a clean chroot

prg commented on 2021-10-24 22:58 (UTC)

Has anyone been able to get this to build lately?

Neko-san commented on 2021-10-20 14:54 (UTC) (edited on 2021-10-20 19:06 (UTC) by Neko-san)

I would but I've struggled to get makepkg chroots to properly work before (something about the process gave me a hard time but I can't remember exactly what it was)

That aside, I'm quite certain the only thing unconventional about my system is my makepkg.conf, and even then I've reverted it back to default settings and it's still failed for me

#!/hint/bash
#
# /etc/makepkg.conf
#

#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
#  Format: 'protocol::agent'
DLAGENTS=('file::/usr/bin/curl -gqC - -o %o %u'
          'ftp::/usr/bin/curl -gqfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
          'http::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'https::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'rsync::/usr/bin/rsync --no-motd -z %u %o'
          'scp::/usr/bin/scp -C %u %o')

# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/wget
# /usr/bin/axel

#-- The package required by makepkg to download VCS sources
#  Format: 'protocol::package'
VCSCLIENTS=('bzr::bzr'
            'fossil::fossil'
            'git::git'
            'hg::mercurial'
            'svn::subversion')

#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="x86_64"
CHOST="x86_64-pc-linux-gnu"

#-- Compiler and Linker Flags
export CC=clang
export CXX=clang++
export LD=lld
export CC_LD=lld
export CXX_LD=lld
export AR=llvm-ar

#CPPFLAGS=""
CFLAGS="-march=native -mtune=native -O3 -pipe -fno-plt -minline-all-stringops -fexceptions -Wall \
        -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
        -fstack-clash-protection -fcf-protection"
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
LDFLAGS="-Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now"
#LDFLAGS="-Wl -O3 -fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind"
RUSTFLAGS="-C opt-level=3 -C target-cpu=native"
#-- Make Flags: change this for DistCC/SMP systems
MAKEFLAGS="-j$(nproc)"
#-- Debugging flags
## The "-fvar-tracking-assignments" flag is for GCC
#DEBUG_CFLAGS="-g -fvar-tracking-assignments"
DEBUG_CLAGS="-g"
#DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
DEBUG_CXXFLAGS="-g"
#DEBUG_RUSTFLAGS="-C debuginfo=2"

#########################################################################
# BUILD ENVIRONMENT
#########################################################################
#
# Makepkg defaults: BUILDENV=(!distcc !color !ccache check !sign)
#  A negated environment option will do the opposite of the comments below.
#
#-- distcc:   Use the Distributed C/C++/ObjC compiler
#-- color:    Colorize output messages
#-- ccache:   Use ccache to cache compilation
#-- check:    Run the check() function if present in the PKGBUILD
#-- sign:     Generate PGP signature file
#
BUILDENV=(!distcc color !ccache check !sign)
#
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
#DISTCC_HOSTS=""
#
#-- Specify a directory for package building.
#BUILDDIR=/tmp/makepkg

#########################################################################
# GLOBAL PACKAGE OPTIONS
#   These are default values for the options=() settings
#########################################################################
#
# Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto)
#  A negated option will do the opposite of the comments below.
#
#-- strip:      Strip symbols from binaries/libraries
#-- docs:       Save doc directories specified by DOC_DIRS
#-- libtool:    Leave libtool (.la) files in packages
#-- staticlibs: Leave static library (.a) files in packages
#-- emptydirs:  Leave empty directories in packages
#-- zipman:     Compress manual (man and info) pages in MAN_DIRS with gzip
#-- purge:      Remove files specified by PURGE_TARGETS
#-- debug:      Add debugging flags as specified in DEBUG_* variables
#-- lto:        Add compile flags for building with link time optimization
#
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)

#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
INTEGRITY_CHECK=(sha256)
#-- Options to be used when stripping binaries. See `man strip' for details.
STRIP_BINARIES="--strip-all"
#-- Options to be used when stripping shared libraries. See `man strip' for details.
STRIP_SHARED="--strip-unneeded"
#-- Options to be used when stripping static libraries. See `man strip' for details.
STRIP_STATIC="--strip-debug"
#-- Manual (man and info) directories to compress (if zipman is specified)
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
#-- Doc directories to remove (if !docs is specified)
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
#-- Files to be removed from all packages (if purge is specified)
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
#-- Directory to store source code in for debug packages
DBGSRCDIR="/usr/src/debug"

#########################################################################
# PACKAGE OUTPUT
#########################################################################
#
# Default: put built package and cached source in build directory
#
#-- Destination: specify a fixed directory where all packages will be placed
#PKGDEST=/home/packages
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
#-- Source packages: specify a fixed directory where all src packages will be placed
#SRCPKGDEST=/home/srcpackages
#-- Log files: specify a fixed directory where all log files will be placed
#LOGDEST=/home/makepkglogs
#-- Packager: name/email of the person or organization building packages
#PACKAGER="John Doe <john@doe.com>"
#-- Specify a key to use for package signing
#GPGKEY=""

#########################################################################
# COMPRESSION DEFAULTS
#########################################################################
#
COMPRESSGZ=(gzip -c -f -n)
COMPRESSBZ2=(bzip2 -c -f)
COMPRESSXZ=(xz -c -z --threads=0 -)
COMPRESSZST=(zstd -c -z -q --threads=0 -)
COMPRESSLRZ=(lrzip -q)
COMPRESSLZO=(lzop -q)
COMPRESSZ=(compress -c -f)
COMPRESSLZ4=(lz4 -q)
COMPRESSLZ=(lzip -c -f)

#########################################################################
# EXTENSION DEFAULTS
#########################################################################
#
PKGEXT='.pkg.tar.zst'
SRCEXT='.src.tar.gz'

#########################################################################
# OTHER
#########################################################################
#
#-- Command used to run pacman as root, instead of trying sudo and su
#PACMAN_AUTH=(doas)