From 9b449b39ce81b747bf1ff7bb9ec35ce04060cfa8 Mon Sep 17 00:00:00 2001 From: enzo Date: Wed, 13 May 2026 00:43:44 +0200 Subject: [PATCH] fix(debian): remove pybuild, use manual install in rules - Remove dh-python and pybuild from debian/rules - Remove python3-all from build deps - Manual install of scripts and full_updater module - Update Depends to use python3 directly --- .forgejo/workflows/build.yml | 2 +- debian/control | 4 ++-- debian/rules | 14 +++++++++++--- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 1fdbc83..0864a92 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -43,7 +43,7 @@ jobs: working-directory: /workspace/repo run: | apt-get update - apt-get install -y build-essential debhelper dh-python python3-all python3-venv devscripts fakeroot + apt-get install -y build-essential debhelper devscripts fakeroot - name: Build .deb package working-directory: /workspace/repo diff --git a/debian/control b/debian/control index 940ddca..034e858 100644 --- a/debian/control +++ b/debian/control @@ -2,12 +2,12 @@ Source: full-updater Section: admin Priority: optional Maintainer: Enzo -Build-Depends: debhelper-compat (= 13), dh-python, python3-all, python3-venv +Build-Depends: debhelper-compat (= 13) Standards-Version: 4.6.0 Package: full-updater Architecture: all -Depends: ${python3:Depends}, python3-textual, python3-pyperclip, python3-venv, git, pct +Depends: python3, python3-venv, git, pct Description: TUI for APT/CVE updates on Proxmox host and LXC Full Updater is a terminal user interface (TUI) that visualizes available APT updates and CVEs for the Proxmox host and all LXC diff --git a/debian/rules b/debian/rules index 96ecdf9..2cf6507 100755 --- a/debian/rules +++ b/debian/rules @@ -1,14 +1,22 @@ #!/usr/bin/make -f export DH_VERBOSE = 1 -export PYBUILD_NAME = full-updater %: - dh $@ --with python3 --buildsystem=pybuild + dh $@ override_dh_auto_install: - dh_auto_install + install -d -m 755 $(CURDIR)/debian/full-updater/opt/full-updater + install -d -m 755 $(CURDIR)/debian/full-updater/opt/full-updater/scripts + install -d -m 755 $(CURDIR)/debian/full-updater/usr/local/bin install -D -m 755 scripts/fullupdater $(CURDIR)/debian/full-updater/opt/full-updater/scripts/fullupdater install -D -m 755 scripts/fullupdater-update $(CURDIR)/debian/full-updater/usr/local/bin/fullupdater-update install -D -m 644 requirements.txt $(CURDIR)/debian/full-updater/opt/full-updater/requirements.txt cp -r full_updater $(CURDIR)/debian/full-updater/opt/full-updater/ + find $(CURDIR)/debian/full-updater/opt/full-updater -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true + +override_dh_auto_build: + # Pas de build necessaire + +override_dh_auto_clean: + # Pas de clean necessaire