Firefox-appmenu

I am trying to build firefox-appmenu from the aur but get this error, doesn’t matter if I use yay or makepkg both give the same error.

[zero@GenOS ~]$ yay -S firefox-appmenu
:: Checking for conflicts...
:: Checking for inner conflicts...
 -> Package conflicts found:
 -> Installing firefox-appmenu will remove: firefox
 -> Conflicting packages will have to be confirmed manually
[Aur:1]  firefox-appmenu-100.0.2-1

  1 firefox-appmenu                          (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: PKGBUILD up to date, Skipping (1/0): firefox-appmenu
  1 firefox-appmenu                          (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: (1/1) Parsing SRCINFO: firefox-appmenu
==> Making package: firefox-appmenu 100.0.2-1 (Wed 25 May 2022 02:37:06 PM PKT)
==> Retrieving sources...
  -> Downloading firefox-100.0.2.source.tar.xz...
** Resuming transfer from byte position 39178240
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  422M  100  422M    0     0  1025k      0  0:07:02  0:07:02 --:--:-- 1108k
  -> Downloading firefox-100.0.2.source.tar.xz.asc...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   833  100   833    0     0   1830      0 --:--:-- --:--:-- --:--:--  1826
  -> Found firefox.desktop
  -> Found identity-icons-brand.svg
  -> Found fix-wayland-build.patch
  -> Found unity-menubar.patch
  -> Found fix_csd_window_buttons.patch
==> Validating source files with sha256sums...
    firefox-100.0.2.source.tar.xz ... Passed
    firefox-100.0.2.source.tar.xz.asc ... Skipped
    firefox.desktop ... Passed
    identity-icons-brand.svg ... Passed
    fix-wayland-build.patch ... Passed
    unity-menubar.patch ... Passed
    fix_csd_window_buttons.patch ... Passed
==> Verifying source file signatures with gpg...
    firefox-100.0.2.source.tar.xz ... Passed
==> Making package: firefox-appmenu 100.0.2-1 (Wed 25 May 2022 02:44:16 PM PKT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found firefox-100.0.2.source.tar.xz
  -> Found firefox-100.0.2.source.tar.xz.asc
  -> Found firefox.desktop
  -> Found identity-icons-brand.svg
  -> Found fix-wayland-build.patch
  -> Found unity-menubar.patch
  -> Found fix_csd_window_buttons.patch
==> Validating source files with sha256sums...
    firefox-100.0.2.source.tar.xz ... Passed
    firefox-100.0.2.source.tar.xz.asc ... Skipped
    firefox.desktop ... Passed
    identity-icons-brand.svg ... Passed
    fix-wayland-build.patch ... Passed
    unity-menubar.patch ... Passed
    fix_csd_window_buttons.patch ... Passed
==> Verifying source file signatures with gpg...
    firefox-100.0.2.source.tar.xz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting firefox-100.0.2.source.tar.xz with bsdtar
==> Starting prepare()...
/home/zero/.cache/yay/firefox-appmenu/PKGBUILD: line 62: patch: command not found
==> ERROR: A failure occurred in prepare().
    Aborting...
 -> error making: firefox-appmenu

pamac install base-devel
sudo pacman -Syu base-devel --needed

Then rebuild

1 Like

new error

[zero@GenOS ~]$ yay -S firefox-appmenu
:: Checking for conflicts...
:: Checking for inner conflicts...
 -> Package conflicts found:
 -> Installing firefox-appmenu will remove: firefox
 -> Conflicting packages will have to be confirmed manually
[Aur:1]  firefox-appmenu-100.0.2-1

  1 firefox-appmenu                          (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: PKGBUILD up to date, Skipping (1/0): firefox-appmenu
  1 firefox-appmenu                          (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: (1/1) Parsing SRCINFO: firefox-appmenu
==> Making package: firefox-appmenu 100.0.2-1 (Wed 25 May 2022 03:02:05 PM PKT)
==> Retrieving sources...
  -> Found firefox-100.0.2.source.tar.xz
  -> Found firefox-100.0.2.source.tar.xz.asc
  -> Found firefox.desktop
  -> Found identity-icons-brand.svg
  -> Found fix-wayland-build.patch
  -> Found unity-menubar.patch
  -> Found fix_csd_window_buttons.patch
==> Validating source files with sha256sums...
    firefox-100.0.2.source.tar.xz ... Passed
    firefox-100.0.2.source.tar.xz.asc ... Skipped
    firefox.desktop ... Passed
    identity-icons-brand.svg ... Passed
    fix-wayland-build.patch ... Passed
    unity-menubar.patch ... Passed
    fix_csd_window_buttons.patch ... Passed
==> Verifying source file signatures with gpg...
    firefox-100.0.2.source.tar.xz ... Passed
==> Making package: firefox-appmenu 100.0.2-1 (Wed 25 May 2022 03:02:12 PM PKT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found firefox-100.0.2.source.tar.xz
  -> Found firefox-100.0.2.source.tar.xz.asc
  -> Found firefox.desktop
  -> Found identity-icons-brand.svg
  -> Found fix-wayland-build.patch
  -> Found unity-menubar.patch
  -> Found fix_csd_window_buttons.patch
==> Validating source files with sha256sums...
    firefox-100.0.2.source.tar.xz ... Passed
    firefox-100.0.2.source.tar.xz.asc ... Skipped
    firefox.desktop ... Passed
    identity-icons-brand.svg ... Passed
    fix-wayland-build.patch ... Passed
    unity-menubar.patch ... Passed
    fix_csd_window_buttons.patch ... Passed
==> Verifying source file signatures with gpg...
    firefox-100.0.2.source.tar.xz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting firefox-100.0.2.source.tar.xz with bsdtar
==> Starting prepare()...
patching file widget/gtk/WaylandBuffer.cpp
Hunk #1 succeeded at 261 (offset 3 lines).
patching file browser/base/content/browser-menubar.inc
patching file browser/base/content/browser.js
Hunk #1 succeeded at 6478 (offset 12 lines).
patching file browser/components/places/content/places.xhtml
Hunk #1 succeeded at 166 (offset 1 line).
patching file dom/xul/XULPopupElement.cpp
patching file dom/xul/moz.build
patching file layout/build/moz.build
patching file modules/libpref/init/all.js
patching file toolkit/content/xul.css
Hunk #1 succeeded at 228 (offset -1 lines).
patching file widget/gtk/moz.build
patching file widget/gtk/nsDbusmenu.cpp
patching file widget/gtk/nsDbusmenu.h
patching file widget/gtk/nsMenu.cpp
patching file widget/gtk/nsMenu.h
patching file widget/gtk/nsMenuBar.cpp
patching file widget/gtk/nsMenuBar.h
patching file widget/gtk/nsMenuContainer.cpp
patching file widget/gtk/nsMenuContainer.h
patching file widget/gtk/nsMenuItem.cpp
patching file widget/gtk/nsMenuItem.h
patching file widget/gtk/nsMenuObject.cpp
patching file widget/gtk/nsMenuObject.h
patching file widget/gtk/nsMenuSeparator.cpp
patching file widget/gtk/nsMenuSeparator.h
patching file widget/gtk/nsNativeMenuDocListener.cpp
patching file widget/gtk/nsNativeMenuDocListener.h
patching file widget/gtk/nsNativeMenuService.cpp
patching file widget/gtk/nsNativeMenuService.h
patching file widget/gtk/nsWindow.cpp
Hunk #1 succeeded at 7090 (offset 30 lines).
patching file widget/gtk/nsWindow.h
Hunk #2 succeeded at 187 (offset 13 lines).
Hunk #3 succeeded at 851 (offset 23 lines).
patching file xpcom/ds/NativeMenuAtoms.py
patching file xpcom/ds/StaticAtoms.py
Hunk #2 succeeded at 2531 (offset 1 line).
patching file widget/gtk/components.conf
patching file xpfe/appshell/AppWindow.cpp
patching file widget/gtk/NativeMenuSupport.cpp
patching file widget/gtk/NativeMenuSupport.h
patching file widget/moz.build
patching file widget/nsINativeMenuService.h
patching file widget/nsWidgetsCID.h
patching file browser/base/content/browser.css
Hunk #1 succeeded at 332 with fuzz 2 (offset -2 lines).
==> Sources are ready.
==> Making package: firefox-appmenu 100.0.2-1 (Wed 25 May 2022 03:03:39 PM PKT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
Building instrumented browser...
Running "pip check" to verify compatibility between the system Python and the "mach" site.
Package               Version     Location                                                                                           Installer
--------------------- ----------- -------------------------------------------------------------------------------------------------- ---------
aiohttp               3.7.4.post0 /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/aiohttp
appdirs               1.4.4       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/appdirs
application-utility   1.3.2       /usr/lib/python3.10/site-packages
async-timeout         3.0.1       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/async_timeout
attrs                 19.2.0      /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/attrs
blessings             1.7         /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/blessings
btrfsutil             5.17        /usr/lib/python3.10/site-packages
cbor2                 4.0.1       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/cbor2
ceph                  1.0.0       /usr/lib/python3.10/site-packages
ceph-volume           1.0.0       /usr/lib/python3.10/site-packages
cephfs                2.0.0       /usr/lib/python3.10/site-packages
cephfs-shell          0.0.1       /usr/lib/python3.10/site-packages
certifi               2018.4.16   /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/certifi
chardet               4.0.0       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/chardet
click                 7.1.2       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/click
colorama              0.4.4       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/colorama
compare-locales       8.2.1       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/compare_locales
cookies               2.2.1       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/cookies
cram                  0.7         /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/cram
diskcache             4.1.0       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/diskcache
distro                1.4.0       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/distro
docopt                0.6.2       /usr/lib/python3.10/site-packages
ecdsa                 0.15        /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/ecdsa
esprima               4.0.1       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/esprima
fluent.migrate        0.11        /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/fluent.migrate
fluent.syntax         0.18.1      /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/fluent.syntax
idna                  2.10        /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/idna
idna-ssl              1.1.0       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/idna-ssl
importlib-metadata    1.7.0       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/importlib_metadata
iso8601               0.1.14      /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/iso8601
Jinja2                2.11.3      /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/Jinja2
jsmin                 2.1.0       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/jsmin
json-e                2.7.0       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/json-e
jsonschema            3.2.0       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/jsonschema
keyutils              0.6         /usr/lib/python3.10/site-packages
lit                   13.0.1.dev0 /usr/lib/python3.10/site-packages
manjaro-sdk           0.1         /usr/lib/python3.10/site-packages
MarkupSafe            1.1.1       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/MarkupSafe/src
mohawk                0.3.4       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/mohawk
more-itertools        8.12.0      /usr/lib/python3.10/site-packages
mozilla-version       0.3.4       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/mozilla_version
multidict             5.1.0       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/multidict
npyscreen             4.10.5      /usr/lib/python3.10/site-packages
ordered-set           4.0.2       /usr/lib/python3.10/site-packages
packaging             20.9        /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/packaging
pacman-mirrors        4.23.2      /usr/lib/python3.10/site-packages
pathspec              0.9.0       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/pathspec
pip                   21.2.3      /tmp/tmp3t6krcy0/lib/python3.10/site-packages                                                      pip
pip-tools             5.5.0       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/pip_tools
ply                   3.10        /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/ply
pyasn1                0.4.8       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/pyasn1
pyasn1-modules        0.2.8       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/pyasn1_modules
PyGObject             3.42.1      /usr/lib/python3.10/site-packages
pyparsing             2.4.7       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/pyparsing
pyrsistent            0.16.0      /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/pyrsistent
PySide6               6.3.0       /usr/lib/python3.10/site-packages
pytoml                0.1.10      /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/pytoml
PyYAML                5.4.1       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/PyYAML/lib3
rados                 2.0.0       /usr/lib/python3.10/site-packages
rbd                   2.0.0       /usr/lib/python3.10/site-packages
redo                  2.0.3       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/redo
requests              2.25.1      /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/requests
requests-unixsocket   0.2.0       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/requests_unixsocket
responses             0.10.6      /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/responses
rgw                   2.0.0       /usr/lib/python3.10/site-packages
rsa                   3.1.4       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/rsa
sentry-sdk            0.14.3      /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/sentry_sdk
setuptools            51.2.0      /tmp/tmp3t6krcy0/lib/python3.10/site-packages                                                      pip
shiboken6             6.3.0       /usr/lib/python3.10/site-packages
six                   1.13.0      /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/six
slugid                2.0.0       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/slugid
systemd-python        234         /usr/lib/python3.10/site-packages
taskcluster           44.2.2      /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/taskcluster
taskcluster-taskgraph 1.2.0       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/taskcluster_taskgraph
taskcluster-urls      13.0.1      /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/taskcluster_urls
team                  1.0         /usr/lib/python3.10/site-packages
tqdm                  4.62.3      /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/tqdm
typing-extensions     3.10.0.0    /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/typing_extensions
udiskie               2.4.2       /usr/lib/python3.10/site-packages
urllib3               1.26.0      /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/urllib3
voluptuous            0.12.1      /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/voluptuous
wheel                 0.37.0      /tmp/tmp3t6krcy0/lib/python3.10/site-packages                                                      pip
yamllint              1.23.0      /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/yamllint
yarl                  1.6.3       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/yarl
zipp                  3.4.1       /home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/third_party/python/zipp
zstandard             0.17.0      /usr/lib/python3.10/site-packages
WARNING: You are using pip version 21.2.3; however, version 22.1.1 is available.
You should consider upgrading via the '/tmp/tmp3t6krcy0/bin/python -m pip install --upgrade pip' command.
cephfs-shell 0.0.1 requires cmd2, which is not installed.

Traceback (most recent call last):
  File "/home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/./mach", line 96, in <module>
    main(sys.argv[1:])
  File "/home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/./mach", line 88, in main
    mach = check_and_get_mach(os.path.dirname(os.path.realpath(__file__)))
  File "/home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/./mach", line 35, in check_and_get_mach
    return load_mach(dir_path, mach_path)
  File "/home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/./mach", line 21, in load_mach
    return mach_initialize.initialize(dir_path)
  File "/home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/build/mach_initialize.py", line 153, in initialize
    _activate_python_environment(
  File "/home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/build/mach_initialize.py", line 99, in _activate_python_environment
    mach_environment.activate()
  File "/home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/python/mach/mach/site.py", line 390, in activate
    self.ensure()
  File "/home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/python/mach/mach/site.py", line 368, in ensure
    result = self._up_to_date()
  File "/home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/python/mach/mach/site.py", line 353, in _up_to_date
    _assert_pip_check(
  File "/home/zero/.cache/yay/firefox-appmenu/src/firefox-100.0.2/python/mach/mach/site.py", line 1136, in _assert_pip_check
    raise Exception(
Exception: According to "pip check", the current Python environment has package-compatibility issues.
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: firefox-appmenu

Be careful now …

AUR build scripts assumes Arch package level - which may not match Manjaro stable.

Do not give in to the temptation of sudo pip - it will create issues file exist in filesystem on future sync (update) - always use the package manager to install global python packages (site-packages).

3 Likes

You’ll be much better off installing the binary package instead… :arrow_down:

pamac build firefox-appmenu-bin
1 Like