site/x86_64-linux: add ac_cv_func_fnmatch_works
PATCH 1/1 site/x86_64-linux: add ac_cv_func_fnmatch_works
Other arch-specific caches have ac_cv_func_fnmatch_works. Add it to x86_64 cache too, otherwise cabextract fails to build ([1])
[1] https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/3893/steps/14/logs/stdio
--- meta/site/x86_64-linux | 3 +++ 1 file changed, 3 insertions(+)
meta/site/x86_64-linux +3 -0
@@ -83,3 +83,6 @@ ac_cv_func__restgpr_14_x=no # cvs cvs_cv_func_printf_ptr=${cvs_cv_func_printf_ptr=yes} + +# cabextract +ac_cv_func_fnmatch_works=${ac_cv_func_fnmatch_works=yes}
Signature · 1 line
2.39.2
Quoted 16 lines · Dmitry Baryshkov via lists.openembedded.org
Other arch-specific caches have
ac_cv_func_fnmatch_works. Add it tox86_64cache too, otherwise cabextract fails to build ([1])[1] https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/3893/steps/14/logs/stdio
Signed-off-by Dmitry Baryshkov <[email protected]>--- meta/site/x86_64-linux | 3 +++ 1 file changed, 3 insertions(+)meta/site/x86_64-linux +0
-0
meta/site/x86_64-linux ac_cv_func__restgpr_14_x=no · line 88
Quoted 6 lines
meta/site/x86_64-linux +3
-0@@ -83,3 +83,6 @@ ac_cv_func__restgpr_14_x=no # cvs cvs_cv_func_printf_ptr=${cvs_cv_func_printf_ptr=yes} + +# cabextract +ac_cv_func_fnmatch_works=${ac_cv_func_fnmatch_works=yes}
I think it will be good to document the underlying reason for this test to fail during the autoconf run. It seems to trying fnmatch replacement, but then fails to do
it properly.
Quoted 12 lines
--
2.39.2-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#200033): https://lists.openembedded.org/g/openembedded-core/message/200033
Mute This Topic: https://lists.openembedded.org/mt/106392140/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 21 lines · Khem Raj
Quoted 17 lines · Dmitry Baryshkov via lists.openembedded.org
Other arch-specific caches have
ac_cv_func_fnmatch_works. Add it tox86_64cache too, otherwise cabextract fails to build ([1])[1] https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/3893/steps/14/logs/stdio
Signed-off-by Dmitry Baryshkov <[email protected]>--- meta/site/x86_64-linux | 3 +++ 1 file changed, 3 insertions(+)meta/site/x86_64-linux +0
-0@@ -83,3 +83,6 @@ ac_cv_func__restgpr_14_x=no
Quoted 10 lines
meta/site/x86_64-linux ac_cv_func__restgpr_14_x=no · line 88
Quoted 5 lines
meta/site/x86_64-linux +3
-0# cvs cvs_cv_func_printf_ptr=${cvs_cv_func_printf_ptr=yes} + +# cabextract +ac_cv_func_fnmatch_works=${ac_cv_func_fnmatch_works=yes}I think it will be good to document the underlying reason for this test to fail during the autoconf run. It seems to trying fnmatch replacement, but then fails to do
it properly.
Well, there are two issues there:
- testing whether the function is correct isn't going to work for cross-compilation (including same-arch cross-compile). For this reason we have ac_cv_func_fnmatch_works in several other site caches.
- cabextract's rpl_fnmatch being broken on glibc-based systems (the file gets enabled, but then if GLIBC is detected the replacement function is skipped).
While it might be worth patching the cabextract's fnmatch.c (I'll look into it), a proper fix is to provide a cached value for the test, which this patch does.
Signature · 2 lines
With best wishes Dmitry