Package Details: searxng-git 1.0.0.r3824.gac430a9ea-1

Git Clone URL: https://aur.archlinux.org/searxng-git.git (read-only, click to copy)
Package Base: searxng-git
Description: A privacy-respecting, hackable metasearch engine
Upstream URL: https://searxng.github.io/searxng/
Licenses: AGPL3
Conflicts: searx, searx-git
Provides: searxng
Submitter: HLFH
Maintainer: HLFH
Last Packager: HLFH
Votes: 8
Popularity: 0.018220
First Submitted: 2021-09-29 10:43 (UTC)
Last Updated: 2024-05-06 08:00 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 .. 10 Next › Last »

HLFH commented on 2024-05-03 11:48 (UTC)

I'll have a look this week-end and will fix it.

stef204 commented on 2024-05-03 11:19 (UTC) (edited on 2024-05-03 11:20 (UTC) by stef204)

no longer starts after recent large python upgrade.
please see this ticket: https://github.com/searxng/searxng/issues/3453
any chance you can take a look?

HLFH commented on 2024-04-02 11:21 (UTC)

The package is fixed.

flylightning commented on 2024-03-15 23:20 (UTC) (edited on 2024-03-16 10:12 (UTC) by flylightning)

@HLFH This pull request https://github.com/searxng/searxng/pull/3045 with this commit https://github.com/searxng/searxng/commit/d72fa99bd0a4d702a55188b07919ce5a764b1d6c deleted these lines https://github.com/searxng/searxng/commit/d72fa99bd0a4d702a55188b07919ce5a764b1d6c#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7L57-L59 which I guess cause README.rst, requirements.txt, and requirements-dev.txt not exist in ${pkgdir}${_site_packages} dir which cause mv "${pkgdir}${_site_packages}"/{README.rst,requirements*,searx} in PKGBUILD here https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=searxng-git#n72 failed. Remove this line mv "${pkgdir}${_site_packages}"/{README.rst,requirements*,searx} will make PKGBUILD work again.

Note: I'm a hobbyist and I'm not familiar with python. I don't understand setup.py. I workaround the issue with trial and error. There maybe better way to fix the issue, for example, maybe you would like to move readme and requirements files from other places to ${pkgdir}${_site_packages}/searx dir. I note there's a searxng-2024.3.15+e2af3e497-py3.11.egg-info dir in ${pkgdir}${_site_packages} dir which contains some related info files, I'm not sure if it is new or it exist in the past. Myabe you can do sth. with it.

To reproduce the issue of build fail due to mv fail, run this command: git clone https://aur.archlinux.org/searxng-git.git && cd searxng-git && makepkg -s. Please make sure you can reproduce the issue before apply the patch. If you can't reproduce the issue, don't apply the patch, because the patch maybe worng and not a real fix and the issue maybe only happen to a few people including me. I guess the reason you can't reproduce the issue maybe related to --rebuild not actually do a clean build by redownlaod and clean rebuild the newest package, because it maybe use old cache of something. For me who use paru as aur helper, I sometimes need to remove dir in ~/.cache/paru/clone to actually redownload and rebuild the package to fix some other issues I met.

Anyway, here's the patch:

From f2db1d1da8dbd0c3f06d0f38838b910b651858b8 Mon Sep 17 00:00:00 2001
From: Xiao Pan <gky44px1999@gmail.com>
Date: Fri, 15 Mar 2024 15:53:25 -0700
Subject: [PATCH] fix: remove failed mv commands to fix PKGBUILD build fail,
 because README.rst, requirements.txt, and requirements-dev.txt do not exsit
 in `${pkgdir}${_site_packages}` dir anymore

This pull request <https://github.com/searxng/searxng/pull/3045> with this commit <https://github.com/searxng/searxng/commit/d72fa99bd0a4d702a55188b07919ce5a764b1d6c> deleted these lines <https://github.com/searxng/searxng/commit/d72fa99bd0a4d702a55188b07919ce5a764b1d6c#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7L57-L59> which I **guess** cause README.rst, requirements.txt, and requirements-dev.txt not exist in  `${pkgdir}${_site_packages}` dir which cause `mv "${pkgdir}${_site_packages}"/{README.rst,requirements*,searx}` in PKGBUILD here <https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=searxng-git#n72> failed. Remove this line `mv "${pkgdir}${_site_packages}"/{README.rst,requirements*,searx}` will make PKGBUILD work again.
---
 .SRCINFO | 2 +-
 PKGBUILD | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index 9158dd8..cdb7569 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
 pkgbase = searxng-git
    pkgdesc = A privacy-respecting, hackable metasearch engine
-   pkgver = 1.0.0.r3631.g7c80807bb
+   pkgver = 1.0.0.r3760.ge2af3e497
    pkgrel = 1
    url = https://searxng.github.io/searxng/
    arch = any
diff --git a/PKGBUILD b/PKGBUILD
index e310de7..908dfdf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: HLFH <gaspard@dhautefeuille.eu>

 pkgname=searxng-git
-pkgver=1.0.0.r3631.g7c80807bb
+pkgver=1.0.0.r3760.ge2af3e497
 pkgrel=1
 pkgdesc="A privacy-respecting, hackable metasearch engine"
 arch=('any')
@@ -69,8 +69,6 @@ package() {
   sed -i "s|GIT_URL =.*|GIT_URL = \"${_giturl}\"|g" searx/version_frozen.py
   sed -i "s|GIT_BRANCH =.*|GIT_BRANCH = \"${_gitbranch}\"|g" searx/version_frozen.py

-  mv "${pkgdir}${_site_packages}"/{README.rst,requirements*,searx}
-
   mkdir -p "$pkgdir/etc/searxng"

   install -Dm644 "${srcdir}/searxng.sysusers" "${pkgdir}/usr/lib/sysusers.d/searxng.conf"
-- 
2.44.0

vasqs commented on 2024-03-13 19:30 (UTC)

@HLFH I tried rebuilding and got the same error as AlexBocken

mv: cannot stat '/home/vasqs/.cache/pikaur/build/searxng-git/pkg/searxng-git/usr/lib/python3.11/site-packages/README.rst': No such file or directory
mv: cannot stat '/home/vasqs/.cache/pikaur/build/searxng-git/pkg/searxng-git/usr/lib/python3.11/site-packages/requirements*': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...

HLFH commented on 2024-03-13 15:24 (UTC) (edited on 2024-03-13 15:26 (UTC) by HLFH)

@vasqs Reinstall with a clean build? The module pytomlpp is present.
@AlexBocken Could you reinstall with a clean build?

You should both try pikaur AUR helper and the --rebuild flag:
pikaur -S --rebuild searxng-git.

By the way, I have updated the package version just in case to facilitate your rebuild.
I confirm searxng-git works without any issue.
So it would be great if you try rebuild or update, and tell me if it still does not work.
Thanks.

AlexBocken commented on 2024-03-07 08:56 (UTC)

This does not build for a few weeks now. Please consider adjusting package(). Did upstream change something significantly for this to be caused? On a glance the files do not seem too important to me:

2024-03-07 09:54:42,513 INFO:root: Installing searxng-run script to /home/alex/.cache/paru/clone/searxng-git/pkg/searxng-git/usr/bin
2024-03-07 09:54:42,759 WARNING:searx: Be aware you have activated features intended only for public instances. This force the usage of the limiter and link_token / see https://docs.searxng.org/admin/searx.limiter.html
/home/alex/.cache/paru/clone/searxng-git/src/searxng/searx/version_frozen.py created
mv: cannot stat '/home/alex/.cache/paru/clone/searxng-git/pkg/searxng-git/usr/lib/python3.11/site-packages/README.rst': No such file or directory
mv: cannot stat '/home/alex/.cache/paru/clone/searxng-git/pkg/searxng-git/usr/lib/python3.11/site-packages/requirements*': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...

vasqs commented on 2024-01-30 16:45 (UTC) (edited on 2024-01-30 16:45 (UTC) by vasqs)

Traceback (most recent call last):
  File "/usr/bin/searx-run", line 33, in <module>
    sys.exit(load_entry_point('searxng==2024.1.30+efbee96b1', 'console_scripts', 'searx-run')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/searx-run", line 25, in importlib_load_entry_point
    return next(matches).load()
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.11/site-packages/searx/webapp.py", line 60, in <module>
    from searx import limiter
  File "/usr/lib/python3.11/site-packages/searx/limiter.py", line 108, in <module>
    from searx import botdetection
  File "/usr/lib/python3.11/site-packages/searx/botdetection/__init__.py", line 9, in <module>
    from ._helpers import dump_request
  File "/usr/lib/python3.11/site-packages/searx/botdetection/_helpers.py", line 17, in <module>
    from . import config
  File "/usr/lib/python3.11/site-packages/searx/botdetection/config.py", line 17, in <module>
    import pytomlpp as toml
ModuleNotFoundError: No module named 'pytomlpp'

HLFH commented on 2023-11-18 18:05 (UTC)

python-chomps removed as dep. Patch from @morsmortium has been added.

morsmortium commented on 2023-11-05 20:05 (UTC)

https://github.com/searxng/searxng/commit/fd814aac863673047c46a9d80682415dae180969#diff-c33cdfa4503c019bc49259acad45fc0a895a127b20ae3ffefaa12b7c439d4aa2

searx/botdetection/limiter.toml → searx/limiter.toml This file got moved 5 days ago.

Replacing this line:

install -Dm644 "${srcdir}/searxng/searx/botdetection/limiter.toml" "${pkgdir}/etc/searxng/limiter.toml"

With this:

install -Dm644 "${srcdir}/searxng/searx/limiter.toml" "${pkgdir}/etc/searxng/limiter.toml"

Makes the packaging work, however I have no idea, if the file is still expected to be there.