Fix Fedora 41 RPM dependency issue with liblttng-ust compatibility handling #4004
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The GitHub Actions runner binaries are compiled with a dependency on
liblttng-ust.so.0
, but Fedora 41 ships with lttng-ust version 2.13.8 which providesliblttng-ust.so.1
. This causes RPM installation failures with errors like:The root cause was that the
installdependencies.sh
script for Fedora-based systems only attempted to install thelttng-ust
package without any fallback handling for version compatibility, unlike Debian-based systems which have robust fallback logic.Changes Made
Enhanced Fedora dependency installation logic: Modified the
dnf
installation section insrc/Misc/layoutbin/installdependencies.sh
to:dnf_with_lttng_fallbacks()
function for lttng-ust handlingliblttng-ust.so.0
liblttng-ust.so.0
→liblttng-ust.so.1
)Updated documentation: Enhanced
docs/start/envlinux.md
to document the automatic compatibility handling for Fedora-based systems.Testing
This approach provides a robust solution that maintains backward compatibility while supporting newer Fedora versions that ship with updated lttng-ust libraries.
Fixes #3937.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
esm.ubuntu.com
/usr/lib/apt/methods/https
(dns block)https://api.github.com/repos/TingluoHuang/REDACTED_L0/tarball/CompositeLimit
/home/REDACTED/work/REDACTED/REDACTED/_dotnetsdk/8.0.413/dotnet exec --runtimeconfig /home/REDACTED/work/REDACTED/REDACTED/src/Test/bin/Debug/net8.0/Test.runtimeconfig.json --depsfile /home/REDACTED/work/REDACTED/REDACTED/src/Test/bin/Debug/net8.0/Test.deps.json /home/REDACTED/work/REDACTED/REDACTED/src/Test/bin/Debug/net8.0/testhost.dll --port 34283 --endpoint 127.0.0.1:034283 --role client --parentprocessid 4771 --telemetryoptedin false
(http block)https://api.github.com/repos/TingluoHuang/REDACTED_L0/tarball/RepositoryActionWithInvalidWrapperActionfile_Node
/home/REDACTED/work/REDACTED/REDACTED/_dotnetsdk/8.0.413/dotnet exec --runtimeconfig /home/REDACTED/work/REDACTED/REDACTED/src/Test/bin/Debug/net8.0/Test.runtimeconfig.json --depsfile /home/REDACTED/work/REDACTED/REDACTED/src/Test/bin/Debug/net8.0/Test.deps.json /home/REDACTED/work/REDACTED/REDACTED/src/Test/bin/Debug/net8.0/testhost.dll --port 34283 --endpoint 127.0.0.1:034283 --role client --parentprocessid 4771 --telemetryoptedin false
(http block)https://api.github.com/repos/TingluoHuang/REDACTED_L0/tarball/RepositoryActionWithWrapperActionfile_Node
/home/REDACTED/work/REDACTED/REDACTED/_dotnetsdk/8.0.413/dotnet exec --runtimeconfig /home/REDACTED/work/REDACTED/REDACTED/src/Test/bin/Debug/net8.0/Test.runtimeconfig.json --depsfile /home/REDACTED/work/REDACTED/REDACTED/src/Test/bin/Debug/net8.0/Test.deps.json /home/REDACTED/work/REDACTED/REDACTED/src/Test/bin/Debug/net8.0/testhost.dll --port 34283 --endpoint 127.0.0.1:034283 --role client --parentprocessid 4771 --telemetryoptedin false
(http block)https://api.github.com/repos/TingluoHuang/REDACTED_L0/tarball/repositoryactionwithactionfileanddockerfile
/home/REDACTED/work/REDACTED/REDACTED/_dotnetsdk/8.0.413/dotnet exec --runtimeconfig /home/REDACTED/work/REDACTED/REDACTED/src/Test/bin/Debug/net8.0/Test.runtimeconfig.json --depsfile /home/REDACTED/work/REDACTED/REDACTED/src/Test/bin/Debug/net8.0/Test.deps.json /home/REDACTED/work/REDACTED/REDACTED/src/Test/bin/Debug/net8.0/testhost.dll --port 34283 --endpoint 127.0.0.1:034283 --role client --parentprocessid 4771 --telemetryoptedin false
(http block)https://api.github.com/repos/TingluoHuang/REDACTED_L0/tarball/repositoryactionwithdockerfile
/home/REDACTED/work/REDACTED/REDACTED/_dotnetsdk/8.0.413/dotnet exec --runtimeconfig /home/REDACTED/work/REDACTED/REDACTED/src/Test/bin/Debug/net8.0/Test.runtimeconfig.json --depsfile /home/REDACTED/work/REDACTED/REDACTED/src/Test/bin/Debug/net8.0/Test.deps.json /home/REDACTED/work/REDACTED/REDACTED/src/Test/bin/Debug/net8.0/testhost.dll --port 34283 --endpoint 127.0.0.1:034283 --role client --parentprocessid 4771 --telemetryoptedin false
(http block)https://api.github.com/repos/actions/download-artifact/tarball/master
/home/REDACTED/work/REDACTED/REDACTED/_dotnetsdk/8.0.413/dotnet exec --runtimeconfig /home/REDACTED/work/REDACTED/REDACTED/src/Test/bin/Debug/net8.0/Test.runtimeconfig.json --depsfile /home/REDACTED/work/REDACTED/REDACTED/src/Test/bin/Debug/net8.0/Test.deps.json /home/REDACTED/work/REDACTED/REDACTED/src/Test/bin/Debug/net8.0/testhost.dll --port 34283 --endpoint 127.0.0.1:034283 --role client --parentprocessid 4771 --telemetryoptedin false
(http block)https://api.github.com/repos/actions/setup-node/tarball/v1
/home/REDACTED/work/REDACTED/REDACTED/_dotnetsdk/8.0.413/dotnet exec --runtimeconfig /home/REDACTED/work/REDACTED/REDACTED/src/Test/bin/Debug/net8.0/Test.runtimeconfig.json --depsfile /home/REDACTED/work/REDACTED/REDACTED/src/Test/bin/Debug/net8.0/Test.deps.json /home/REDACTED/work/REDACTED/REDACTED/src/Test/bin/Debug/net8.0/testhost.dll --port 34283 --endpoint 127.0.0.1:034283 --role client --parentprocessid 4771 --telemetryoptedin false
(http block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.