Package Details: librewolf 133.0.3-1

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: 144
Popularity: 4.35
First Submitted: 2019-06-14 18:41 (UTC)
Last Updated: 2024-12-15 09:44 (UTC)

Sources (3)

Latest Comments

« First ‹ Previous 1 .. 7 8 9 10 11 12 13 14 15 16 17 .. 28 Next › Last »

lsf commented on 2022-08-01 16:49 (UTC) (edited on 2022-08-01 16:51 (UTC) by lsf)

Please don't flag this package as out of date for reasons other than it being out of date.

Recent example: Installation fails because of outdated pip version. "WARNING: You are using pip version 21.2.3; however, version 22.2.1 is available."

This is worthy of a comment (or an issue, but since it's just another instance of pip/py/env things, not so much), if at all (it's a warning – the failure cause is probably another thing altogether).

A reason for flagging it out of date would be if it was out of date.

Thanks!

/edit

One open issue regarding pip issues, for example, would be https://gitlab.com/librewolf-community/browser/arch/-/issues/89, with a potentially helpful note at https://gitlab.com/librewolf-community/browser/arch/-/issues/89#note_1045390006

SomeGuy016 commented on 2022-07-19 12:51 (UTC) (edited on 2022-07-19 12:54 (UTC) by SomeGuy016)

For those of you who want to build this with python virtual environments like @nobyte suggested, here's how I built it

First create the virtual environment (if you are building manually then I'd recommend running this in the same place as where you cloned the package, if you are using an AUR helper just run this anywhere in your home directory and delete it later)

python -m venv .venv

From there, activate the virtual environment

source .venv/bin/activate

Now you can install the proper version of psutil to the venv by running

pip install psutil==5.8.0

Then just continue building the package as you normally would. Once it is installed, run

deactivate

to exit your virtual environment

nightly commented on 2022-07-13 11:07 (UTC)

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.

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:

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")
  # 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