Hi Julian,
On Sun, Oct 24, 2021 at 09:48:04PM +0100, Julian Gilbey wrote:
> Package: git-buildpackage
> Version: 0.9.22
> Severity: normal
> 
> I ran the following command:
> 
> gbp buildpackage --git-builder=sbuild -A -v -d unstable
> 
> and received the following error in the postbuild hook, which runs
> lintian:
> 
> gbp:info: Running Postbuild hook
> /home/jdg/debian/spyder-packages/pyxdameraulevenshtein/build-area/pyxdameraulevenshtein_1.7.0-1_all.changes
>  is not a readable file
> gbp:error: Postbuild-hook 'lintian $GBP_CHANGES_FILE' failed: it exited with 2
> 
> The changes file in this case is called ..._amd64.changes.
> 
> Running the build with --verbose resulted in the attached log file.
> 
> It seems that for sbuild, "-A" does not stop the Architecture: any
> packages from being built, which is different from the "-A" option for
> dpkg-buildpackage.

So would we rather check for `--no-arch-any` in the sbuild case?
changes_file_suffix() would allow for that but I'd be great if an
sbuild user would come up with a patch so I don't mess up any corner
cases.
Worst case we'd just ignore `-A` with sbuild for the moment.

Cheers,
 -- Guido

> 
> Best wishes,
> 
>    Julian
> 
> -- System Information:
> Debian Release: bookworm/sid
>   APT prefers stable-security
>   APT policy: (500, 'stable-security'), (500, 'testing')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
> 
> Kernel: Linux 5.14.0-2-amd64 (SMP w/4 CPU threads)
> Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: 
> LC_ALL set to en_GB.UTF-8), LANGUAGE not set
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled
> 
> Versions of packages git-buildpackage depends on:
> ii  devscripts             2.21.4
> ii  git                    1:2.33.0-1
> ii  man-db                 2.9.4-2
> ii  python3                3.9.2-3
> ii  python3-dateutil       2.8.1-6
> ii  python3-pkg-resources  58.2.0-1
> ii  sensible-utils         0.0.17
> 
> Versions of packages git-buildpackage recommends:
> ii  cowbuilder        0.89
> ii  pbuilder          0.231
> ii  pristine-tar      1.49
> ii  python3-requests  2.25.1+dfsg-2
> 
> Versions of packages git-buildpackage suggests:
> pn  python3-notify2  <none>
> ii  sudo             1.9.5p2-3
> ii  unzip            6.0-26
> 
> -- no debconf information

Reply via email to