CI: Fix fedora:latest (F41) failure#527
Merged
slyon merged 2 commits intocanonical:mainfrom Nov 12, 2024
Merged
Conversation
Ignore debuginfo packages in our local CI to avoid this error:
Processing files: netplan-debugsource-0.106-0.fc41.x86_64
error: Empty %files file /home/test/rpmbuild/BUILD/netplan-0.106-build/netplan-0.106/debugsourcefiles.list
Empty %files file /home/test/rpmbuild/BUILD/netplan-0.106-build/netplan-0.106/debugsourcefiles.list
gcc complains about ip_str not being initialized before the cleanup
function is called:
In file included from /usr/include/glib-2.0/glib.h:117,
from ../src/parse.c:25:
In function ‘g_autoptr_cleanup_generic_gfree’,
inlined from ‘get_ip_family’ at ../src/parse.c:1912:22:
/usr/include/glib-2.0/glib/glib-autocleanups.h:32:3: error: ‘ip_str’ may be used uninitialized [-Werror=maybe-uninitialized]
32 | g_free (*pp);
| ^~~~~~~~~~~~
../src/parse.c: In function ‘get_ip_family’:
../src/parse.c:1912:22: note: ‘ip_str’ was declared here
1912 | g_autofree char *ip_str;
| ^~~~~~
cc1: all warnings being treated as errors
Let's initialize it to NULL to satisfy the compiler.
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Ignore debuginfo packages in our local CI to avoid this error:
Checklist
make checksuccessfully.make check-coverage).