• Bug#1086185: dpkg-source -b . fails on reverting what it applied

    From Guillem Jover@1:229/2 to Geert Stappers on Tue Oct 29 02:40:01 2024
    XPost: linux.debian.bugs.dist
    From: guillem@debian.org

    Control: tag -1 unreproducible

    Hi!

    On Mon, 2024-10-28 at 16:32:18 +0100, Geert Stappers wrote:
    Reproducer commands, copy and paste ready:

    wget -O python-acme_1.12.0.orig.tar.gz \
    https://pypi.debian.net/acme/acme-1.12.0.tar.gz
    debcheckout python-acme
    cd python-acme/
    git switch bullseye

    After this, on the clean checkout in the bullseye branch, on a sid
    installation it works:

    dpkg-source -b .

    ,---
    python-acme (bullseye =)$ dpkg-source --version
    Debian dpkg-source version 1.22.11.

    This is free software; see the GNU General Public License version 2 or
    later for copying conditions. There is NO warranty.
    python-acme (bullseye =)$ dpkg-source -b .
    dpkg-source: info: using source format '3.0 (quilt)'
    dpkg-source: info: using patch list from debian/patches/series
    dpkg-source: info: applying disable-tls-alpn-test.patch
    dpkg-source: info: applying fix-csr-version.patch
    dpkg-source: warning: upstream signing key but no upstream tarball signature dpkg-source: info: building python-acme using existing ./python-acme_1.12.0.orig.tar.gz
    dpkg-source: info: using patch list from debian/patches/series
    dpkg-source: info: building python-acme in python-acme_1.12.0-2+deb11u1.debian.tar.xz
    dpkg-source: info: building python-acme in python-acme_1.12.0-2+deb11u1.dsc `---

    Cleaning up the source tree:

    ,---
    python-acme (bullseye *%=)$ git checkout HEAD .
    Updated 3 paths from bbef322
    python-acme (bullseye %=)$ git clean -xdf
    Removing .pc/
    `---

    And switching into a bookworm installation (for the dpkg version
    this was reported against):

    ,---
    python-acme$ dpkg-source --version
    Debian dpkg-source version 1.21.22.

    This is free software; see the GNU General Public License version 2 or
    later for copying conditions. There is NO warranty.
    python-acme$ dpkg-source -b .
    dpkg-source: info: using source format '3.0 (quilt)'
    dpkg-source: info: using patch list from debian/patches/series
    dpkg-source: info: applying disable-tls-alpn-test.patch
    dpkg-source: info: applying fix-csr-version.patch
    dpkg-source: warning: upstream signing key but no upstream tarball signature dpkg-source: info: building python-acme using existing ./python-acme_1.12.0.orig.tar.gz
    dpkg-source: info: using patch list from debian/patches/series
    dpkg-source: info: building python-acme in python-acme_1.12.0-2+deb11u1.debian.tar.xz
    dpkg-source: info: building python-acme in python-acme_1.12.0-2+deb11u1.dsc `---

    Even doing the same (after cleaning up the source tree again) on an installation matching the supposed target of the changelog, so on
    bullseye, it still works:

    ,---
    python-acme$ dpkg-source --version
    Debian dpkg-source version 1.20.13.

    This is free software; see the GNU General Public License version 2 or
    later for copying conditions. There is NO warranty.
    python-acme$ dpkg-source -b .
    dpkg-source: info: using source format '3.0 (quilt)'
    dpkg-source: info: using patch list from debian/patches/series
    dpkg-source: info: applying disable-tls-alpn-test.patch
    dpkg-source: info: applying fix-csr-version.patch
    dpkg-source: info: building python-acme using existing ./python-acme_1.12.0.orig.tar.gz
    dpkg-source: warning: upstream signing key but no upstream tarball signature dpkg-source: info: using patch list from debian/patches/series
    dpkg-source: info: building python-acme in python-acme_1.12.0-2+deb11u1.debian.tar.xz
    dpkg-source: info: building python-acme in python-acme_1.12.0-2+deb11u1.dsc `---

    So there is perhaps something weird going on in your system? Could you
    try with a new test user?

    Thanks,
    Guillem

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)