oeqa/selftest/reproducible: clean up formatting in a long command line
PATCH 1/3 oeqa/selftest/reproducible: clean up formatting in a long command line
No code changes, just formatting.
--- meta/lib/oeqa/selftest/cases/reproducible.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)
meta/lib/oeqa/selftest/cases/reproducible.py +9 -5
@@ -98,11 +98,15 @@ def compare_file(reference, test, diffutils_sysroot): return result def run_diffoscope(a_dir, b_dir, html_dir, max_report_size=0, max_diff_block_lines=1024, max_diff_block_lines_saved=0, **kwargs): - return runCmd(['diffoscope', '--no-default-limits', '--max-report-size', str(max_report_size), - '--max-diff-block-lines-saved', str(max_diff_block_lines_saved), - '--max-diff-block-lines', str(max_diff_block_lines), - '--exclude-directory-metadata', 'yes', '--html-dir', html_dir, a_dir, b_dir], - **kwargs) + cmd = ['diffoscope', + '--no-default-limits', + '--max-report-size', str(max_report_size), + '--max-diff-block-lines-saved', str(max_diff_block_lines_saved), + '--max-diff-block-lines', str(max_diff_block_lines), + '--exclude-directory-metadata', 'yes', + '--html-dir', html_dir, + a_dir, b_dir] + return runCmd(cmd, **kwargs) class DiffoscopeTests(OESelftestTestCase): diffoscope_test_files = os.path.join(os.path.dirname(os.path.abspath(__file__)), "diffoscope")
Signature · 1 line
2.43.0
PATCH 2/3 oeqa/selftests/reproducible: use the jQuery CDN instead of jquery-native
Instead of building jquery-native and then copying the file into the expected place in the build tree, simply tell diffoscope to load jQuery from their CDN.
In the slim chance that the diffoscope report is viewed offline, the only regression is that sections cannot be collapsed.
The advantage to this approach is that we no longer need to maintain a jquery-native recipe simply for the reproducible selftests.
--- meta/lib/oeqa/selftest/cases/reproducible.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
meta/lib/oeqa/selftest/cases/reproducible.py +2 -5
@@ -105,6 +105,7 @@ def run_diffoscope(a_dir, b_dir, html_dir, max_report_size=0, max_diff_block_lin '--max-diff-block-lines', str(max_diff_block_lines), '--exclude-directory-metadata', 'yes', '--html-dir', html_dir, + '--jquery', 'https://code.jquery.com/jquery-3.7.1.min.js', a_dir, b_dir] return runCmd(cmd, **kwargs)
@@ -319,10 +320,9 @@ class ReproducibleTests(OESelftestTestCase): # Build native utilities self.write_config('') - bitbake("diffoscope-native diffutils-native jquery-native -c addto_recipe_sysroot") + bitbake("diffoscope-native diffutils-native -c addto_recipe_sysroot") diffutils_sysroot = get_bb_var("RECIPE_SYSROOT_NATIVE", "diffutils-native") diffoscope_sysroot = get_bb_var("RECIPE_SYSROOT_NATIVE", "diffoscope-native") - jquery_sysroot = get_bb_var("RECIPE_SYSROOT_NATIVE", "jquery-native") if self.save_results: os.makedirs(self.save_results, exist_ok=True)
@@ -398,9 +398,6 @@ class ReproducibleTests(OESelftestTestCase): package_dir = os.path.join(save_dir, 'packages') package_html_dir = os.path.join(package_dir, 'diff-html') - # Copy jquery to improve the diffoscope output usability - self.copy_file(os.path.join(jquery_sysroot, 'usr/share/javascript/jquery/jquery.min.js'), os.path.join(package_html_dir, 'jquery.js')) - run_diffoscope('reproducibleA', 'reproducibleB-extended', package_html_dir, max_report_size=self.max_report_size, max_diff_block_lines_saved=self.max_diff_block_lines_saved, max_diff_block_lines=self.max_diff_block_lines,
Signature · 1 line
2.43.0
PATCH 3/3 jquery: remove recipe
In reply to Ross BurtonNow that the reproducible selftest doesn't use this recipe, it is no longer used by any recipes that I can find.
There is an alternative jquery recipe in meta-oe that is slightly different and has packaging consistent with with javascript recipes in the same layer.
--- meta/conf/distro/include/maintainers.inc | 1 - meta/recipes-devtools/jquery/jquery_3.7.1.bb | 38 -------------------- 2 files changed, 39 deletions(-) delete mode 100644 meta/recipes-devtools/jquery/jquery_3.7.1.bb
meta/conf/distro/include/maintainers.inc +0 -1
@@ -301,7 +301,6 @@ RECIPE_MAINTAINER:pn-iw = "Unassigned <[email protected]>" RECIPE_MAINTAINER:pn-libjpeg-turbo = "Unassigned <[email protected]>" RECIPE_MAINTAINER:pn-json-c = "Yi Zhao <[email protected]>" RECIPE_MAINTAINER:pn-json-glib = "Yi Zhao <[email protected]>" -RECIPE_MAINTAINER:pn-jquery = "Joshua Watt <[email protected]>" RECIPE_MAINTAINER:pn-kbd = "Unassigned <[email protected]>" RECIPE_MAINTAINER:pn-kea = "Unassigned <[email protected]>" RECIPE_MAINTAINER:pn-kern-tools-native = "Bruce Ashfield <[email protected]>"
meta/recipes-devtools/jquery/jquery_3.7.1.bb deleted +0 -38
@@ -1,38 +0,0 @@ -SUMMARY = "jQuery is a fast, small, and feature-rich JavaScript library" -HOMEPAGE = "https://jquery.com/" -DESCRIPTION = "${SUMMARY}" -LICENSE = "MIT" -SECTION = "devel" -LIC_FILES_CHKSUM = "file://${S}/${BP}.js;beginline=5;endline=7;md5=9c7c6e9ab275fc1e0d99cb7180ecd14c" - -# unpack items to ${S} so the archiver can see them -# -SRC_URI = "\ - https://code.jquery.com/${BP}.js;name=js;subdir=${BP} \ - https://code.jquery.com/${BP}.min.js;name=min;subdir=${BP} \ - https://code.jquery.com/${BP}.min.map;name=map;subdir=${BP} \ - " - -SRC_URI[js.sha256sum] = "78a85aca2f0b110c29e0d2b137e09f0a1fb7a8e554b499f740d6744dc8962cfe" -SRC_URI[min.sha256sum] = "fc9a93dd241f6b045cbff0481cf4e1901becd0e12fb45166a8f17f95823f0b1a" -SRC_URI[map.sha256sum] = "5e7d6d9c28b7f21006535e8875eb47e9667852a14c4624eed301c6cea19ae62b" - -UPSTREAM_CHECK_REGEX = "jquery-(?P<pver>\d+(\.\d+)+)\.js" - -# https://github.com/jquery/jquery/issues/3927 -CVE_STATUS[CVE-2007-2379] = "upstream-wontfix: There are ways jquery can expose security issues but any issues \ -are in the apps exposing them and there is little we can directly do." - -inherit allarch - -do_install() { - install -d ${D}${datadir}/javascript/${BPN}/ - install -m 644 ${S}/${BP}.js ${D}${datadir}/javascript/${BPN}/${BPN}.js - install -m 644 ${S}/${BP}.min.js ${D}${datadir}/javascript/${BPN}/${BPN}.min.js - install -m 644 ${S}/${BP}.min.map ${D}${datadir}/javascript/${BPN}/${BPN}.min.map -} - -PACKAGES = "${PN}" -FILES:${PN} = "${datadir}" - -BBCLASSEXTEND += "native nativesdk"
Signature · 1 line
2.43.0
Re: [OE-core] [PATCH 3/3] jquery: remove recipe
LGTM
Quoted 83 lines · Ross Burton via lists.openembedded.org
Now that the reproducible selftest doesn't use this recipe, it is no longer used by any recipes that I can find.
There is an alternative jquery recipe in meta-oe that is slightly different and has packaging consistent with with javascript recipes in the same layer.
Signed-off-by Ross Burton <[email protected]>--- meta/conf/distro/include/maintainers.inc | 1 - meta/recipes-devtools/jquery/jquery_3.7.1.bb | 38 -------------------- 2 files changed, 39 deletions(-) delete mode 100644 meta/recipes-devtools/jquery/jquery_3.7.1.bbmeta/conf/distro/include/maintainers.inc +0
-1@@ -301,7 +301,6 @@ RECIPE_MAINTAINER:pn-iw = "Unassigned <[email protected]>" RECIPE_MAINTAINER:pn-libjpeg-turbo = "Unassigned <[email protected]>" RECIPE_MAINTAINER:pn-json-c = "Yi Zhao <[email protected]>" RECIPE_MAINTAINER:pn-json-glib = "Yi Zhao <[email protected]>" -RECIPE_MAINTAINER:pn-jquery = "Joshua Watt <[email protected]>" RECIPE_MAINTAINER:pn-kbd = "Unassigned <[email protected]>" RECIPE_MAINTAINER:pn-kea = "Unassigned <[email protected]>" RECIPE_MAINTAINER:pn-kern-tools-native = "Bruce Ashfield <[email protected]>"meta/recipes-devtools/jquery/jquery_3.7.1.bb deleted +0
-39@@ -1,38 +0,0 @@ -SUMMARY = "jQuery is a fast, small, and feature-rich JavaScript library" -HOMEPAGE = "https://jquery.com/" -DESCRIPTION = "${SUMMARY}" -LICENSE = "MIT" -SECTION = "devel" -LIC_FILES_CHKSUM = "file://${S}/${BP}.js;beginline=5;endline=7;md5=9c7c6e9ab275fc1e0d99cb7180ecd14c" - -# unpack items to ${S} so the archiver can see them -# -SRC_URI = "\ - https://code.jquery.com/${BP}.js;name=js;subdir=${BP} \ - https://code.jquery.com/${BP}.min.js;name=min;subdir=${BP} \ - https://code.jquery.com/${BP}.min.map;name=map;subdir=${BP} \ - " - -SRC_URI[js.sha256sum] = "78a85aca2f0b110c29e0d2b137e09f0a1fb7a8e554b499f740d6744dc8962cfe" -SRC_URI[min.sha256sum] = "fc9a93dd241f6b045cbff0481cf4e1901becd0e12fb45166a8f17f95823f0b1a" -SRC_URI[map.sha256sum] = "5e7d6d9c28b7f21006535e8875eb47e9667852a14c4624eed301c6cea19ae62b" - -UPSTREAM_CHECK_REGEX = "jquery-(?P<pver>\d+(\.\d+)+)\.js" - -# https://github.com/jquery/jquery/issues/3927 -CVE_STATUS[CVE-2007-2379] = "upstream-wontfix: There are ways jquery can expose security issues but any issues \ -are in the apps exposing them and there is little we can directly do." - -inherit allarch - -do_install() { - install -d ${D}${datadir}/javascript/${BPN}/ - install -m 644 ${S}/${BP}.js ${D}${datadir}/javascript/${BPN}/${BPN}.js - install -m 644 ${S}/${BP}.min.js ${D}${datadir}/javascript/${BPN}/${BPN}.min.js - install -m 644 ${S}/${BP}.min.map ${D}${datadir}/javascript/${BPN}/${BPN}.min.map -} - -PACKAGES = "${PN}" -FILES:${PN} = "${datadir}" - -BBCLASSEXTEND += "native nativesdk" --2.43.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#230625): https://lists.openembedded.org/g/openembedded-core/message/230625
Mute This Topic: https://lists.openembedded.org/mt/117672279/3616693
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-