From 1c79c1a3d2e7f18c198492c8d7bdc18911f26c04 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sat, 12 Mar 2022 16:51:42 +0100 Subject: [PATCH] [LXC] fedora33 EOL [1], upgrade to fedora35 [2] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [1] https://docs.fedoraproject.org/en-US/releases/eol/ [2] https://docs.fedoraproject.org/en-US/releases/f35/ Tested by:: # build the container .. $ sudo -H ./utils/lxc.sh build searx-fedora35 # open a shell in the container $ sudo -H ./utils/lxc.sh cmd searx-fedora35 bash [root@searx-fedora35 SearXNG]# # install a complete SearXNG suite .. [root@searx-fedora35 SearXNG]# ./utils/searx.sh install all ... # install apache to export the SearXNG instance by HTTP [root@searx-fedora35 SearXNG]# ./utils/searx.sh apache install ... INFO: got 200 from http://10.174.184.94/searx To build wheel `python3-devel` needs to be added to SEARX_PACKAGES_fedora:: |searx| × Building wheel for setproctitle (pyproject.toml) did not run successfully. |searx| │ exit code: 1 ... |searx| In file included from src/spt.h:15, |searx| from src/setproctitle.c:14: |searx| src/spt_python.h:16:10: fatal error: Python.h: No such file or directory |searx| 16 | #include |searx| | ^~~~~~~~~~ |searx| compilation terminated. |searx| error: command '/usr/bin/gcc' failed with exit code 1 |searx| [end of output] ... |searx| ERROR: Failed building wheel for setproctitle Signed-off-by: Markus Heiser --- utils/lxc-searx.env | 2 +- utils/lxc.sh | 2 +- utils/searx.sh | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/lxc-searx.env b/utils/lxc-searx.env index 6d9a48a4..f02f919e 100644 --- a/utils/lxc-searx.env +++ b/utils/lxc-searx.env @@ -26,7 +26,7 @@ lxc_set_suite_env() { "$LINUXCONTAINERS_ORG_NAME:ubuntu/20.10" "ubu2010" # July 2021 # EOL see https://fedoraproject.org/wiki/Releases - "$LINUXCONTAINERS_ORG_NAME:fedora/33" "fedora33" + "$LINUXCONTAINERS_ORG_NAME:fedora/35" "fedora35" # rolling releases see https://www.archlinux.org/releng/releases/ "$LINUXCONTAINERS_ORG_NAME:archlinux" "archlinux" diff --git a/utils/lxc.sh b/utils/lxc.sh index ab96a99c..0b4e246d 100755 --- a/utils/lxc.sh +++ b/utils/lxc.sh @@ -51,7 +51,7 @@ echo 'Set disable_coredump false' >> /etc/sudo.conf " # shellcheck disable=SC2034 -fedora33_boilerplate=" +fedora35_boilerplate=" dnf update -y dnf install -y git curl wget hostname echo 'Set disable_coredump false' >> /etc/sudo.conf diff --git a/utils/searx.sh b/utils/searx.sh index 5ae9a6ad..ce118ed7 100755 --- a/utils/searx.sh +++ b/utils/searx.sh @@ -58,9 +58,9 @@ texlive-core texlive-latexextra ttf-dejavu" # dnf packages SEARX_PACKAGES_fedora="\ -python python-pip python-lxml python-babel +python python-pip python-lxml python-babel python3-devel uwsgi uwsgi-plugin-python3 -git @development-tools libxml2 +git @development-tools libxml2 openssl ShellCheck" BUILD_PACKAGES_fedora="\