[git-buildpackage] Invalid dependencies for git-buildpackage on RPM systems

Quanah Gibson-Mount quanah at symas.com
Wed Nov 10 21:47:05 CET 2021



--On Wednesday, November 10, 2021 12:42 PM -0800 Quanah Gibson-Mount 
<quanah at symas.com> wrote:

>
>
> --On Wednesday, November 10, 2021 12:36 PM -0800 Quanah Gibson-Mount
> <quanah at symas.com> wrote:
>
>> When building git-buildpackage (0.9.25 or prior) on an RPM system with
>> git-buildpackage-rpm, the resulting RPM has invalid dependencies:
>>
>> devscripts
>>
>> This does not exist on RPM based systems, which then causes failure to
>> install the RPM.
>
> Ok, this seems to be a new issue, where devscripts used to exist but no
> longer does.

Right, I remember I ran into this before.  There's no such package for 
Centos8/RHEL8 and later, but it did exist for Centos7 and prior, and exists 
on Fedora.  I added this patch:

diff --git a/packaging/git-buildpackage.spec 
b/packaging/git-buildpackage.spec
index 1ff54885..e8f4417f 100644
--- a/packaging/git-buildpackage.spec
+++ b/packaging/git-buildpackage.spec
@@ -55,7 +55,9 @@ Patch0: 0001-Fix-path-to-docbook-dtd-file.patch

 Requires:   %{name}-common = %{version}-%{release}
 Requires:   %{dpkg_pkg_name}
+%if 0%{?fedora} || 0%{?centos_ver} && 0%{?centos_ver} == 7
 Requires:   devscripts
+%endif
 BuildRequires:  python3
 BuildRequires:  python3-setuptools



--Quanah


--

Quanah Gibson-Mount
Product Architect
Symas Corporation
Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
<http://www.symas.com>


More information about the git-buildpackage mailing list