On 12.5.2018 11:51, Boris Zikeyev wrote:
I'm hoping this is the correct mailing list for my question.
I wanted to know if there is a common\conventional way of compiling
SRPMs (and generating the corresponding binary RPMs) on a x86_64 env for
a i686 target.
In particular, I'm interested in compiling glibc for i686. This has to
be possible, since an i686 version of the package is indeed available
from the repository. However, simply attempting to compile the SRPM by
rpmbuild -ba <my path>/rpmbuild/SPECS/glibc.spec --target=i686
(after obtaining all of the dependencies) seems to fail due to incorrect
env vars and\or configure flags.
Try with mock:
mock -r fedora-rawhide-i386 <SRPM>