Bug#1047041: python3-lxc: Fails to build source after successful build

2023-08-18 Thread Mathias Gibbens
  This seems to be caused by `./PKG-INFO` and `./python3_lxc.egg-info/`
being automatically generated when the upstream source is imported.
They don't exist in the upstream tarball, but something's generating
them when `gbp import-orig python3-lxc_.orig.tar.gz` is
invoked. And then during the build `./python3_lxc.egg-info/PKG-INFO` is
modified, which triggers this bug.

  My first thought was that these files shouldn't even be in the git
repo, but I'm not entirely sure how they're being generated in the
first place.

Mathias


signature.asc
Description: This is a digitally signed message part


Bug#1047041: python3-lxc: Fails to build source after successful build

2023-08-13 Thread Lucas Nussbaum
Source: python3-lxc
Version: 1:5.0.0-1
Severity: minor
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-sab-20230813 ftbfs-source-after-build
User: debian...@lists.debian.org
Usertags: qa-doublebuild

Hi,

This package fails to build a source package after a successful build
(dpkg-buildpackage ; dpkg-buildpackage -S).

This is probably a clear violation of Debian Policy section 4.9 (clean target),
but this is filed as severity:minor for now, because a discussion on
debian-devel showed that we might want to revisit the requirement of a working
'clean' target.

More information about this class of issues, included common problems and
solutions, is available at
https://wiki.debian.org/qa.debian.org/FTBFS/SourceAfterBuild

Relevant part of the build log:
> cd /<> && runuser -u user42 -- dpkg-buildpackage --sanitize-env 
> -us -uc -rfakeroot -S
> -
> 
> dpkg-buildpackage: info: source package python3-lxc
> dpkg-buildpackage: info: source version 1:5.0.0-1
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Mathias Gibbens 
>  dpkg-source --before-build .
>  debian/rules clean
> dh clean --with python3 --buildsystem=pybuild
>dh_auto_clean -O--buildsystem=pybuild
> I: pybuild base:275: python3.11 setup.py clean 
> running clean
> removing '/<>/.pybuild/cpython3_3.11/build' (and everything 
> under it)
> 'build/bdist.linux-x86_64' does not exist -- can't clean it
> 'build/scripts-3.11' does not exist -- can't clean it
>dh_autoreconf_clean -O--buildsystem=pybuild
>dh_clean -O--buildsystem=pybuild
>  dpkg-source -b .
> dpkg-source: info: using source format '3.0 (quilt)'
> dpkg-source: info: verifying ./python3-lxc_5.0.0.orig.tar.gz.asc
> dpkg-source: info: building python3-lxc using existing 
> ./python3-lxc_5.0.0.orig.tar.gz
> dpkg-source: info: building python3-lxc using existing 
> ./python3-lxc_5.0.0.orig.tar.gz.asc
> dpkg-source: info: local changes detected, the modified files are:
>  python3-lxc-5.0.0/python3_lxc.egg-info/PKG-INFO
> dpkg-source: error: aborting due to unexpected upstream changes, see 
> /tmp/python3-lxc_5.0.0-1.diff.YYfsqt
> dpkg-source: info: Hint: make sure the version in debian/changelog matches 
> the unpacked source tree
> dpkg-source: info: you can integrate the local changes with dpkg-source 
> --commit
> dpkg-buildpackage: error: dpkg-source -b . subprocess returned exit status 2
> 
> E: Command 'cd /<> && runuser -u user42 -- dpkg-buildpackage 
> --sanitize-env -us -uc -rfakeroot -S' failed to run.


The full build log is available from:
http://qa-logs.debian.net/2023/08/13/python3-lxc_5.0.0-1_unstable.log

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.