BuildRequires: redhat-rpm-config

Richard W.M. Jones rjones at redhat.com
Thu Nov 14 08:56:22 UTC 2013


I had a bug filed that a Python package I'm maintaining cannot be
rebuilt using 'rpmbuild --rebuild'.  The failure was that the *.pyc
and *.pyo files are missing.

After a lot of head-scratching and debugging it turns out that
brp-python-bytecompile was not running, and that happens because the
RPM macro %{__os_install_post} didn't contain a call to
brp-python-bytecompile.  This macro exists in base RPM, but is
overridden/extended when redhat-rpm-config is installed.

Installing redhat-rpm-config fixes the problem for the bug reporter.

However this raises some questions:

 - Should this package explicitly BR redhat-rpm-config?

 - Should all Python packages explicitly BuildRequire redhat-rpm-config?

 - Should this package not be packaging up the *.py[co] files?

 - Is this a bug in redhat-rpm-config/Python/RPM/Fedora?

 - Should I just ignore this because it builds fine in Koji?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top


More information about the devel mailing list