Hello! Why you're using /opt? Whoogle should be installed in /usr/share/webapps/whoogle, to keep order of archlinux.
Search Criteria
Package Details: whoogle 0.9.0-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/whoogle.git (read-only, click to copy) |
---|---|
Package Base: | whoogle |
Description: | A self-hosted, ad-free, privacy-respecting metasearch engine |
Upstream URL: | https://github.com/benbusby/whoogle-search |
Keywords: | engine search whoogle |
Licenses: | MIT |
Conflicts: | whoogle-git |
Submitter: | dr460nf1r3 |
Maintainer: | dr460nf1r3 (chaotic-aur) |
Last Packager: | dr460nf1r3 |
Votes: | 4 |
Popularity: | 0.013356 |
First Submitted: | 2021-04-08 09:52 (UTC) |
Last Updated: | 2024-10-01 16:16 (UTC) |
VVL commented on 2024-10-02 08:08 (UTC)
pezz commented on 2024-05-25 07:56 (UTC) (edited on 2024-05-25 07:57 (UTC) by pezz)
To be able to run out-of-the-box this needs a couple of fixes.
These need to be created by the package and owned or at least made writeable by the whoogle user:
/opt/whoogle-search/app/static/bangs
/opt/whoogle-search/app/static/config
This is created by the package, but needs to be writeable by the whoogle user:
/opt/whoogle-search/app/static/build
Cheers.
LuciRose431 commented on 2023-01-12 12:11 (UTC) (edited on 2023-01-12 12:16 (UTC) by LuciRose431)
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=whoogle#n37
On line 37 exclude setup.py
it does not exist in source directory
otherwise it fails makepkg
ireneuszi83 commented on 2022-11-30 17:53 (UTC)
new version whoogle 0.8.0 PKGBUILD
Maintainer: dr460nf1r3 <dr460nf1r3 at garudalinux dot org>
pkgname=whoogle pkgver=0.8.0 pkgrel=1 pkgdesc='A self-hosted, ad-free, privacy-respecting metasearch engine' arch=(x86_64 aarch64) url="https://github.com/benbusby/whoogle-search" license=(MIT) depends=(python) makedepends=(python python-pip) optdepends=('tor: use the TOR network to perform searches') conflicts=($pkgname-git) backup=('etc/default/whoogle') source=("$pkgname-$pkgver.tar.gz::https://github.com/benbusby/whoogle-search/archive/refs/tags/v$pkgver.tar.gz" $pkgname $pkgname.conf $pkgname.service) sha256sums=('76d33378be56351170bbe2ff983fe611eeaa5c8a2984749d89fc4acda99d68fa' 'e30ff5ecef199ce2a37b097709461c51ca07bdbbcc4609db74203834b62c60b1' '51cda92f3ad2166eb2cb63ff80561f48b39688a57b66291d2eee5e1c7fcd8ee3' 'ab6256f3fdaac3ba58ddbb39bb5c24bde53312f0584ae4ed4ae74bc7752a07f4') install=$pkgname.install
prepare() { mv $pkgname-search-$pkgver $pkgname-search }
build() { # Following official instructions cd $pkgname-search python3 -m venv venv source venv/bin/activate pip install -r requirements.txt
# Cleanup unsed rm -r docs test .dockerignore .gitignore .replit docker-compose.yml Dockerfile heroku.yml MANIFEST.in README.md requirements.txt setup.py }
package() { install -m0644 -D "$srcdir/whoogle" "$pkgdir/etc/default/whoogle" install -m0644 -D "$srcdir/whoogle.conf" "$pkgdir/usr/lib/sysusers.d/whoogle.conf" install -m0644 -D "$srcdir/whoogle.service" "$pkgdir/usr/lib/systemd/system/whoogle.service" install -Dm0644 "$srcdir/$pkgname-search/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" install -dm0755 "$pkgdir/opt/whoogle-search" cp -r "$srcdir/whoogle-search/" "$pkgdir/opt/" }
simona commented on 2022-05-31 23:53 (UTC)
chown: utente non valido: "whoogle:whoogle"
MadcowOG commented on 2022-05-02 07:16 (UTC)
Can we add an optional dependency for tor in the PKGBUILD?
dr460nf1r3 commented on 2022-01-28 16:20 (UTC)
It might be an idea to create a .pacnew for this particular file :)
Elinvention commented on 2022-01-28 15:36 (UTC)
Every time that I install this package my /etc/default/whoogle gets replaced with a new one. I don't think packages should do that. Thanks.
Locutus64 commented on 2021-12-14 16:49 (UTC)
I just attempted build again as suggested and I get the below
Preparing...
Cloning whoogle build files...
Generating whoogle information...
Checking whoogle dependencies...
Warning: whoogle-0.6.0-5 is up to date -- reinstalling
Resolving dependencies...
Checking inter-conflicts...
Building whoogle...
==> Making package: whoogle 0.6.0-5 (Tue 14 Dec 2021 08:47:08 AM PST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading whoogle-0.6.0.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 141 100 141 0 0 642 0 --:--:-- --:--:-- --:--:-- 640
100 615k 0 615k 0 0 1107k 0 --:--:-- --:--:-- --:--:-- 1107k
-> Found whoogle
-> Found whoogle.conf
-> Found whoogle.service
==> Validating source files with sha256sums...
whoogle-0.6.0.tar.gz ... Passed
whoogle ... Passed
whoogle.conf ... Passed
whoogle.service ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Extracting whoogle-0.6.0.tar.gz with bsdtar
==> Starting prepare()...
==> Starting build()...
Collecting attrs==19.3.0
Downloading attrs-19.3.0-py2.py3-none-any.whl (39 kB)
Collecting beautifulsoup4==4.8.2
Downloading beautifulsoup4-4.8.2-py3-none-any.whl (106 kB)
Collecting bs4==0.0.1
Downloading bs4-0.0.1.tar.gz (1.1 kB)
Collecting cachelib==0.1
Downloading cachelib-0.1-py3-none-any.whl (12 kB)
Collecting certifi==2020.4.5.1
Downloading certifi-2020.4.5.1-py2.py3-none-any.whl (157 kB)
Collecting cffi==1.13.2
Downloading cffi-1.13.2.tar.gz (460 kB)
Collecting chardet==3.0.4
Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting Click==7.0
Downloading Click-7.0-py2.py3-none-any.whl (81 kB)
Collecting cryptography==3.3.2
Downloading cryptography-3.3.2-cp36-abi3-manylinux2010_x86_64.whl (2.6 MB)
Collecting Flask==1.1.1
Downloading Flask-1.1.1-py2.py3-none-any.whl (94 kB)
Collecting Flask-Session==0.3.2
Downloading Flask_Session-0.3.2-py2.py3-none-any.whl (7.4 kB)
Collecting idna==2.9
Downloading idna-2.9-py2.py3-none-any.whl (58 kB)
Collecting itsdangerous==1.1.0
Downloading itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB)
Collecting Jinja2==2.11.3
Downloading Jinja2-2.11.3-py2.py3-none-any.whl (125 kB)
Collecting MarkupSafe==1.1.1
Downloading MarkupSafe-1.1.1.tar.gz (19 kB)
Collecting more-itertools==8.3.0
Downloading more_itertools-8.3.0-py3-none-any.whl (44 kB)
Collecting packaging==20.4
Downloading packaging-20.4-py2.py3-none-any.whl (37 kB)
Collecting pluggy==0.13.1
Downloading pluggy-0.13.1-py2.py3-none-any.whl (18 kB)
Collecting py==1.10.0
Downloading py-1.10.0-py2.py3-none-any.whl (97 kB)
Collecting pycodestyle==2.6.0
Downloading pycodestyle-2.6.0-py2.py3-none-any.whl (41 kB)
Collecting pycparser==2.19
Downloading pycparser-2.19.tar.gz (158 kB)
Collecting pyOpenSSL==19.1.0
Downloading pyOpenSSL-19.1.0-py2.py3-none-any.whl (53 kB)
Collecting pyparsing==2.4.7
Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting PySocks==1.7.1
Downloading PySocks-1.7.1-py3-none-any.whl (16 kB)
Collecting pytest==5.4.1
Downloading pytest-5.4.1-py3-none-any.whl (246 kB)
Collecting python-dateutil==2.8.1
Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting requests==2.25.1
Downloading requests-2.25.1-py2.py3-none-any.whl (61 kB)
Collecting soupsieve==1.9.5
Downloading soupsieve-1.9.5-py2.py3-none-any.whl (33 kB)
Collecting stem==1.8.0
Downloading stem-1.8.0.tar.gz (2.9 MB)
Collecting urllib3==1.26.5
Downloading urllib3-1.26.5-py2.py3-none-any.whl (138 kB)
Collecting waitress==1.4.3
Downloading waitress-1.4.3-py2.py3-none-any.whl (148 kB)
Collecting wcwidth==0.1.9
Downloading wcwidth-0.1.9-py2.py3-none-any.whl (19 kB)
Collecting Werkzeug==0.16.0
Downloading Werkzeug-0.16.0-py2.py3-none-any.whl (327 kB)
Collecting python-dotenv==0.16.0
Downloading python_dotenv-0.16.0-py2.py3-none-any.whl (18 kB)
Collecting six>=1.4.1
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Using legacy 'setup.py install' for bs4, since package 'wheel' is not installed.
Using legacy 'setup.py install' for cffi, since package 'wheel' is not installed.
Using legacy 'setup.py install' for MarkupSafe, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pycparser, since package 'wheel' is not installed.
Using legacy 'setup.py install' for stem, since package 'wheel' is not installed.
Installing collected packages: pycparser, MarkupSafe, Werkzeug, soupsieve, six, pyparsing, Jinja2, itsdangerous, Click, cffi, wcwidth, urllib3, py, pluggy, packaging, more-itertools, idna, Flask, cryptography, chardet, certifi, cachelib, beautifulsoup4, attrs, waitress, stem, requests, python-dotenv, python-dateutil, pytest, PySocks, pyOpenSSL, pycodestyle, Flask-Session, bs4
Running setup.py install for pycparser: started
Running setup.py install for pycparser: finished with status 'done'
Running setup.py install for MarkupSafe: started
Running setup.py install for MarkupSafe: finished with status 'done'
Running setup.py install for cffi: started
Running setup.py install for cffi: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /var/tmp/pamac-build-locutus/whoogle/src/whoogle-search/venv/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zu0eu2r0/cffi_91feeafe71094c4390e3d59be415fa31/setup.py'"'"'; __file__='"'"'/tmp/pip-install-zu0eu2r0/cffi_91feeafe71094c4390e3d59be415fa31/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-k_lyl73m/install-record.txt --single-version-externally-managed --compile --install-headers /var/tmp/pamac-build-locutus/whoogle/src/whoogle-search/venv/include/site/python3.10/cffi
cwd: /tmp/pip-install-zu0eu2r0/cffi_91feeafe71094c4390e3d59be415fa31/
Complete output (56 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.10
creating build/lib.linux-x86_64-3.10/cffi
copying cffi/recompiler.py -> build/lib.linux-x86_64-3.10/cffi
copying cffi/verifier.py -> build/lib.linux-x86_64-3.10/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-3.10/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-3.10/cffi
copying cffi/__init__.py -> build/lib.linux-x86_64-3.10/cffi
copying cffi/lock.py -> build/lib.linux-x86_64-3.10/cffi
copying cffi/api.py -> build/lib.linux-x86_64-3.10/cffi
copying cffi/vengine_gen.py -> build/lib.linux-x86_64-3.10/cffi
copying cffi/pkgconfig.py -> build/lib.linux-x86_64-3.10/cffi
copying cffi/ffiplatform.py -> build/lib.linux-x86_64-3.10/cffi
copying cffi/cparser.py -> build/lib.linux-x86_64-3.10/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-3.10/cffi
copying cffi/error.py -> build/lib.linux-x86_64-3.10/cffi
copying cffi/commontypes.py -> build/lib.linux-x86_64-3.10/cffi
copying cffi/model.py -> build/lib.linux-x86_64-3.10/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-3.10/cffi
copying cffi/_cffi_include.h -> build/lib.linux-x86_64-3.10/cffi
copying cffi/parse_c_type.h -> build/lib.linux-x86_64-3.10/cffi
copying cffi/_embedding.h -> build/lib.linux-x86_64-3.10/cffi
copying cffi/_cffi_errors.h -> build/lib.linux-x86_64-3.10/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-x86_64-3.10
creating build/temp.linux-x86_64-3.10/c
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/var/tmp/pamac-build-locutus/whoogle/src/whoogle-search/venv/include -I/usr/include/python3.10 -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.10/c/_cffi_backend.o
c/_cffi_backend.c: In function ‘ctypedescr_dealloc’:
c/_cffi_backend.c:407:23: error: lvalue required as left operand of assignment
407 | Py_REFCNT(ct) = 43;
| ^
c/_cffi_backend.c:410:23: error: lvalue required as left operand of assignment
410 | Py_REFCNT(ct) = 0;
| ^
c/_cffi_backend.c: In function ‘prepare_callback_info_tuple’:
c/_cffi_backend.c:6136:5: warning: ‘PyEval_InitThreads’ is deprecated [-Wdeprecated-declarations]
6136 | PyEval_InitThreads();
| ^~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.10/Python.h:130,
from c/_cffi_backend.c:2:
/usr/include/python3.10/ceval.h:122:37: note: declared here
122 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
| ^~~~~~~~~~~~~~~~~~
c/_cffi_backend.c: In function ‘b_callback’:
c/_cffi_backend.c:6196:5: warning: ‘ffi_prep_closure’ is deprecated: use ffi_prep_closure_loc instead [-Wdeprecated-declarations]
6196 | if (ffi_prep_closure(closure, &cif_descr->cif,
| ^~
In file included from c/_cffi_backend.c:15:
/usr/include/ffi.h:347:1: note: declared here
347 | ffi_prep_closure (ffi_closure*,
| ^~~~~~~~~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: /var/tmp/pamac-build-locutus/whoogle/src/whoogle-search/venv/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zu0eu2r0/cffi_91feeafe71094c4390e3d59be415fa31/setup.py'"'"'; __file__='"'"'/tmp/pip-install-zu0eu2r0/cffi_91feeafe71094c4390e3d59be415fa31/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-k_lyl73m/install-record.txt --single-version-externally-managed --compile --install-headers /var/tmp/pamac-build-locutus/whoogle/src/whoogle-search/venv/include/site/python3.10/cffi Check the logs for full command output.
WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
You should consider upgrading via the '/var/tmp/pamac-build-locutus/whoogle/src/whoogle-search/venv/bin/python3 -m pip install --upgrade pip' command.
==> ERROR: A failure occurred in build().
Aborting...
Locutus64 commented on 2021-12-13 20:12 (UTC) (edited on 2021-12-14 16:50 (UTC) by Locutus64)
Don't know why my post was pulled but as previously stated I'm getting the below again.
~ sudo systemctl status whoogle ✔
[sudo] password for locutus:
Sorry, try again.
[sudo] password for locutus:
● whoogle.service - Whoogle
Loaded: loaded (/usr/lib/systemd/system/whoogle.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2021-10-20 04:55:03 PDT; 2s ago
Process: 19351 ExecStart=/opt/whoogle-search/venv/bin/python3 -um app --host 0.0.0.0 --port 5000 (code=exit>
Main PID: 19351 (code=exited, status=1/FAILURE)
Pinned Comments
dr460nf1r3 commented on 2021-12-05 12:10 (UTC) (edited on 2022-03-05 09:17 (UTC) by dr460nf1r3)
Installs with official instructions to /opt. Read here for more information and options for the systemd service. ( -> e) manual) The search engine is accessible at localhost:5000, set it as default engine using your browsers option. Binary builds are available at Chaotic-AUR!