BuildRequires: redhat-rpm-config
Dan HorĂ¡k
dan at danny.cz
Thu Nov 14 09:27:15 UTC 2013
On Thu, 14 Nov 2013 08:56:22 +0000
"Richard W.M. Jones" <rjones at redhat.com> wrote:
>
> 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?
I think ignoring is fine, we should rather recommend to do "yum install
@buildsys-build" before starting to work on Fedora packages
Dan
More information about the devel
mailing list