Source: pycurl
Version: 7.45.7-2
Severity: serious
Justification: Policy 4.9
Tags: patch

$ apt-get source pycurl
$ cd pycurl-7.45.7/
$ ls src/docstrings.[ch]
ls: cannot access 'src/docstrings.[ch]': No such file or directory
$ make -f debian/rules  build
$ make -f debian/rules  clean
$ ls src/docstrings.[ch]
src/docstrings.c  src/docstrings.h

The violates policy must directive:

  clean (required)

    This must undo any effects that the build and binary targets may
    have had, except that it should leave alone any output files
    created in the parent directory by a run of a binary target.


In particular, this also breaks running
$ debuild -uc -us
twice in a row; the second run fails with:
dpkg-source: info: local changes detected, the modified files are:
 pycurl-7.45.7/src/docstrings.c
 pycurl-7.45.7/src/docstrings.h
dpkg-source: error: aborting due to unexpected upstream changes, see 
/tmp/pycurl_7.45.7-2.diff.BcSGLn


-- System Information:
Debian Release: 13.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'stable'), (400, 'testing'), (300, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.43+deb13-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=fr_LU.UTF-8, LC_CTYPE=fr_LU.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
--- debian/clean.orig	2025-11-01 23:26:11.582762320 +0100
+++ debian/clean	2025-11-01 23:26:19.110774484 +0100
@@ -5,3 +5,4 @@
 tests/fake-curl/libcurl/with_unknown_ssl.so
 tests/fake-curl/libcurl/without_ssl.so
 tests/tmp/upload.txt
+src/docstrings.[ch]

Reply via email to