curl: don't enable debug builds
PATCH 1/1 curl: don't enable debug builds
From: Ross Burton <[email protected]>
In oe-core 27824261 --enable-debug was added to the configure arguments to turn on debugging symbols. However, enabling debug mode does more than turn on debugging symbols and introduces some codepaths that can be controlled with environment variables. Bluntly, the curl maintainer says that --enable-debug should not be used in production:
https://curl.se/mail/lib-2023-01/0039.html
I did a build and verified that the curl-dbg package doesn't massively shrink, so the debug symbols are still being built.
Remove the debug options and hide them behind a PACKAGECONFIG, with a comment that it should not be used in production.
---
meta/recipes-support/curl/curl_7.82.0.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-support/curl/curl_7.82.0.bb +2 -2
@@ -76,6 +76,8 @@ PACKAGECONFIG:class-nativesdk = "ipv6 openssl proxy random threaded-resolver ver PACKAGECONFIG[ares] = "--enable-ares,--disable-ares,c-ares,,,threaded-resolver" PACKAGECONFIG[brotli] = "--with-brotli,--without-brotli,brotli" PACKAGECONFIG[builtinmanual] = "--enable-manual,--disable-manual" +# Don't use this in production +PACKAGECONFIG[debug] = "--enable-debug,--disable-debug" PACKAGECONFIG[dict] = "--enable-dict,--disable-dict," PACKAGECONFIG[gnutls] = "--with-gnutls,--without-gnutls,gnutls" PACKAGECONFIG[gopher] = "--enable-gopher,--disable-gopher,"
@@ -112,9 +114,7 @@ EXTRA_OECONF = " \ --enable-crypto-auth \ --with-ca-bundle=${sysconfdir}/ssl/certs/ca-certificates.crt \ --without-libpsl \ - --enable-debug \ --enable-optimize \ - --disable-curldebug \ ${@'--without-ssl' if (bb.utils.filter('PACKAGECONFIG', 'gnutls mbedtls nss openssl', d) == '') else ''} \ "
Signature · 1 line
2.39.0
Patchtest results for [OE-Core][kirkstone][PATCH] curl: don't enable debug builds
Thank you for your submission. Patchtest identified one or more issues with the patch. Please see the log below for more information:
---
Testing patch /home/patchtest/share/mboxes/kirkstone-curl-don-t-enable-debug-builds.patch
FAIL: test CVE check ignore: CVE_CHECK_IGNORE is deprecated and should be replaced by CVE_STATUS (test_metadata.TestMetadata.test_cve_check_ignore)
PASS: pretest src uri left files (test_metadata.TestMetadata.pretest_src_uri_left_files)
PASS: test Signed-off-by presence (test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test commit message presence (test_mbox.TestMbox.test_commit_message_presence)
PASS: test lic files chksum modified not mentioned (test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned)
PASS: test max line length (test_metadata.TestMetadata.test_max_line_length)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length)
PASS: test src uri left files (test_metadata.TestMetadata.test_src_uri_left_files)
SKIP: pretest pylint: No python related patches, skipping test (test_python_pylint.PyLint.pretest_pylint)
SKIP: test CVE tag format: No new CVE patches introduced (test_patch.TestPatch.test_cve_tag_format)
SKIP: test Signed-off-by presence: No new CVE patches introduced (test_patch.TestPatch.test_signed_off_by_presence)
SKIP: test Upstream-Status presence: No new CVE patches introduced (test_patch.TestPatch.test_upstream_status_presence_format)
SKIP: test bugzilla entry format: No bug ID found (test_mbox.TestMbox.test_bugzilla_entry_format)
SKIP: test lic files chksum presence: No added recipes, skipping test (test_metadata.TestMetadata.test_lic_files_chksum_presence)
SKIP: test license presence: No added recipes, skipping test (test_metadata.TestMetadata.test_license_presence)
SKIP: test pylint: No python related patches, skipping test (test_python_pylint.PyLint.test_pylint)
SKIP: test series merge on head: Merge test is disabled for now (test_mbox.TestMbox.test_series_merge_on_head)
SKIP: test summary presence: No added recipes, skipping test (test_metadata.TestMetadata.test_summary_presence)
SKIP: test target mailing list: Series merged, no reason to check other mailing lists (test_mbox.TestMbox.test_target_mailing_list)
---
Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this email with an explanation of why the patch should be accepted. If you believe these results are due to an error in patchtest, please submit a bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category under 'Yocto Project Subprojects'). For more information on specific failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank you!
RE: Patchtest results for [OE-Core][kirkstone][PATCH] curl: don't enable debug builds
Quoted 13 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Patchtest
Sent: den 10 februari 2024 17:33
To: Alex Kiernan <[email protected]>
Cc: [email protected]
Subject: Patchtest results for [OE-Core][kirkstone][PATCH] curl: don't enable debug buildsThank you for your submission. Patchtest identified one or more issues with the patch. Please see the log below for more information:
Quoted 6 lines
---
Testing patch/home/patchtest/share/mboxes/kirkstone-curl-don-t-enable-debug-builds.patchFAIL: test CVE check ignore:
CVE_CHECK_IGNOREis deprecated and should be replaced byCVE_STATUS(test_metadata.TestMetadata.test_cve_check_ignore)
Would it be possible to disable this test for patches that are aimed for Kirkstone or Dunfell? They still use CVE_CHECK_IGNORE, and at least Kirkstone will be around for another two years...
//Peter
Re: Patchtest results for [OE-Core][kirkstone][PATCH] curl: don't enable debug builds
Quoted 23 lines · Peter Kjellerstedt
Quoted 18 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Patchtest
Sent: den 10 februari 2024 17:33
To: Alex Kiernan <[email protected]>
Cc: [email protected]
Subject: Patchtest results for [OE-Core][kirkstone][PATCH] curl: don't enable debug buildsThank you for your submission. Patchtest identified one or more issues with the patch. Please see the log below for more information:
---
Testing patch/home/patchtest/share/mboxes/kirkstone-curl-don-t-enable-
debug-builds.patchQuoted 4 lines
FAIL: test CVE check ignore:
CVE_CHECK_IGNOREis deprecated and should be
replaced byCVE_STATUS(test_metadata.TestMetadata.test_cve_check_ignore)
Quoted 8 lines
Would it be possible to disable this test for patches that are aimed for Kirkstone or Dunfell? They still use
CVE_CHECK_IGNORE, and at least Kirkstone
will be around for another two years...//Peter
We could and maybe should do it for Kirkstone, especially considering that CVE_CHECK_IGNORE was added for the Inclusive language improvements in Kirkstone, so the release notes tell everyone to use it. CVE_CHECK_IGNORE is not used in Dunfell, so should be no problem there. I can send a patch for ignoring it in Kirkstone.
Cheers,
Simone
Quoted 10 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#195280):
https://lists.openembedded.org/g/openembedded-core/message/195280
Mute This Topic: https://lists.openembedded.org/mt/104280210/8052774
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-
core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-