[git-buildpackage] Using git-buildpackage for RPMs

Guido Günther agx at sigxcpu.org
Wed Apr 28 09:47:18 CEST 2021


Hi,
On Tue, Apr 27, 2021 at 12:38:04PM -0700, Quanah Gibson-Mount wrote:
> Hi,
> 
> I've been using git-buildpackage to build packages for debian and Ubuntu.
> I'd like to continue using it for building RPMs.  However, trying to install
> on a CentOS 8 box currently leads to failure as it tries to execute the
> debian specific command dpkg-changelog:
> 
> pip3 install gbp
> WARNING: Running pip install with root privileges is generally not a good
> idea. Try `pip3 install --user` instead.
> Collecting gbp
>  Downloading https://files.pythonhosted.org/packages/6c/70/5df28a75ec7036c04bad0bd3bff417435142dee8bf34f2be0cee515caa74/gbp-0.9.22.tar.gz
> (1.1MB)
>    100% |████████████████████████████████| 1.1MB 659kB/s
>    Complete output from command python setup.py egg_info:
>    Traceback (most recent call last):
>      File "<string>", line 1, in <module>
>      File "/tmp/pip-build-zrwumhm5/gbp/setup.py", line 77, in <module>
>        version=parse_and_fetch_version(),
>      File "/tmp/pip-build-zrwumhm5/gbp/setup.py", line 55, in
> parse_and_fetch_version
>        version = _parse_changelog()
>      File "/tmp/pip-build-zrwumhm5/gbp/setup.py", line 29, in
> _parse_changelog
>        popen = subprocess.Popen('dpkg-parsechangelog',
> stdout=subprocess.PIPE)
>      File "/usr/lib64/python3.6/subprocess.py", line 729, in __init__
>        restore_signals, start_new_session)
>      File "/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child
>        raise child_exception_type(errno_num, err_msg, err_filename)
>    FileNotFoundError: [Errno 2] No such file or directory:
> 'dpkg-parsechangelog': 'dpkg-parsechangelog'
> 
> 
> Is there a guide on how to install on dnf based systems?

I've pushed a fix that avoids `dpkg-parsechanglog` altogether since we
really only need the version number from the first line.

Thanks for letting us know!
 -- Guido

> 
> Thanks!
> 
> Regards,
> Quanah
> 
> 
> 
> --
> 
> Quanah Gibson-Mount
> Product Architect
> Symas Corporation
> Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
> <http://www.symas.com>
> _______________________________________________
> git-buildpackage mailing list
> git-buildpackage at lists.sigxcpu.org
> http://lists.sigxcpu.org/mailman/listinfo/git-buildpackage


More information about the git-buildpackage mailing list