Re: [yocto] [opkg-devel] [opkg-utils] Question: why update-alternatives from opkg-utils chooses /usr/lib to hold database?

2019-03-05 Thread Alex Kiernan
On Tue, Mar 5, 2019 at 10:50 PM Richard Purdie
 wrote:
>
> On Tue, 2019-03-05 at 16:05 +, Alejandro Del Castillo wrote:
> >
> > On 3/5/19 12:11 AM, ChenQi wrote:
> > > Hi All,
> > >
> > > Recently I'm dealing with issue from which some discussion raises.
> > > I'd like to ask why update-alternatives from opkg-utils chooses
> > > /usr/lib
> > > to hold its alternatives database?
> > > I looked into debian, its update-alternatives chooses /var/lib by
> > > default.
> > > Is there some design consideration? Or some historical reason?
> >
> > Update-alternatives used to be on the opkg repo. I did a search
> > there
> > all the way to the first commit on 2008-12-15 [1], but even then
> > /usr/lib was used. I can't think of a design consideration that
> > would
> > make /usr/lib more palatable than the Debian default.
> >
> > Maybe someone with more knowledge of the previous history can chime
> > in?
> >
> > [1]
> > http://git.yoctoproject.org/clean/cgit.cgi/opkg/commit/?id=8bf49d16a637cca0cd116450dfcabc4c941baf6c
>
> I think the history is that the whole of /var was considered volatile
> and we wanted the alternatives data to stick around so it was put under
> /usr.
>
> That decision doesn't really make sense now since only parts of /var
> are volatile..
>

I don't use opkg (or in fact any package manager on a target), but I
do use OSTree, where my /var isn't part of what gets deployed to a
device 
(https://ostree.readthedocs.io/en/latest/manual/adapting-existing/#adapting-existing-package-managers)
so having the option to keep it in /usr would be important to anyone
who has mechanisms like that.

-- 
Alex Kiernan
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Incremental rebuild doesn't pick up FILES changes.

2019-03-05 Thread Kaz Kylheku (poky)

Hi,

I'm working in a Yocto 2.5 environment.

In my own layer, I added a bbappend targeting python which does this:

  FILES_${PN}_remove = "${libdir}/python2.7/encodings"

Now this didn't take effect as I expected. I had to do a "bitbake -c 
cleanall python" to rebuild the package.


In any case, all I have in the image now, as I expected, is these four 
files, vastly reduced from dozens:


  /usr/lib/python2.7/encodings/{aliases,utf-8}.{py,pyc}

Now, if I comment out this FILES_${PN}_remove variable assignment, I 
cannot get the previously removed encoding modules to re-appear in my 
image! I tried "bitbake -c cleanall" on python, and blowing away its 
build directory. It didn't work; still there are just those four files.


How do we get Yocto to react to FILES changes, short of blowing away the 
entire build tree?


--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [opkg-devel] [opkg-utils] Question: why update-alternatives from opkg-utils chooses /usr/lib to hold database?

2019-03-05 Thread Richard Purdie
On Tue, 2019-03-05 at 16:05 +, Alejandro Del Castillo wrote:
> 
> On 3/5/19 12:11 AM, ChenQi wrote:
> > Hi All,
> > 
> > Recently I'm dealing with issue from which some discussion raises.
> > I'd like to ask why update-alternatives from opkg-utils chooses
> > /usr/lib 
> > to hold its alternatives database?
> > I looked into debian, its update-alternatives chooses /var/lib by
> > default.
> > Is there some design consideration? Or some historical reason?
> 
> Update-alternatives used to be on the opkg repo. I did a search
> there 
> all the way to the first commit on 2008-12-15 [1], but even then 
> /usr/lib was used. I can't think of a design consideration that
> would 
> make /usr/lib more palatable than the Debian default.
> 
> Maybe someone with more knowledge of the previous history can chime
> in?
> 
> [1] 
> http://git.yoctoproject.org/clean/cgit.cgi/opkg/commit/?id=8bf49d16a637cca0cd116450dfcabc4c941baf6c

I think the history is that the whole of /var was considered volatile
and we wanted the alternatives data to stick around so it was put under
/usr.

That decision doesn't really make sense now since only parts of /var
are volatile..

Cheers,

Richard


-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [ANNOUNCEMENT] Milestone 2 for Yocto Project 2.7 (yocto-2.7_M2) now available

2019-03-05 Thread Tracy Graydon
We are pleased to announce the second milestone release for Yocto Project 2.7 
(yocto-2.7_M2) is available for download now.

Download:

http://downloads.yoctoproject.org/releases/yocto/milestones/yocto-2.7_M2/

poky: be52da152a4d9f9e798844f592ec9ae7e051c658
oecore: 2dbbf598192ae2b3aa488df042f56aa6c6634a00
bitbake: d73dbc3580faa1225d95ae4cefac4879ca3c1b2f
eclipse-poky-neon: cd86f167be58a11b289af4ef236b4adec57ec316
eclipse-poky-oxygen: 210c58c5a7147127f9c840718c6cd2a56e871718
meta-gplv2: aabc30f3bd03f97326fb8596910b94639fea7575
meta-intel: 29e4db5bf484f18e41bc9123161b1c069e60a128
meta-mingw: 423433e3d31a32dbb80203c628e808442d440ad1
meta-qt3: 23d7543ebd7e82ba95cbe19043ae4229bdb3b6b1
meta-qt4: b37d8b93924b314df3591b4a61e194ff3feb5517

Test report:

https://wiki.yoctoproject.org/wiki/WW07_-_2019-02-14_-_Full_Test_Cycle_2.7_M2_RC2

Thank you.

Tracy Graydon
Yocto Project Build and Release
tracy.gray...@intel.com
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-security][PATCH 7/7] swtpm: update to stable release 0.1.0

2019-03-05 Thread Armin Kuster
added PE

split cuse into its own package

Signed-off-by: Armin Kuster 
---
 .../swtpm/{swtpm_1.0.bb => swtpm_0.1.0.bb}| 19 ++-
 1 file changed, 10 insertions(+), 9 deletions(-)
 rename meta-tpm/recipes-tpm/swtpm/{swtpm_1.0.bb => swtpm_0.1.0.bb} (77%)

diff --git a/meta-tpm/recipes-tpm/swtpm/swtpm_1.0.bb 
b/meta-tpm/recipes-tpm/swtpm/swtpm_0.1.0.bb
similarity index 77%
rename from meta-tpm/recipes-tpm/swtpm/swtpm_1.0.bb
rename to meta-tpm/recipes-tpm/swtpm/swtpm_0.1.0.bb
index 3fe1393..42de8b1 100644
--- a/meta-tpm/recipes-tpm/swtpm/swtpm_1.0.bb
+++ b/meta-tpm/recipes-tpm/swtpm/swtpm_0.1.0.bb
@@ -9,11 +9,12 @@ DEPENDS = "libtasn1 expect socat glib-2.0 net-tools-native 
libtpm libtpm-native"
 # then swtpm_setup needs them at runtime
 DEPENDS += "tpm-tools-native expect-native socat-native"
 
-SRCREV = "94bb9f2d716d09bcc6cd2a2e033018f8592008e7"
-SRC_URI = "git://github.com/stefanberger/swtpm.git;branch=tpm2-preview.v2 \
+SRCREV = "d803d84575ab3e5dac316bf863c7f569a27ea35f"
+SRC_URI = "git://github.com/stefanberger/swtpm.git;branch=stable-${PV} \
file://fix_fcntl_h.patch \
file://ioctl_h.patch \
"
+PE = "1"
 
 S = "${WORKDIR}/git"
 
@@ -23,8 +24,9 @@ PARALLEL_MAKE = ""
 TSS_USER="tss"
 TSS_GROUP="tss"
 
-PACKAGECONFIG ?= "openssl cuse"
+PACKAGECONFIG ?= "openssl"
 PACKAGECONFIG += "${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 
'selinux', '', d)}"
+PACKAGECONFIG += "${@bb.utils.contains('BBFILE_COLLECTIONS', 
'filesystems-layer', 'cuse', '', d)}"
 PACKAGECONFIG[openssl] = "--with-openssl, --without-openssl, openssl"
 PACKAGECONFIG[gnutls] = "--with-gnutls, --without-gnutls, gnutls"
 PACKAGECONFIG[selinux] = "--with-selinux, --without-selinux, libselinux"
@@ -39,12 +41,11 @@ GROUPADD_PARAM_${PN} = "--system ${TSS_USER}"
 USERADD_PARAM_${PN} = "--system -g ${TSS_GROUP} --home-dir  \
 --no-create-home  --shell /bin/false ${BPN}"
 
+PACKAGE_BEFORE_PN = "${PN}-cuse"
+FILES_${PN}-cuse = "${bindir}/swtpm_cuse"
+
+INSANE_SKIP_${PN}   += "dev-so"
+
 RDEPENDS_${PN} = "libtpm expect socat bash tpm-tools"
 
 BBCLASSEXTEND = "native nativesdk"
-
-python() {
-if 'cuse' in d.getVar('PACKAGECONFIG') and \
-'filesystems-layer' not in d.getVar('BBFILE_COLLECTIONS').split():
-raise bb.parse.SkipRecipe('Cuse enabled which requires 
meta-filesystems to be present.')
-}
-- 
2.17.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-security][PATCH 6/7] libtpm: upate to stable 0.6.0

2019-03-05 Thread Armin Kuster
Add PE

This update include support for tpm2.0

Signed-off-by: Armin Kuster 
---
 .../recipes-tpm/libtpm/{libtpm_1.0.bb => libtpm_0.6.0.bb} | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)
 rename meta-tpm/recipes-tpm/libtpm/{libtpm_1.0.bb => libtpm_0.6.0.bb} (70%)

diff --git a/meta-tpm/recipes-tpm/libtpm/libtpm_1.0.bb 
b/meta-tpm/recipes-tpm/libtpm/libtpm_0.6.0.bb
similarity index 70%
rename from meta-tpm/recipes-tpm/libtpm/libtpm_1.0.bb
rename to meta-tpm/recipes-tpm/libtpm/libtpm_0.6.0.bb
index a930d7b..a882960 100644
--- a/meta-tpm/recipes-tpm/libtpm/libtpm_1.0.bb
+++ b/meta-tpm/recipes-tpm/libtpm/libtpm_0.6.0.bb
@@ -2,8 +2,10 @@ SUMMARY = "LIBPM - Software TPM Library"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=e73f0786a936da3814896df06ad225a9"
 
-SRCREV = "4111bd1bcf721e6e7b5f11ed9c2b93083677aa25"
-SRC_URI = "git://github.com/stefanberger/libtpms.git"
+SRCREV = "9dc915572b51db0714640ba1ddf8cca9c0f24f05"
+SRC_URI = "git://github.com/stefanberger/libtpms.git;branch=stable-${PV}"
+
+PE = "1"
 
 S = "${WORKDIR}/git"
 inherit autotools-brokensep pkgconfig
@@ -11,6 +13,4 @@ inherit autotools-brokensep pkgconfig
 PACKAGECONFIG ?= "openssl"
 PACKAGECONFIG[openssl] = "--with-openssl, --without-openssl, openssl"
 
-PV = "1.0+git${SRCPV}"
-
 BBCLASSEXTEND = "native"
-- 
2.17.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-security][PATCH 4/7] tpm2.o-tss: update to 2.4.1

2019-03-05 Thread Armin Kuster
LIC_FILES_CHKSUM changed to do SPDX ref being removed.

Signed-off-by: Armin Kuster 
---
 .../{tpm2.0-tss_2.0.1.bb => tpm2.0-tss_2.2.1.bb}| 13 +
 1 file changed, 9 insertions(+), 4 deletions(-)
 rename meta-tpm/recipes-tpm/tpm2.0-tss/{tpm2.0-tss_2.0.1.bb => 
tpm2.0-tss_2.2.1.bb} (86%)

diff --git a/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_2.0.1.bb 
b/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_2.2.1.bb
similarity index 86%
rename from meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_2.0.1.bb
rename to meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_2.2.1.bb
index 9d1ff72..4f9db50 100644
--- a/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_2.0.1.bb
+++ b/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_2.2.1.bb
@@ -1,19 +1,22 @@
 SUMMARY = "Software stack for TPM2."
 DESCRIPTION = "tpm2.0-tss like woah."
 LICENSE = "BSD-2-Clause"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=0b1d631c4218b72f6b05cb58613606f4"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=500b2e742befc3da00684d8a1d5fd9da"
 SECTION = "tpm"
 
-DEPENDS = "autoconf-archive-native libgcrypt"
+DEPENDS = "autoconf-archive-native libgcrypt openssl"
 
-SRCREV = "dc31e8dca9dbc77d16e419dc514ce8c526cd3351"
+SRCREV = "eb69e13559f20a0b49002a685c6f4a39be9503e2"
 
-SRC_URI = "git://github.com/tpm2-software/tpm2-tss.git;branch=2.0.x"
+SRC_URI = "git://github.com/tpm2-software/tpm2-tss.git;branch=2.2.x"
 
 inherit autotools-brokensep pkgconfig systemd
 
 S = "${WORKDIR}/git"
 
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[oxygen] = ",--disable-doxygen-doc, "
+
 do_configure_prepend () {
./bootstrap
 }
@@ -72,3 +75,5 @@ FILES_libtss2-dev = " \
 FILES_libtss2-staticdev = "${libdir}/libtss*a"
 
 FILES_${PN} = "${libdir}/udev"
+
+RDEPENDS_libtss2 = "libgcrypt"
-- 
2.17.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-security][PATCH 5/7] tpm2-abrmd: update to 2.1.0

2019-03-05 Thread Armin Kuster
Signed-off-by: Armin Kuster 
---
 .../tpm2-abrmd/{tpm2-abrmd_2.0.2.bb => tpm2-abrmd_2.1.0.bb}| 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
 rename meta-tpm/recipes-tpm/tpm2-abrmd/{tpm2-abrmd_2.0.2.bb => 
tpm2-abrmd_2.1.0.bb} (97%)

diff --git a/meta-tpm/recipes-tpm/tpm2-abrmd/tpm2-abrmd_2.0.2.bb 
b/meta-tpm/recipes-tpm/tpm2-abrmd/tpm2-abrmd_2.1.0.bb
similarity index 97%
rename from meta-tpm/recipes-tpm/tpm2-abrmd/tpm2-abrmd_2.0.2.bb
rename to meta-tpm/recipes-tpm/tpm2-abrmd/tpm2-abrmd_2.1.0.bb
index 6347379..0120360 100644
--- a/meta-tpm/recipes-tpm/tpm2-abrmd/tpm2-abrmd_2.0.2.bb
+++ b/meta-tpm/recipes-tpm/tpm2-abrmd/tpm2-abrmd_2.1.0.bb
@@ -18,7 +18,8 @@ SRC_URI = "\
 file://tpm2-abrmd-init.sh \
 file://tpm2-abrmd.default \
 "
-SRCREV = "d0120ace58d97bc9520c0d558657eaca87ae73b1"
+
+SRCREV = "e2f30eebd79079ed92952e78a6f8ab1c2c6194da"
 
 S = "${WORKDIR}/git"
 
-- 
2.17.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-security][PATCH 3/7] tpm2.0-tools: update 3.1.3

2019-03-05 Thread Armin Kuster
Signed-off-by: Armin Kuster 
---
 .../{tpm2.0-tools_3.1.2.bb => tpm2.0-tools_3.1.3.bb}| 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-tpm/recipes-tpm/tpm2.0-tools/{tpm2.0-tools_3.1.2.bb => 
tpm2.0-tools_3.1.3.bb} (88%)

diff --git a/meta-tpm/recipes-tpm/tpm2.0-tools/tpm2.0-tools_3.1.2.bb 
b/meta-tpm/recipes-tpm/tpm2.0-tools/tpm2.0-tools_3.1.3.bb
similarity index 88%
rename from meta-tpm/recipes-tpm/tpm2.0-tools/tpm2.0-tools_3.1.2.bb
rename to meta-tpm/recipes-tpm/tpm2.0-tools/tpm2.0-tools_3.1.3.bb
index 3f40eb7..22fae0b 100644
--- a/meta-tpm/recipes-tpm/tpm2.0-tools/tpm2.0-tools_3.1.2.bb
+++ b/meta-tpm/recipes-tpm/tpm2.0-tools/tpm2.0-tools_3.1.3.bb
@@ -6,7 +6,7 @@ SECTION = "tpm"
 
 DEPENDS = "pkgconfig tpm2.0-tss openssl curl autoconf-archive"
 
-SRCREV = "5e2f1aafc58e60c5050f85147a14914561f28ad9"
+SRCREV = "74ba065e5914bc5d713ca3709d62a5751b097369"
 
 SRC_URI = 
"git://github.com/01org/tpm2.0-tools.git;name=tpm2.0-tools;destsuffix=tpm2.0-tools;branch=3.X"
 
-- 
2.17.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-security][PATCH 2/7] keyutils: update to 1.6

2019-03-05 Thread Armin Kuster
remove patch now included in update:
keyutils-use-relative-path-for-link.patch

Signed-off-by: Armin Kuster 
---
 .../keyutils-use-relative-path-for-link.patch | 28 ---
 .../{keyutils_1.5.10.bb => keyutils_1.6.bb}   |  5 ++--
 2 files changed, 2 insertions(+), 31 deletions(-)
 delete mode 100644 
recipes-security/keyutils/files/keyutils-use-relative-path-for-link.patch
 rename recipes-security/keyutils/{keyutils_1.5.10.bb => keyutils_1.6.bb} (86%)

diff --git 
a/recipes-security/keyutils/files/keyutils-use-relative-path-for-link.patch 
b/recipes-security/keyutils/files/keyutils-use-relative-path-for-link.patch
deleted file mode 100644
index dde1af4..000
--- a/recipes-security/keyutils/files/keyutils-use-relative-path-for-link.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-Subject: [PATCH] keyutils: use relative path for link
-
-The absolute path of the symlink will be invalid
-when populated in sysroot, so use relative path instead.
-
-Upstream-Status: Pending
-
-Signed-off-by: Jackie Huang 

- Makefile | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/Makefile b/Makefile
-index 824bbbf..8ce3a13 100644
 a/Makefile
-+++ b/Makefile
-@@ -167,7 +167,7 @@ ifeq ($(NO_SOLIB),0)
-   $(INSTALL) -D $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBNAME)
-   $(LNS) $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SONAME)
-   mkdir -p $(DESTDIR)$(USRLIBDIR)
--  $(LNS) $(LIBDIR)/$(SONAME) $(DESTDIR)$(USRLIBDIR)/$(DEVELLIB)
-+  $(LNS) $(SONAME) $(DESTDIR)$(USRLIBDIR)/$(DEVELLIB)
- endif
-   $(INSTALL) -D keyctl $(DESTDIR)$(BINDIR)/keyctl
-   $(INSTALL) -D request-key $(DESTDIR)$(SBINDIR)/request-key
--- 
-2.11.0
-
diff --git a/recipes-security/keyutils/keyutils_1.5.10.bb 
b/recipes-security/keyutils/keyutils_1.6.bb
similarity index 86%
rename from recipes-security/keyutils/keyutils_1.5.10.bb
rename to recipes-security/keyutils/keyutils_1.6.bb
index a4222b9..1d7427d 100644
--- a/recipes-security/keyutils/keyutils_1.5.10.bb
+++ b/recipes-security/keyutils/keyutils_1.6.bb
@@ -16,14 +16,13 @@ LIC_FILES_CHKSUM = 
"file://LICENCE.GPL;md5=5f6e72824f5da505c1f4a7197f004b45 \
 inherit siteinfo ptest
 
 SRC_URI = "http://people.redhat.com/dhowells/keyutils/${BP}.tar.bz2 \
-   file://keyutils-use-relative-path-for-link.patch \
file://keyutils-test-fix-output-format.patch \
file://keyutils-fix-error-report-by-adding-default-message.patch \
file://run-ptest \
"
 
-SRC_URI[md5sum] = "3771676319bc7b84b1549b5c63ff5243"
-SRC_URI[sha256sum] = 
"115c3deae7f181778fd0e0ffaa2dad1bf1fe2f5677cf2e0e348cdb7a1c93afb6"
+SRC_URI[md5sum] = "191987b0ab46bb5b50efd70a6e6ce808"
+SRC_URI[sha256sum] = 
"d3aef20cec0005c0fa6b4be40079885567473185b1a57b629b030e67942c7115"
 
 EXTRA_OEMAKE = "'CFLAGS=${CFLAGS} -Wall' \
 NO_ARLIB=1 \
-- 
2.17.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [meta-security][PATCH 1/7] suricata: update to 4.0.6

2019-03-05 Thread Armin Kuster
includes: SMTP crash issue was fixed: CVE-2018-18956

Signed-off-by: Armin Kuster 
---
 .../suricata/{libhtp_0.5.27.bb => libhtp_0.5.28.bb} | 0
 recipes-security/suricata/suricata.inc  | 6 +++---
 .../suricata/{suricata_4.0.5.bb => suricata_4.0.6.bb}   | 0
 3 files changed, 3 insertions(+), 3 deletions(-)
 rename recipes-security/suricata/{libhtp_0.5.27.bb => libhtp_0.5.28.bb} (100%)
 rename recipes-security/suricata/{suricata_4.0.5.bb => suricata_4.0.6.bb} 
(100%)

diff --git a/recipes-security/suricata/libhtp_0.5.27.bb 
b/recipes-security/suricata/libhtp_0.5.28.bb
similarity index 100%
rename from recipes-security/suricata/libhtp_0.5.27.bb
rename to recipes-security/suricata/libhtp_0.5.28.bb
diff --git a/recipes-security/suricata/suricata.inc 
b/recipes-security/suricata/suricata.inc
index 1f42121..368b2e0 100644
--- a/recipes-security/suricata/suricata.inc
+++ b/recipes-security/suricata/suricata.inc
@@ -2,8 +2,8 @@ HOMEPAGE = "http://suricata-ids.org/";
 SECTION = "security Monitor/Admin"
 LICENSE = "GPLv2"
 
-VER = "4.0.5"
+VER = "4.0.6"
 SRC_URI = 
"http://www.openinfosecfoundation.org/download/suricata-${VER}.tar.gz";
 
-SRC_URI[md5sum] = "ea0cb823d6a86568152f75ade6de442f"
-SRC_URI[sha256sum] = 
"74dacb4359d57fbd3452e384eeeb1dd77b6ae00f02e9994ad5a7b461d5f4c6c2"
+SRC_URI[md5sum] = "e8e9a401fef3b3ca1027c268c38c8f4b"
+SRC_URI[sha256sum] = 
"cbab847b33fc625b7a92241fdce2e1ca47b8bb415c9114de70819394229679a4"
diff --git a/recipes-security/suricata/suricata_4.0.5.bb 
b/recipes-security/suricata/suricata_4.0.6.bb
similarity index 100%
rename from recipes-security/suricata/suricata_4.0.5.bb
rename to recipes-security/suricata/suricata_4.0.6.bb
-- 
2.17.1

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] YPTM minutes

2019-03-05 Thread sjolley.yp.pm
Yocto Technical Team Minutes for Mar. 5, 2019.

 

Attendees: Armin, Joshua, Randy, Richard, Joshua, Tim, Stephen, Tracey,
Michael, Alex,

 

YP Status: YP 2.7 M2 rc2 is being released today Mar. 5, 2019.

YP 2.7 M3 has a 4 items still to be resolved before the build.

YP 2.5.3 needs one major item to be resolved before it is built.

Richard discussed the status of M3 and the remaining work to be done, see
the status report.

Richard discussed the status of QA automation, need to backport the changes
to 2.5 and 2.6

Richard discussed the current SWAT status, need more attention and members.

Stephen discussed that next month's Technical meeting we will begin the
planning for YP 2.8.  The link for YP 2.7 Plan is at:

https://docs.google.com/document/d/15jB6nUJU2wrtnu6w07L9RZpNlj6AoxSTPEX5aELt
s1g/edit

Richard discussed the updates from YP Advisory Board, both Comcast upgrading
to Platinum and the new agreed to Governance plan for YP.  This allows the
creation of the YP TSC. (Technical Steering Committee.)

Richard discussed that we can't run vgl without GPU HW in the cluster. Need
to decide if we need GPU cards in any/all servers.

Richard discussed the status of bug 8729.

Armin discussed the changes planned for QA transition.  Need to update
documentation to reflect the changes. 

 

Thanks,

 

Stephen K. Jolley

Yocto Project Project Manager

*Cell:(208) 244-4460

* Email:  sjolley.yp...@gmail.com
 

 

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [opkg-devel] [opkg-utils] Question: why update-alternatives from opkg-utils chooses /usr/lib to hold database?

2019-03-05 Thread Alejandro Del Castillo



On 3/5/19 12:11 AM, ChenQi wrote:
> Hi All,
> 
> Recently I'm dealing with issue from which some discussion raises.
> I'd like to ask why update-alternatives from opkg-utils chooses /usr/lib 
> to hold its alternatives database?
> I looked into debian, its update-alternatives chooses /var/lib by default.
> Is there some design consideration? Or some historical reason?

Update-alternatives used to be on the opkg repo. I did a search there 
all the way to the first commit on 2008-12-15 [1], but even then 
/usr/lib was used. I can't think of a design consideration that would 
make /usr/lib more palatable than the Debian default.

Maybe someone with more knowledge of the previous history can chime in?

[1] 
http://git.yoctoproject.org/clean/cgit.cgi/opkg/commit/?id=8bf49d16a637cca0cd116450dfcabc4c941baf6c

> Best Regards,
> Chen Qi
> 

-- 
Cheers,

Alejandro
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Yocto Project Status WW10'19

2019-03-05 Thread sjolley.yp.pm
Current Dev Position: YP 2.7 M3 (New feature Freeze has begun.)

Next Deadline: YP 2.7 M3 Cutoff was Feb. 25, 2019

 

SWAT Team Rotation:

*   SWAT lead is currently: Ross
*   SWAT team rotation: Chen -> Anuj on Mar. 8, 2019
*   SWAT team rotation: Anuj -> Armin on Mar. 15, 2019
*
https://wiki.yoctoproject.org/wiki/Yocto_Build_Failure_Swat_Team

 

Key Status/Updates:

*   YP 2.7 M2 rc2 is being released today Mar. 5, 2019.
*   YP 2.7 M3 has not yet been built but progress has been made in
resolving several issues:

*   bug 13178 "X server and matchbox desktop don't start up properly on
beaglebone" was fixed
*   multiconfig bugs have been fixed and a test case added
*   qemu virgl code and selftests have been added (not enabled as
default)
*   qemu native build was split into user and system components
*   lttng-tools ptest timeout fixed
*   systemd version upgrade
*   ltp recipe version upgrade
*   perl ptest regressions fixed

*   The list of remaining potential items for M3 is:

*   5.0 linux kernel (and libc headers) (Bruce)
*   qemuarm to v7 changes (Jon)
*   Aarch64 build host support finalization (Jon)
*   Busybox 'full' utility replacement (Tom)

*   YP 2.5.3 is nearly ready for building however the autobuilder-helper
changes need to be resolved for the stable branches, as do the resulttool
changes in master to move to the new QA process.

 

Planned Releases for YP 2.7:

*   YP 2.7 M2 Released Mar. 5, 2019
*   YP 2.7 M3 Cutoff is Feb. 25, 2019
*   YP 2.7 M3 Release Target is Mar. 8, 2019
*   YP 2.7 M4 Cutoff is Apr. 1, 2019
*   YP 2.7 M4 Release Target is Apr. 26, 2019

 

Planned upcoming dot releases:

*   YP 2.5.3 (Sumo) will be targeted after YP 2.7 M2 is done.
*   YP 2.5.4 (Sumo) will be targeted after YP 2.7 M4 is done.
*   YP 2.6.2 (Thud) will be targeted after YP 2.5.4 is done.

 

Tracking Metrics:

*   WDD 2436 (last week 2415) (

https://wiki.yoctoproject.org/charts/combo.html)
*   Poky Patch Metrics  

*   Total patches found: 1502 (last week 1516)
*   Patches in the Pending State: 658 (44%) [last week 660 (44%)]

 

Key Status Links for YP:

 
https://wiki.yoctoproject.org/wiki/Yocto_Project_v2.7_Status

 
https://wiki.yoctoproject.org/wiki/Yocto_2.7_Schedule

 
https://wiki.yoctoproject.org/wiki/Yocto_2.7_Features

 

The Status reports are now stored on the wiki at:

https://wiki.yoctoproject.org/wiki/Weekly_Status

 

[If anyone has suggestions for other information you'd like to see on this
weekly status update, let us know!]

 

Thanks,

 

Stephen K. Jolley

Yocto Project Project Manager

*Cell:(208) 244-4460

* Email:  sjolley.yp...@gmail.com
 

 

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [patchtest-oe][PATCH] test_metadata_src_uri: new unittest detecting added patch files without modifying SRC_URI

2019-03-05 Thread changqing.li
From: Changqing Li 

Adds new unittest detecting when a patch file is added but no corresponding
change to the SRC_URI is done.

This patch is from , get from commit
49201c19cfe4cadd127b112d2858d5b28db49c20, this commit is reverted by commit
6108d97f83b211f9eb245f339a412debd0ec5db4.

The added test case is ok, reason of series 9949 patchtest failed is:
recipe weston have REQUIRED_DISTRO_FEATURES, so parse recipe skipped,
cause self.modified is none, actually .bb is mofified, so make the testcase 
failed.

during patchtest, we don't really need DISTRO_FEATURES, so fix the problem
by set REQUIRED_DISTRO_FEATURES to "" in repo patchtest, meantime, add this
testcase back.

[Yocto #13005]

Signed-off-by: Changqing Li 
---
 tests/test_metadata_src_uri.py | 25 +
 1 file changed, 25 insertions(+)

diff --git a/tests/test_metadata_src_uri.py b/tests/test_metadata_src_uri.py
index a4c5caa..f684ced 100644
--- a/tests/test_metadata_src_uri.py
+++ b/tests/test_metadata_src_uri.py
@@ -85,3 +85,28 @@ class SrcUri(base.Metadata):
   'Amend the patch containing the software patch 
file removal',
   data=[('Patch', f) for f in not_removed])
 
+def test_src_uri_path_not_updated(self):
+new_patches = set()
+for patch in self.patchset:
+if patch.is_added_file and patch.path.endswith('.patch'):
+new_patches.add(os.path.basename(patch.path))
+
+if not new_patches:
+self.skip('No new patches added, skipping test')
+
+if not self.modified:
+self.fail('New patch path missing in SRC_URI',
+   "Add the patch path to the recipe's SRC_URI",
+   data=[('New patch(es)', '\n'.join(new_patches))])
+
+for pn in self.modified:
+rd = self.tinfoil.parse_recipe(pn)
+
+patchtestdata.PatchTestDataStore['%s-%s-%s' % (self.shortid(), 
self.metadata, pn)] = rd.getVar(self.metadata)
+test_src_uri= patchtestdata.PatchTestDataStore['%s-%s-%s' % 
(self.shortid(), self.metadata, pn)].split()
+test_files= set([os.path.basename(patch) for patch in 
test_src_uri if patch.startswith('file://')])
+
+if not test_files.issuperset(new_patches):
+self.fail('New patch path missing in SRC_URI',
+  "Add the patch path in the recipe's SRC_URI",
+  data=[('New patch(es)', p) for p in 
new_patches.difference(test_files)])
-- 
2.7.4

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [patchtest][PATCH] core-image-patchtest: avoid skip parse recipe

2019-03-05 Thread changqing.li
From: Changqing Li 

patchtest [1] failed since the recipe is skipparsed since it defines
REQUIRED_DISTRO_FEATURES.  patchtest don't really need
DISTRO_FEATURES, so fix the problem by set REQUIRED_DISTRO_FEATURES/
COMPATIBLE_MACHINE/COMPATIBLE_HOST to "" to avoid skip parse

[Yocto #13005]

[1] https://patchwork.openembedded.org/series/9949/

Signed-off-by: Changqing Li 
---
 meta-patchtest/recipes-core/images/core-image-patchtest.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-patchtest/recipes-core/images/core-image-patchtest.bb 
b/meta-patchtest/recipes-core/images/core-image-patchtest.bb
index 47e4041..95279d2 100644
--- a/meta-patchtest/recipes-core/images/core-image-patchtest.bb
+++ b/meta-patchtest/recipes-core/images/core-image-patchtest.bb
@@ -30,6 +30,9 @@ TMPBUILD="\$(mktemp -d)"
 BRANCH="\$(get-target-branch \$REPO \$MBOX | awk '{print \$NF}')"
 cd \$REPO
 source ./oe-init-build-env \$TMPBUILD
+echo "COMPATIBLE_MACHINE_qemuall = \\"\\"" >> \$TMPBUILD/conf/local.conf
+echo "COMPATIBLE_HOST_qemuall = \\"\\"" >> \$TMPBUILD/conf/local.conf
+echo "REQUIRED_DISTRO_FEATURES_qemuall = \\"\\"" >> \$TMPBUILD/conf/local.conf
 test-mboxes -r \$REPO -s \$SUITESTART -m \$MBOX -o \$RESULTS -- --base-branch 
\$BRANCH
 rm -rf \$TMPBUILD
  }
-- 
2.7.4

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [error-report-web][PATCH] Post/views.py: Fix for python3

2019-03-05 Thread Robert Yang
Now it works for python 2 and 3.

Signed-off-by: Robert Yang 
---
 Post/views.py | 19 +++
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/Post/views.py b/Post/views.py
index 7f2cffb..2f8e4ae 100644
--- a/Post/views.py
+++ b/Post/views.py
@@ -13,9 +13,9 @@ from django.shortcuts import HttpResponse, render
 from django.views.decorators.csrf import csrf_exempt
 from django.shortcuts import redirect
 from Post.models import BuildFailure, Build, ErrorType
-from parser import Parser
+from .parser import Parser
 from django.conf import settings
-from createStatistics import Statistics
+from .createStatistics import Statistics
 from django.core.paginator import Paginator, EmptyPage
 from django.core.exceptions import FieldError, ObjectDoesNotExist
 from django.http import JsonResponse
@@ -55,20 +55,23 @@ def addData(request, return_json=False):
 # Backward compatibility with send-error-report < 0.3
 # The json is url encoded so we need to undo this here.
 data = request.body[len('data='):]
-data = urllib.unquote_plus(data)
+data = urllib.parse.unquote_plus(data)
+
+data = data.decode('utf-8')
 
 p = Parser(data)
 result = p.parse(request)
+print(result)
 
 if return_json:
 response = JsonResponse(result)
 else:
-if not result.has_key('error'):
+if 'error' not in result:
   response = HttpResponse("Your entry can be found here: 
"+result['build_url'])
 else:
   response = HttpResponse(result['error'])
 
-if result.has_key('error'):
+if 'error' in result:
 response.status_code=500
 else:
 if return_json:
@@ -123,7 +126,7 @@ def search(request, mode=results_mode.LATEST, **kwargs):
 
 items = BuildFailure.objects.all()
 
-if request.GET.has_key("limit"):
+if "limit" in request.GET:
 try:
 n_limit = int(request.GET['limit'])
 if n_limit > 0:
@@ -200,14 +203,14 @@ def search(request, mode=results_mode.LATEST, **kwargs):
   ],
 }
 
-if request.GET.has_key("filter") and request.GET.has_key("type"):
+if "filter" in request.GET and "type" in request.GET:
 items = apply_filter(context, items, request.GET['type'], 
request.GET['filter'])
 if mode == results_mode.SPECIAL_SUBMITTER and 
hasattr(settings,"SPECIAL_SUBMITTER"):
 #Special submitter mode see settings.py to enable
 name = settings.SPECIAL_SUBMITTER['name']
 items = items.filter(BUILD__NAME__istartswith=name)
 
-elif mode == results_mode.SEARCH and request.GET.has_key("query"):
+elif mode == results_mode.SEARCH and "query" in request.GET:
 query = request.GET["query"]
 
 items = items.filter(
-- 
2.7.4

-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto