Bug 8644 - Bootstrap packages fail to build without install-info
Summary: Bootstrap packages fail to build without install-info
Status: RESOLVED FIXED
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Build system (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.20.0
Assignee: Pierre Ossman
URL: https://git.cendio.se/thinlinc/cenbui...
Keywords: prosaic
Depends on:
Blocks:
 
Reported: 2025-07-16 13:05 CEST by Pierre Ossman
Modified: 2025-07-17 12:21 CEST (History)
0 users

See Also:
Acceptance Criteria:
MUST: * cenbuild should build completely without install-info installed


Attachments

Description Pierre Ossman cendio 2025-07-16 13:05:18 CEST
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.
Comment 1 Pierre Ossman cendio 2025-07-17 10:37:46 CEST
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.
Comment 5 Pierre Ossman cendio 2025-07-17 12:21:41 CEST
Tested bootstrap on Fedora 41 without install-info, and on RHEL 8 with install-info. Both build fine.

Note You need to log in before you can comment on or make changes to this bug.