[OE-core] [PATCH v4] gcc-sanitizers: fix -Werror=maybe-uninitialized issue
From: Mingli Yu When DEBUG_BUILD = "1" added in local.conf, there comes below build error when "bitbake gcc-sanitizers": | ./../../../../../../../../work-shared/gcc-8.3.0-r0/gcc-8.3.0/libsanitizer/libbacktrace/../../libbacktrace/elf.c: In function 'elf_is_symlink': | ../../../../../../../../../work-shared/gcc-8.3.0-r0/gcc-8.3.0/libsanitizer/libbacktrace/../../libbacktrace/elf.c:772:21: error: 'st.st_mode' may be used uninitialized in this function [-Werror=maybe-uninitialized] | return S_ISLNK (st.st_mode); After commit[16643b0322 bitbake.conf: Use -Og in DEBUG_OPTIMIZATION] introduced, "-Og" added to compiler when debug build enabled. Per https://gcc.gnu.org/ml/gcc-patches/2019-04/msg00315.html, the gcc upstream thinks the warning is a false positive and suggests to use -O2 rather than -Og or -O1 when compiling that file, so pass -Wno-error to compiler when -Og is used to silence the error. Signed-off-by: Mingli Yu --- meta/recipes-devtools/gcc/gcc-sanitizers.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/recipes-devtools/gcc/gcc-sanitizers.inc b/meta/recipes-devtools/gcc/gcc-sanitizers.inc index e5e8452..8b1d1c9 100644 --- a/meta/recipes-devtools/gcc/gcc-sanitizers.inc +++ b/meta/recipes-devtools/gcc/gcc-sanitizers.inc @@ -45,6 +45,9 @@ INHIBIT_DEFAULT_DEPS = "1" ALLOW_EMPTY_${PN} = "1" DEPENDS = "gcc-runtime virtual/${TARGET_PREFIX}gcc" +# used to fix ../../../../../../../../../work-shared/gcc-8.3.0-r0/gcc-8.3.0/libsanitizer/libbacktrace/../../libbacktrace/elf.c:772:21: error: 'st.st_mode' may be used uninitialized in this function [-Werror=maybe-uninitialized] +DEBUG_OPTIMIZATION_append = " -Wno-error" + BBCLASSEXTEND = "nativesdk" PACKAGES = "${PN} ${PN}-dbg" -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH] ltp: file01: Fix in was not recognized
From: He Zhe Some file has "pie" appending after LSB or MSB, which causes mismatch and the following error. "file01 10 TFAIL: in: was not recognized" ..."ELF 64-bit LSB pie executable"... This patches tunes the regulation expression to include those cases. Upstream-Status: Submitted [http://lists.linux.it/pipermail/ltp/2019-April/011758.html] Signed-off-by: He Zhe --- .../0001-file01.sh-Fix-in-was-not-recognized.patch | 36 ++ meta/recipes-extended/ltp/ltp_20190115.bb | 1 + 2 files changed, 37 insertions(+) create mode 100644 meta/recipes-extended/ltp/ltp/0001-file01.sh-Fix-in-was-not-recognized.patch diff --git a/meta/recipes-extended/ltp/ltp/0001-file01.sh-Fix-in-was-not-recognized.patch b/meta/recipes-extended/ltp/ltp/0001-file01.sh-Fix-in-was-not-recognized.patch new file mode 100644 index 000..c68f5dd --- /dev/null +++ b/meta/recipes-extended/ltp/ltp/0001-file01.sh-Fix-in-was-not-recognized.patch @@ -0,0 +1,36 @@ +From 974e9b862e503c50501079e6586f81918e94a849 Mon Sep 17 00:00:00 2001 +From: He Zhe +Date: Fri, 19 Apr 2019 17:57:48 +0800 +Subject: [PATCH] file01.sh: Fix in was not recognized + +Some file has "pie" appending after LSB or MSB, which causes mismatch and the +following error. + +"file01 10 TFAIL: in: was not recognized" +..."ELF 64-bit LSB pie executable"... + +This patches tunes the regulation expression to include those cases. + +Signed-off-by: He Zhe +--- + testcases/commands/file/file01.sh | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/testcases/commands/file/file01.sh b/testcases/commands/file/file01.sh +index 0a8119e..55c0433 100755 +--- a/testcases/commands/file/file01.sh b/testcases/commands/file/file01.sh +@@ -91,7 +91,9 @@ do_test() +9) file_test in.m4 "M4 macro processor script, ASCII text" \ + "ASCII M4 macro language pre-processor text";; + 10) file_test in "ELF .*-bit $TEST_ARCH executable, .*" \ +- "ELF .*-bit $TEST_ARCH shared object, .*";; ++ "ELF .*-bit $TEST_ARCH shared object, .*" \ ++ "ELF .*-bit $TEST_ARCH pie executable, .*" \ ++ "ELF .*-bit $TEST_ARCH pie shared object, .*";; + 11) file_test in.ar "current ar archive";; + 12) file_test in.tar "tar archive";; + 13) file_test in.tar.gz "gzip compressed data, .*";; +-- +2.7.4 + diff --git a/meta/recipes-extended/ltp/ltp_20190115.bb b/meta/recipes-extended/ltp/ltp_20190115.bb index 1d0c00b..a9e025a 100644 --- a/meta/recipes-extended/ltp/ltp_20190115.bb +++ b/meta/recipes-extended/ltp/ltp_20190115.bb @@ -50,6 +50,7 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \ file://define-sigrtmin-and-sigrtmax-for-musl.patch \ file://setregid01-security-string-formatting.patch \ file://0001-syscalls-setrlimit03.c-read-proc-sys-fs-nr_open-for-.patch \ + file://0001-file01.sh-Fix-in-was-not-recognized.patch \ " S = "${WORKDIR}/git" -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH v2] ltp: file01: Fix in was not recognized
From: He Zhe Some file has "pie" appending after LSB or MSB, which causes mismatch and the following error. "file01 10 TFAIL: in: was not recognized" ..."ELF 64-bit LSB pie executable"... This patches tunes the regulation expression to include those cases. Signed-off-by: He Zhe --- v1 to v2: Move Upstream-Status to right place .../0001-file01.sh-Fix-in-was-not-recognized.patch | 38 ++ meta/recipes-extended/ltp/ltp_20190115.bb | 1 + 2 files changed, 39 insertions(+) create mode 100644 meta/recipes-extended/ltp/ltp/0001-file01.sh-Fix-in-was-not-recognized.patch diff --git a/meta/recipes-extended/ltp/ltp/0001-file01.sh-Fix-in-was-not-recognized.patch b/meta/recipes-extended/ltp/ltp/0001-file01.sh-Fix-in-was-not-recognized.patch new file mode 100644 index 000..5cd9e08 --- /dev/null +++ b/meta/recipes-extended/ltp/ltp/0001-file01.sh-Fix-in-was-not-recognized.patch @@ -0,0 +1,38 @@ +From 974e9b862e503c50501079e6586f81918e94a849 Mon Sep 17 00:00:00 2001 +From: He Zhe +Date: Fri, 19 Apr 2019 17:57:48 +0800 +Subject: [PATCH] file01.sh: Fix in was not recognized + +Some file has "pie" appending after LSB or MSB, which causes mismatch and the +following error. + +"file01 10 TFAIL: in: was not recognized" +..."ELF 64-bit LSB pie executable"... + +This patches tunes the regulation expression to include those cases. + +Upstream-Status: Submitted [http://lists.linux.it/pipermail/ltp/2019-April/011758.html] + +Signed-off-by: He Zhe +--- + testcases/commands/file/file01.sh | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/testcases/commands/file/file01.sh b/testcases/commands/file/file01.sh +index 0a8119e..55c0433 100755 +--- a/testcases/commands/file/file01.sh b/testcases/commands/file/file01.sh +@@ -91,7 +91,9 @@ do_test() +9) file_test in.m4 "M4 macro processor script, ASCII text" \ + "ASCII M4 macro language pre-processor text";; + 10) file_test in "ELF .*-bit $TEST_ARCH executable, .*" \ +- "ELF .*-bit $TEST_ARCH shared object, .*";; ++ "ELF .*-bit $TEST_ARCH shared object, .*" \ ++ "ELF .*-bit $TEST_ARCH pie executable, .*" \ ++ "ELF .*-bit $TEST_ARCH pie shared object, .*";; + 11) file_test in.ar "current ar archive";; + 12) file_test in.tar "tar archive";; + 13) file_test in.tar.gz "gzip compressed data, .*";; +-- +2.7.4 + diff --git a/meta/recipes-extended/ltp/ltp_20190115.bb b/meta/recipes-extended/ltp/ltp_20190115.bb index 1d0c00b..a9e025a 100644 --- a/meta/recipes-extended/ltp/ltp_20190115.bb +++ b/meta/recipes-extended/ltp/ltp_20190115.bb @@ -50,6 +50,7 @@ SRC_URI = "git://github.com/linux-test-project/ltp.git \ file://define-sigrtmin-and-sigrtmax-for-musl.patch \ file://setregid01-security-string-formatting.patch \ file://0001-syscalls-setrlimit03.c-read-proc-sys-fs-nr_open-for-.patch \ + file://0001-file01.sh-Fix-in-was-not-recognized.patch \ " S = "${WORKDIR}/git" -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [QA][PATCH 0/6] Add LTP runtime support
Yes I realize resulttool has pending patch so v2 will most likey be needed. This allows for running ltp and the ltp compliance tests found in the manual test section. These have been structured so they can be scaled into smaller bits if time is an issue or by function. Tested on some Qemu and h/w. Armin Kuster (6): resulttool: add ltp test support logparser: Add decoding ltp logs ltp: add runtime test resulttool: add LTP compliance section logparser: Add LTP compliance section ltp_compliance: add new runtime meta/lib/oeqa/runtime/cases/ltp.py | 124 + meta/lib/oeqa/runtime/cases/ltp_compliance.py | 104 + meta/lib/oeqa/utils/logparser.py | 62 +++ scripts/lib/resulttool/report.py | 83 +- .../resulttool/template/test_report_full_text.txt | 34 ++ 5 files changed, 406 insertions(+), 1 deletion(-) create mode 100644 meta/lib/oeqa/runtime/cases/ltp.py create mode 100644 meta/lib/oeqa/runtime/cases/ltp_compliance.py -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [QA][PATCH 4/6] resulttool: add LTP compliance section
Signed-off-by: Armin Kuster --- scripts/lib/resulttool/report.py | 42 +- .../resulttool/template/test_report_full_text.txt | 17 + 2 files changed, 58 insertions(+), 1 deletion(-) diff --git a/scripts/lib/resulttool/report.py b/scripts/lib/resulttool/report.py index e5962a0..cd30250 100644 --- a/scripts/lib/resulttool/report.py +++ b/scripts/lib/resulttool/report.py @@ -24,6 +24,7 @@ class ResultsTextReport(object): def __init__(self): self.ptests = {} self.ltptests = {} +self.ltpposixtests = {} self.result_types = {'passed': ['PASSED', 'passed'], 'failed': ['FAILED', 'failed', 'ERROR', 'error', 'UNKNOWN'], 'skipped': ['SKIPPED', 'skipped']} @@ -88,6 +89,37 @@ class ResultsTextReport(object): if status in self.result_types[tk]: self.ltptests[suite][tk] += 1 +def handle_ltpposixtest_result(self, k, status, result): +if k == 'ltpposixresult.sections': +# Ensure tests without any test results still show up on the report +for suite in result['ltpposixresult.sections']: +if suite not in self.ltpposixtests: +self.ltpposixtests[suite] = {'passed': 0, 'failed': 0, 'skipped': 0, 'duration' : '-', 'failed_testcases': []} +if 'duration' in result['ltpposixresult.sections'][suite]: +self.ltpposixtests[suite]['duration'] = result['ltpposixresult.sections'][suite]['duration'] +return +try: +_, suite, test = k.split(".", 2) +except ValueError: +return +# Handle 'glib-2.0' +if 'ltpposixresult.sections' in result and suite not in result['ltpposixresult.sections']: +try: +_, suite, suite1, test = k.split(".", 3) +if suite + "." + suite1 in result['ltpposixresult.sections']: +suite = suite + "." + suite1 +except ValueError: +pass +if suite not in self.ltpposixtests: +self.ltpposixtests[suite] = {'passed': 0, 'failed': 0, 'skipped': 0, 'duration' : '-', 'failed_testcases': []} +for tk in self.result_types: +if status in self.result_types[tk]: +self.ltpposixtests[suite][tk] += 1 + +def get_aggregated_test_result(self, logger, testresult): +test_count_report = {'passed': 0, 'failed': 0, 'skipped': 0, 'failed_testcases': []} +def get_aggregated_test_result(self, logger, testresult): +test_count_report = {'passed': 0, 'failed': 0, 'skipped': 0, 'failed_testcases': []} def get_aggregated_test_result(self, logger, testresult): test_count_report = {'passed': 0, 'failed': 0, 'skipped': 0, 'failed_testcases': []} def get_aggregated_test_result(self, logger, testresult): @@ -104,6 +136,8 @@ class ResultsTextReport(object): self.handle_ptest_result(k, test_status, result) if k.startswith("ltpresult."): self.handle_ltptest_result(k, test_status, result) +if k.startswith("ltpposixresult."): +self.handle_ltpposixtest_result(k, test_status, result) return test_count_report def print_test_report(self, template_file_name, test_count_reports): @@ -115,9 +149,10 @@ class ResultsTextReport(object): havefailed = False haveptest = bool(self.ptests) haveltp = bool(self.ltptests) +haveltpposix = bool(self.ltpposixtests) reportvalues = [] cols = ['passed', 'failed', 'skipped'] -maxlen = {'passed' : 0, 'failed' : 0, 'skipped' : 0, 'result_id': 0, 'testseries' : 0, 'ptest' : 0 ,'ltptest': 0} +maxlen = {'passed' : 0, 'failed' : 0, 'skipped' : 0, 'result_id': 0, 'testseries' : 0, 'ptest' : 0 ,'ltptest': 0, 'ltpposixtest': 0} for line in test_count_reports: total_tested = line['passed'] + line['failed'] + line['skipped'] vals = {} @@ -139,12 +174,17 @@ class ResultsTextReport(object): for ltptest in self.ltptests: if len(ltptest) > maxlen['ltptest']: maxlen['ltptest'] = len(ltptest) +for ltpposixtest in self.ltpposixtests: +if len(ltpposixtest) > maxlen['ltpposixtest']: +maxlen['ltpposixtest'] = len(ltpposixtest) output = template.render(reportvalues=reportvalues, havefailed=havefailed, haveptest=haveptest, ptests=self.ptests, haveltp=haveltp, + haveltpposix=haveltpposix, ltptests=self.ltptests, + ltpposixtests=self.ltpposixtests, maxlen=maxlen) print(output)
[OE-core] [QA][PATCH 1/6] resulttool: add ltp test support
Signed-off-by: Armin Kuster --- scripts/lib/resulttool/report.py | 43 +- .../resulttool/template/test_report_full_text.txt | 17 + 2 files changed, 59 insertions(+), 1 deletion(-) diff --git a/scripts/lib/resulttool/report.py b/scripts/lib/resulttool/report.py index 9008620..e5962a0 100644 --- a/scripts/lib/resulttool/report.py +++ b/scripts/lib/resulttool/report.py @@ -23,6 +23,7 @@ import oeqa.utils.gitarchive as gitarchive class ResultsTextReport(object): def __init__(self): self.ptests = {} +self.ltptests = {} self.result_types = {'passed': ['PASSED', 'passed'], 'failed': ['FAILED', 'failed', 'ERROR', 'error', 'UNKNOWN'], 'skipped': ['SKIPPED', 'skipped']} @@ -57,6 +58,38 @@ class ResultsTextReport(object): if status in self.result_types[tk]: self.ptests[suite][tk] += 1 +def handle_ltptest_result(self, k, status, result): +if k == 'ltpresult.sections': +# Ensure tests without any test results still show up on the report +for suite in result['ltpresult.sections']: +if suite not in self.ltptests: +self.ltptests[suite] = {'passed': 0, 'failed': 0, 'skipped': 0, 'duration' : '-', 'failed_testcases': []} +if 'duration' in result['ltpresult.sections'][suite]: +self.ltptests[suite]['duration'] = result['ltpresult.sections'][suite]['duration'] +if 'timeout' in result['ltpresult.sections'][suite]: +self.ltptests[suite]['duration'] += " T" +return +try: +_, suite, test = k.split(".", 2) +except ValueError: +return +# Handle 'glib-2.0' +if 'ltpresult.sections' in result and suite not in result['ltpresult.sections']: +try: +_, suite, suite1, test = k.split(".", 3) +print("split2: %s %s %s" % (suite, suite1, test)) +if suite + "." + suite1 in result['ltpresult.sections']: +suite = suite + "." + suite1 +except ValueError: +pass +if suite not in self.ltptests: +self.ltptests[suite] = {'passed': 0, 'failed': 0, 'skipped': 0, 'duration' : '-', 'failed_testcases': []} +for tk in self.result_types: +if status in self.result_types[tk]: +self.ltptests[suite][tk] += 1 + +def get_aggregated_test_result(self, logger, testresult): +test_count_report = {'passed': 0, 'failed': 0, 'skipped': 0, 'failed_testcases': []} def get_aggregated_test_result(self, logger, testresult): test_count_report = {'passed': 0, 'failed': 0, 'skipped': 0, 'failed_testcases': []} result = testresult.get('result', []) @@ -69,6 +102,8 @@ class ResultsTextReport(object): test_count_report['failed_testcases'].append(k) if k.startswith("ptestresult."): self.handle_ptest_result(k, test_status, result) +if k.startswith("ltpresult."): +self.handle_ltptest_result(k, test_status, result) return test_count_report def print_test_report(self, template_file_name, test_count_reports): @@ -79,9 +114,10 @@ class ResultsTextReport(object): template = env.get_template(template_file_name) havefailed = False haveptest = bool(self.ptests) +haveltp = bool(self.ltptests) reportvalues = [] cols = ['passed', 'failed', 'skipped'] -maxlen = {'passed' : 0, 'failed' : 0, 'skipped' : 0, 'result_id': 0, 'testseries' : 0, 'ptest' : 0 } +maxlen = {'passed' : 0, 'failed' : 0, 'skipped' : 0, 'result_id': 0, 'testseries' : 0, 'ptest' : 0 ,'ltptest': 0} for line in test_count_reports: total_tested = line['passed'] + line['failed'] + line['skipped'] vals = {} @@ -100,10 +136,15 @@ class ResultsTextReport(object): for ptest in self.ptests: if len(ptest) > maxlen['ptest']: maxlen['ptest'] = len(ptest) +for ltptest in self.ltptests: +if len(ltptest) > maxlen['ltptest']: +maxlen['ltptest'] = len(ltptest) output = template.render(reportvalues=reportvalues, havefailed=havefailed, haveptest=haveptest, ptests=self.ptests, + haveltp=haveltp, + ltptests=self.ltptests, maxlen=maxlen) print(output) diff --git a/scripts/lib/resulttool/template/test_report_full_text.txt b/scripts/lib/resulttool/template/test_report_full_text.txt index 590f35c..6ecd5bc 100644 --- a/scripts/lib/resulttool/template/test_report_full_text.txt +++ b/scripts/lib
[OE-core] [QA][PATCH 3/6] ltp: add runtime test
This adds the framework for running ltp tests. Here are some times: math: 61 syscalls: 3957 dio: 18472 io: 29 mm: 551 ipc: 48 sched: 165 nptl: 46 pty: 37 containers: 52 controllers: 9625 filecaps: 27 cap_bounds: 27 fcntl-locktests: 29 connectors: 27 timers: 37 commands: 165 net.ipv6_lib: 30 input: 29 fs_perms_simple: 31 fs: 3476 fsx: 30 fs_bind: 28 fs_ext4: 28 cve: 675 Signed-off-by: Armin Kuster --- meta/lib/oeqa/runtime/cases/ltp.py | 124 + 1 file changed, 124 insertions(+) create mode 100644 meta/lib/oeqa/runtime/cases/ltp.py diff --git a/meta/lib/oeqa/runtime/cases/ltp.py b/meta/lib/oeqa/runtime/cases/ltp.py new file mode 100644 index 000..628494e --- /dev/null +++ b/meta/lib/oeqa/runtime/cases/ltp.py @@ -0,0 +1,124 @@ +# LTP runtime +# +# Copyright (c) 2019 MontaVista Software, LLC +# +# This program is free software; you can redistribute it and/or modify it +# under the terms and conditions of the GNU General Public License, +# version 2, as published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +# more details. +# +import time +import datetime +import pprint + +from oeqa.runtime.case import OERuntimeTestCase +from oeqa.core.decorator.depends import OETestDepends +from oeqa.runtime.decorator.package import OEHasPackage +from oeqa.utils.logparser import LtpParser + +class LtpTestBase(OERuntimeTestCase): + +@classmethod +def setUpClass(cls): +cls.ltp_startup() + +@classmethod +def tearDownClass(cls): +cls.ltp_finishup() + +@classmethod +def ltp_startup(cls): +cls.sections = {} +cls.failmsg = "" +test_log_dir = os.path.join(cls.td.get('WORKDIR', ''), 'testimage') +timestamp = datetime.datetime.now().strftime('%Y%m%d%H%M%S') + +cls.ltptest_log_dir_link = os.path.join(test_log_dir, 'ltp_log') +cls.ltptest_log_dir = '%s.%s' % (cls.ltptest_log_dir_link, timestamp) +os.makedirs(cls.ltptest_log_dir) + +cls.tc.target.run("mkdir -p /opt/ltp/results") + +if not hasattr(cls.tc, "extraresults"): +cls.tc.extraresults = {} +cls.extras = cls.tc.extraresults +cls.extras['ltpresult.rawlogs'] = {'log': ""} + + +@classmethod +def ltp_finishup(cls): +cls.extras['ltpresult.sections'] = cls.sections + +# update symlink to ltp_log +if os.path.exists(cls.ltptest_log_dir_link): +os.remove(cls.ltptest_log_dir_link) +os.symlink(os.path.basename(cls.ltptest_log_dir), cls.ltptest_log_dir_link) + +if cls.failmsg: +cls.fail(cls.failmsg) + +class LtpTest(LtpTestBase): + +ltp_groups = ["math", "syscalls", "dio", "io", "mm", "ipc", "sched", "nptl", "pty", "containers", "controllers", "filecaps", "cap_bounds", "fcntl-locktests", "connectors","timers", "commands", "net.ipv6_lib", "input","fs_perms_simple"] + +ltp_fs = ["fs", "fsx", "fs_bind", "fs_ext4"] +# skip kernel cpuhotplug +ltp_kernel = ["power_management_tests", "hyperthreading ", "kernel_misc", "hugetlb"] +ltp_groups += ltp_fs + +def runltp(self, ltp_group): +cmd = '/opt/ltp/runltp -f %s -p -q -r /opt/ltp -l /opt/ltp/results/%s -I 1 -d /opt/ltp' % (ltp_group, ltp_group) +starttime = time.time() +(status, output) = self.target.run(cmd) +endtime = time.time() + +with open(os.path.join(self.ltptest_log_dir, "%s-raw.log" % ltp_group), 'w') as f: +f.write(output) + +self.extras['ltpresult.rawlogs']['log'] = self.extras['ltpresult.rawlogs']['log'] + output + +# copy nice log from DUT +dst = os.path.join(self.ltptest_log_dir, "%s" % ltp_group ) +remote_src = "/opt/ltp/results/%s" % ltp_group +(status, output) = self.target.copyFrom(remote_src, dst) +msg = 'File could not be copied. Output: %s' % output +self.assertEqual(status, 0, msg=msg) + +parser = LtpParser() +results, sections = parser.parse(dst) + +runtime = int(endtime-starttime) +sections['duration'] = runtime +self.sections[ltp_group] = sections + +failed_tests = {} +for test in results: +result = results[test] +testname = ("ltpresult." + ltp_group + "." + test) +self.extras[testname] = {'status': result} +if result == 'FAILED': +failed_tests[ltp_group] = test + +if failed_tests: +self.failmsg = self.failmsg + "Failed ptests:\n%s" % pprint.pformat(failed_tests) + +# LTP runtime tests +@OETestDepends(['ssh.SSHTest.test_ssh']) +@OEHasPackage(["ltp"]) +def test
[OE-core] [QA][PATCH 2/6] logparser: Add decoding ltp logs
Signed-off-by: Armin Kuster --- meta/lib/oeqa/utils/logparser.py | 25 + 1 file changed, 25 insertions(+) diff --git a/meta/lib/oeqa/utils/logparser.py b/meta/lib/oeqa/utils/logparser.py index 32fde14..76efac4 100644 --- a/meta/lib/oeqa/utils/logparser.py +++ b/meta/lib/oeqa/utils/logparser.py @@ -86,3 +86,28 @@ class PtestParser(object): status = self.results[section][test_name] f.write(status + ": " + test_name + "\n") + +# ltp log parsing +class LtpParser(object): +def __init__(self): +self.results = {} +self.section = {'duration': "", 'log': ""} + +def parse(self, logfile): +test_regex = {} +test_regex['PASSED'] = re.compile(r"PASS") +test_regex['FAILED'] = re.compile(r"FAIL") +test_regex['SKIPPED'] = re.compile(r"SKIP") + +with open(logfile, errors='replace') as f: +for line in f: +for t in test_regex: +result = test_regex[t].search(line) +if result: +self.results[line.split()[0].strip()] = t + +for test in self.results: +result = self.results[test] +self.section['log'] = self.section['log'] + ("%s: %s\n" % (result.strip()[:-2], test.strip())) + +return self.results, self.section -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [QA][PATCH 5/6] logparser: Add LTP compliance section
Signed-off-by: Armin Kuster --- meta/lib/oeqa/utils/logparser.py | 37 + 1 file changed, 37 insertions(+) diff --git a/meta/lib/oeqa/utils/logparser.py b/meta/lib/oeqa/utils/logparser.py index 76efac4..584ad4f 100644 --- a/meta/lib/oeqa/utils/logparser.py +++ b/meta/lib/oeqa/utils/logparser.py @@ -111,3 +111,40 @@ class LtpParser(object): self.section['log'] = self.section['log'] + ("%s: %s\n" % (result.strip()[:-2], test.strip())) return self.results, self.section + + +# ltp Compliance log parsing +class LtpComplianceParser(object): +def __init__(self): +self.results = {} +self.section = {'duration': "", 'log': ""} + +def parse(self, logfile): +test_regex = {} +test_regex['PASSED'] = re.compile(r"^PASS") +test_regex['FAILED'] = re.compile(r"^FAIL") +test_regex['SKIPPED'] = re.compile(r"(?:UNTESTED)|(?:UNSUPPORTED)") + +section_regex = {} +section_regex['test'] = re.compile(r"^Testing") + +with open(logfile, errors='replace') as f: +for line in f: +result = section_regex['test'].search(line) +if result: +self.name = "" +self.name = line.split()[1].strip() +self.results[self.name] = "PASSED" +failed = 0 + +failed_result = test_regex['FAILED'].search(line) +if failed_result: +failed = line.split()[1].strip() +if int(failed) > 0: +self.results[self.name] = "FAILED" + +for test in self.results: +result = self.results[test] +self.section['log'] = self.section['log'] + ("%s: %s\n" % (result.strip()[:-2], test.strip())) + +return self.results, self.section -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [QA][PATCH 6/6] ltp_compliance: add new runtime
test runtimes in sec. AIO: 14 MEM: 94 MSG: 89 SEM: 30 SIG: 194 THR: 399 TMR: 867 TPS: 23 Signed-off-by: Armin Kuster --- meta/lib/oeqa/runtime/cases/ltp_compliance.py | 104 ++ 1 file changed, 104 insertions(+) create mode 100644 meta/lib/oeqa/runtime/cases/ltp_compliance.py diff --git a/meta/lib/oeqa/runtime/cases/ltp_compliance.py b/meta/lib/oeqa/runtime/cases/ltp_compliance.py new file mode 100644 index 000..be9a9a3 --- /dev/null +++ b/meta/lib/oeqa/runtime/cases/ltp_compliance.py @@ -0,0 +1,104 @@ +# LTP compliance runtime +# +# Copyright (c) 2019 MontaVista Software, LLC +# +# This program is free software; you can redistribute it and/or modify it +# under the terms and conditions of the GNU General Public License, +# version 2, as published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for +# more details. +# + +import time +import datetime +import pprint + +from oeqa.runtime.case import OERuntimeTestCase +from oeqa.core.decorator.depends import OETestDepends +from oeqa.runtime.decorator.package import OEHasPackage +from oeqa.utils.logparser import LtpComplianceParser + +class LtpPosixBase(OERuntimeTestCase): + +@classmethod +def setUpClass(cls): +cls.ltp_startup() + +@classmethod +def tearDownClass(cls): +cls.ltp_finishup() + +@classmethod +def ltp_startup(cls): +cls.sections = {} +cls.failmsg = "" +test_log_dir = os.path.join(cls.td.get('WORKDIR', ''), 'testimage') +timestamp = datetime.datetime.now().strftime('%Y%m%d%H%M%S') + +cls.ltptest_log_dir_link = os.path.join(test_log_dir, 'ltpcomp_log') +cls.ltptest_log_dir = '%s.%s' % (cls.ltptest_log_dir_link, timestamp) +os.makedirs(cls.ltptest_log_dir) + +cls.tc.target.run("mkdir -p /opt/ltp/results") + +if not hasattr(cls.tc, "extraresults"): +cls.tc.extraresults = {} +cls.extras = cls.tc.extraresults +cls.extras['ltpposixresult.rawlogs'] = {'log': ""} + + +@classmethod +def ltp_finishup(cls): +cls.extras['ltpposixresult.sections'] = cls.sections + +# update symlink to ltp_log +if os.path.exists(cls.ltptest_log_dir_link): +os.remove(cls.ltptest_log_dir_link) + +os.symlink(os.path.basename(cls.ltptest_log_dir), cls.ltptest_log_dir_link) + +if cls.failmsg: +cls.fail(cls.failmsg) + +class LtpPosixTest(LtpPosixBase): +posix_groups = ["AIO", "MEM", "MSG", "SEM", "SIG", "THR", "TMR", "TPS"] + +def runltp(self, posix_group): +cmd = "/opt/ltp/bin/run-posix-option-group-test.sh %s 2>@1 | tee /opt/ltp/results/%s" % (posix_group, posix_group) +starttime = time.time() +(status, output) = self.target.run(cmd) +endtime = time.time() + +with open(os.path.join(self.ltptest_log_dir, "%s" % posix_group), 'w') as f: +f.write(output) + +self.extras['ltpposixresult.rawlogs']['log'] = self.extras['ltpposixresult.rawlogs']['log'] + output + +parser = LtpComplianceParser() +results, sections = parser.parse(os.path.join(self.ltptest_log_dir, "%s" % posix_group)) + +runtime = int(endtime-starttime) +sections['duration'] = runtime +self.sections[posix_group] = sections + +failed_tests = {} +for test in results: +result = results[test] +testname = ("ltpposixresult." + posix_group + "." + test) +self.extras[testname] = {'status': result} +if result == 'FAILED': +failed_tests[posix_group] = test + +if failed_tests: +self.failmsg = self.failmsg + "Failed ptests:\n%s" % pprint.pformat(failed_tests) + +# LTP Posix compliance runtime tests + +@OETestDepends(['ssh.SSHTest.test_ssh']) +@OEHasPackage(["ltp"]) +def test_posix_groups(self): +for posix_group in self.posix_groups: +self.runltp(posix_group) -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [QA][PATCH] manual compliance: remove bits done at runtime
Signed-off-by: Armin Kuster --- meta/lib/oeqa/manual/compliance-test.json | 90 +-- 1 file changed, 1 insertion(+), 89 deletions(-) diff --git a/meta/lib/oeqa/manual/compliance-test.json b/meta/lib/oeqa/manual/compliance-test.json index 982f0b4..8c13b68 100644 --- a/meta/lib/oeqa/manual/compliance-test.json +++ b/meta/lib/oeqa/manual/compliance-test.json @@ -1,94 +1,6 @@ [ { "test": { -"@alias": "compliance-test.compliance-test.LTP_subset_test_suite", -"author": [ -{ -"email": "corneliux.stoice...@intel.com", -"name": "corneliux.stoice...@intel.com" -} -], -"execution": { -"1": { -"action": "For real hardware, run following component, \nsyscalls \nfs \nfsx \ndio \nio \nmm \nipc \nsched \nmath \nnptl \npty \nadmin_tools \ntimers \ncommands \n\nFor QEMU, run following component \nsyscalls \nmm \nipc \nsched \nmath \nnptl \npty \nadmin_tools \ncommands \n\nRun Instructions: \nLTP download: http://sourceforge.net/projects/ltp/files/LTP%20Source/ltp-20120401/ltp-full-20120401.bz2/download \n\n(link is outdated, always use the last version released or the one found in the image) \n\n\n\nbuild steps: refer to http://ltp.sourceforge.net \n\nRun steps:", -"expected_results": "" -}, -"2": { -"action": "Build LTP with toolchain or in sdk image. Or use a sato-sdk image which has LTP already included in /opt/ltp", -"expected_results": "" -}, -"3": { -"action": "For QEMU, create the qemu target with \"-m 512\", which makes some memory stress cases pass. For some issues, we could only set 128M for qemuarm and 256M for qemumips.", -"expected_results": "" -}, -"4": { -"action": "Copy LTP folder into target, for example, /opt/ltp if you have built it yourself. Modify the default scenario file \"scenario_groups/default\", remove test suites not to be tested", -"expected_results": "" -}, -"5": { -"action": "Comment runtests/sched: hackbench, which is not suitable to run in emulators. Reminder (comment it also for Sugarbay Devices).", -"expected_results": "" -}, -"6": { -"action": "Comment oom01, oom02, oom03, oom04 in runtest/mm, which consume lots of memory", -"expected_results": "" -}, -"7": { -"action": "From /opt/ltp run: ./runltp -p -l result-M2-20101218.log -C result-M2-20101218.fail -d /opt/ltp/tmp &> result-M2-20101218.fulllog \n\n", -"expected_results": "Check the result on wiki, https://wiki.yoctoproject.org/wiki/LTP_result, there should be no regression failure met." -} -}, -"summary": "LTP_subset_test_suite" -} -}, -{ -"test": { -"@alias": "compliance-test.compliance-test.POSIX_subset_test_suite", -"author": [ -{ -"email": "corneliux.stoice...@intel.com", -"name": "corneliux.stoice...@intel.com" -} -], -"execution": { -"1": { -"action": "In a sato-sdk image go to /opt/ltp or get latest LTP sourcecode, download location is http://sourceforge.net/projects/ltp/files/LTP%20Source/ and install it.", -"expected_results": "" -}, -"2": { -"action": "Go into the folder of LTP, and posix_testsuite is under testcases/open_posix_testsuite/", -"expected_results": "" -}, -"3": { -"action": "Run connmand: make generate-makefiles", -"expected_results": "" -}, -"4": { -"action": "Run connmand: make conformance-all", -"expected_results": "" -}, -"5": { -"action": "Run connmand: make conformance-test (this step may show errors, ignore them)", -"expected_results": "" -}, -"6": { -"action": "Run connmand: make tools-all", -"expected_results": "" -}, -"7": { -"action": "Run connmand: sh posix.sh > posix.log, posix.sh as below: \n \n#!/bin/sh \n./bin/run-posix-option-group-test.sh AIO \n./bin/run-posix-option-group-test.sh MEM \n./bin/run-posix-option-group-test.sh MSG \n./bin/run-posix-option-group-test.sh SEM \n./bin
Re: [OE-core] [PATCH 2/3] pulseaudio: disable PIE flags when hardened flags are enabled
On Fri, 2017-06-09 at 10:10 -0700, Khem Raj wrote: > On Fri, Jun 9, 2017 at 9:38 AM, Tanu Kaskinen wrote: > > On Fri, 2017-06-09 at 13:07 +, Khem Raj wrote: > > > On Fri, Jun 9, 2017 at 5:56 AM Burton, Ross wrote: > > > > > > > On 9 June 2017 at 04:41, Khem Raj wrote: > > > > > > > > > +SECURITY_CFLAGS = "${SECURITY_NO_PIE_CFLAGS}" > > > > > > > > > > > > > These tend to go into security-flags.inc, not the recipe. > > > > > > > > > > I know that's been the case but I think having a global file is error > > > prone > > > its better to have it in recipe context since it can get attention at > > > upgrade time to test if this has been fixed in new release etc > > > > Do you mean that there's some bug in pulseaudio, and this is a > > workaround for it? Is the bug that there are textrels? Ross saw > > textrels in pulseaudio before (see the discussion starting at [1]), but > > I was unable to reproduce that. If you give instructions for > > reproducing the problem, I'll see if I can fix pulseaudio (until then > > I'm fine with having a workaround). > > > > yes there is a bug lurking when compiling with hardening flags are turned on > so you can do something like > > in local.conf > > require conf/distro/include/security_flags.inc > > then > > MACHINE=qemux86 bitbake pulseaudio > > it also happens on arm so qemuarm will reproduce it too. > > some assembly code is probably missing using GOT relative accesses Resurrecting this ancient thread... I finally tried to reproduce this problem with the given instructions. No success. Have you still been running into this issue? -- Tanu https://www.patreon.com/tanuk https://liberapay.com/tanuk -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [QA][PATCH 4/7] manual qa/bsp-qemu: remove KVM enabled which is already done in selftest runqemu
Signed-off-by: Armin Kuster --- meta/lib/oeqa/manual/bsp-qemu.json | 30 -- 1 file changed, 30 deletions(-) diff --git a/meta/lib/oeqa/manual/bsp-qemu.json b/meta/lib/oeqa/manual/bsp-qemu.json index f680f64..b49abf4 100644 --- a/meta/lib/oeqa/manual/bsp-qemu.json +++ b/meta/lib/oeqa/manual/bsp-qemu.json @@ -1,36 +1,6 @@ [ { "test": { - "@alias": "bsps-qemu.bsps-tools.qemu_can_be_started_with_KVM_enabled", - "author": [ -{ - "email": "alexandru.c.george...@intel.com", - "name": "alexandru.c.george...@intel.com" -} - ], - "execution": { -"1": { - "action": "Build a kernel with KVM enabled \n\nIn Local.conf add \n\nQEMU_USE_KVM = \"${@ '1' if os.access('/dev/kvm', os.R_OK|os.W_OK) else '0' }\" \n\n ", - "expected_results": "" -}, -"2": { - "action": "Start qemu with option \"kvm\" with runqemu \na. If you start qemu with kvm failed, maybe it is because host not install kvm and vhost_net module. Follow below link to install them. \nb. vhost_test refer: https://wiki.yoctoproject.org/wiki/Running_an_x86_Yocto_Linux_image_under_QEMU_KVM \nc. kvm refer: https://wiki.yoctoproject.org/wiki/How_to_enable_KVM_for_Poky_qemu";, - "expected_results": "" -}, -"3": { - "action": "Check if qemu starts up and if kvm_intel module is used", - "expected_results": "" -}, -"4": { - "action": "If kvm_intel module is not used when starting qemu, it will show 0 in \"Used by\" column when you run \"lsmod | grep kvm_intel\" ", - "expected_results": "KVM enabled with qemu \nExecute \"lsmod | grep kvm_intel\" from your host twice, before and after you \nstart the qemu with kvm option. Before start, the number should be 0, \nafter start, the number should bigger than 0." -} - }, - "summary": "qemu_can_be_started_with_KVM_enabled" -} - }, - { -"test": { "@alias": "bsps-qemu.bsps-tools.Post-installation_logging", "author": [ { -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [QA][PATCH 0/7] Manual test cleanup
This moves some maunal tests to runtime. Delete others being run in runtime. Armin Kuster (7): manual tests migrate to selftest manual qa/oe-core: remove packageconfig flag tests manual qa/bsp-qemu: remove rpm tests already done in runtime manual qa/bsp-qemu: remove KVM enabled which is already done in selftest runqemu manual/bsp-qemu: drop xserver test manual/bsp-qemu: remove connmand test done in runtime test manual sdk: remove this manual sdk test meta/lib/oeqa/manual/bsp-qemu.json| 142 -- meta/lib/oeqa/manual/oe-core.json | 36 +--- meta/lib/oeqa/manual/sdk.json | 32 --- meta/lib/oeqa/selftest/cases/oescripts.py | 89 +++ 4 files changed, 90 insertions(+), 209 deletions(-) delete mode 100644 meta/lib/oeqa/manual/sdk.json -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [QA][PATCH 1/7] manual tests migrate to selftest
Signed-off-by: Armin Kuster --- meta/lib/oeqa/selftest/cases/oescripts.py | 89 +++ 1 file changed, 89 insertions(+) diff --git a/meta/lib/oeqa/selftest/cases/oescripts.py b/meta/lib/oeqa/selftest/cases/oescripts.py index bcdc2d5..36074c9 100644 --- a/meta/lib/oeqa/selftest/cases/oescripts.py +++ b/meta/lib/oeqa/selftest/cases/oescripts.py @@ -1,8 +1,11 @@ +import os, sys from oeqa.selftest.case import OESelftestTestCase +from oeqa.core.decorator.depends import OETestDepends from oeqa.selftest.cases.buildhistory import BuildhistoryBase from oeqa.utils.commands import Command, runCmd, bitbake, get_bb_var, get_test_layer from oeqa.core.decorator.oeid import OETestID + class BuildhistoryDiffTests(BuildhistoryBase): @OETestID(295) @@ -26,3 +29,89 @@ class BuildhistoryDiffTests(BuildhistoryBase): self.fail('Unexpected line:\n%s\nExpected line endings:\n %s' % (line, '\n '.join(expected_endlines))) if expected_endlines: self.fail('Missing expected line endings:\n %s' % '\n '.join(expected_endlines)) + + +class OEScriptTests(OESelftestTestCase): +def check_endlines(self, results, expected_endlines): +for line in results.output.splitlines(): +for el in expected_endlines: +if line == el: +expected_endlines.remove(el) +break + +if expected_endlines: +self.fail('Missing expected line endings:\n %s' % '\n '.join(expected_endlines)) + + +class OEPybootchartguyTests(OEScriptTests): +def test_pybootchartguy_help(self): +runCmd('../scripts/pybootchartgui/pybootchartgui.py --help') + +def test_pybootchartguy_to_generate_build_png_output(self): +tmpdir = get_bb_var('TMPDIR') +runCmd('../scripts/pybootchartgui/pybootchartgui.py %s/buildstats -o %s/charts -f png' % (tmpdir, tmpdir)) + +def test_pybootchartguy_to_generate_build_svg_output(self): +tmpdir = get_bb_var('TMPDIR') +runCmd('../scripts/pybootchartgui/pybootchartgui.py %s/buildstats -o %s/charts -f svg' % (tmpdir, tmpdir)) + +def test_pybootchartguy_to_generate_build_pdf_output(self): +tmpdir = get_bb_var('TMPDIR') +runCmd('../scripts/pybootchartgui/pybootchartgui.py %s/buildstats -o %s/charts -f pdf' % (tmpdir, tmpdir)) + + +class OEListPackageconfigTests(OEScriptTests): +#oe-core.scripts.List_all_the_PACKAGECONFIG's_flags +def test_packageconfig_flags_help(self): +runCmd('../scripts/contrib/list-packageconfig-flags.py -h') + +def test_packageconfig_flags_default(self): +results = runCmd('../scripts/contrib/list-packageconfig-flags.py') +expected_endlines = [] +expected_endlines.append("RECIPE NAME PACKAGECONFIG FLAGS") +expected_endlines.append("xserver-xorg-1.20.3 dri dri2 dri3 gcrypt glamor glx nettle openssl systemd systemd-logind udev unwind xinerama xmlto xshmfence xwayland") +expected_endlines.append("znc-1.7.1 ipv6") + +self.check_endlines(results, expected_endlines) + + +def test_packageconfig_flags_option_flags(self): +results = runCmd('../scripts/contrib/list-packageconfig-flags.py -f') +expected_endlines = [] +expected_endlines.append("PACKAGECONFIG FLAG RECIPE NAMES") +expected_endlines.append("xshmfence xserver-xorg-1.20.3") + +self.check_endlines(results, expected_endlines) + +def test_packageconfig_flags_option_all(self): +results = runCmd('../scripts/contrib/list-packageconfig-flags.py -a') +expected_endlines = [] +expected_endlines.append("xserver-xorg-1.20.3") +expected_endlines.append("PACKAGECONFIG dri2 udev openssl") +expected_endlines.append("PACKAGECONFIG[udev] --enable-config-udev,--disable-config-udev,udev") +expected_endlines.append("PACKAGECONFIG[dri] --enable-dri,--disable-dri,xorgproto virtual/mesa") +expected_endlines.append("PACKAGECONFIG[dri2] --enable-dri2,--disable-dri2,xorgproto") +expected_endlines.append("PACKAGECONFIG[dri3] --enable-dri3,--disable-dri3,xorgproto") +expected_endlines.append("PACKAGECONFIG[glx] --enable-glx,--disable-glx,xorgproto virtual/libgl virtual/libx11") +expected_endlines.append("PACKAGECONFIG[glamor] --enable-glamor,--disable-glamor,libepoxy virtual/libgbm,libegl") +expected_endlines.append("PACKAGECONFIG[unwind] --enable-libunwind,--disable-libunwind,libunwind") +expected_endlines.append("PACKAGECONFIG[xshmfence] --enable-xshmfence,--disable-xshmfence,libxshmfence") +expected_endlines.append("PACKAGECONFIG[xmlto] --with-xmlto, --without-xmlto, xmlto-native docbook-xml-dtd4-native docbook-xsl-styl
[OE-core] [QA][PATCH 5/7] manual/bsp-qemu: drop xserver test
xserver testing is done at runtime and selftest via sato image Signed-off-by: Armin Kuster --- meta/lib/oeqa/manual/bsp-qemu.json | 22 -- 1 file changed, 22 deletions(-) diff --git a/meta/lib/oeqa/manual/bsp-qemu.json b/meta/lib/oeqa/manual/bsp-qemu.json index b49abf4..7a3d994 100644 --- a/meta/lib/oeqa/manual/bsp-qemu.json +++ b/meta/lib/oeqa/manual/bsp-qemu.json @@ -91,28 +91,6 @@ }, { "test": { - "@alias": "bsps-qemu.bsps-runtime.X_server_can_start_up_with_runlevel_5_boot", - "author": [ -{ - "email": "alexandru.c.george...@intel.com", - "name": "alexandru.c.george...@intel.com" -} - ], - "execution": { -"1": { - "action": "boot up system with default runlevel \n\n", - "expected_results": "X server can start up well and desktop display has no problem . \n\n" -}, -"2": { - "action": "type runlevel at command prompt", - "expected_results": "Output:N 5" -} - }, - "summary": "X_server_can_start_up_with_runlevel_5_boot" -} - }, - { -"test": { "@alias": "bsps-qemu.bsps-runtime.check_bash_in_image", "author": [ { -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [QA][PATCH 3/7] manual qa/bsp-qemu: remove rpm tests already done in runtime
Signed-off-by: Armin Kuster --- meta/lib/oeqa/manual/bsp-qemu.json | 60 -- 1 file changed, 60 deletions(-) diff --git a/meta/lib/oeqa/manual/bsp-qemu.json b/meta/lib/oeqa/manual/bsp-qemu.json index cf51b6a..f680f64 100644 --- a/meta/lib/oeqa/manual/bsp-qemu.json +++ b/meta/lib/oeqa/manual/bsp-qemu.json @@ -91,66 +91,6 @@ }, { "test": { - "@alias": "bsps-qemu.bsps-tools.rpm_-__install_dependency_package", - "author": [ -{ - "email": "alexandru.c.george...@intel.com", - "name": "alexandru.c.george...@intel.com" -} - ], - "execution": { -"1": { - "action": "Get a not previously installed RPM package or build one on local machine, which should have run-time dependency.For example, \"mc\" (Midnight Commander, which is a visual file manager) should depend on \"ncurses-terminfo\". \n\n$ bitbake mc \n\n\n", - "expected_results": "" -}, -"2": { - "action": "Copy the package into a system folder (for example /home/root/rpm_packages). \n\n\n", - "expected_results": "" -}, -"3": { - "action": "Run \"rpm -ivh package_name\" and check the output, for example \"rpm -ivh mc.rpm*\" should report the dependency on \"ncurses-terminfo\".\n\n\n\n", - "expected_results": "3 . rpm command should report message when some RPM installation depends on other packages." -} - }, - "summary": "rpm_-__install_dependency_package" -} - }, - { -"test": { - "@alias": "bsps-qemu.bsps-tools.Check_rpm_install/removal_log_file_size(auto)", - "author": [ -{ - "email": "alexandru.c.george...@intel.com", - "name": "alexandru.c.george...@intel.com" -} - ], - "execution": { -"1": { - "action": "Get some rpm or other kind of installation packages. \n\n", - "expected_results": "Steps 1- 4 (more than 2.3) \nEach file will occupy around 10MB, and there should be some method to keep rpm log in a small size. (the size of the db of RPMs must not be taking so much space) \nStep 5 (less than or equal to 2.3)\nThe size on /var/lib/rpm/ must keep around 30MB" -}, -"2": { - "action": "After system is up, check the size of log file named as \"log.xx\" on /var/lib/rpm/log \n\n", - "expected_results": "" -}, -"3": { - "action": "After several install/removal of packages, with either of the install/removal commands (rpm/smart/zypper/dnf install/removal), check again the size of log file. \n\n", - "expected_results": "" -}, -"4": { - "action": "For packages installation, there will be some database files under /var/lib/rpm/, named as \"__db.xxx\" and there will be some log files \nunder /var/lib/rpm/log, named as \"\"log.xx\"\". \n\nNote: You will only see the log. on /var/lib/rpm/log mentioned above if the poky version is minor than 2.3.For poky 2.3 or major versions this has been modified and the package RPM4 does not show the logs.. if major, follow the next step. \n\n", - "expected_results": "" -}, -"5": { - "action": "Repeat steps (1 and 3) and check the size of /var/lib/rpm/ \n\nMore info: https://bugzilla.yoctoproject.org/show_bug.cgi?id=9259";, - "expected_results": "" -} - }, - "summary": "Check_rpm_install/removal_log_file_size" -} - }, - { -"test": { "@alias": "bsps-qemu.bsps-runtime.only_one_connmand_in_background(auto)", "author": [ { -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [QA][PATCH 2/7] manual qa/oe-core: remove packageconfig flag tests
Signed-off-by: Armin Kuster --- meta/lib/oeqa/manual/oe-core.json | 36 +--- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/meta/lib/oeqa/manual/oe-core.json b/meta/lib/oeqa/manual/oe-core.json index d893d84..b3644af 100644 --- a/meta/lib/oeqa/manual/oe-core.json +++ b/meta/lib/oeqa/manual/oe-core.json @@ -69,40 +69,6 @@ }, { "test": { - "@alias": "oe-core.scripts.List_all_the_PACKAGECONFIG's_flags", - "author": [ -{ - "email": "yi.z...@windriver.com", - "name": "yi.z...@windriver.com" -} - ], - "execution": { -"1": { - "action": " Download the poky source and setup the environment. ", - "expected_results": "" -}, -"2": { - "action": "Run \"../scripts/contrib/list-packageconfig-flags.py\" ", - "expected_results": "In step 2, will list available pkgs which have PACKAGECONFIG flags: \nPACKAGE NAME (or RECIPE NAME) PACKAGECONFIG FLAGS \n== \nalsa-tools-1.0.26.1 defaultval gtk+ \navahi-ui-0.6.31defaultval python \nbluez4-4.101alsa defaultval pie \n" -}, -"3": { - "action": "Run \"../scripts/contrib/list-packageconfig-flags.py -f\" ", - "expected_results": "In step 3, will list available PACKAGECONFIG flags and all affected pkgs \nPACKAGECONFIG FLAG PACKAGE NAMES (or RECIPE NAMES) \n \n3g connman-1.16 \n\navahicups-1.6.3 pulseaudio-4.0 \nbeecrypt rpm-5.4.9 rpm-native-5.4.9 \n" -}, -"4": { - "action": "Run \"../scripts/contrib/list-packageconfig-flags.py -a\" ", - "expected_results": "In step 4, will list all pkgs and PACKAGECONFIG information: \n== \ngtk+-2.24.18 \n/home/jiahongxu/yocto/poky/meta/recipes-gnome/gtk+/gtk+_2.24.18.bb \nPACKAGECONFIG x11 \nPACKAGECONFIG[x11] --with-x=yes --with-gdktarget=x11,--with-x=no,${X11DEPENDS} \nxf86-video-intel-2.21.9 \n/home/jiahongxu/yocto/poky/meta/recipes-graphics/xorg-driver/xf86-video-intel_2.21.9.bb \nPACKAGECONFIG None \nPACKAGECONFIG[xvmc] --enable-xvmc,--disable-xvmc,libxvmc \nPACKAGECONFIG[sna] --enable-sna,--disable-sna \n" -}, -"5": { - "action": "Run \"../scripts/contrib/list-packageconfig-flags.py -p\" ", - "expected_results": "In step 5, will list pkgs with preferred version: \nPACKAGE NAME (or RECIPE NAME) PACKAGECONFIG FLAGS \n=== \nalsa-tools-1.0.26.1 defaultval gtk+ \navahi-ui-0.6.31 defaultval python \nbluez4-4.101 alsa defaultval pie \nbluez5-5.7alsa defaultval obex-profiles \n\n\n\n " -} - }, - "summary": "List_all_the_PACKAGECONFIG's_flags" -} - }, - { -"test": { "@alias": "oe-core.bitbake.Test_bitbake_menuconfig", "author": [ { @@ -257,4 +223,4 @@ "summary": "test_bitbake_sane_error_for_invalid_layer" } } -] \ No newline at end of file +] -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [QA][PATCH 6/7] manual/bsp-qemu: remove connmand test done in runtime test
Signed-off-by: Armin Kuster --- meta/lib/oeqa/manual/bsp-qemu.json | 30 -- 1 file changed, 30 deletions(-) diff --git a/meta/lib/oeqa/manual/bsp-qemu.json b/meta/lib/oeqa/manual/bsp-qemu.json index 7a3d994..5ec275c 100644 --- a/meta/lib/oeqa/manual/bsp-qemu.json +++ b/meta/lib/oeqa/manual/bsp-qemu.json @@ -61,36 +61,6 @@ }, { "test": { - "@alias": "bsps-qemu.bsps-runtime.only_one_connmand_in_background(auto)", - "author": [ -{ - "email": "alexandru.c.george...@intel.com", - "name": "alexandru.c.george...@intel.com" -} - ], - "execution": { -"1": { - "action": "Boot system", - "expected_results": "" -}, -"2": { - "action": "Run \"ps aux |grep connmand\" or \"ps -ef | grep connmand\" or \"ps | grep connmand\"", - "expected_results": "Connmand (connection manager, used to manage internet connections) should be shown as an active process \n\n" -}, -"3": { - "action": "Run command \"connmand\" to try to launch to a second connmand process", - "expected_results": "" -}, -"4": { - "action": "Check, with \"ps\" connmand if a second connmand can be generated ", - "expected_results": "There should be only one connmand process instance in background ." -} - }, - "summary": "only_one_connmand_in_background" -} - }, - { -"test": { "@alias": "bsps-qemu.bsps-runtime.check_bash_in_image", "author": [ { -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [QA][PATCH 7/7] manual sdk: remove this manual sdk test
This is done during nearly all qemu testimage This seems to test "release" artifacts on the web Signed-off-by: Armin Kuster --- meta/lib/oeqa/manual/sdk.json | 32 1 file changed, 32 deletions(-) delete mode 100644 meta/lib/oeqa/manual/sdk.json diff --git a/meta/lib/oeqa/manual/sdk.json b/meta/lib/oeqa/manual/sdk.json deleted file mode 100644 index 434982f..000 --- a/meta/lib/oeqa/manual/sdk.json +++ /dev/null @@ -1,32 +0,0 @@ -[ -{ -"test": { -"@alias": "sdk.sdk_runqemu.test_install_cross_toolchain_can_run_multiple_qemu_for_x86", -"author": [ -{ -"email": "ee.peng.y...@intel.com", -"name": "ee.peng.y...@intel.com" -} -], -"execution": { -"1": { -"action": "Prepare kernel, rootfs tar.bz2 image, and qemu configuration \n\ta. Download kernel, rootfs tar.bz2 image and qemu configuration from public autobuilder webpage \n\tb. Goto https://autobuilder.yocto.io/pub/releases//machines/qemu/qemux86/ \n\tc. Download \n\t \ti. rootfs tar.bz2: core-image-sato-sdk-qemux86.tar.bz2 \n \t\tii. kernel: bzImage-qemux86.bin \n \t\tiii. qemu configuration: core-image-sato-sdk-qemux86.qemuboot.conf ", -"expected_results": "Download completes successfully." -}, -"2": { -"action": "Download & install toolchain tarball matching your host from public autobuilder \n\ta. Goto https://autobuilder.yocto.io/pub/releases//toolchain/x86_64/ \n \tb. Download poky-glibc-x86_64-core-image-sato--toolchain-.sh \n \tc. Run command: poky-glibc-x86_64-core-image-sato--toolchain-.sh \n \td. After installation toolchain Run source command : source /toolchain-installed-path/environment-setup--poky-linux", -"expected_results": "Toolchain gets installed successfully." -}, -"3": { -"action": "Extract rootfs twice into two images \n\ta. Run 2 commands below: \n runqemu-extract-sdk core-image-sato-sdk-qemux86.tar.bz2 qemux86_rootfs_image1 \n runqemu-extract-sdk core-image-sato-sdk-qemux86.tar.bz2 qemux86_rootfs_image2", -"expected_results": "Both images build successfully." -}, -"4": { -"action": " From the 2 terminals, start qemu to boot up both two images \n\ta. Run 2 commands below: \n runqemu core-image-sato-sdk-qemux86.qemuboot.conf qemux86_rootfs_image1 \n runqemu core-image-sato-sdk-qemux86.qemuboot.conf qemux86_rootfs_image2 ", -"expected_results": "Expect both qemu to boot up successfully." -} -}, -"summary": "test_install_cross_toolchain_can_run_multiple_qemu_for_x86" -} -} -] \ No newline at end of file -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 1/3] core-image-sato-ptest-fast: Add 'fast' ptest execution image
On Wed, 2019-04-17 at 09:57 -0700, akuster808 wrote: > > On 4/17/19 8:59 AM, Richard Purdie wrote: > > Create a common include file which lists recipes that have ptests > > divided > > into 'fast' and 'slow' groups. This allows us to include ptests > > which otherwise > > may not get included in images and allows us to test the faster > > running things > > more regularly. > > > > The new image allows access to these faster executing tests. 'fast' > > is defined > > as tests which execute in under 30s roughly speaking. > Maybe at some point allow recipes to define their own groupings. It > would lend itself to scaling better. There isn't anything stopping that, I just wanted something which we can use for the autobuilder testing and it makes sense to have that somewhere in OE-Core IMO so everyone can see what we do. > Can we define the system at ~30 seconds? All these may be fast on a > 196 core system where as on my laptop all would be slow ; ) The times from the autobuilder. My local build server works out slightly faster. We're talking about an image either on real hardware or under KVM acceleration as without that everything is extremely slow. Cheers, Richard -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 1/3] core-image-sato-ptest-fast: Add 'fast' ptest execution image
On Fri, 2019-04-19 at 18:52 +, Slater, Joseph wrote: > gdk-pixbuf is fast? Not for me. Some of its tests take about 2000 > seconds on qemux86-64 on a 32 core machine with 64GB ram. from the ptest logs from gdk-pixbuf: SUMMARY: total=20; passed=20; skipped=0; failed=0; user=27.1s; system=0.2s; maxrss=20260 DURATION: 28 so yes, it takes around 30s for qemux86-64 on the autobuilder (single thread qemu). Are you using KVM? Cheers, Richard -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH][meta-oe] pixman: update to 0.38.4
Signed-off-by: Oleksandr Kravchuk --- .../xorg-lib/{pixman_0.38.0.bb => pixman_0.38.4.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta/recipes-graphics/xorg-lib/{pixman_0.38.0.bb => pixman_0.38.4.bb} (91%) diff --git a/meta/recipes-graphics/xorg-lib/pixman_0.38.0.bb b/meta/recipes-graphics/xorg-lib/pixman_0.38.4.bb similarity index 91% rename from meta/recipes-graphics/xorg-lib/pixman_0.38.0.bb rename to meta/recipes-graphics/xorg-lib/pixman_0.38.4.bb index 49c3d62342..82c2e73e50 100644 --- a/meta/recipes-graphics/xorg-lib/pixman_0.38.0.bb +++ b/meta/recipes-graphics/xorg-lib/pixman_0.38.4.bb @@ -34,7 +34,7 @@ SRC_URI += "\ file://0001-test-utils-Check-for-FE_INVALID-definition-before-us.patch \ " -SRC_URI[md5sum] = "04ecad28edcc14e7eb5f7ed6df29c7a0" -SRC_URI[sha256sum] = "b768e3f7895ddebdc0f07478729d9cec4fe0a9d2201f828c900d67b0e5b436a8" +SRC_URI[md5sum] = "16a350a8a40116ddf67632a1d2623711" +SRC_URI[sha256sum] = "84abb7fa2541af24d9c3b34bf75d6ac60cc94ac4410061bbb295b66a29221550" REQUIRED_DISTRO_FEATURES = "" -- 2.17.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH][meta-oe] libcap: update to 2.27
Signed-off-by: Oleksandr Kravchuk --- .../recipes-support/libcap/{libcap_2.26.bb => libcap_2.27.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta/recipes-support/libcap/{libcap_2.26.bb => libcap_2.27.bb} (93%) diff --git a/meta/recipes-support/libcap/libcap_2.26.bb b/meta/recipes-support/libcap/libcap_2.27.bb similarity index 93% rename from meta/recipes-support/libcap/libcap_2.26.bb rename to meta/recipes-support/libcap/libcap_2.27.bb index 14841de4a7..4f3bac8490 100644 --- a/meta/recipes-support/libcap/libcap_2.26.bb +++ b/meta/recipes-support/libcap/libcap_2.27.bb @@ -10,8 +10,8 @@ DEPENDS = "hostperl-runtime-native gperf-native" SRC_URI = "${KERNELORG_MIRROR}/linux/libs/security/linux-privs/${BPN}2/${BPN}-${PV}.tar.xz \ file://0001-ensure-the-XATTR_NAME_CAPS-is-defined-when-it-is-use.patch \ " -SRC_URI[md5sum] = "968ac4d42a1a71754313527be2ab5df3" -SRC_URI[sha256sum] = "b630b7c484271b3ba867680d6a14b10a86cfa67247a14631b14c06731d5a458b" +SRC_URI[md5sum] = "2e8f9fab32eb5ccb37969fe317fd17aa" +SRC_URI[sha256sum] = "dac1792d0118bee6aae6ba7fb93ff1602c6a9bda812fd63916eee1435b9c486a" inherit lib_package -- 2.17.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [QA][PATCH 7/7] manual sdk: remove this manual sdk test
On Mon, 2019-04-22 at 06:41 -0600, Armin Kuster wrote: > This is done during nearly all qemu testimage > This seems to test "release" artifacts on the web This does two things, it tests release artefacts and it also tests we can run two qemus at once. Whether those are useful things to test I'm not sure about but we should make a concious statement in the commit message if we are deciding not to test that. Cheers, Richard -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH][meta-oe] cups: update to 2.2.11
CUPS 2.2.11 is a bug fix release that addresses issues in the scheduler, IPP Everywhere support, CUPS library, and USB printer support. Signed-off-by: Oleksandr Kravchuk --- meta/recipes-extended/cups/cups_2.2.10.bb | 6 -- meta/recipes-extended/cups/cups_2.2.11.bb | 6 ++ 2 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 meta/recipes-extended/cups/cups_2.2.10.bb create mode 100644 meta/recipes-extended/cups/cups_2.2.11.bb diff --git a/meta/recipes-extended/cups/cups_2.2.10.bb b/meta/recipes-extended/cups/cups_2.2.10.bb deleted file mode 100644 index 490c84e2f4..00 --- a/meta/recipes-extended/cups/cups_2.2.10.bb +++ /dev/null @@ -1,6 +0,0 @@ -require cups.inc - -LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f212b4338db0da8cb892e94bf2949460" - -SRC_URI[md5sum] = "3d22d747403ec5dcd0b66d1332564816" -SRC_URI[sha256sum] = "77c8b2b3bb7fe8b5fbfffc307f2c817b2d7ec67b657f261a1dd1c61ab81205bb" diff --git a/meta/recipes-extended/cups/cups_2.2.11.bb b/meta/recipes-extended/cups/cups_2.2.11.bb new file mode 100644 index 00..aeb2e14e3b --- /dev/null +++ b/meta/recipes-extended/cups/cups_2.2.11.bb @@ -0,0 +1,6 @@ +require cups.inc + +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f212b4338db0da8cb892e94bf2949460" + +SRC_URI[md5sum] = "7afbbcd2497e7d742583c492f6de40cd" +SRC_URI[sha256sum] = "f58010813fd6903f690cdb0c0b91e4d1bc9e5b9570c28734229ba3ed2908b76c" -- 2.17.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [QA][PATCH 7/7] manual sdk: remove this manual sdk test
On 4/22/19 8:03 AM, Richard Purdie wrote: > On Mon, 2019-04-22 at 06:41 -0600, Armin Kuster wrote: >> This is done during nearly all qemu testimage >> This seems to test "release" artifacts on the web > This does two things, it tests release artefacts Correct. I think this is more of a Release process step and I think it can be automated. > and it also tests we > can run two qemus at once. I would think this could be automated as well. > > Whether those are useful things to test I'm not sure about but we > should make a concious statement in the commit message if we are > deciding not to test that. sometimes patches are way to get a conversion started and here we are : ) - armin > > Cheers, > > Richard > > > -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH v2] u-boot: Fix missing Python.h build failure
On Thu, Apr 18, 2019 at 07:37:27AM -0700, Alistair Francis wrote: > On Thu, Apr 18, 2019 at 7:29 AM Joshua Watt wrote: > > > > On Thu, 2019-04-18 at 14:16 +0200, Alexander Kanavin wrote: > > > Can we take this opportunity to teach u-boot to use Python 3.x > > > instead? oe-core is trying to eliminate Python 2.x dependencies > > > everywhere. > > > > It looks like the libfdt code in u-boot currently requires Python 2, so > > it would be an unstream change to convert it to Python 3. It also > > appears to be compiling a C module to work with Python 2 so its > > probably not as simple as "convert the script". > > Agreed, the u-boot Maintainers added a patch to specifically use > Python2 recently so I think we are stuck with Python2 here until > upstream u-boot is updated. For which help would be greatly appreciated as we have a fair amount of python2 stuff. -- Tom signature.asc Description: PGP signature -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 2/3] pulseaudio: disable PIE flags when hardened flags are enabled
On Mon, Apr 22, 2019 at 6:33 AM Tanu Kaskinen wrote: > On Fri, 2017-06-09 at 10:10 -0700, Khem Raj wrote: > > On Fri, Jun 9, 2017 at 9:38 AM, Tanu Kaskinen wrote: > > > On Fri, 2017-06-09 at 13:07 +, Khem Raj wrote: > > > > On Fri, Jun 9, 2017 at 5:56 AM Burton, Ross > wrote: > > > > > > > > > On 9 June 2017 at 04:41, Khem Raj wrote: > > > > > > > > > > > +SECURITY_CFLAGS = "${SECURITY_NO_PIE_CFLAGS}" > > > > > > > > > > > > > > > > These tend to go into security-flags.inc, not the recipe. > > > > > > > > > > > > > I know that's been the case but I think having a global file is > error prone > > > > its better to have it in recipe context since it can get attention at > > > > upgrade time to test if this has been fixed in new release etc > > > > > > Do you mean that there's some bug in pulseaudio, and this is a > > > workaround for it? Is the bug that there are textrels? Ross saw > > > textrels in pulseaudio before (see the discussion starting at [1]), but > > > I was unable to reproduce that. If you give instructions for > > > reproducing the problem, I'll see if I can fix pulseaudio (until then > > > I'm fine with having a workaround). > > > > > > > yes there is a bug lurking when compiling with hardening flags are > turned on > > so you can do something like > > > > in local.conf > > > > require conf/distro/include/security_flags.inc > > > > then > > > > MACHINE=qemux86 bitbake pulseaudio > > > > it also happens on arm so qemuarm will reproduce it too. > > > > some assembly code is probably missing using GOT relative accesses > > Resurrecting this ancient thread... I finally tried to reproduce this > problem with the given instructions. No success. Have you still been > running into this issue? I don’t know for sure if this still exists but we did disable assembly in few packages which addresses this issue since in assembly PIC has to be respected In hand written code You might have to check if we did something similar for pulseaudio > > > -- > Tanu > > https://www.patreon.com/tanuk > https://liberapay.com/tanuk > > -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH][meta-oe] git: update to 2.21.0
Signed-off-by: Oleksandr Kravchuk --- meta/recipes-devtools/git/git_2.20.1.bb | 11 --- meta/recipes-devtools/git/git_2.21.0.bb | 11 +++ 2 files changed, 11 insertions(+), 11 deletions(-) delete mode 100644 meta/recipes-devtools/git/git_2.20.1.bb create mode 100644 meta/recipes-devtools/git/git_2.21.0.bb diff --git a/meta/recipes-devtools/git/git_2.20.1.bb b/meta/recipes-devtools/git/git_2.20.1.bb deleted file mode 100644 index 877fb05e58..00 --- a/meta/recipes-devtools/git/git_2.20.1.bb +++ /dev/null @@ -1,11 +0,0 @@ -require git.inc - -EXTRA_OECONF += "ac_cv_snprintf_returns_bogus=no \ - ac_cv_fread_reads_directories=${ac_cv_fread_reads_directories=yes} \ - " -EXTRA_OEMAKE += "NO_GETTEXT=1" - -SRC_URI[tarball.md5sum] = "7a7769e5c957364ed0aed89e6e67c254" -SRC_URI[tarball.sha256sum] = "edc3bc1495b69179ba4e272e97eff93334a20decb1d8db6ec3c19c16417738fd" -SRC_URI[manpages.md5sum] = "78c6e54a61a167dab5e8ae07036293ab" -SRC_URI[manpages.sha256sum] = "e9c123463abd05e142defe44a8060ce6e9853dfd8c83b2542e38b7deac4e6d4c" diff --git a/meta/recipes-devtools/git/git_2.21.0.bb b/meta/recipes-devtools/git/git_2.21.0.bb new file mode 100644 index 00..434ff8f3d4 --- /dev/null +++ b/meta/recipes-devtools/git/git_2.21.0.bb @@ -0,0 +1,11 @@ +require git.inc + +EXTRA_OECONF += "ac_cv_snprintf_returns_bogus=no \ + ac_cv_fread_reads_directories=${ac_cv_fread_reads_directories=yes} \ + " +EXTRA_OEMAKE += "NO_GETTEXT=1" + +SRC_URI[tarball.md5sum] = "b8e00c2997774c5d4aaf26fd9d9aaf64" +SRC_URI[tarball.sha256sum] = "85eca51c7404da75e353eba587f87fea9481ba41e162206a6f70ad8118147bee" +SRC_URI[manpages.md5sum] = "8a168697b99a9a3f04f29f7d4bacd70b" +SRC_URI[manpages.sha256sum] = "14c76ebb4e31f9e55cf5338a04fd3a13bced0323cd51794ccf45fc74bd0c1080" -- 2.17.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH][meta-oe] libdrm: update to 2.4.98
Signed-off-by: Oleksandr Kravchuk --- .../drm/{libdrm_2.4.97.bb => libdrm_2.4.98.bb}| 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta/recipes-graphics/drm/{libdrm_2.4.97.bb => libdrm_2.4.98.bb} (95%) diff --git a/meta/recipes-graphics/drm/libdrm_2.4.97.bb b/meta/recipes-graphics/drm/libdrm_2.4.98.bb similarity index 95% rename from meta/recipes-graphics/drm/libdrm_2.4.97.bb rename to meta/recipes-graphics/drm/libdrm_2.4.98.bb index bbe9a33ba9..bed542ba05 100644 --- a/meta/recipes-graphics/drm/libdrm_2.4.97.bb +++ b/meta/recipes-graphics/drm/libdrm_2.4.98.bb @@ -12,8 +12,8 @@ DEPENDS = "libpthread-stubs" SRC_URI = "http://dri.freedesktop.org/libdrm/${BP}.tar.bz2 \ file://musl-ioctl.patch" -SRC_URI[md5sum] = "acef22d0c62c89692348c2dd5591393e" -SRC_URI[sha256sum] = "77d0ccda3e10d6593398edb70b1566bfe1a23a39bd3da98ace2147692eadd123" +SRC_URI[md5sum] = "1320b43c4bdb8846c308ec2610b62b64" +SRC_URI[sha256sum] = "8be0edccaca3abde8b6bb1431b46354c7fab46e9b91cc6946ba65b51f56f1894" inherit meson pkgconfig manpages -- 2.17.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH][meta-oe] libinput: update to 1.13.1
Signed-off-by: Oleksandr Kravchuk --- .../wayland/{libinput_1.13.0.bb => libinput_1.13.1.bb}| 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta/recipes-graphics/wayland/{libinput_1.13.0.bb => libinput_1.13.1.bb} (86%) diff --git a/meta/recipes-graphics/wayland/libinput_1.13.0.bb b/meta/recipes-graphics/wayland/libinput_1.13.1.bb similarity index 86% rename from meta/recipes-graphics/wayland/libinput_1.13.0.bb rename to meta/recipes-graphics/wayland/libinput_1.13.1.bb index 77792b9bb1..5a6dd9aecb 100644 --- a/meta/recipes-graphics/wayland/libinput_1.13.0.bb +++ b/meta/recipes-graphics/wayland/libinput_1.13.1.bb @@ -8,8 +8,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=1f2ea9ebff3a2c6d458faf58492efb63" DEPENDS = "libevdev udev mtdev" SRC_URI = "http://www.freedesktop.org/software/${BPN}/${BP}.tar.xz"; -SRC_URI[md5sum] = "ea0834452b03457f8a33359db3eabfbf" -SRC_URI[sha256sum] = "eb27c95d35c8fc9c7b96b9f0b2de5a043c47eb5f4b2868f353ab1bd0be0b616d" +SRC_URI[md5sum] = "869a7e68c4290d99868500a369645def" +SRC_URI[sha256sum] = "e1d487d478ee2bb118890a64211c2b7f2348aaed7363b214bed4d642274841ab" UPSTREAM_CHECK_REGEX = "libinput-(?P\d+\.\d+\.(?!9\d+)\d+)" -- 2.17.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH][meta-oe] libpng: update to 1.6.37
Removed patch was upsteamed. License checksums were changed due to modified copyright year and fixed typo in LICENSE file (see @fef895aa28 and @8da8257d0b). Signed-off-by: Oleksandr Kravchuk --- .../libpng/libpng/CVE-2019-7317.patch | 20 --- .../{libpng_1.6.36.bb => libpng_1.6.37.bb}| 11 +- 2 files changed, 5 insertions(+), 26 deletions(-) delete mode 100644 meta/recipes-multimedia/libpng/libpng/CVE-2019-7317.patch rename meta/recipes-multimedia/libpng/{libpng_1.6.36.bb => libpng_1.6.37.bb} (70%) diff --git a/meta/recipes-multimedia/libpng/libpng/CVE-2019-7317.patch b/meta/recipes-multimedia/libpng/libpng/CVE-2019-7317.patch deleted file mode 100644 index 6ee1f8da30..00 --- a/meta/recipes-multimedia/libpng/libpng/CVE-2019-7317.patch +++ /dev/null @@ -1,20 +0,0 @@ -Use-after-free detected with static analysis. - -CVE: CVE-2019-7317 -Upstream-Status: Submitted [https://github.com/glennrp/libpng/issues/275] -Signed-off-by: Ross Burton - -diff --git a/png.c b/png.c -index 9d9926f638..efd1aecfbd 100644 a/png.c -+++ b/png.c -@@ -4588,8 +4588,7 @@ png_image_free(png_imagep image) -if (image != NULL && image->opaque != NULL && - image->opaque->error_buf == NULL) -{ -- /* Ignore errors here: */ -- (void)png_safe_execute(image, png_image_free_function, image); -+ png_image_free_function(image); - image->opaque = NULL; -} - } diff --git a/meta/recipes-multimedia/libpng/libpng_1.6.36.bb b/meta/recipes-multimedia/libpng/libpng_1.6.37.bb similarity index 70% rename from meta/recipes-multimedia/libpng/libpng_1.6.36.bb rename to meta/recipes-multimedia/libpng/libpng_1.6.37.bb index a586237888..66af2f3d60 100644 --- a/meta/recipes-multimedia/libpng/libpng_1.6.36.bb +++ b/meta/recipes-multimedia/libpng/libpng_1.6.37.bb @@ -2,17 +2,16 @@ SUMMARY = "PNG image format decoding library" HOMEPAGE = "http://www.libpng.org/"; SECTION = "libs" LICENSE = "Libpng" -LIC_FILES_CHKSUM = "file://LICENSE;md5=12b4ec50384c800bc568f519671b120c \ - file://png.h;endline=144;md5=15ae15f53376306868259924a9db4e05 \ +LIC_FILES_CHKSUM = "file://LICENSE;md5=b0085051bf265bac2bfc38bc89f5\ + file://png.h;endline=144;md5=8acd23d544623816b097e07be0139509\ " DEPENDS = "zlib" LIBV = "16" -SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}${LIBV}/${PV}/${BP}.tar.xz \ - file://CVE-2019-7317.patch" -SRC_URI[md5sum] = "df2be2d29c40937fe1f5349b16bc2826" -SRC_URI[sha256sum] = "eceb924c1fa6b79172fdfd008d335f0e59172a86a66481e09d4089df872aa319" +SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}${LIBV}/${PV}/${BP}.tar.xz" +SRC_URI[md5sum] = "015e8e15db1eecde5f2eb9eb5b6e59e9" +SRC_URI[sha256sum] = "505e70834d35383537b6491e7ae8641f1a4bed1876dbfe361201fc80868d88ca" MIRRORS += "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}${LIBV}/${PV}/ ${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}${LIBV}/older-releases/${PV}/" -- 2.17.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH][meta-oe] libnotify: update to 0.7.8
Signed-off-by: Oleksandr Kravchuk --- .../libnotify/{libnotify_0.7.7.bb => libnotify_0.7.8.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta/recipes-gnome/libnotify/{libnotify_0.7.7.bb => libnotify_0.7.8.bb} (80%) diff --git a/meta/recipes-gnome/libnotify/libnotify_0.7.7.bb b/meta/recipes-gnome/libnotify/libnotify_0.7.8.bb similarity index 80% rename from meta/recipes-gnome/libnotify/libnotify_0.7.7.bb rename to meta/recipes-gnome/libnotify/libnotify_0.7.8.bb index 6c299bc175..82c137ca33 100644 --- a/meta/recipes-gnome/libnotify/libnotify_0.7.7.bb +++ b/meta/recipes-gnome/libnotify/libnotify_0.7.8.bb @@ -10,8 +10,8 @@ inherit gnomebase gtk-doc distro_features_check gobject-introspection # depends on gtk+3 ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" -SRC_URI[archive.md5sum] = "e9d911f6a22435e0b922f2fe71212b59" -SRC_URI[archive.sha256sum] = "9cb4ce315b2655860c524d46b56010874214ec27e854086c1a1d0260137efc04" +SRC_URI[archive.md5sum] = "babb4b07b5f21bef42a386d3d7019599" +SRC_URI[archive.sha256sum] = "69209e0b663776a00c7b6c0e560302a8dbf66b2551d55616304f240bba66e18c" # there were times, we had two versions of libnotify (oe-core libnotify:0.6.x / # meta-gnome libnotify3: 0.7.x) -- 2.17.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH][meta-oe] libcroco: update to 0.6.13
Removed patches were upstreamed. Signed-off-by: Oleksandr Kravchuk --- .../libcroco/libcroco/CVE-2017-7960.patch | 56 --- .../libcroco/libcroco/CVE-2017-7961.patch | 45 --- ...{libcroco_0.6.12.bb => libcroco_0.6.13.bb} | 8 +-- 3 files changed, 2 insertions(+), 107 deletions(-) delete mode 100644 meta/recipes-support/libcroco/libcroco/CVE-2017-7960.patch delete mode 100644 meta/recipes-support/libcroco/libcroco/CVE-2017-7961.patch rename meta/recipes-support/libcroco/{libcroco_0.6.12.bb => libcroco_0.6.13.bb} (72%) diff --git a/meta/recipes-support/libcroco/libcroco/CVE-2017-7960.patch b/meta/recipes-support/libcroco/libcroco/CVE-2017-7960.patch deleted file mode 100644 index f6f43c3d26..00 --- a/meta/recipes-support/libcroco/libcroco/CVE-2017-7960.patch +++ /dev/null @@ -1,56 +0,0 @@ -input: check end of input before reading a byte - -When reading bytes we weren't check that the index wasn't -out of bound and this could produce an invalid read which -could deal to a security bug. - -Upstream-Status: Backport[https://gitlab.gnome.org/GNOME/libcroco/ - commit/898e3a8c8c0314d2e6b106809a8e3e93cf9d4394] - -CVE: CVE-2017-7960 - -Signed-off-by: Changqing Li - -diff --git a/src/cr-input.c b/src/cr-input.c -index 49000b1f5f07fe057135f1b8fc69bdcf9613e300..3b63a88ee3b1c56778e58172d147d958951bf099 100644 a/src/cr-input.c -+++ b/src/cr-input.c -@@ -256,7 +256,7 @@ cr_input_new_from_uri (const gchar * a_file_uri, enum CREncoding a_enc) - *we should free buf here because it's own by CRInput. - *(see the last parameter of cr_input_new_from_buf(). - */ --buf = NULL ; -+buf = NULL; - } - - cleanup: -@@ -404,6 +404,8 @@ cr_input_get_nb_bytes_left (CRInput const * a_this) - enum CRStatus - cr_input_read_byte (CRInput * a_this, guchar * a_byte) - { -+gulong nb_bytes_left = 0; -+ - g_return_val_if_fail (a_this && PRIVATE (a_this) - && a_byte, CR_BAD_PARAM_ERROR); - -@@ -413,6 +415,12 @@ cr_input_read_byte (CRInput * a_this, guchar * a_byte) - if (PRIVATE (a_this)->end_of_input == TRUE) - return CR_END_OF_INPUT_ERROR; - -+nb_bytes_left = cr_input_get_nb_bytes_left (a_this); -+ -+if (nb_bytes_left < 1) { -+return CR_END_OF_INPUT_ERROR; -+} -+ - *a_byte = PRIVATE (a_this)->in_buf[PRIVATE (a_this)->next_byte_index]; - - if (PRIVATE (a_this)->nb_bytes - -@@ -477,7 +485,6 @@ cr_input_read_char (CRInput * a_this, guint32 * a_char) - if (*a_char == '\n') { - PRIVATE (a_this)->end_of_line = TRUE; - } -- - } - - return status; diff --git a/meta/recipes-support/libcroco/libcroco/CVE-2017-7961.patch b/meta/recipes-support/libcroco/libcroco/CVE-2017-7961.patch deleted file mode 100644 index 35471ec7ee..00 --- a/meta/recipes-support/libcroco/libcroco/CVE-2017-7961.patch +++ /dev/null @@ -1,45 +0,0 @@ -CVE: CVE-2017-7961 -Upstream-Status: Backport -Signed-off-by: Ross Burton - -From 9ad72875e9f08e4c519ef63d44cdbd94aa9504f7 Mon Sep 17 00:00:00 2001 -From: Ignacio Casal Quinteiro -Date: Sun, 16 Apr 2017 13:56:09 +0200 -Subject: [PATCH] tknzr: support only max long rgb values - -This fixes a possible out of bound when reading rgbs which -are longer than the support MAXLONG - src/cr-tknzr.c | 10 ++ - 1 file changed, 10 insertions(+) - -diff --git a/src/cr-tknzr.c b/src/cr-tknzr.c -index 1a7cfeb..1548c35 100644 a/src/cr-tknzr.c -+++ b/src/cr-tknzr.c -@@ -1279,6 +1279,11 @@ cr_tknzr_parse_rgb (CRTknzr * a_this, CRRgb ** a_rgb) - status = cr_tknzr_parse_num (a_this, &num); - ENSURE_PARSING_COND ((status == CR_OK) && (num != NULL)); - -+if (num->val > G_MAXLONG) { -+status = CR_PARSING_ERROR; -+goto error; -+} -+ - red = num->val; - cr_num_destroy (num); - num = NULL; -@@ -1298,6 +1303,11 @@ cr_tknzr_parse_rgb (CRTknzr * a_this, CRRgb ** a_rgb) - status = cr_tknzr_parse_num (a_this, &num); - ENSURE_PARSING_COND ((status == CR_OK) && (num != NULL)); - -+if (num->val > G_MAXLONG) { -+status = CR_PARSING_ERROR; -+goto error; -+} -+ - PEEK_BYTE (a_this, 1, &next_bytes[0]); - if (next_bytes[0] == '%') { - SKIP_CHARS (a_this, 1); --- -2.18.1 diff --git a/meta/recipes-support/libcroco/libcroco_0.6.12.bb b/meta/recipes-support/libcroco/libcroco_0.6.13.bb similarity index 72% rename from meta/recipes-support/libcroco/libcroco_0.6.12.bb rename to meta/recipes-support/libcroco/libcroco_0.6.13.bb index f95a583134..9171a9de5c 100644 --- a/meta/recipes-support/libcroco/libcroco_0.6.12.bb +++ b/meta/recipes-su
[OE-core] [PATCH][meta-oe] libpsl: update to 0.21.0
Signed-off-by: Oleksandr Kravchuk --- .../libpsl/{libpsl_0.20.2.bb => libpsl_0.21.0.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta/recipes-support/libpsl/{libpsl_0.20.2.bb => libpsl_0.21.0.bb} (80%) diff --git a/meta/recipes-support/libpsl/libpsl_0.20.2.bb b/meta/recipes-support/libpsl/libpsl_0.21.0.bb similarity index 80% rename from meta/recipes-support/libpsl/libpsl_0.20.2.bb rename to meta/recipes-support/libpsl/libpsl_0.21.0.bb index 5cb20d46bc..f545ba076f 100644 --- a/meta/recipes-support/libpsl/libpsl_0.20.2.bb +++ b/meta/recipes-support/libpsl/libpsl_0.21.0.bb @@ -5,8 +5,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=5437030d9e4fbe7267ced058ddb8a7f5 \ file://COPYING;md5=f41d10997a12da5ee3c24ceeb0148d18" SRC_URI = "https://github.com/rockdaboot/${BPN}/releases/download/${BP}/${BP}.tar.gz"; -SRC_URI[md5sum] = "f604f7d30d64bc673870ecf84b860a1e" -SRC_URI[sha256sum] = "f8fd0aeb66252dfcc638f14d9be1e2362fdaf2ca86bde0444ff4d5cc961b560f" +SRC_URI[md5sum] = "171e96d887709e36a57f4ee627bf82d2" +SRC_URI[sha256sum] = "41bd1c75a375b85c337b59783f5deb93dbb443fb0a52d257f403df7bd653ee12" UPSTREAM_CHECK_URI = "https://github.com/rockdaboot/libpsl/releases"; -- 2.17.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH][meta-oe] git: update to 2.21.0
On 4/22/19 2:42 PM, Oleksandr Kravchuk wrote: > Signed-off-by: Oleksandr Kravchuk Errr, check your subject lines. meta-oe is not this list and may confuse the patchwork. - armin > --- > meta/recipes-devtools/git/git_2.20.1.bb | 11 --- > meta/recipes-devtools/git/git_2.21.0.bb | 11 +++ > 2 files changed, 11 insertions(+), 11 deletions(-) > delete mode 100644 meta/recipes-devtools/git/git_2.20.1.bb > create mode 100644 meta/recipes-devtools/git/git_2.21.0.bb > > diff --git a/meta/recipes-devtools/git/git_2.20.1.bb > b/meta/recipes-devtools/git/git_2.20.1.bb > deleted file mode 100644 > index 877fb05e58..00 > --- a/meta/recipes-devtools/git/git_2.20.1.bb > +++ /dev/null > @@ -1,11 +0,0 @@ > -require git.inc > - > -EXTRA_OECONF += "ac_cv_snprintf_returns_bogus=no \ > - > ac_cv_fread_reads_directories=${ac_cv_fread_reads_directories=yes} \ > - " > -EXTRA_OEMAKE += "NO_GETTEXT=1" > - > -SRC_URI[tarball.md5sum] = "7a7769e5c957364ed0aed89e6e67c254" > -SRC_URI[tarball.sha256sum] = > "edc3bc1495b69179ba4e272e97eff93334a20decb1d8db6ec3c19c16417738fd" > -SRC_URI[manpages.md5sum] = "78c6e54a61a167dab5e8ae07036293ab" > -SRC_URI[manpages.sha256sum] = > "e9c123463abd05e142defe44a8060ce6e9853dfd8c83b2542e38b7deac4e6d4c" > diff --git a/meta/recipes-devtools/git/git_2.21.0.bb > b/meta/recipes-devtools/git/git_2.21.0.bb > new file mode 100644 > index 00..434ff8f3d4 > --- /dev/null > +++ b/meta/recipes-devtools/git/git_2.21.0.bb > @@ -0,0 +1,11 @@ > +require git.inc > + > +EXTRA_OECONF += "ac_cv_snprintf_returns_bogus=no \ > + > ac_cv_fread_reads_directories=${ac_cv_fread_reads_directories=yes} \ > + " > +EXTRA_OEMAKE += "NO_GETTEXT=1" > + > +SRC_URI[tarball.md5sum] = "b8e00c2997774c5d4aaf26fd9d9aaf64" > +SRC_URI[tarball.sha256sum] = > "85eca51c7404da75e353eba587f87fea9481ba41e162206a6f70ad8118147bee" > +SRC_URI[manpages.md5sum] = "8a168697b99a9a3f04f29f7d4bacd70b" > +SRC_URI[manpages.sha256sum] = > "14c76ebb4e31f9e55cf5338a04fd3a13bced0323cd51794ccf45fc74bd0c1080" -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH v2] quota: update to 4.05
License checksum from quota.c was removed since according to the project, copyrighted code in question has been replaced with own implementation (see @bcbc0d08e5cd). Removed patches were upstreamed. Signed-off-by: Oleksandr Kravchuk --- meta/recipes-extended/quota/quota/fcntl.patch | 48 ++--- .../quota/quota/remove_non_posix_types.patch | 198 -- .../quota/replace_getrpcbynumber_r.patch | 32 --- .../quota/{quota_4.04.bb => quota_4.05.bb}| 10 +- 4 files changed, 20 insertions(+), 268 deletions(-) delete mode 100644 meta/recipes-extended/quota/quota/remove_non_posix_types.patch delete mode 100644 meta/recipes-extended/quota/quota/replace_getrpcbynumber_r.patch rename meta/recipes-extended/quota/{quota_4.04.bb => quota_4.05.bb} (76%) diff --git a/meta/recipes-extended/quota/quota/fcntl.patch b/meta/recipes-extended/quota/quota/fcntl.patch index 2d37971321..51a770ce6e 100644 --- a/meta/recipes-extended/quota/quota/fcntl.patch +++ b/meta/recipes-extended/quota/quota/fcntl.patch @@ -9,13 +9,11 @@ Upstream-Status: Pending Signed-off-by: Khem Raj -ndex: quota-tools/quota.h -=== -Index: quota-tools/quota.h -=== quota-tools.orig/quota.h -+++ quota-tools/quota.h -@@ -165,6 +165,6 @@ enum { +diff --git a/quota.h b/quota.h +index 4c21411..d20c217 100644 +--- a/quota.h b/quota.h +@@ -182,6 +182,6 @@ enum { #endif #endif @@ -23,10 +21,10 @@ Index: quota-tools/quota.h +long quotactl (int, const char *, qid_t, caddr_t); #endif /* _QUOTA_ */ -Index: quota-tools/quotacheck.c -=== quota-tools.orig/quotacheck.c -+++ quota-tools/quotacheck.c +diff --git a/quotacheck.c b/quotacheck.c +index 2cdf475..07c18a7 100644 +--- a/quotacheck.c b/quotacheck.c @@ -19,6 +19,7 @@ #include #include @@ -35,10 +33,10 @@ Index: quota-tools/quotacheck.c #include #include -Index: quota-tools/quotaio.c -=== quota-tools.orig/quotaio.c -+++ quota-tools/quotaio.c +diff --git a/quotaio.c b/quotaio.c +index 94ae458..d57fc1a 100644 +--- a/quotaio.c b/quotaio.c @@ -12,6 +12,7 @@ #include #include @@ -47,22 +45,10 @@ Index: quota-tools/quotaio.c #include #include #include -Index: quota-tools/dqblk_v2.h -=== quota-tools.orig/dqblk_v2.h -+++ quota-tools/dqblk_v2.h -@@ -7,6 +7,7 @@ - #ifndef GUARD_DQBLK_V2_H - #define GUARD_DQBLK_V2_H - -+#include - #include - #include "quota_tree.h" - -Index: quota-tools/rquota_client.c -=== quota-tools.orig/rquota_client.c -+++ quota-tools/rquota_client.c +diff --git a/rquota_client.c b/rquota_client.c +index a3a4ae3..0ffe7a9 100644 +--- a/rquota_client.c b/rquota_client.c @@ -19,7 +19,9 @@ #include "config.h" diff --git a/meta/recipes-extended/quota/quota/remove_non_posix_types.patch b/meta/recipes-extended/quota/quota/remove_non_posix_types.patch deleted file mode 100644 index 06ff13cb98..00 --- a/meta/recipes-extended/quota/quota/remove_non_posix_types.patch +++ /dev/null @@ -1,198 +0,0 @@ -Use proper C99 integer types - -Upstream-Status: Pending - -Signed-off-by: Khem Raj - -Index: quota-tools/bylabel.c -=== quota-tools.orig/bylabel.c -+++ quota-tools/bylabel.c -@@ -20,6 +20,7 @@ - #include - #include - #include -+#include - - #include "bylabel.h" - #include "common.h" -@@ -37,32 +38,32 @@ static struct uuidCache_s { - - #define EXT2_SUPER_MAGIC 0xEF53 - struct ext2_super_block { -- u_char s_dummy1[56]; -- u_char s_magic[2]; -- u_char s_dummy2[46]; -- u_char s_uuid[16]; -- u_char s_volume_name[16]; -+ uint8_t s_dummy1[56]; -+ uint8_t s_magic[2]; -+ uint8_t s_dummy2[46]; -+ uint8_t s_uuid[16]; -+ uint8_t s_volume_name[16]; - }; - --#define ext2magic(s) ((uint) s.s_magic[0] + (((uint) s.s_magic[1]) << 8)) -+#define ext2magic(s) ((uint32_t) s.s_magic[0] + (((uint32_t) s.s_magic[1]) << 8)) - - #define XFS_SUPER_MAGIC "XFSB" - #define XFS_SUPER_MAGIC2 "BSFX" - struct xfs_super_block { -- u_char s_magic[4]; -- u_char s_dummy[28]; -- u_char s_uuid[16]; -- u_char s_dummy2[60]; -- u_char s_fsname[12]; -+ uint8_t s_magic[4]; -+ uint8_t s_dummy[28]; -+ uint8_t s_uuid[16]; -+ uint8_t s_dummy2[60]; -+ uint8_t s_fsname[12]; - }; - - #define REISER_SUPER_MAGIC"ReIsEr2Fs" - struct reiserfs_super_block { -- u_char s_dummy1[52]; -- u_char s_magic[10]; -- u_char s_dummy2[22]; -- u_char s_uuid[16]; -- u_char s_volume_name[16]; -+ uint8_t s_dummy1[52]; -+ uint8_t s_magic[10]; -+
[OE-core] [PATCH v2] gnupg: update to 2.2.15
Signed-off-by: Oleksandr Kravchuk --- ...01-Woverride-init-is-not-needed-with-gcc-9.patch | 13 - .../gnupg/{gnupg_2.2.13.bb => gnupg_2.2.15.bb} | 4 ++-- 2 files changed, 10 insertions(+), 7 deletions(-) rename meta/recipes-support/gnupg/{gnupg_2.2.13.bb => gnupg_2.2.15.bb} (93%) diff --git a/meta/recipes-support/gnupg/gnupg/0001-Woverride-init-is-not-needed-with-gcc-9.patch b/meta/recipes-support/gnupg/gnupg/0001-Woverride-init-is-not-needed-with-gcc-9.patch index 4a280f9d5c..83195b5bd4 100644 --- a/meta/recipes-support/gnupg/gnupg/0001-Woverride-init-is-not-needed-with-gcc-9.patch +++ b/meta/recipes-support/gnupg/gnupg/0001-Woverride-init-is-not-needed-with-gcc-9.patch @@ -1,4 +1,4 @@ -From 0df5800cc2e720aad883a517f7d24a9722fe5845 Mon Sep 17 00:00:00 2001 +From e3adc816d2d56dd929016073937ba24e01e03cb8 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 20 Dec 2018 17:37:48 -0800 Subject: [PATCH] Woverride-init is not needed with gcc 9 @@ -17,15 +17,18 @@ Signed-off-by: Khem Raj 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dirmngr/dns.h b/dirmngr/dns.h -index 30d0b45..98fe412 100644 +index 024d6dcc8..c6e141e16 100644 --- a/dirmngr/dns.h +++ b/dirmngr/dns.h -@@ -154,7 +154,7 @@ DNS_PUBLIC int *dns_debug_p(void); +@@ -139,7 +139,7 @@ DNS_PUBLIC int *dns_debug_p(void); + #define DNS_PRAGMA_QUIET _Pragma("clang diagnostic ignored \"-Winitializer-overrides\"") + #define DNS_PRAGMA_POP _Pragma("clang diagnostic pop") - #define dns_quietinit(...) \ - DNS_PRAGMA_PUSH DNS_PRAGMA_QUIET __VA_ARGS__ DNS_PRAGMA_POP -#elif (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) || __GNUC__ > 4 +#elif (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) || (__GNUC__ > 4 && __GNUC__ < 9) #define DNS_PRAGMA_PUSH _Pragma("GCC diagnostic push") #define DNS_PRAGMA_QUIET _Pragma("GCC diagnostic ignored \"-Woverride-init\"") #define DNS_PRAGMA_POP _Pragma("GCC diagnostic pop") +-- +2.17.1 + diff --git a/meta/recipes-support/gnupg/gnupg_2.2.13.bb b/meta/recipes-support/gnupg/gnupg_2.2.15.bb similarity index 93% rename from meta/recipes-support/gnupg/gnupg_2.2.13.bb rename to meta/recipes-support/gnupg/gnupg_2.2.15.bb index 3ce2a38c0e..06a257333d 100644 --- a/meta/recipes-support/gnupg/gnupg_2.2.13.bb +++ b/meta/recipes-support/gnupg/gnupg_2.2.15.bb @@ -20,8 +20,8 @@ SRC_URI_append_class-native = " file://0001-configure.ac-use-a-custom-value-for- file://relocate.patch" -SRC_URI[md5sum] = "563b959d0c3856e34526e9ca51c80d7b" -SRC_URI[sha256sum] = "76c787a955f9e6e0ead47c9be700bfb9d454f955a7b7c7e697aa719bac7b11d8" +SRC_URI[md5sum] = "3ab87e377aa0af2f463649515bf66508" +SRC_URI[sha256sum] = "cb8ce298d7b36558ffc48aec961b14c830ff1783eef7a623411188b5e0f5d454" EXTRA_OECONF = "--disable-ldap \ --disable-ccid-driver \ -- 2.17.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH] lz4: update to 1.9.0
Signed-off-by: Oleksandr Kravchuk --- meta/recipes-support/lz4/{lz4_1.8.3.bb => lz4_1.9.0.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta/recipes-support/lz4/{lz4_1.8.3.bb => lz4_1.9.0.bb} (94%) diff --git a/meta/recipes-support/lz4/lz4_1.8.3.bb b/meta/recipes-support/lz4/lz4_1.9.0.bb similarity index 94% rename from meta/recipes-support/lz4/lz4_1.8.3.bb rename to meta/recipes-support/lz4/lz4_1.9.0.bb index 125836f7bf..744a1bf470 100644 --- a/meta/recipes-support/lz4/lz4_1.8.3.bb +++ b/meta/recipes-support/lz4/lz4_1.9.0.bb @@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://lib/LICENSE;md5=ebc2ea4814a64de7708f1571904b32cc \ PE = "1" -SRCREV = "641b453d9db536ee020851bfcb1dc39f61006f0a" +SRCREV = "131896ab9d4fc9b8c606616327ed223d5d86472b" SRC_URI = "git://github.com/lz4/lz4.git \ file://run-ptest \ -- 2.17.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH] orc: update to 0.4.29
Signed-off-by: Oleksandr Kravchuk --- meta/recipes-devtools/orc/{orc_0.4.28.bb => orc_0.4.29.bb} | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) rename meta/recipes-devtools/orc/{orc_0.4.28.bb => orc_0.4.29.bb} (84%) diff --git a/meta/recipes-devtools/orc/orc_0.4.28.bb b/meta/recipes-devtools/orc/orc_0.4.29.bb similarity index 84% rename from meta/recipes-devtools/orc/orc_0.4.28.bb rename to meta/recipes-devtools/orc/orc_0.4.29.bb index 03cddad8bb..8313576ab4 100644 --- a/meta/recipes-devtools/orc/orc_0.4.28.bb +++ b/meta/recipes-devtools/orc/orc_0.4.29.bb @@ -4,9 +4,8 @@ LICENSE = "BSD-2-Clause & BSD-3-Clause" LIC_FILES_CHKSUM = "file://COPYING;md5=1400bd9d09e8af56b9ec982b3d85797e" SRC_URI = "http://gstreamer.freedesktop.org/src/orc/orc-${PV}.tar.xz"; - -SRC_URI[md5sum] = "6b582ec4b3275c5efd51e3ae6406d445" -SRC_URI[sha256sum] = "bfcd7c6563b05672386c4eedfc4c0d4a0a12b4b4775b74ec6deb88fc2bcd83ce" +SRC_URI[md5sum] = "25799917c7d31a891d5e32b83ad08f6d" +SRC_URI[sha256sum] = "4f8901f9144b5ec17dffdb33548b5f4c7f8049b0d1023be3462cdd64ec5a3ab2" inherit autotools pkgconfig gtk-doc -- 2.17.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH] help2man-native: update to 1.47.10
Signed-off-by: Oleksandr Kravchuk --- ...{help2man-native_1.47.6.bb => help2man-native_1.47.10.bb} | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) rename meta/recipes-devtools/help2man/{help2man-native_1.47.6.bb => help2man-native_1.47.10.bb} (79%) diff --git a/meta/recipes-devtools/help2man/help2man-native_1.47.6.bb b/meta/recipes-devtools/help2man/help2man-native_1.47.10.bb similarity index 79% rename from meta/recipes-devtools/help2man/help2man-native_1.47.6.bb rename to meta/recipes-devtools/help2man/help2man-native_1.47.10.bb index 794d308cb7..5feaeea139 100644 --- a/meta/recipes-devtools/help2man/help2man-native_1.47.6.bb +++ b/meta/recipes-devtools/help2man/help2man-native_1.47.10.bb @@ -5,9 +5,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" DEPENDS = "autoconf-native automake-native" SRC_URI = "${GNU_MIRROR}/${BPN}/${BPN}-${PV}.tar.xz" - -SRC_URI[md5sum] = "7424901e6eca8af372d2ad62be5cf659" -SRC_URI[sha256sum] = "d91b0295b72a638e4a564f643e4e6d1928779131f628c00f356c13bf336de46f" +SRC_URI[md5sum] = "0d70833650a552e0af742882ba84f2ee" +SRC_URI[sha256sum] = "f371cbfd63f879065422b58fa6b81e21870cd791ef6e11d4528608204aa4dcfb" inherit autotools native -- 2.17.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core