#1013252 FTBS: source package format '3.0 (gitarchive)' is not supported

Package:
lvm2
Source:
lvm2
Description:
Linux Logical Volume Manager
Submitter:
Ross Boylan
Date:
2022-06-20 11:00:02 UTC
Severity:
normal
Tags:
#1013252#5
Date:
2022-06-20 06:58:13 UTC
From:
To:
** Summary **

The source package does not declare a build dependency on dpkg-source-
gitarchive and so fails to build in stable.  Probably it should declare such a
dependency, because it builds once that package is installed.

**Steps to Reproduce**

1. On a Debian 11 system.
2. git clone https://salsa.debian.org/lvm-team/lvm2.git
   As of Fri 17 Jun 2022 04:04:13 PM PDT
3. cd lvm2
4. mk-build-deps
5. install the resulting deb (as root)
6.  DEB_BUILD_OPTIONS="nostrip noopt" dpkg-buildpackage -b -us -uc (logs below
--fails)

**Fix**

apt-file search Gitarchive.pm showed it was in dpkg-source-gitarchive.
apt install dpkg-source-gitarchive
Repeat the build command of step 6; this time it works

**Comments**

Don't believe the version info collected by reportbug; those are the binary
packages on my system, but the build was against the head of master.

I am building code that may be targeting unstable in a stable environment.  It
might be that unstable would handle the archive format without additional help.

**Logs**

For step 6 above:
dpkg-buildpackage: info: source package lvm2
dpkg-buildpackage: info: source version 2.03.11-2
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Bastian Blank <waldi@debian.org>
dpkg-buildpackage: info: host architecture amd64
 dpkg-source --before-build .
dpkg-source: error: source package format '3.0 (gitarchive)' is not supported:
Can't locate Dpkg/Source/Package/V3/Gitarchive.pm in @INC (you may need to
install the Dpkg::Source::Package::V3::Gitarchive module) (@INC contains:
/etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.32.1
/usr/local/share/perl/5.32.1 /usr/lib/x86_64-linux-gnu/perl5/5.32
/usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-
gnu/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl) at (eval 15) line
3.

dpkg-buildpackage: error: dpkg-source --before-build . subprocess returned exit
status 255

**Thanks**

For maintaining the package!

#1013252#10
Date:
2022-06-20 10:57:34 UTC
From:
To:
The build-dep is not needed to build the published source package.
Please read the included documentation on how to build from the repo in
debian/README.source.md.

I don't think this is a bug in the first place.

Regards,
Bastian