-
Notifications
You must be signed in to change notification settings - Fork 125
RHAIENG-2101, RHAIENG-2111: chore(build): fix builds in 3.2 #2719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f3c8c18
0496b20
c486364
8d62cff
081b38b
cd57ffd
f23bf6c
0d2c393
3a9dd64
405d7f5
ca62a3a
d53d1f9
d7b095a
3e2b7ca
7e23557
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix incorrect package name: use
gcc-c++instead ofgcc-g++.The package
gcc-g++does not exist in the UBI9 repository. The correct package name for the C++ compiler isgcc-c++. This will cause thednf installcommand to fail.This inconsistency is evident when comparing with line 41, where the correct
gcc-c++package is used for s390x.Apply this diff to fix the package name:
📝 Committable suggestion
🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@coderabbitai think it through again; either works
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Length of output: 402
🌐 Web query:
💡 Result:
Short answer: install the RHEL/UBI package named gcc-c++ (it provides g++):
Commands (run as root inside a UBI9 / RHEL9 environment)
If you want a newer toolset instead of system gcc, use Red Hat's GCC Toolset container or packages (e.g. gcc-toolset-14 / gcc-toolset-13) and enable/run it via scl or the toolset container. See Red Hat docs for the toolset options. [1][2][3]
Sources:
🌐 Web query:
💡 Result:
There is no package named "gcc-g++" on RHEL. The C++ compiler (g++) is provided by the gcc-c++ package (or by the "Development Tools" group). Example commands:
Sources: Red Hat documentation and community guidance. [1][2]
References
[1] Red Hat Developer — Install GCC / Development Tools on RHEL.
[2] Unix StackExchange / community answers showing gcc-c++ provides /usr/bin/g++.
🌐 Web query:
💡 Result:
Use the rpm named gcc-c++ (provides the g++ C++ compiler). [1][2]
Sources:
🌐 Web query:
💡 Result:
Short answer: No — UBI 9 doesn't use a "gcc-g++" virtual package. The C++ compiler is provided by the gcc-c++ (or gcc-c++/gcc‑11… rpm) packages in the UBI 9 AppStream/BaseOS repos (e.g., gcc-c++ and gcc packages are present in the UBI9 repo). [1]
Sources:
🌐 Web query:
💡 Result:
Yes — install the PackageKit command-not-found handler. It provides “did you mean” / offer-to-install suggestions (and with dnf5 can auto-install and rerun the command).
Commands:
References: Fedora feature/docs for PackageKit command-not-found [1], the PackageKit package page [2], and a writeup showing dnf5 + command‑not‑found behavior [3].
🌐 Web query:
💡 Result:
If you mean the DNF automatic-updates feature: install the dnf-automatic package (or the dnf5 plugin on systems using dnf5), enable its timer, and edit the config.
Commands:
sudo dnf install dnf-automatic
sudo systemctl enable --now dnf-automatic.timer
sudo dnf install dnf5-plugin-automatic
sudo systemctl enable --now dnf-automatic.timer
Edit /etc/dnf/automatic.conf to choose download-only, apply_updates=True, reboot behavior, etc. Check status with:
systemctl status dnf-automatic.timer
systemctl list-timers --all | grep dnf-automatic
Sources: Fedora DNF docs and dnf-automatic package page. [1][2][3]
Sources
[1] Using the DNF software package manager — Fedora Docs. [2] dnf-automatic — Fedora Packages. [3] Automatic Updates — Fedora Docs.
🏁 Script executed:
Length of output: 1655
@jiridanek, I've investigated this further and found some evidence that suggests
gcc-g++may not be a valid package name:Evidence from documentation:
Evidence from this codebase:
gcc-c++for the s390x architecturegcc-c++:base-images/utils/aipcc.sh:144codeserver/ubi9-python-3.12/devel_env_setup.sh:69gcc-g++This inconsistency within the same file is notable. If
gcc-g++were valid, it would be unusual for line 53 to use a different package name.Could you verify which package name actually succeeds in your testing environment? If
gcc-g++does work in your tests, I'd be interested to understand the mechanism, as it doesn't appear to be a standard package name in the UBI9 repositories.That said, I defer to your testing results—if you've confirmed both work, perhaps there's a package alias or DNF behavior I'm not aware of.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@coderabbitai create github issue to fix this later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Length of output: 55
@jiridanek, I've created issue #2755 to track this inconsistency: #2755
The issue documents the difference between
gcc-g++(line 23) andgcc-c++(line 53) usage in the file, and includes references back to this PR and discussion.