Package: pastedeploy
Severity: serious
Tags: patch ftbfs
Justification: fails to build from source (but built successfully in the past)
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu mantic ubuntu-patch
X-Debbugs-Cc: scho...@ubuntu.com

Hi,

The package now fails to build due to dh-python new clean behavior
removing the FakeApp egg info that is needed for the test suite to run.

We've applied the attached workaround in Ubuntu, although I think it'd
be nicer to have an API for specifying exclusion, see #1051837.

  * Fix FTBFS due to dh-python being overly enthusiastic in its cleaning
    duties (LP: #2035337)

Thanks for considering the patch.

Simon Chopin

-- System Information:
Debian Release: trixie/sid
  APT prefers mantic
  APT policy: (500, 'mantic'), (100, 'mantic-proposed')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.5.0-5-generic (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_USER, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru pastedeploy-3.0.1/debian/rules pastedeploy-3.0.1/debian/rules
--- pastedeploy-3.0.1/debian/rules      2022-12-08 00:29:11.000000000 +0100
+++ pastedeploy-3.0.1/debian/rules      2023-09-21 22:20:30.000000000 +0200
@@ -22,3 +22,8 @@
 
 override_dh_installchangelogs:
        dh_installchangelogs $(CURDIR)/docs/news.rst
+
+override_dh_auto_clean:
+       mv tests/fake_packages/FakeApp.egg/FakeApp.egg-info FakeApp.backup
+       dh_auto_clean
+       mv FakeApp.backup tests/fake_packages/FakeApp.egg/FakeApp.egg-info

Reply via email to