Bootstrapping on Fedora results in the following failure for many packages: > + rm /home/cendio/cenbuild/repo/rpmbuild/BUILD/cendio-build-binutils-bootstrap-x86_64-2.44-build/BUILDROOT///opt/cendio-build/arch/x86_64/usr/bootstrap/share/info/dir > rm: cannot remove '/home/cendio/cenbuild/repo/rpmbuild/BUILD/cendio-build-binutils-bootstrap-x86_64-2.44-build/BUILDROOT///opt/cendio-build/arch/x86_64/usr/bootstrap/share/info/dir': No such file or directory > error: Bad exit status from /var/tmp/rpm-tmp.DQaRnh (%install) This file is created when installing info files. The issue is simply that texinfo might be missing, and we haven't specified a BuildRequires for it.
It's actually a bit nuanced. The specific command that triggers the issue is "install-info". Which is part of the texinfo project, but it is packaged separately in the "info" package on RHEL and Fedora. Our bootstrapping packages already include built info files, so they do not need texinfo to generate them. But they will use install-info to install them, if available. And it's that command that generates that ../share/info/dir file. You can disable this generation by setting the environment variable AM_UPDATE_INFO_DIR. So we could set this globally and get rid of the issue. However, that is not how Red Hat/Fedora solves the issue. So we would be deviating from the norm. What they do is simply "rm -f" rather than just "rm". That has the downside of not being clear when it is completely unnecessary for a package.
Tested bootstrap on Fedora 41 without install-info, and on RHEL 8 with install-info. Both build fine.