Skip to content

Fix a CI failure for any distro using git >= 2.35.3#4545

Merged
hughsie merged 3 commits into
mainfrom
wip/hughsie/git-2.35.3
Apr 23, 2022
Merged

Fix a CI failure for any distro using git >= 2.35.3#4545
hughsie merged 3 commits into
mainfrom
wip/hughsie/git-2.35.3

Conversation

@superm1

@superm1 superm1 commented Apr 22, 2022

Copy link
Copy Markdown
Member

Type of pull request:

@superm1

superm1 commented Apr 22, 2022

Copy link
Copy Markdown
Member Author

I saw you had this branch, which it seems like the right move to me if it fixes Fedora CI.

@hughsie

hughsie commented Apr 22, 2022

Copy link
Copy Markdown
Member

which it seems like the right move to me if it fixes Fedora CI

I think if is the key word there. I had high hopes; but I regen'd the containers with this change and Fedora (or any distro with the newest git) still fails. I still need to test just doing the v2 to v3 change, but gah.

@hughsie hughsie force-pushed the wip/hughsie/git-2.35.3 branch from 7c1cae0 to 7b3fbe0 Compare April 22, 2022 17:59
@hughsie

hughsie commented Apr 22, 2022

Copy link
Copy Markdown
Member

Also see this: actions/checkout#770 -- it's all a bit of a mess.

@hughsie

hughsie commented Apr 22, 2022

Copy link
Copy Markdown
Member

I think merging this is probably the correct thing to do, although I'm still not sure what the root issue is. I suspect meson is calling git and getting the permission error caused by the new git feature, and swallowing it, and returning as if there's no git tree there.

@hughsie

hughsie commented Apr 22, 2022

Copy link
Copy Markdown
Member

@superm1 getting there! I'm now getting what I think is a false positive:

In function ‘fu_dell_execute_simple_smi’,
    inlined from ‘fu_dell_detect_dock’ at ../plugins/dell/fu-dell-smi.c:106:7:
../plugins/dell/fu-dell-smi.c:84:13: error: ‘dell_simple_ci_smi’ reading 16 bytes from a region of size 4 [-Werror=stringop-overread]
   84 |         if (dell_simple_ci_smi(class, select, obj->input, obj->output)) {
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../plugins/dell/fu-dell-smi.c:84:13: note: referencing argument 3 of type ‘const u32[4]’
../plugins/dell/fu-dell-smi.c:84:13: note: referencing argument 4 of type ‘u32[4]’
In file included from ../plugins/dell/fu-dell-smi.h:12,
		 from ../plugins/dell/fu-dell-smi.c:9:
/usr/include/smbios_c/smi.h: In function ‘fu_dell_detect_dock’:
/usr/include/smbios_c/smi.h:40:26: note: in a call to function ‘dell_simple_ci_smi’
   40 | LIBSMBIOS_C_DLL_SPEC int dell_simple_ci_smi(u16 smiClass, u16 select, const u32 args[4], u32 res[4]);
      |                          ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Sanity check please?

@superm1

superm1 commented Apr 22, 2022

Copy link
Copy Markdown
Member Author

@superm1 getting there! I'm now getting what I think is a false positive:

In function ‘fu_dell_execute_simple_smi’,
    inlined from ‘fu_dell_detect_dock’ at ../plugins/dell/fu-dell-smi.c:106:7:
../plugins/dell/fu-dell-smi.c:84:13: error: ‘dell_simple_ci_smi’ reading 16 bytes from a region of size 4 [-Werror=stringop-overread]
   84 |         if (dell_simple_ci_smi(class, select, obj->input, obj->output)) {
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../plugins/dell/fu-dell-smi.c:84:13: note: referencing argument 3 of type ‘const u32[4]’
../plugins/dell/fu-dell-smi.c:84:13: note: referencing argument 4 of type ‘u32[4]’
In file included from ../plugins/dell/fu-dell-smi.h:12,
		 from ../plugins/dell/fu-dell-smi.c:9:
/usr/include/smbios_c/smi.h: In function ‘fu_dell_detect_dock’:
/usr/include/smbios_c/smi.h:40:26: note: in a call to function ‘dell_simple_ci_smi’
   40 | LIBSMBIOS_C_DLL_SPEC int dell_simple_ci_smi(u16 smiClass, u16 select, const u32 args[4], u32 res[4]);
      |                          ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Sanity check please?

Yeah looks false positive to me too. I wonder if you can cast an array to make it happier. But if not then a pragma to ignore makes sense to me

@hughsie hughsie force-pushed the wip/hughsie/git-2.35.3 branch from 38aea86 to bb6eed2 Compare April 23, 2022 07:15
@hughsie hughsie merged commit b7b06df into main Apr 23, 2022
@hughsie hughsie deleted the wip/hughsie/git-2.35.3 branch April 23, 2022 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants