Re: [OE-core] [PATCH] gcc-9.2: Security fix for CVE-2019-14250

2019-09-02 Thread Mikko.Rapeli
On Mon, Sep 02, 2019 at 02:33:02PM -0700, akuster808 wrote:
> 
> 
> On 9/2/19 5:40 AM, Adrian Bunk wrote:
> > On Sun, Sep 01, 2019 at 10:07:13AM -0700, akuster808 wrote:
> >>
> >> On 9/1/19 7:05 AM, Adrian Bunk wrote:
> >>> thud and zeus are providing 2 gcc versions each that need fixing.
> >> That is a true statement. What are you expecting?
> > The other versions also being fixed?
> >
> > gcc-8 being fixed in warrior before it gets fixed in master would be
> > the wrong order, and would introduce a security regression in master.
> sent a patch. hope it is what is meant by the above.
> 
> >
> > The code should be nearly identical in warrior and master, so fixing
> > this also in gcc-8 in master should be trivial.
> >
> > Fixing gcc-7 in thud would be a bonus.

FWIW, gcc-7-branch of https://github.com/gcc-mirror/gcc.git has this fix 
already.

-Mikko

commit 740d8b3baeea47cd5407be1752c5159223f77042
Author: rguenth 
AuthorDate: Thu Jul 25 10:50:47 2019 +
Commit: rguenth 
CommitDate: Thu Jul 25 10:50:47 2019 +

2019-07-25  Richard Biener  

PR lto/90924
Backport from mainline
2019-07-12  Ren Kimura  

* simple-object-elf.c (simple_object_elf_match): Check zero value
shstrndx.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@273795 
138bc75d-0d04-0410-961f-82ee72b054a4

diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index b785e71..0ecdec0 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,12 @@
+2019-07-25  Richard Biener  
+
+   PR lto/90924
+   Backport from mainline
+   2019-07-12  Ren Kimura  
+
+   * simple-object-elf.c (simple_object_elf_match): Check zero value
+   shstrndx.
+
 2018-12-06  Release Manager
 
* GCC 7.4.0 released.
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH V3] dnf.py: installroot support usrmerge

2019-09-02 Thread changqing.li
From: Changqing Li 

Signed-off-by: Changqing Li 
---
 meta/lib/oeqa/runtime/cases/dnf.py | 34 +-
 1 file changed, 33 insertions(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/runtime/cases/dnf.py 
b/meta/lib/oeqa/runtime/cases/dnf.py
index 629b9af..80cc86a 100644
--- a/meta/lib/oeqa/runtime/cases/dnf.py
+++ b/meta/lib/oeqa/runtime/cases/dnf.py
@@ -9,7 +9,7 @@ from oeqa.utils.httpserver import HTTPService
 
 from oeqa.runtime.case import OERuntimeTestCase
 from oeqa.core.decorator.depends import OETestDepends
-from oeqa.core.decorator.data import skipIfNotDataVar, skipIfNotFeature
+from oeqa.core.decorator.data import skipIfNotDataVar, skipIfNotFeature, 
skipIfInDataVar, skipIfNotInDataVar
 from oeqa.runtime.decorator.package import OEHasPackage
 
 class DnfTest(OERuntimeTestCase):
@@ -116,6 +116,7 @@ class DnfRepoTest(DnfTest):
 self.dnf_with_repo('reinstall -y run-postinsts-dev')
 
 @OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache'])
+@skipIfInDataVar('DISTRO_FEATURES', 'usrmerge', 'Test run when not enable 
usrmerge')
 def test_dnf_installroot(self):
 rootpath = '/home/root/chroot/test'
 #Copy necessary files to avoid errors with not yet installed tools on
@@ -141,6 +142,37 @@ class DnfRepoTest(DnfTest):
 self.assertEqual(0, status, output)
 
 @OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache'])
+@skipIfNotInDataVar('DISTRO_FEATURES', 'usrmerge', 'Test run when enable 
usrmege')
+def test_dnf_installroot_usrmerge(self):
+rootpath = '/home/root/chroot/test'
+#Copy necessary files to avoid errors with not yet installed tools on
+#installroot directory.
+self.target.run('mkdir -p %s/etc' % rootpath, 1500)
+self.target.run('mkdir -p %s/usr/bin %s/usr/sbin' % (rootpath, 
rootpath), 1500)
+self.target.run('ln -sf -r %s/usr/bin %s/bin'  % (rootpath, rootpath), 
1500)
+self.target.run('ln -sf -r %s/usr/sbin %s/sbin'  % (rootpath, 
rootpath), 1500)
+self.target.run('mkdir -p %s/dev' % rootpath, 1500)
+#Handle different architectures lib dirs
+self.target.run('mkdir -p %s/usr/lib' % rootpath, 1500)
+self.target.run('mkdir -p %s/usr/libx32' % rootpath, 1500)
+self.target.run('mkdir -p %s/usr/lib64' % rootpath, 1500)
+self.target.run('cp /lib/libtinfo.so.5 %s/usr/lib' % rootpath, 1500)
+self.target.run('cp /libx32/libtinfo.so.5 %s/usr/libx32' % rootpath, 
1500)
+self.target.run('cp /lib64/libtinfo.so.5 %s/usr/lib64' % rootpath, 
1500)
+self.target.run('ln -sf -r %s/lib %s/usr/lib' % (rootpath,rootpath), 
1500)
+self.target.run('ln -sf -r %s/libx32 %s/usr/libx32' % 
(rootpath,rootpath), 1500)
+self.target.run('ln -sf -r %s/lib64 %s/usr/lib64' % 
(rootpath,rootpath), 1500)
+self.target.run('cp -r /etc/rpm %s/etc' % rootpath, 1500)
+self.target.run('cp -r /etc/dnf %s/etc' % rootpath, 1500)
+self.target.run('cp /bin/sh %s/bin' % rootpath, 1500)
+self.target.run('mount -o bind /dev %s/dev/' % rootpath, 1500)
+self.dnf_with_repo('install --installroot=%s -v -y 
--rpmverbosity=debug busybox run-postinsts' % rootpath)
+status, output = self.target.run('test -e %s/var/cache/dnf' % 
rootpath, 1500)
+self.assertEqual(0, status, output)
+status, output = self.target.run('test -e %s/bin/busybox' % rootpath, 
1500)
+self.assertEqual(0, status, output)
+
+@OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache'])
 def test_dnf_exclude(self):
 excludepkg = 'curl-dev'
 self.dnf_with_repo('install -y curl*')
-- 
2.7.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] python-numpy: rdepend on multiprocessing module

2019-09-02 Thread Chen Qi
`import numpy.distutils' gives people the following error.

  ModuleNotFoundError: No module named 'multiprocessing'

Fix it by adding multiprocessing dependency.

Signed-off-by: Chen Qi 
---
 meta/recipes-devtools/python-numpy/python-numpy.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/python-numpy/python-numpy.inc 
b/meta/recipes-devtools/python-numpy/python-numpy.inc
index 1c6047ab07..a12e72f964 100644
--- a/meta/recipes-devtools/python-numpy/python-numpy.inc
+++ b/meta/recipes-devtools/python-numpy/python-numpy.inc
@@ -113,6 +113,7 @@ RDEPENDS_${PN} = "${PYTHON_PN}-unittest \
   ${PYTHON_PN}-compression \
   ${PYTHON_PN}-ctypes \
   ${PYTHON_PN}-threading \
+  ${PYTHON_PN}-multiprocessing \
 "
 
 RDEPENDS_${PN}_class-native = ""
-- 
2.17.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] gcc-9.2: Security fix for CVE-2019-14250

2019-09-02 Thread Adrian Bunk
On Mon, Sep 02, 2019 at 02:33:02PM -0700, akuster808 wrote:
> 
> 
> On 9/2/19 5:40 AM, Adrian Bunk wrote:
> > On Sun, Sep 01, 2019 at 10:07:13AM -0700, akuster808 wrote:
> >>
> >> On 9/1/19 7:05 AM, Adrian Bunk wrote:
> >>> thud and zeus are providing 2 gcc versions each that need fixing.
> >> That is a true statement. What are you expecting?
> > The other versions also being fixed?
> >
> > gcc-8 being fixed in warrior before it gets fixed in master would be
> > the wrong order, and would introduce a security regression in master.
> sent a patch. hope it is what is meant by the above.

Thanks a lot!

cu
Adrian

-- 

   "Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
   "Only a promise," Lao Er said.
   Pearl S. Buck - Dragon Seed

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] lttng: babeltrace: Fix negative clock offset

2019-09-02 Thread zhe.he
From: He Zhe 

Backport a patch to fix negative clock offset with the following errors, when
when using lttng to view traces.
[error] ctf_clock_declaration_visit: unexpected unary expression for clock 
offset
[error] ctf_visitor_construct_metadata: clock declaration error
[error] Error in CTF metadata constructor -22

Signed-off-by: He Zhe 
---
 meta/recipes-kernel/lttng/babeltrace_1.5.7.bb  |   4 +-
 ...andle-negative-time-and-offset-from-Epoch.patch | 853 +
 2 files changed, 856 insertions(+), 1 deletion(-)
 create mode 100644 
meta/recipes-kernel/lttng/files/0001-Handle-negative-time-and-offset-from-Epoch.patch

diff --git a/meta/recipes-kernel/lttng/babeltrace_1.5.7.bb 
b/meta/recipes-kernel/lttng/babeltrace_1.5.7.bb
index 05ef6d0..4b9343d 100644
--- a/meta/recipes-kernel/lttng/babeltrace_1.5.7.bb
+++ b/meta/recipes-kernel/lttng/babeltrace_1.5.7.bb
@@ -7,7 +7,9 @@ LIC_FILES_CHKSUM = 
"file://LICENSE;md5=76ba15dd76a248e1dd526bca0e2125fa"
 
 DEPENDS = "glib-2.0 util-linux popt bison-native flex-native"
 
-SRC_URI = 
"git://git.linuxfoundation.org/diamon/babeltrace.git;branch=stable-1.5"
+SRC_URI = 
"git://git.linuxfoundation.org/diamon/babeltrace.git;branch=stable-1.5 \
+   file://0001-Handle-negative-time-and-offset-from-Epoch.patch \
+  "
 SRCREV = "d4014aeef4b89a4aaab1af42d7b0d143d62da0ff"
 UPSTREAM_CHECK_GITTAGREGEX = "v(?P\d+(\.\d+)+)$"
 
diff --git 
a/meta/recipes-kernel/lttng/files/0001-Handle-negative-time-and-offset-from-Epoch.patch
 
b/meta/recipes-kernel/lttng/files/0001-Handle-negative-time-and-offset-from-Epoch.patch
new file mode 100644
index 000..f93fea7
--- /dev/null
+++ 
b/meta/recipes-kernel/lttng/files/0001-Handle-negative-time-and-offset-from-Epoch.patch
@@ -0,0 +1,853 @@
+From d6480f9dc6a6f6536da6c3df59006ba67ef0f622 Mon Sep 17 00:00:00 2001
+From: Mathieu Desnoyers 
+Date: Wed, 14 Aug 2019 13:24:31 +0800
+Subject: [PATCH] Handle negative time and offset from Epoch
+
+Handle cases where a trace have a negative offset from Epoch.
+If Epoch is arbitrary (e.g. embedded system starting at 0, without any
+network access), the "0" can be used as correlation point between
+various components, and some components could start before the
+correlation point. Therefore, especially in traces where the time is
+meant to be shown in nanoseconds or cycles from the correlation point,
+it also makes sense to have a negative time value.
+
+It introduces API-breaking changes in the C and Python APIs, since we
+need to be able to return negative time values, which were previously
+used as errors (-1ULL).
+
+The --offset and --offset-ns command line parameters can now take
+negative offset (seconds and nanoseconds) values too.
+
+The [sec.ns] format is used as fallback so we don't attempt to pass
+a negative time value to POSIX time-formatting APIs.
+
+This also fixes an inaccurate return value in an error path of
+bt_ctf_event_populate_event_header().
+
+Signed-off-by: Mathieu Desnoyers 
+
+Upstream-Status: Backport[61cf588beae752e5ddfc60b6b5310f769ac9e852]
+
+Signed-off-by: He Zhe 
+---
+ converter/babeltrace.c |   4 +-
+ formats/ctf-text/ctf-text.c|   2 +-
+ formats/ctf/ctf.c  | 115 +++--
+ formats/ctf/events-private.h   |  11 +-
+ formats/ctf/events.c   |  11 +-
+ .../ctf/metadata/ctf-visitor-generate-io-struct.c  |   2 +-
+ include/babeltrace/babeltrace-internal.h   |   8 +-
+ include/babeltrace/clock-internal.h|   2 +-
+ include/babeltrace/ctf-ir/clock-internal.h |   2 +-
+ include/babeltrace/ctf/events.h|   8 +-
+ include/babeltrace/ctf/types.h |   6 +-
+ include/babeltrace/format.h|  10 +-
+ include/babeltrace/trace-handle-internal.h |   8 +-
+ include/babeltrace/trace-handle.h  |  25 +++--
+ lib/context.c  |  44 +---
+ lib/trace-handle.c |  40 +++
+ tests/lib/test_ctf_writer.c|   6 +-
+ tests/lib/test_seek.c  |  26 ++---
+ 18 files changed, 209 insertions(+), 121 deletions(-)
+
+diff --git a/converter/babeltrace.c b/converter/babeltrace.c
+index ef783ed..2ac1617 100644
+--- a/converter/babeltrace.c
 b/converter/babeltrace.c
+@@ -375,7 +375,7 @@ static int parse_options(int argc, char **argv)
+   goto end;
+   }
+   errno = 0;
+-  opt_clock_offset = strtoull(str, , 0);
++  opt_clock_offset = strtoll(str, , 0);
+   if (*endptr != '\0' || str == endptr || errno != 0) {
+   fprintf(stderr, "[error] Incorrect 
--clock-offset argument: %s\n", str);
+   ret = -EINVAL;
+@@ -400,7 +400,7 

[OE-core] [PATCH] logrotate:upgrade 3.15.0 -> 3.15.1

2019-09-02 Thread Zang Ruochen
Signed-off-by: Zang Ruochen 
---
 .../logrotate/{logrotate_3.15.0.bb => logrotate_3.15.1.bb}| 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-extended/logrotate/{logrotate_3.15.0.bb => 
logrotate_3.15.1.bb} (96%)

diff --git a/meta/recipes-extended/logrotate/logrotate_3.15.0.bb 
b/meta/recipes-extended/logrotate/logrotate_3.15.1.bb
similarity index 96%
rename from meta/recipes-extended/logrotate/logrotate_3.15.0.bb
rename to meta/recipes-extended/logrotate/logrotate_3.15.1.bb
index 0f3da2b..7c7d51b 100644
--- a/meta/recipes-extended/logrotate/logrotate_3.15.0.bb
+++ b/meta/recipes-extended/logrotate/logrotate_3.15.1.bb
@@ -25,8 +25,8 @@ SRC_URI = 
"https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.xz
 file://disable-check-different-filesystems.patch \
 "
 
-SRC_URI[md5sum] = "320046f0b9fc38337e8827d4c5a866a0"
-SRC_URI[sha256sum] = 
"313612c4776a305393454c874ef590d8acf84c9ffa648717731dfe902284ff8f"
+SRC_URI[md5sum] = "afe109afea749c306ff489203fde6beb"
+SRC_URI[sha256sum] = 
"491fec9e89f1372f02a0ab66579aa2e9d63cac5178dfa672c204c88e693a908b"
 
 PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)}"
 
-- 
2.7.4



-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] python-testtools: rdepend on doctest module

2019-09-02 Thread Chen Qi
`import testtools' will give people error for lacking of
doctest module. Add it to RDEPENDS to solve the issue.

Signed-off-by: Chen Qi 
---
 meta/recipes-devtools/python/python-testtools.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/python/python-testtools.inc 
b/meta/recipes-devtools/python/python-testtools.inc
index 1011c98a32..d0b2e46d7b 100644
--- a/meta/recipes-devtools/python/python-testtools.inc
+++ b/meta/recipes-devtools/python/python-testtools.inc
@@ -19,6 +19,7 @@ DEPENDS += " \
 "
 
 RDEPENDS_${PN} += "\
+${PYTHON_PN}-doctest \
 ${PYTHON_PN}-extras \
 ${PYTHON_PN}-pbr \
 ${PYTHON_PN}-six \
-- 
2.17.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] gcc-9.2: Security fix for CVE-2019-14250

2019-09-02 Thread akuster808



On 9/2/19 5:40 AM, Adrian Bunk wrote:
> On Sun, Sep 01, 2019 at 10:07:13AM -0700, akuster808 wrote:
>>
>> On 9/1/19 7:05 AM, Adrian Bunk wrote:
>>> thud and zeus are providing 2 gcc versions each that need fixing.
>> That is a true statement. What are you expecting?
> The other versions also being fixed?
>
> gcc-8 being fixed in warrior before it gets fixed in master would be
> the wrong order, and would introduce a security regression in master.
sent a patch. hope it is what is meant by the above.

>
> The code should be nearly identical in warrior and master, so fixing
> this also in gcc-8 in master should be trivial.
>
> Fixing gcc-7 in thud would be a bonus.
>
>> - armin
> cu
> Adrian
>

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] gcc-8.3: Security fix for CVE-2019-14250

2019-09-02 Thread Armin Kuster
From: Armin Kuster 

Affects < 9.2

Signed-off-by: Armin Kuster 
Signed-off-by: Armin Kuster 
---
 meta/recipes-devtools/gcc/gcc-8.3.inc  |  1 +
 .../gcc/gcc-8.3/CVE-2019-14250.patch   | 44 ++
 2 files changed, 45 insertions(+)
 create mode 100644 meta/recipes-devtools/gcc/gcc-8.3/CVE-2019-14250.patch

diff --git a/meta/recipes-devtools/gcc/gcc-8.3.inc 
b/meta/recipes-devtools/gcc/gcc-8.3.inc
index 1781ff5..4b0d6f2 100644
--- a/meta/recipes-devtools/gcc/gcc-8.3.inc
+++ b/meta/recipes-devtools/gcc/gcc-8.3.inc
@@ -73,6 +73,7 @@ SRC_URI = "\

file://0041-Add-a-recursion-limit-to-libiberty-s-demangling-code.patch \
file://0042-PR-debug-86964.patch \

file://0043-PR85434-Prevent-spilling-of-stack-protector-guard-s-.patch \
+   file://CVE-2019-14250.patch \
 "
 SRC_URI[md5sum] = "65b210b4bfe7e060051f799e0f994896"
 SRC_URI[sha256sum] = 
"64baadfe6cc0f4947a84cb12d7f0dfaf45bb58b7e92461639596c21e02d97d2c"
diff --git a/meta/recipes-devtools/gcc/gcc-8.3/CVE-2019-14250.patch 
b/meta/recipes-devtools/gcc/gcc-8.3/CVE-2019-14250.patch
new file mode 100644
index 000..e327684
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-8.3/CVE-2019-14250.patch
@@ -0,0 +1,44 @@
+From a4f1b58eb48b349a5f353bc69c30be553506d33b Mon Sep 17 00:00:00 2001
+From: rguenth 
+Date: Thu, 25 Jul 2019 10:48:26 +
+Subject: [PATCH] 2019-07-25  Richard Biener  
+
+   PR lto/90924
+   Backport from mainline
+   2019-07-12  Ren Kimura  
+
+   * simple-object-elf.c (simple_object_elf_match): Check zero value
+   shstrndx.
+
+
+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-8-branch@273794 
138bc75d-0d04-0410-961f-82ee72b054a4
+
+Upstream-Status: Backport
+Affectes: <  9.2
+CVE: CVE-2019-14250
+Dropped changelog
+Signed-off-by: Armin Kuster 
+
+---
+ libiberty/simple-object-elf.c | 8 
+ 2 files changed, 17 insertions(+)
+
+Index: gcc-8.2.0/libiberty/simple-object-elf.c
+===
+--- gcc-8.2.0.orig/libiberty/simple-object-elf.c
 gcc-8.2.0/libiberty/simple-object-elf.c
+@@ -549,6 +549,14 @@ simple_object_elf_match (unsigned char h
+   return NULL;
+ }
+ 
++  if (eor->shstrndx == 0)
++{
++  *errmsg = "invalid ELF shstrndx == 0";
++  *err = 0;
++  XDELETE (eor);
++  return NULL;
++}
++
+   return (void *) eor;
+ }
+ 
-- 
2.7.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] qemu-native fix for latest kernel update

2019-09-02 Thread akuster808
Benjamin,



On 9/2/19 8:09 AM, Benjamin Esquivel wrote:
> qemu-native fix for latest kernel update
>
> Thanks Armin for sending the fix for the latest kernel updates, my
> build strangely started failing about a week or 2 ago after the latest
> dnf update.
>

Glad it fixed your issue.

Thanks for the feedback.

- armin
>
>  
>
> Regards,
>
>  
>
> Benjamin
>

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [OE-Core][PATCH] iputils: Set prefix correctly for usrmerge

2019-09-02 Thread Alex Kiernan
On Mon, Sep 2, 2019 at 7:45 PM Ross Burton  wrote:
>
> On 02/09/2019 11:04, Alex Kiernan wrote:
> > -EXTRA_OEMESON += "--prefix=/"
> > +EXTRA_OEMESON += "--prefix=${prefix}"
>
> Probably good to explicitly point out that this moves all of the
> binaries in the non-usrmerge case.  Did you test that the system still
> works with these moved when usrmerge isn't enabled?
>

I didn't, nor was it my intention to move them :(

I'll redo it with root_prefix, which I think should get us what I intended...

-- 
Alex Kiernan
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] systemd: explicitly set the path to nologin

2019-09-02 Thread Ross Burton
Set the path to nologin as with sulogin etc so we don't try to execute binaries
from the build path on the target (as the build finds a nologin in the sysroot
at build time).

Signed-off-by: Ross Burton 
---
 meta/recipes-core/systemd/systemd_242.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/systemd/systemd_242.bb 
b/meta/recipes-core/systemd/systemd_242.bb
index 6fbb8548868..759d6af6022 100644
--- a/meta/recipes-core/systemd/systemd_242.bb
+++ b/meta/recipes-core/systemd/systemd_242.bb
@@ -206,6 +206,7 @@ EXTRA_OEMESON += "-Dkexec-path=${sbindir}/kexec \
   -Dquotacheck-path=${sbindir}/quotacheck \
   -Dquotaon-path=${sbindir}/quotaon \
   -Dsulogin-path=${base_sbindir}/sulogin \
+  -Dnologin-path=${base_sbindir}/nologin \
   -Dumount-path=${base_bindir}/umount"
 
 do_install() {
-- 
2.20.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [OE-Core][PATCH] iputils: Set prefix correctly for usrmerge

2019-09-02 Thread Ross Burton

On 02/09/2019 11:04, Alex Kiernan wrote:

-EXTRA_OEMESON += "--prefix=/"
+EXTRA_OEMESON += "--prefix=${prefix}"


Probably good to explicitly point out that this moves all of the 
binaries in the non-usrmerge case.  Did you test that the system still 
works with these moved when usrmerge isn't enabled?


Ross
--
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] gcc-9.2: Security fix for CVE-2019-14250

2019-09-02 Thread akuster808



On 9/2/19 5:40 AM, Adrian Bunk wrote:
> On Sun, Sep 01, 2019 at 10:07:13AM -0700, akuster808 wrote:
>>
>> On 9/1/19 7:05 AM, Adrian Bunk wrote:
>>> thud and zeus are providing 2 gcc versions each that need fixing.
>> That is a true statement. What are you expecting?
> The other versions also being fixed?
By whom?

>
> gcc-8 being fixed in warrior before it gets fixed in master would be
> the wrong order, and would introduce a security regression in master.
Warrior mainline does not have this fix nor does Thud. There is nothing
wrong doing all the prep-work so changes can land in the the proper
order. I am fine if they don't get accepted.


>
> The code should be nearly identical in warrior and master, so fixing
> this also in gcc-8 in master should be trivial.
If I find some additional free time and resources, I might be able to
swing that. We currently don't validate the Alt gcc's and they add a
maintenance burden.

IMHO, the older one should be dropped, like we did for Warrior.

>
> Fixing gcc-7 in thud would be a bonus.

Patches welcome for the bonus.

- armin
>
>> - armin
> cu
> Adrian
>


-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] qemu-native fix for latest kernel update

2019-09-02 Thread Benjamin Esquivel
Thanks Armin for sending the fix for the latest kernel updates, my build 
strangely started failing about a week or 2 ago after the latest dnf update.

 
Regards,

 
Benjamin

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] systemd: provides ${base_sbindir}/udevadm for backward compatible

2019-09-02 Thread kai.kang
From: Kai Kang 

Create link file ${base_sbindir}/udevadm for backward compatible that
some existing udev rules require it. eudev has the link file already.

Signed-off-by: Kai Kang 
---
 meta/recipes-core/systemd/systemd_242.bb | 4 
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-core/systemd/systemd_242.bb 
b/meta/recipes-core/systemd/systemd_242.bb
index 6fbb854886..55661cdf7a 100644
--- a/meta/recipes-core/systemd/systemd_242.bb
+++ b/meta/recipes-core/systemd/systemd_242.bb
@@ -281,6 +281,9 @@ do_install() {
fi
fi
 
+   # create link for existing udev rules
+   ln -s ${base_bindir}/udevadm ${D}${base_sbindir}/udevadm
+
# duplicate udevadm for postinst script
install -d ${D}${libexecdir}
ln ${D}${base_bindir}/udevadm ${D}${libexecdir}/${MLPREFIX}udevadm
@@ -598,6 +601,7 @@ FILES_udev += "${base_sbindir}/udevd \
${systemd_unitdir}/system/*udev* \
${systemd_unitdir}/system/*.wants/*udev* \
${base_bindir}/udevadm \
+   ${base_sbindir}/udevadm \
${libexecdir}/${MLPREFIX}udevadm \
${datadir}/bash-completion/completions/udevadm \
   "
-- 
2.20.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] gcc-9.2: Security fix for CVE-2019-14250

2019-09-02 Thread Adrian Bunk
On Sun, Sep 01, 2019 at 10:07:13AM -0700, akuster808 wrote:
> 
> 
> On 9/1/19 7:05 AM, Adrian Bunk wrote:
> > thud and zeus are providing 2 gcc versions each that need fixing.
> That is a true statement. What are you expecting?

The other versions also being fixed?

gcc-8 being fixed in warrior before it gets fixed in master would be
the wrong order, and would introduce a security regression in master.

The code should be nearly identical in warrior and master, so fixing
this also in gcc-8 in master should be trivial.

Fixing gcc-7 in thud would be a bonus.

> - armin

cu
Adrian

-- 

   "Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
   "Only a promise," Lao Er said.
   Pearl S. Buck - Dragon Seed

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] QA check for package arch less specific than one of the dependency

2019-09-02 Thread Bedel, Alban
Hi all,

in a layer I'm using I noticed that some recipes used the default
generic architecture although they (build) depend on machine specific
recipes. As far as understand this is generally incorrect, a recipe
should never have a build dependency that has a more specific
architecture than the recipe itself.

Assuming this is correct would it be possible to have a QA check to
verify this? I gave it a shot but didn't found how I could get the
architecture of other recipes, any pointer on how that could be
realised?

Thanks,
Alban Bedel

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] devtool: Avoid failure for recipes with S == WORKDIR and no local files

2019-09-02 Thread Paul Eggleton
On Friday, 30 August 2019 8:43:02 AM NZST Peter Kjellerstedt wrote:
> When extracting the sources for a recipe that has S == WORKDIR and no
> local files in the SRC_URI (which, e.g., can happen for a recipe with
> a URI that has the unpack=false attribute), the extraction fails with
> the following backtrace:
> 
>   Traceback (most recent call last):
> File ".../scripts/devtool", line 344, in 
>   ret = main()
> File ".../scripts/devtool", line 331, in main
>   ret = args.func(args, config, basepath, workspace)
> File ".../poky/scripts/lib/devtool/standard.py", line 762, in
> modify
>   initial_rev, _ = _extract_source(srctree, args.keep_temp,
>   args.branch, False, config, basepath, workspace,
>   args.fixed_setup, rd, tinfoil, no_overrides=args.no_overrides)
> File ".../poky/scripts/lib/devtool/standard.py", line 647, in
> _extract_source
>   bb.process.run('git %s commit -a -m "Committing local file
>   symlinks\n\n%s"' % (' '.join(useroptions),
>   oe.patch.GitApplyTree.ignore_commit_prefix), cwd=srctree)
> File ".../poky/bitbake/lib/bb/process.py", line 178, in run
>   raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
>   bb.process.ExecutionError: Execution of 'git commit -a -m
>   "Committing local file symlinks
> 
>   %% ignore"' failed with exit code 1:
>   On branch devtool
>   nothing to commit, working tree clean
> 
> This is because no files were found in the oe-local-files directory
> and consequently no symbolic links were added using `git add`, but the
> `git commit` command was still executed.

Looks good to me - all oe-selftest tests pass as well. (Looks like maybe we 
are missing a test though, since this code has been in place for a while.)

Acked-by: Paul Eggleton 


-- 

Paul Eggleton
Intel Open Source Technology Centre


-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [OE-Core][PATCH] iputils: Set prefix correctly for usrmerge

2019-09-02 Thread Alex Kiernan
Fix build with usrmerge enabled:

  WARNING: iputils-s20190709-r0 do_package: iputils: alternative target 
(/usr/bin/ping or /usr/bin/ping.iputils) does not exist, skipping...
  WARNING: iputils-s20190709-r0 do_package: iputils: NOT adding alternative 
provide /usr/bin/ping: /usr/bin/ping.iputils does not exist
  ERROR: iputils-s20190709-r0 do_package: QA Issue: iputils: Files/directories 
were installed but not shipped in any package:
/bin/tftpd
/bin/tracepath
/bin/arping
/bin/clockdiff
/bin/ping
/bin/traceroute6
/sbin/rarpd
/sbin/ninfod
/sbin/rdisc
  Please set FILES such that these items are packaged. Alternatively if they 
are unneeded, avoid installing them or delete them within do_install.
  iputils: 9 installed and not shipped files. [installed-vs-shipped]
  WARNING: iputils-s20190709-r0 do_package: iputils: alt_link == alt_target: 
/usr/bin/ping == /usr/bin/ping

Signed-off-by: Alex Kiernan 
---

 meta/recipes-extended/iputils/iputils_s20190709.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-extended/iputils/iputils_s20190709.bb 
b/meta/recipes-extended/iputils/iputils_s20190709.bb
index 34a6c682607a..ce9f27f348ad 100644
--- a/meta/recipes-extended/iputils/iputils_s20190709.bb
+++ b/meta/recipes-extended/iputils/iputils_s20190709.bb
@@ -28,7 +28,7 @@ PACKAGECONFIG[docs] = "-DBUILD_HTML_MANS=true 
-DBUILD_MANS=true,-DBUILD_HTML_MAN
 
 inherit meson update-alternatives
 
-EXTRA_OEMESON += "--prefix=/"
+EXTRA_OEMESON += "--prefix=${prefix}"
 
 ALTERNATIVE_PRIORITY = "100"
 
-- 
2.17.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH V2] man-db: support usrmerge

2019-09-02 Thread changqing.li
From: Changqing Li 

Signed-off-by: Changqing Li 
---
 meta/recipes-extended/man-db/man-db_2.8.7.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-extended/man-db/man-db_2.8.7.bb 
b/meta/recipes-extended/man-db/man-db_2.8.7.bb
index bdf340a..083b237 100644
--- a/meta/recipes-extended/man-db/man-db_2.8.7.bb
+++ b/meta/recipes-extended/man-db/man-db_2.8.7.bb
@@ -18,7 +18,7 @@ USE_NLS_libc-musl = "no"
 
 inherit gettext pkgconfig autotools systemd
 
-EXTRA_OECONF = "--with-pager=less"
+EXTRA_OECONF = "--with-pager=less 
--with-systemdsystemunitdir=${systemd_unitdir}/system"
 EXTRA_AUTORECONF += "-I ${S}/gl/m4"
 
 do_install() {
-- 
2.7.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH V2] dnf.py: support usrmerge

2019-09-02 Thread changqing.li
From: Changqing Li 

Signed-off-by: Changqing Li 
---
 meta/lib/oeqa/runtime/cases/dnf.py | 34 +-
 1 file changed, 33 insertions(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/runtime/cases/dnf.py 
b/meta/lib/oeqa/runtime/cases/dnf.py
index 629b9af..9a5308f 100644
--- a/meta/lib/oeqa/runtime/cases/dnf.py
+++ b/meta/lib/oeqa/runtime/cases/dnf.py
@@ -9,7 +9,7 @@ from oeqa.utils.httpserver import HTTPService
 
 from oeqa.runtime.case import OERuntimeTestCase
 from oeqa.core.decorator.depends import OETestDepends
-from oeqa.core.decorator.data import skipIfNotDataVar, skipIfNotFeature
+from oeqa.core.decorator.data import skipIfNotDataVar, skipIfNotFeature, 
skipIfInDataVar, skipIfNotInDataVar
 from oeqa.runtime.decorator.package import OEHasPackage
 
 class DnfTest(OERuntimeTestCase):
@@ -116,6 +116,7 @@ class DnfRepoTest(DnfTest):
 self.dnf_with_repo('reinstall -y run-postinsts-dev')
 
 @OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache'])
+@skipIfInDataVar('DISTRO_FEATURES', 'usrmerge', 'Test run when not enable 
usrmerge')
 def test_dnf_installroot(self):
 rootpath = '/home/root/chroot/test'
 #Copy necessary files to avoid errors with not yet installed tools on
@@ -141,6 +142,37 @@ class DnfRepoTest(DnfTest):
 self.assertEqual(0, status, output)
 
 @OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache'])
+@skipIfNotInDataVar('DISTRO_FEATURES', 'usrmerge', 'Test run when enable 
usrmege')
+def test_dnf_installroot_usrmerge(self):
+rootpath = '/home/root/chroot/test'
+#Copy necessary files to avoid errors with not yet installed tools on
+#installroot directory.
+self.target.run('mkdir -p %s/etc' % rootpath, 1500)
+self.target.run('mkdir -p %s/usr/bin %s/usr/sbin' % (rootpath, 
rootpath), 1500)
+self.target.run('ln -sf -r %s/usr/bin %s/bin'  % (rootpath, rootpath), 
1500)
+self.target.run('ln -sf -r %s/usr/sbin %s/sbin'  % (rootpath, 
rootpath), 1500)
+self.target.run('mkdir -p %s/dev' % rootpath, 1500)
+#Handle different architectures lib dirs
+self.target.run('mkdir -p %s/usr/lib' % rootpath, 1500)
+self.target.run('mkdir -p %s/usr/libx32' % rootpath, 1500)
+self.target.run('mkdir -p %s/usr/lib64' % rootpath, 1500)
+self.target.run('cp /lib/libtinfo.so.5 %s/usr/lib' % rootpath, 1500)
+self.target.run('cp /libx32/libtinfo.so.5 %s/usr/libx32' % rootpath, 
1500)
+self.target.run('cp /lib64/libtinfo.so.5 %s/usr/lib64' % rootpath, 
1500)
+self.target.run('ln -ef -r %s/lib %s/usr/lib' % (rootpath,rootpath), 
1500)
+self.target.run('ln -ef -r %s/libx32 %s/usr/libx32' % 
(rootpath,rootpath), 1500)
+self.target.run('ln -ef -r %s/lib64 %s/usr/lib64' % 
(rootpath,rootpath), 1500)
+self.target.run('cp -r /etc/rpm %s/etc' % rootpath, 1500)
+self.target.run('cp -r /etc/dnf %s/etc' % rootpath, 1500)
+self.target.run('cp /bin/sh %s/bin' % rootpath, 1500)
+self.target.run('mount -o bind /dev %s/dev/' % rootpath, 1500)
+self.dnf_with_repo('install --installroot=%s -v -y 
--rpmverbosity=debug busybox run-postinsts' % rootpath)
+status, output = self.target.run('test -e %s/var/cache/dnf' % 
rootpath, 1500)
+self.assertEqual(0, status, output)
+status, output = self.target.run('test -e %s/bin/busybox' % rootpath, 
1500)
+self.assertEqual(0, status, output)
+
+@OETestDepends(['dnf.DnfRepoTest.test_dnf_makecache'])
 def test_dnf_exclude(self):
 excludepkg = 'curl-dev'
 self.dnf_with_repo('install -y curl*')
-- 
2.7.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] kernel-fitimage: uboot-sign: fix missing signature

2019-09-02 Thread Jun Nie
Hi Richard,

Any concern on cherry-pick this patch to warrior-dev branch?

Regards,
Jun
>
> Jun Nie  于2019年7月25日周四 下午4:26写道:
> >
> > Jun Nie  于2019年7月10日周三 下午3:11写道:
> > >
> > > u-boot.bin with dtb & signature should be placed in ${B} so that
> > > it can be deployed by u-boot as expected. Otherwise, the version
> > > without signature is installed.
> > >
> > > Signed-off-by: Jun Nie 
> >
> > Hi Richard,
> >
> > Could you also help to cherry pick this patch to warrior branch?
> >
> > Thanks!
> > Jun
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] meta-environment: make rpm and dnf work in toolchain

2019-09-02 Thread Alexander Kanavin
On Mon, 2 Sep 2019 at 03:16, Zheng Ruoqin 
wrote:

> We need to configure dnf and rpm to use and make it compatible with
> package architecture from yocto build system.
> +
> +mkdir -p ${D}/${SDKTARGETSYSROOT}/etc/rpm
> +echo "arch_compat: ${MACHINE_ARCH}: ${PACKAGE_ARCHS}" >
> ${D}/${SDKTARGETSYSROOT}/etc/rpmrc
> +sed -i 's/-nativesdk//g' ${D}/${SDKTARGETSYSROOT}/etc/rpmrc
> +sed -i 's/-/_/' ${D}/${SDKTARGETSYSROOT}/etc/rpmrc
> +echo "${MACHINE_ARCH}-pc-linux" >
> ${D}/${SDKTARGETSYSROOT}/etc/rpm/platform
> +
> +mkdir -p ${D}/${SDKTARGETSYSROOT}/etc/dnf/vars
> +echo "${DEFAULTTUNE}:${MACHINE_ARCH}:${TARGET_ARCH}" >
> ${D}/${SDKTARGETSYSROOT}/etc/dnf/vars/arch
> +sed -i 's/-/_/' ${D}/${SDKTARGETSYSROOT}/etc/dnf/vars/arch
>

This does not seem like the right place to me to adjust the settings. I
think (not sure; never tried it) that the right technique is in the
nativesdk-meson recipe:

install -d ${D}${SDKPATHNATIVE}/post-relocate-setup.d
install -m 0755 ${WORKDIR}/meson-setup.py
${D}${SDKPATHNATIVE}/post-relocate-setup.d/

# We need to wrap the real meson with a thin env setup wrapper.
mv ${D}${bindir}/meson ${D}${bindir}/meson.real
install -m 0755 ${WORKDIR}/meson-wrapper ${D}${bindir}/meson

Alex
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 1/1] build-compare: 2015.02.10 -> 2019.08-14

2019-09-02 Thread Robert Yang

Sorry, the subject should be:

2015.02.10 -> 2019.08.14 (not 08-14).

I've updated it in the PULL.

// Robert

On 9/2/19 4:11 PM, Robert Yang wrote:

* Removed the following patches which are already merged by upstream:
   0001-Add-support-for-deb-and-ipk-packaging.patch
   Rename-rpm-check.sh-to-pkg-diff.sh.patch
   functions.sh-improve-deb-and-ipk-checking.patch
   functions.sh-remove-space-at-head.patch
   functions.sh-run-rpm-once-to-make-it-faster.patch
   pkg-diff.sh-check-for-fifo-named-pipe.patch
   pkg-diff.sh-check_single_file-return-at-once-when-sa.patch
   pkg-diff.sh-remove-space-in-the-end-for-ftype.patch

* Rebased Ignore-DWARF-sections.patch

This version is very outstanding when compare binary packages, e.g.:
PRSERV_HOST = "localhost:0"
INHERIT += "packagefeed-stability"
PACKAGE_CLASSES = "package_ipk
$ bitbake opkg
$ find tmp/deploy/ipk >/tmp/ipk_1

Add a "bbnote 'hello'" to autotools.bbclass' autotools_do_configure.

* BEFORE the upgrading, the result is:
$ diff /tmp/ipk_1  /tmp/ipk_2 -Nur | diffstat
  ipk_2 | 1570 
+-
  1 file changed, 785 insertions(+), 785 deletions(-)

* AFTER the upgrading, the result is:
$ bitbake opkg
$ find tmp/deploy/ipk >/tmp/ipk_2
$ diff /tmp/ipk_1 /tmp/ipk_2 -Nur
No output

And if we really modifed a recipe such as opkg, then it would show that it is
changed.

For a full world build AFTER the upgrading:
$ diff /tmp/ipk_6 /tmp/ipk_7 -Nur | diffstat
  ipk_7 | 2090 
+-
  1 file changed, 1045 insertions(+), 1045 deletions(-)

There are 10968 packages in totall, 1045 ones have been changed, so we can still
improve it in the future.

Signed-off-by: Robert Yang 
---
  .../build-compare/build-compare_git.bb |   12 +-
  ...001-Add-support-for-deb-and-ipk-packaging.patch |   64 -
  .../files/Ignore-DWARF-sections.patch  |   17 +-
  .../files/Rename-rpm-check.sh-to-pkg-diff.sh.patch | 1599 
  ...functions.sh-improve-deb-and-ipk-checking.patch |  117 --
  .../files/functions.sh-remove-space-at-head.patch  |   41 -
  ...nctions.sh-run-rpm-once-to-make-it-faster.patch |  361 -
  .../pkg-diff.sh-check-for-fifo-named-pipe.patch|   35 -
  ...-check_single_file-return-at-once-when-sa.patch |   37 -
  ...diff.sh-remove-space-in-the-end-for-ftype.patch |   32 -
  10 files changed, 9 insertions(+), 2306 deletions(-)
  delete mode 100644 
meta/recipes-devtools/build-compare/files/0001-Add-support-for-deb-and-ipk-packaging.patch
  delete mode 100644 
meta/recipes-devtools/build-compare/files/Rename-rpm-check.sh-to-pkg-diff.sh.patch
  delete mode 100644 
meta/recipes-devtools/build-compare/files/functions.sh-improve-deb-and-ipk-checking.patch
  delete mode 100644 
meta/recipes-devtools/build-compare/files/functions.sh-remove-space-at-head.patch
  delete mode 100644 
meta/recipes-devtools/build-compare/files/functions.sh-run-rpm-once-to-make-it-faster.patch
  delete mode 100644 
meta/recipes-devtools/build-compare/files/pkg-diff.sh-check-for-fifo-named-pipe.patch
  delete mode 100644 
meta/recipes-devtools/build-compare/files/pkg-diff.sh-check_single_file-return-at-once-when-sa.patch
  delete mode 100644 
meta/recipes-devtools/build-compare/files/pkg-diff.sh-remove-space-in-the-end-for-ftype.patch

diff --git a/meta/recipes-devtools/build-compare/build-compare_git.bb 
b/meta/recipes-devtools/build-compare/build-compare_git.bb
index efcf6b6..b0560cc 100644
--- a/meta/recipes-devtools/build-compare/build-compare_git.bb
+++ b/meta/recipes-devtools/build-compare/build-compare_git.bb
@@ -6,22 +6,14 @@ LICENSE = "GPLv2"
  LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
  
  SRC_URI = "git://github.com/openSUSE/build-compare.git \

-   file://Rename-rpm-check.sh-to-pkg-diff.sh.patch;striplevel=1 \
 file://Ignore-DWARF-sections.patch;striplevel=1 \
-   file://0001-Add-support-for-deb-and-ipk-packaging.patch \
-   file://functions.sh-remove-space-at-head.patch \
-   file://functions.sh-run-rpm-once-to-make-it-faster.patch \
-   file://pkg-diff.sh-check-for-fifo-named-pipe.patch \
-   file://pkg-diff.sh-check_single_file-return-at-once-when-sa.patch \
-   file://pkg-diff.sh-remove-space-in-the-end-for-ftype.patch \
-   file://functions.sh-improve-deb-and-ipk-checking.patch \
 "
  
  # Date matches entry in build-compare.changes and date of SRCREV.

  #
-SRCREV = "c5352c054c6ef15735da31b76d6d88620f4aff0a"
+SRCREV = "4dfa207660776cae120afa4353aec7f1f2a998d2"
  PE = "1"
-PV = "2015.02.10+git${SRCPV}"
+PV = "2019.08.14+git${SRCPV}"
  UPSTREAM_CHECK_COMMITS = "1"
  
  S = "${WORKDIR}/git"

diff --git 
a/meta/recipes-devtools/build-compare/files/0001-Add-support-for-deb-and-ipk-packaging.patch
 
b/meta/recipes-devtools/build-compare/files/0001-Add-support-for-deb-and-ipk-packaging.patch
deleted file mode 

[OE-core] [PATCH 1/1] build-compare: 2015.02.10 -> 2019.08-14

2019-09-02 Thread Robert Yang
* Removed the following patches which are already merged by upstream:
  0001-Add-support-for-deb-and-ipk-packaging.patch
  Rename-rpm-check.sh-to-pkg-diff.sh.patch
  functions.sh-improve-deb-and-ipk-checking.patch
  functions.sh-remove-space-at-head.patch
  functions.sh-run-rpm-once-to-make-it-faster.patch
  pkg-diff.sh-check-for-fifo-named-pipe.patch
  pkg-diff.sh-check_single_file-return-at-once-when-sa.patch
  pkg-diff.sh-remove-space-in-the-end-for-ftype.patch

* Rebased Ignore-DWARF-sections.patch

This version is very outstanding when compare binary packages, e.g.:
PRSERV_HOST = "localhost:0"
INHERIT += "packagefeed-stability"
PACKAGE_CLASSES = "package_ipk
$ bitbake opkg
$ find tmp/deploy/ipk >/tmp/ipk_1

Add a "bbnote 'hello'" to autotools.bbclass' autotools_do_configure.

* BEFORE the upgrading, the result is:
$ diff /tmp/ipk_1  /tmp/ipk_2 -Nur | diffstat
 ipk_2 | 1570 +-
 1 file changed, 785 insertions(+), 785 deletions(-)

* AFTER the upgrading, the result is:
$ bitbake opkg
$ find tmp/deploy/ipk >/tmp/ipk_2
$ diff /tmp/ipk_1 /tmp/ipk_2 -Nur
No output

And if we really modifed a recipe such as opkg, then it would show that it is
changed.

For a full world build AFTER the upgrading:
$ diff /tmp/ipk_6 /tmp/ipk_7 -Nur | diffstat
 ipk_7 | 2090 +-
 1 file changed, 1045 insertions(+), 1045 deletions(-)

There are 10968 packages in totall, 1045 ones have been changed, so we can still
improve it in the future.

Signed-off-by: Robert Yang 
---
 .../build-compare/build-compare_git.bb |   12 +-
 ...001-Add-support-for-deb-and-ipk-packaging.patch |   64 -
 .../files/Ignore-DWARF-sections.patch  |   17 +-
 .../files/Rename-rpm-check.sh-to-pkg-diff.sh.patch | 1599 
 ...functions.sh-improve-deb-and-ipk-checking.patch |  117 --
 .../files/functions.sh-remove-space-at-head.patch  |   41 -
 ...nctions.sh-run-rpm-once-to-make-it-faster.patch |  361 -
 .../pkg-diff.sh-check-for-fifo-named-pipe.patch|   35 -
 ...-check_single_file-return-at-once-when-sa.patch |   37 -
 ...diff.sh-remove-space-in-the-end-for-ftype.patch |   32 -
 10 files changed, 9 insertions(+), 2306 deletions(-)
 delete mode 100644 
meta/recipes-devtools/build-compare/files/0001-Add-support-for-deb-and-ipk-packaging.patch
 delete mode 100644 
meta/recipes-devtools/build-compare/files/Rename-rpm-check.sh-to-pkg-diff.sh.patch
 delete mode 100644 
meta/recipes-devtools/build-compare/files/functions.sh-improve-deb-and-ipk-checking.patch
 delete mode 100644 
meta/recipes-devtools/build-compare/files/functions.sh-remove-space-at-head.patch
 delete mode 100644 
meta/recipes-devtools/build-compare/files/functions.sh-run-rpm-once-to-make-it-faster.patch
 delete mode 100644 
meta/recipes-devtools/build-compare/files/pkg-diff.sh-check-for-fifo-named-pipe.patch
 delete mode 100644 
meta/recipes-devtools/build-compare/files/pkg-diff.sh-check_single_file-return-at-once-when-sa.patch
 delete mode 100644 
meta/recipes-devtools/build-compare/files/pkg-diff.sh-remove-space-in-the-end-for-ftype.patch

diff --git a/meta/recipes-devtools/build-compare/build-compare_git.bb 
b/meta/recipes-devtools/build-compare/build-compare_git.bb
index efcf6b6..b0560cc 100644
--- a/meta/recipes-devtools/build-compare/build-compare_git.bb
+++ b/meta/recipes-devtools/build-compare/build-compare_git.bb
@@ -6,22 +6,14 @@ LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
 
 SRC_URI = "git://github.com/openSUSE/build-compare.git \
-   file://Rename-rpm-check.sh-to-pkg-diff.sh.patch;striplevel=1 \
file://Ignore-DWARF-sections.patch;striplevel=1 \
-   file://0001-Add-support-for-deb-and-ipk-packaging.patch \
-   file://functions.sh-remove-space-at-head.patch \
-   file://functions.sh-run-rpm-once-to-make-it-faster.patch \
-   file://pkg-diff.sh-check-for-fifo-named-pipe.patch \
-   file://pkg-diff.sh-check_single_file-return-at-once-when-sa.patch \
-   file://pkg-diff.sh-remove-space-in-the-end-for-ftype.patch \
-   file://functions.sh-improve-deb-and-ipk-checking.patch \
"
 
 # Date matches entry in build-compare.changes and date of SRCREV.
 #
-SRCREV = "c5352c054c6ef15735da31b76d6d88620f4aff0a"
+SRCREV = "4dfa207660776cae120afa4353aec7f1f2a998d2"
 PE = "1"
-PV = "2015.02.10+git${SRCPV}"
+PV = "2019.08.14+git${SRCPV}"
 UPSTREAM_CHECK_COMMITS = "1"
 
 S = "${WORKDIR}/git"
diff --git 
a/meta/recipes-devtools/build-compare/files/0001-Add-support-for-deb-and-ipk-packaging.patch
 
b/meta/recipes-devtools/build-compare/files/0001-Add-support-for-deb-and-ipk-packaging.patch
deleted file mode 100644
index 82fd816..000
--- 
a/meta/recipes-devtools/build-compare/files/0001-Add-support-for-deb-and-ipk-packaging.patch
+++ /dev/null
@@ -1,64 +0,0 @@
-From 

[OE-core] [PATCH 0/1] build-compare: 2015.02.10 -> 2019.08-14 (Outstanding improvements)

2019-09-02 Thread Robert Yang
The following changes since commit b4673b5befa339b2ffc3c274b105ab96d730ea2d:

  avahi: launch avahi-daemon after connman (2019-08-31 08:44:19 +0100)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib rbt/pu
  http://cgit.openembedded.org/openembedded-core-contrib/log/?h=rbt/pu

Robert Yang (1):
  build-compare: 2015.02.10 -> 2019.08-14

 .../build-compare/build-compare_git.bb |   12 +-
 ...001-Add-support-for-deb-and-ipk-packaging.patch |   64 -
 .../files/Ignore-DWARF-sections.patch  |   17 +-
 .../files/Rename-rpm-check.sh-to-pkg-diff.sh.patch | 1599 
 ...functions.sh-improve-deb-and-ipk-checking.patch |  117 --
 .../files/functions.sh-remove-space-at-head.patch  |   41 -
 ...nctions.sh-run-rpm-once-to-make-it-faster.patch |  361 -
 .../pkg-diff.sh-check-for-fifo-named-pipe.patch|   35 -
 ...-check_single_file-return-at-once-when-sa.patch |   37 -
 ...diff.sh-remove-space-in-the-end-for-ftype.patch |   32 -
 10 files changed, 9 insertions(+), 2306 deletions(-)
 delete mode 100644 
meta/recipes-devtools/build-compare/files/0001-Add-support-for-deb-and-ipk-packaging.patch
 delete mode 100644 
meta/recipes-devtools/build-compare/files/Rename-rpm-check.sh-to-pkg-diff.sh.patch
 delete mode 100644 
meta/recipes-devtools/build-compare/files/functions.sh-improve-deb-and-ipk-checking.patch
 delete mode 100644 
meta/recipes-devtools/build-compare/files/functions.sh-remove-space-at-head.patch
 delete mode 100644 
meta/recipes-devtools/build-compare/files/functions.sh-run-rpm-once-to-make-it-faster.patch
 delete mode 100644 
meta/recipes-devtools/build-compare/files/pkg-diff.sh-check-for-fifo-named-pipe.patch
 delete mode 100644 
meta/recipes-devtools/build-compare/files/pkg-diff.sh-check_single_file-return-at-once-when-sa.patch
 delete mode 100644 
meta/recipes-devtools/build-compare/files/pkg-diff.sh-remove-space-in-the-end-for-ftype.patch

-- 
2.7.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core