Can someone help me? Whenever I try to build the package I get this error. http://dpaste.com/G3BZYFJUY I have tried @nobyte's patch but it yields no change.
Search Criteria
Package Details: librewolf 134.0.2-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/librewolf.git (read-only, click to copy) |
---|---|
Package Base: | librewolf |
Description: | Community-maintained fork of Firefox, focused on privacy, security and freedom. |
Upstream URL: | https://librewolf.net/ |
Keywords: | browser web |
Licenses: | GPL, MPL, LGPL |
Submitter: | lsf |
Maintainer: | lsf |
Last Packager: | lsf |
Votes: | 147 |
Popularity: | 3.73 |
First Submitted: | 2019-06-14 18:41 (UTC) |
Last Updated: | 2025-01-26 21:06 (UTC) |
Dependencies (58)
- alsa-lib
- at-spi2-core (at-spi2-core-gitAUR)
- bash (bash-devel-static-gitAUR, bash-devel-gitAUR, busybox-coreutilsAUR, bash-gitAUR)
- cairo (cairo-gitAUR)
- dbus (dbus-gitAUR, dbus-selinuxAUR)
- ffmpeg (ffmpeg-nvcodec-11-1-gitAUR, ffmpeg-cudaAUR, ffmpeg-decklinkAUR, ffmpeg-amd-fullAUR, ffmpeg-ffplayoutAUR, ffmpeg-gitAUR, ffmpeg-amd-full-gitAUR, ffmpeg-fullAUR, ffmpeg-full-gitAUR, ffmpeg-libfdk_aacAUR, ffmpeg-headlessAUR, ffmpeg-obsAUR)
- fontconfig (fontconfig-gitAUR, fontconfig-ubuntuAUR)
- freetype2 (freetype2-macosAUR, freetype2-gitAUR, freetype2-qdoledAUR)
- gcc-libs (gcc-libs-gitAUR, gccrs-libs-gitAUR, gcc11-libsAUR, gcc-libs-snapshotAUR)
- gdk-pixbuf2 (gdk-pixbuf2-gitAUR)
- glib2 (glib2-gitAUR, glib2-selinuxAUR, glib2-patched-thumbnailerAUR)
- glibc (glibc-gitAUR, glibc-linux4AUR, glibc-eacAUR, glibc-eac-binAUR)
- gtk3 (gtk3-no_deadkeys_underlineAUR, gtk3-classic-xfceAUR, gtk3-patched-filechooser-icon-viewAUR, gtk3-classicAUR)
- hicolor-icon-theme (hicolor-icon-theme-gitAUR)
- libpulse (pulseaudio-dummyAUR, libpulse-gitAUR)
- libx11 (libx11-gitAUR)
- libxcb (libxcb-gitAUR)
- libxcomposite
- libxdamage
- libxext (libxext-gitAUR)
- libxfixes
- libxrandr (libxrandr-gitAUR)
- libxss
- libxt
- mime-types (mailcap)
- nspr (nspr-hgAUR)
- nss (nss-hgAUR)
- pango (pango-gitAUR)
- ttf-font (neuropol-ttfAUR, ttf-win7-fontsAUR, ttf-ms-win8AUR, ttf-ms-win8-arabicAUR, ttf-ms-win8-hebrewAUR, ttf-ms-win8-seaAUR, ttf-ms-win8-indicAUR, ttf-ms-win8-japaneseAUR, ttf-ms-win8-koreanAUR, ttf-ms-win8-zh_cnAUR, ttf-ms-win8-zh_twAUR, ttf-ms-win8-thaiAUR, ttf-ms-win8-otherAUR, ttf-kidsAUR, ttf-liberation-sans-narrowAUR, ttf-cavafy-scriptAUR, ttf-ms-fontsAUR, ttf-dejavu-ibAUR, ttf-zeldaAUR, ttf-oxygenAUR, ttf-oxygen-gfAUR, ttf-share-gfAUR, ttf-gostAUR, otf-inconsolata-dzAUR, ttf-d2codingAUR, ttf-agaveAUR, ttf-caracteresAUR, ttf-cuprumAUR, ttf-autour-oneAUR, ttf-impallari-milongaAUR, ttf-impallari-miltonianAUR, ttf-clarity-cityAUR, ttf-ms-win10AUR, ttf-ms-win10-japaneseAUR, ttf-ms-win10-koreanAUR, ttf-ms-win10-seaAUR, ttf-ms-win10-thaiAUR, ttf-ms-win10-zh_cnAUR, ttf-ms-win10-zh_twAUR, ttf-ms-win10-otherAUR, ttf-win10AUR, ttf-bmonoAUR, ttf-pt-astra-factAUR, ttf-weblysleekuiAUR, ttf-pt-astra-sansAUR, ttf-pt-astra-serifAUR, ttf-pt-sansAUR, ttf-pt-serifAUR, ttf-pt-monoAUR, ttf-pt-root_uiAUR, ttf-xo-fontsAUR, ttf-paratypeAUR, ttf-plemoljp-binAUR, ttf-dejavu-emojilessAUR, ttf-lucida-fontsAUR, ttf-plemoljpAUR, ttf-juiseeAUR, ttf-ms-win10-autoAUR, ttf-karlaAUR, ttf-ms-win11-autoAUR, ttf-ms-win10-cdnAUR, noto-fonts-liteAUR, ttf-ibm-plex-sans-scAUR, ttf-ms-win11AUR, ttf-ms-win11-japaneseAUR, ttf-ms-win11-koreanAUR, ttf-ms-win11-seaAUR, ttf-ms-win11-thaiAUR, ttf-ms-win11-zh_cnAUR, ttf-ms-win11-zh_twAUR, ttf-ms-win11-otherAUR, noto-fonts-variable-liteAUR, ttf-shangguAUR, noto-fonts-latin-greek-cyrillicAUR, apple-fontsAUR, ttf-noto-sans-vfAUR, ttf-noto-serif-vfAUR, ttf-noto-sans-mono-vfAUR, gnu-free-fonts, noto-fonts, ttf-bitstream-vera, ttf-croscore, ttf-dejavu, ttf-droid, ttf-ibm-plex, ttf-input, ttf-input-nerd, ttf-liberation)
- binutils (make)
- cbindgen (make)
- clang (llvm-gitAUR, clang-minimal-gitAUR, clang17-binAUR) (make)
- diffutils (make)
- git (git-gitAUR, git-glAUR) (make)
- imake (make)
- inetutils (inetutils-gitAUR, busybox-coreutilsAUR) (make)
- jackAUR (jack2-gitAUR, pipewire-full-jack-gitAUR, pipewire-jack-gitAUR, jack2, pipewire-jack) (make)
- lld (llvm-gitAUR) (make)
- llvm (llvm-gitAUR, llvm-minimal-gitAUR) (make)
- mesa (mesa-minimal-gitAUR, mesa-wsl2-gitAUR, mesa-amd-bc250AUR, amdonly-gaming-mesa-gitAUR, mesa-gitAUR, mesa-amber) (make)
- nasm (nasm-gitAUR) (make)
- nodejs (nodejs-gitAUR, python-nodejs-wheelAUR, nodejs-lts-hydrogen, nodejs-lts-iron, nodejs-lts-jod) (make)
- pciutils (pciutils-gitAUR) (make)
- python (python37AUR, python311AUR, python310AUR) (make)
- rust (rust-nightlyAUR, rustup-gitAUR, rust-nightly-binAUR, rust-gitAUR, rust-beta-binAUR, rustup-stubAUR, rustup) (make)
- unzip (unzip-natspecAUR, unzip-zstdAUR) (make)
- wasi-compiler-rt (make)
- wasi-libc (wasi-libc-gitAUR) (make)
- wasi-libc++ (make)
- wasi-libc++abi (make)
- xorg-server-xvfb (xorg-server-xvfb-gitAUR) (make)
- yasm (yasm-gitAUR) (make)
- zip (zip-natspecAUR) (make)
- hunspell-en_US (hunspell-en_us) (optional) – Spell checking, American English
- libnotify (libnotify-gitAUR) (optional) – Notification integration
- networkmanager (networkmanager-gitAUR, networkmanager-iwdAUR) (optional) – Location detection via available WiFi networks
- speech-dispatcher (speech-dispatcher-gitAUR) (optional) – Text-to-Speech
- xdg-desktop-portal (xdg-desktop-portal-gitAUR) (optional) – Screensharing with Wayland
Required by (26)
- edge-frfox (optional)
- ff2mpv-go-git (optional)
- ff2mpv-rust (optional)
- firefox-gnome-theme (optional)
- librewolf-comment-out-cfg-hook
- librewolf-extension-bitwarden-bin
- librewolf-extension-bitwarden-git (optional)
- librewolf-extension-darkreader
- librewolf-extension-darkreader-bin
- librewolf-extension-gnome-shell-integration
- librewolf-extension-kagisearch-bin
- librewolf-extension-localcdn-bin
- librewolf-extension-plasma-integration
- librewolf-extension-return-youtube-dislike-bin
- librewolf-extension-tridactyl-bin
- librewolf-extension-ublock-origin-bin
- librewolf-extension-uget-integration-bin
- librewolf-extension-vimiumc-bin
- librewolf-extension-xdman8-browser-monitor-bin
- librewolf-firefox-shim
- Show 6 more...
Sources (3)
Latest Comments
« First ‹ Previous 1 .. 8 9 10 11 12 13 14 15 16 17 18 .. 29 Next › Last »
nightly commented on 2022-07-13 11:07 (UTC)
nobyte commented on 2022-07-06 09:07 (UTC) (edited on 2022-07-06 09:22 (UTC) by nobyte)
@franz
You could probably somehow solve this (in a clean way) by using a python virtual environment with the right package version of psutil, but I don't know how to do that.
But here's a (somewhat dirty) work around. Downgrade the python-psutil package to the required version:
- Download the package file from the A.L.A. (https://wiki.archlinux.org/title/Arch_Linux_Archive#/packages):
sudo pacman -U https://archive.archlinux.org/packages/p/python-psutil/python-psutil-5.8.0-4-x86_64.pkg.tar.zst
- Downgrade to the required version:
sudo downgrade python-psutil
-
Choose right version
-
Set whether to ingore updates for this package (both options have pros/cons so choose what suits you better)
-
I installed some other packages to satisfy 'pip check', but this is dependant upon your installed packages and might not even be relevant to the Librewolf build
pacman -S python-brotli
pacman -S python-pybcj
pacman -S python-cmd2
- As far as I understood there are many cases in which 'pip check' will complain about python packages that are irrelevant for the build of Firefox/Librewolf, so if the check fails, it's totally unnecessary for the build to stop then. See here : https://bugs.gentoo.org/828604#c5 ... so there was some patch and apparently some code was removed to resolve this ... the code isn't there anymore in the current BUT STILL the pip check runs and complains about some packages ... so I grep'ed through the source for "pip check" and found src/firefox-102.0/python/mach/mach/site.py ... I made a patch to comment the code that raises the failed pip check to an exception ... you can insert the text below in a file called librewolf_mach_site.py_disable_pip-check.patch in your build dir (on my system it is /var/tmp/pamac-build-user/librewolf). The content of the file:
--- a/python/mach/mach/site.py
+++ a/python/mach/mach/site.py
@@ -1118,10 +1118,10 @@
if check_result.returncode:
subprocess.check_call(pip + ["list", "-v"], stdout=sys.stderr)
print(check_result.stdout, file=sys.stderr)
- raise Exception(
- 'According to "pip check", the current Python '
- "environment has package-compatibility issues."
- )
+ #raise Exception(
+ # 'According to "pip check", the current Python '
+ # "environment has package-compatibility issues."
+ #)
os.environ[
f"MACH_SYSTEM_ASSERTED_COMPATIBLE_WITH_{virtualenv_name.upper()}_SITE"
- Then you need to edit the PKGBUILD (in my case in /var/tmp/pamac-build-user/librewolf) so that it finds and applies the patch before build ...
- Add the name of the patch file from the previous step at the end of the sources list
source=(""
...
"librewolf_mach_site.py_disable_pip-check.patch")
- Add another 'SKIP' accordingly in the sha256sums=('' ... 'SKIP')
- Add the following two lines right before the lines which reference this url https://bugzilla.mozilla.org/show_bug.cgi?id=1530052
# apply patch to disable pip check
patch -Np1 -i ../librewolf_mach_site.py_disable_pip-check.patch
- Start new build ... there may still be a warning about pip check, but instead of stopping the build should then continue
<deleted-account> commented on 2022-06-26 21:05 (UTC)
Hi. I have the same error as https://aur.archlinux.org/packages/librewolf#comment-864414:
Running "pip check" to verify compatibility between the system Python and the "mach" site.
...
psutil<=5.8.0,>=5.4.2: Installed with unexpected version "5.9.0"
...
Exception: The "mach" site is not compatible with the installed system Python packages.
How can i solve this? Thx
I'm on Manjaro x64, Linux 5.14, installing using yay -S librewolf
dr460nf1r3 commented on 2022-05-25 09:16 (UTC)
Hey :) I'm having issues building Librewolf on Chaotic-AUR, currently the build fails after profiling. Any idea what might causing this? (full logs)
HC6505 commented on 2022-05-16 15:41 (UTC)
Setting to pip, make it build here to: export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=pip
Kimble commented on 2022-05-14 05:33 (UTC) (edited on 2022-05-14 05:34 (UTC) by Kimble)
Have this error, could anybody explain what's wrong and what should I do?
Building instrumented browser...
Traceback (most recent call last):
File "/home/user/.cache/paru/clone/librewolf/src/firefox-100.0/./mach", line 96, in <module>
main(sys.argv[1:])
File "/home/user/.cache/paru/clone/librewolf/src/firefox-100.0/./mach", line 88, in main
mach = check_and_get_mach(os.path.dirname(os.path.realpath(__file__)))
File "/home/user/.cache/paru/clone/librewolf/src/firefox-100.0/./mach", line 35, in check_and_get_mach
return load_mach(dir_path, mach_path)
File "/home/user/.cache/paru/clone/librewolf/src/firefox-100.0/./mach", line 21, in load_mach
return mach_initialize.initialize(dir_path)
File "/home/user/.cache/paru/clone/librewolf/src/firefox-100.0/build/mach_initialize.py", line 153, in initialize
_activate_python_environment(
File "/home/user/.cache/paru/clone/librewolf/src/firefox-100.0/build/mach_initialize.py", line 93, in _activate_python_environment
from mach.site import MachSiteManager
File "/home/user/.cache/paru/clone/librewolf/src/firefox-100.0/python/mach/mach/site.py", line 27, in <module>
from mach.requirements import (
File "/home/user/.cache/paru/clone/librewolf/src/firefox-100.0/python/mach/mach/requirements.py", line 7, in <module>
from packaging.requirements import Requirement
File "/home/user/.cache/paru/clone/librewolf/src/firefox-100.0/third_party/python/packaging/packaging/requirements.py", line 24, in <module>
from .markers import MARKER_EXPR, Marker
File "/home/user/.cache/paru/clone/librewolf/src/firefox-100.0/third_party/python/packaging/packaging/markers.py", line 25, in <module>
from .specifiers import InvalidSpecifier, Specifier
File "/home/user/.cache/paru/clone/librewolf/src/firefox-100.0/third_party/python/packaging/packaging/specifiers.py", line 14, in <module>
from .utils import canonicalize_version
File "/home/user/.cache/paru/clone/librewolf/src/firefox-100.0/third_party/python/packaging/packaging/utils.py", line 9, in <module>
from .tags import Tag, parse_tag
File "/home/user/.cache/paru/clone/librewolf/src/firefox-100.0/third_party/python/packaging/packaging/tags.py", line 7, in <module>
import distutils.util
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 674, in _load_unlocked
File "<frozen importlib._bootstrap>", line 571, in module_from_spec
File "/usr/lib/python3.10/site-packages/_distutils_hack/__init__.py", line 92, in create_module
return importlib.import_module('setuptools._distutils')
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 16, in <module>
import setuptools.version
File "/usr/lib/python3.10/site-packages/setuptools/version.py", line 1, in <module>
import pkg_resources
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3102, in <module>
class RequirementParseError(packaging.requirements.InvalidRequirement):
AttributeError: module 'packaging' has no attribute 'requirements'
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'librewolf-100.0-2':
error: packages failed to build: librewolf-100.0-2
Morninwood commented on 2022-05-10 12:20 (UTC)
Changing MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE
from system to pip fixed "The "mach" site is not compatible with the installed system Python packages." error for me.
lsf commented on 2022-05-10 09:44 (UTC) (edited on 2022-05-10 09:55 (UTC) by lsf)
Hm. Seems like my assumption that the pip/py environment issues were finally addressed upstream were wrong Oo
I need to look into that.
A workaround might be to build in a clean chroot until I've found a solution.
/edit
gentoo adds an additional PIP_NETWORK_INSTALL_RESTRICTED_VIRTUALENVS=mach
env var to their ebuild – that might be worth a try until I've looked into this further and/or dug up some patches.
Pinned Comments
lsf commented on 2025-01-01 21:28 (UTC)
Please refrain from abusing the flagging of a package as out of date for build issues. This is not what it is supposed to be used for.
I automatically get notified of comments to this package. I do not need to be notified of whatever build problems occur (whether they are an individual's problems or the actual package's problems) twice, and not via flagging it out of date.
Issues with this package can also be reported at https://codeberg.org/librewolf/issues/issues (as it is also maintained there, at https://codeberg.org/librewolf/arch, too).