Quellcode durchsuchen

feat: update Debian control and rules for SquidStats packaging

Manuel vor 6 Monaten
Ursprung
Commit
738813d755
2 geänderte Dateien mit 9 neuen und 8 gelöschten Zeilen
  1. 2 5
      debian/control
  2. 7 3
      debian/rules

+ 2 - 5
debian/control

@@ -23,12 +23,9 @@ Rules-Requires-Root: no
 Package: squidstats
 Architecture: any
 Depends: ${misc:Depends},
-         ${shlibs:Depends},
          python3 (>= 3.11),
-         adduser,
-         libpq5,
-         libldap-2.5-0 | libldap-2.4-2
-Recommends: squid | squid3
+         adduser
+Recommends: squid
 Suggests: postgresql | mariadb-server
 Description: Web-based Squid proxy statistics and monitoring dashboard
  SquidStats is a Flask web application that provides real-time analysis

+ 7 - 3
debian/rules

@@ -22,7 +22,7 @@ override_dh_auto_build:
 	@echo "=== Build complete ==="
 
 override_dh_auto_install:
-	# ── Application directories ──────────────────────────────────────────
+	# ── Application directories ───────────────────────────squid───────────────
 	install -d $(APP_DEST)
 	install -d $(VENV_DEST)
 	install -d $(DESTDIR)/etc/$(PACKAGE)
@@ -64,9 +64,13 @@ override_dh_auto_test:
 override_dh_strip:
 	dh_strip --no-automatic-dbgsym
 
-# Disable shlibdeps for the venv contents – they are self-contained
+# Exclude the bundled venv from ELF dependency scanning.
+# All native libraries (psycopg2-binary, cryptography, bcrypt, etc.) ship
+# as manylinux wheels inside the venv and carry their own shared libs,
+# so auto-detected system deps like libldap-2.5-0 / libpq5 / libssl are
+# wrong and break cross-distro portability.
 override_dh_shlibdeps:
-	dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info || true
+	dh_shlibdeps -X/opt/squidstats/venv/
 
 override_dh_dwz:
 	# Skip DWZ compression for bundled venv Python extension modules.