Re: [yocto] [PATCH][meta-virtualization] docker-distribution: fix do package qa warning

2018-09-29 Thread Changqing Li



On 09/30/2018 01:12 AM, Bruce Ashfield wrote:

These are all to the wrong mailing list, please resend them
to the meta-virtualization list.


OK.


On 2018-09-29 5:26 AM, changqing...@windriver.com wrote:

From: Changqing Li 

fix below warning:

1.do_package_qa: QA Issue: No GNU_HASH in the elf binary: 
xxx/usr/sbin/registry' [ldflags]

2.do_package_qa: QA Issue: ELF binary 'xxx/usr/sbin/registry'
has relocations in .text [textrel]


These need to be 2 separate patches on the resend.

Bruce


Got it.

//Sandy





Add GOBUILDFLAGS which have -buildmode=pie to fix the second problem

Signed-off-by: Changqing Li 
---
  .../docker-distribution/docker-distribution_git.bb |  3 +-
  .../files/0001-fix-do_package_qa-error.patch   | 32 
++

  2 files changed, 34 insertions(+), 1 deletion(-)
  create mode 100644 
recipes-containers/docker-distribution/files/0001-fix-do_package_qa-error.patch


diff --git 
a/recipes-containers/docker-distribution/docker-distribution_git.bb 
b/recipes-containers/docker-distribution/docker-distribution_git.bb

index add5ce1..23d94c9 100644
--- a/recipes-containers/docker-distribution/docker-distribution_git.bb
+++ b/recipes-containers/docker-distribution/docker-distribution_git.bb
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = 
"file://LICENSE;md5=d2794c0df5b907fdace235a619d80314"

  SRCREV_distribution="48294d928ced5dd9b378f7fd7c6f5da3ff3f2c89"
  SRC_URI = 
"git://github.com/docker/distribution.git;branch=release/2.6;name=distribution;destsuffix=git/src/github.com/docker/distribution 
\

 file://docker-registry.service \
+   file://0001-fix-do_package_qa-error.patch \
    "
    PACKAGES =+ "docker-registry"
@@ -57,7 +58,7 @@ do_install() {
  }
    INSANE_SKIP_${PN} += "ldflags already-stripped"
-INSANE_SKIP_docker-registry += "ldflags already-stripped"
+INSANE_SKIP_${MLPREFIX}docker-registry += "ldflags already-stripped"
    FILES_docker-registry = "${sbindir}/*"
  FILES_docker-registry += 
"${systemd_unitdir}/system/docker-registry.service"
diff --git 
a/recipes-containers/docker-distribution/files/0001-fix-do_package_qa-error.patch 
b/recipes-containers/docker-distribution/files/0001-fix-do_package_qa-error.patch 


new file mode 100644
index 000..269b0cd
--- /dev/null
+++ 
b/recipes-containers/docker-distribution/files/0001-fix-do_package_qa-error.patch

@@ -0,0 +1,32 @@
+From 4b9d701fabff8e7969db081406d00fa9fe46b3fd Mon Sep 17 00:00:00 2001
+From: Changqing Li 
+Date: Thu, 27 Sep 2018 11:05:51 +0800
+Subject: [PATCH] fix do_package_qa error
+
+fix below error:
+do_package_qa: QA Issue: ELF binary 'xxx/usr/sbin/registry'
+has relocations in .text [textrel]
+
+Upstream-Status: Inappropriate [oe-specific]
+
+Signed-off-by: Changqing Li 
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 47b8f1d..13b0f92 100644
+--- a/Makefile
 b/Makefile
+@@ -39,7 +39,7 @@ GODEP=$(shell which godep || echo '')
+
+ ${PREFIX}/bin/registry: $(GOFILES)
+ @echo "+ $@"
+-    @go build -tags "${DOCKER_BUILDTAGS}" -o $@ ${GO_LDFLAGS} 
${GO_GCFLAGS} ./cmd/registry
++    @go build -tags "${DOCKER_BUILDTAGS}" -o $@ ${GO_LDFLAGS} 
${GOBUILDFLAGS} ${GO_GCFLAGS} ./cmd/registry

+
+ ${PREFIX}/bin/digest:  $(GOFILES)
+ @echo "+ $@"
+--
+2.7.4
+






--
BRs

Sandy(Li Changqing)
Wind River Linux

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


[yocto] [meta-security][PATCH] packagegroup-security-tpm2: cleanup to reflect tss changes

2018-09-29 Thread Armin Kuster
Signed-off-by: Armin Kuster 
---
 .../recipes-core/packagegroup/packagegroup-security-tpm2.bb| 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta-tpm/recipes-core/packagegroup/packagegroup-security-tpm2.bb 
b/meta-tpm/recipes-core/packagegroup/packagegroup-security-tpm2.bb
index 13b505f..363367c 100644
--- a/meta-tpm/recipes-core/packagegroup/packagegroup-security-tpm2.bb
+++ b/meta-tpm/recipes-core/packagegroup/packagegroup-security-tpm2.bb
@@ -12,7 +12,6 @@ RDEPENDS_packagegroup-security-tpm2 = " \
 tpm2.0-tools \
 trousers \
 libtss2 \
-libtctidevice \
-libtctisocket \
+libtss2-tcti-device \
 resourcemgr \
 "
-- 
2.17.1

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


Re: [yocto] [OE-core] layers.openembedded.org upgraded

2018-09-29 Thread Randy MacLeod

On 09/28/2018 03:22 PM, Randy MacLeod wrote:

On 09/27/2018 08:01 PM, Randy MacLeod wrote:

On 09/27/2018 07:33 PM, Paul Eggleton wrote:

Hi Randy

On Friday, 28 September 2018 11:22:29 AM NZST Randy MacLeod wrote:

On 09/27/2018 05:28 PM, Nicolas Dechesne wrote:
On Thu, Sep 27, 2018 at 10:43 PM Paul 
Eggleton  wrote:
I'm very happy to announce that we've finally been able to upgrade 
the layer
index athttp://layers.openembedded.org  to the latest revision on 
master,
incorporating quite a bit of work that's been going on for the 
past few

months. Improvements now visible:

Nice new features, thanks!

The "Branch:" and "Filter layers" selection menus don't work
for me when using Firefox 62.0 (64-bit) on Ubuntu-18.04.

Google Chrome Version 69.0.3497.100 (Official Build) (64-bit)
works fine.

Hmm, I do my development with Firefox and I just checked - with Firefox
62.0 (64-bit) here on Fedora 28 both work. Do you perhaps have an add-on
enabled that might prevent these from working? I believe they both 
rely on

javascript (the filter dropdown definitely does).


Does anyone else see this problem?
I've also asked on IRC.

I did have Firefox Lightbeam (disabled) and Quiick Java but I removed 
them both,

re-started FF and still no joy/menus.


One co-worker said that it works for him using
     Firefox 62.0 (64-bit) on Ubuntu-18.04
he has uBlock and Ghostery
and another has no problems with the new code when using:
     Firefox 52.8.0 (32-bit)

( 32 bit!! yikes! :)  )

I've restarted FF again, cut back on the crazy number of tabs
and the problem persists. Let me know if you know of any other
sites that use this JS code and I'd be happy to test with my
setup. I'll likey also reboot (sigh) and if needed try using a
test account on the laptop.


It works for me now but it's not clear why. It seems that
it was a problem with my firefox profile.

Work log below in case it might help someone else.

../Randy


I rebooted:
  - still no menu.
I logged out and then into another account on the same laptop:
  - it worked.
I created another firefox profile in my usual account:
  - it worked.
I deleted that profile and used my default profile:
  - still no menu.
While visiting layers.openembedded.org, I opened the firefox
console using Shift+Control+K
  - I re-loaded the site.
  - it worked!
I closed the console:
  - it worked!
I restarted firefox:
  - it still works!

Hmmm, oh well.

../Randy




According my read of the traceback, the failing code is in:
view-source:https://layers.openembedded.org/static/js/jquery-3.3.1.js

...
Sizzle.matchesSelector = function( elem, expr ) {
 // Set document vars if needed
 if ( ( elem.ownerDocument || elem ) !== document ) {
     setDocument( elem );
 }

 // Make sure that attribute selectors are quoted
 expr = expr.replace( rattributeQuotes, "='$1']" );

 if ( support.matchesSelector && documentIsHTML &&
     !compilerCache[ expr + " " ] &&
     ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
     ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {

     try {
     var ret = matches.call( elem, expr );

     // IE 9's matchesSelector returns false on disconnected nodes
     if ( ret || support.disconnectedMatch ||
     // As well, disconnected nodes are said to be in a 
document

     // fragment in IE 9
     elem.document && elem.document.nodeType !== 11 ) {
     return ret;
     }
     } catch (e) {}
 }

 return Sizzle( expr, document, null, [ elem ] ).length > 0;
};

I don't see any relevant issues here:
    https://github.com/jquery/sizzle/issues/
but I don't speak javascript.

../Randy



Looking at:
Menu->Web Developer -> Browser Console ( Control+Shift+J )
I see:

Error: Syntax error, unrecognized expression: # jquery-3.3.1.js:1541:8 

Sizzlehttps://layers.openembedded.org/static/js/jquery-3.3.1.js:1541:8 
Sizzlehttps://layers.openembedded.org/static/js/jquery-3.3.1.js:2193:4 
Sizzlehttps://layers.openembedded.org/static/js/jquery-3.3.1.js:2620:20 
Sizzle https://layers.openembedded.org/static/js/jquery-3.3.1.js:845:9 
find https://layers.openembedded.org/static/js/jquery-3.3.1.js:2873:4 
jQuery.fn.init 
https://layers.openembedded.org/static/js/jquery-3.3.1.js:2983:14 
jQuery 
https://layers.openembedded.org/static/js/jquery-3.3.1.js:139:10 
getParent 
https://layers.openembedded.org/static/js/bootstrap.js:754:27 
clearMenus/< 
https://layers.openembedded.org/static/js/bootstrap.js:741:7 each 
https://layers.openembedded.org/static/js/jquery-3.3.1.js:354:10 each 
https://layers.openembedded.org/static/js/jquery-3.3.1.js:189:10 
clearMenus 
https://layers.openembedded.org/static/js/bootstrap.js:740:5 dispatch 
https://layers.openembedded.org/static/js/jquery-3.3.1.js:5182:16 
add/elemData.handle 
https://layers.openembedded.org/static/js/jquery-3.3.1.js:4991:6


Does 

Re: [yocto] [PATCH][meta-virtualization] docker: fix package qa warning

2018-09-29 Thread Bruce Ashfield

On 2018-09-29 5:26 AM, changqing...@windriver.com wrote:

From: Changqing Li 

fix below warning:
do_package_qa: QA Issue: ELF binary 'xxx/usr/bin/docker'
has relocations in .text [textrel]

Signed-off-by: Changqing Li 
---
  recipes-containers/docker/docker_git.bb|  1 +
  .../files/0001-fix-do_package_qa-error.patch   | 31 ++
  2 files changed, 32 insertions(+)
  create mode 100644 
recipes-containers/docker/files/0001-fix-do_package_qa-error.patch

diff --git a/recipes-containers/docker/docker_git.bb 
b/recipes-containers/docker/docker_git.bb
index 73e0120..1a8d1a6 100644
--- a/recipes-containers/docker/docker_git.bb
+++ b/recipes-containers/docker/docker_git.bb
@@ -28,6 +28,7 @@ SRC_URI = "\
file://docker.init \
file://hi.Dockerfile \
  file://0001-libnetwork-use-GO-instead-of-go.patch \
+file://0001-fix-do_package_qa-error.patch \
"
  
  # Apache-2.0 for docker

diff --git a/recipes-containers/docker/files/0001-fix-do_package_qa-error.patch 
b/recipes-containers/docker/files/0001-fix-do_package_qa-error.patch
new file mode 100644
index 000..79e71a5
--- /dev/null
+++ b/recipes-containers/docker/files/0001-fix-do_package_qa-error.patch
@@ -0,0 +1,31 @@
+From 56c865e2a7269d63f0780b4cd1ed6fdb18e3ff1b Mon Sep 17 00:00:00 2001
+From: Changqing Li 
+Date: Wed, 26 Sep 2018 17:41:59 +0800
+Subject: [PATCH] fix do_package_qa error
+
+fix below error:
+do_package_qa: QA Issue: ELF binary 'xxx/usr/bin/docker'
+has relocations in .text [textrel]
+
+Upstream-Status: Inappropriate [oe-specific]
+
+Signed-off-by: Changqing Li 
+---
+ cli/scripts/build/dynbinary | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/cli/scripts/build/dynbinary b/cli/scripts/build/dynbinary
+index 3c32ed3..938e086 100755
+--- a/cli/scripts/build/dynbinary
 b/cli/scripts/build/dynbinary
+@@ -9,6 +9,6 @@ source ./scripts/build/.variables
+
+ echo "Building dynamically linked $TARGET"
+ export CGO_ENABLED=1
+-go build -o "${TARGET}" -tags pkcs11 --ldflags "${LDFLAGS}" "${SOURCE}"
++go build -o "${TARGET}" -tags pkcs11 --ldflags "${LDFLAGS}" -buildmode=pie 
"${SOURCE}"


This should be conditional. I'm not seeing these warnings/errors
on any of my builds, so clearly you have a different configuration.

Bruce


+
+ ln -sf "$(basename "${TARGET}")" build/docker
+--
+2.7.4
+



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


Re: [yocto] [PATCH][meta-virtualization] docker-distribution: fix do package qa warning

2018-09-29 Thread Bruce Ashfield

These are all to the wrong mailing list, please resend them
to the meta-virtualization list.

On 2018-09-29 5:26 AM, changqing...@windriver.com wrote:

From: Changqing Li 

fix below warning:

1.do_package_qa: QA Issue: No GNU_HASH in the elf binary: 
xxx/usr/sbin/registry' [ldflags]
2.do_package_qa: QA Issue: ELF binary 'xxx/usr/sbin/registry'
has relocations in .text [textrel]


These need to be 2 separate patches on the resend.

Bruce



Add GOBUILDFLAGS which have -buildmode=pie to fix the second problem

Signed-off-by: Changqing Li 
---
  .../docker-distribution/docker-distribution_git.bb |  3 +-
  .../files/0001-fix-do_package_qa-error.patch   | 32 ++
  2 files changed, 34 insertions(+), 1 deletion(-)
  create mode 100644 
recipes-containers/docker-distribution/files/0001-fix-do_package_qa-error.patch

diff --git a/recipes-containers/docker-distribution/docker-distribution_git.bb 
b/recipes-containers/docker-distribution/docker-distribution_git.bb
index add5ce1..23d94c9 100644
--- a/recipes-containers/docker-distribution/docker-distribution_git.bb
+++ b/recipes-containers/docker-distribution/docker-distribution_git.bb
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = 
"file://LICENSE;md5=d2794c0df5b907fdace235a619d80314"
  SRCREV_distribution="48294d928ced5dd9b378f7fd7c6f5da3ff3f2c89"
  SRC_URI = 
"git://github.com/docker/distribution.git;branch=release/2.6;name=distribution;destsuffix=git/src/github.com/docker/distribution
 \
 file://docker-registry.service \
+   file://0001-fix-do_package_qa-error.patch \
"
  
  PACKAGES =+ "docker-registry"

@@ -57,7 +58,7 @@ do_install() {
  }
  
  INSANE_SKIP_${PN} += "ldflags already-stripped"

-INSANE_SKIP_docker-registry += "ldflags already-stripped"
+INSANE_SKIP_${MLPREFIX}docker-registry += "ldflags already-stripped"
  
  FILES_docker-registry = "${sbindir}/*"

  FILES_docker-registry += "${systemd_unitdir}/system/docker-registry.service"
diff --git 
a/recipes-containers/docker-distribution/files/0001-fix-do_package_qa-error.patch
 
b/recipes-containers/docker-distribution/files/0001-fix-do_package_qa-error.patch
new file mode 100644
index 000..269b0cd
--- /dev/null
+++ 
b/recipes-containers/docker-distribution/files/0001-fix-do_package_qa-error.patch
@@ -0,0 +1,32 @@
+From 4b9d701fabff8e7969db081406d00fa9fe46b3fd Mon Sep 17 00:00:00 2001
+From: Changqing Li 
+Date: Thu, 27 Sep 2018 11:05:51 +0800
+Subject: [PATCH] fix do_package_qa error
+
+fix below error:
+do_package_qa: QA Issue: ELF binary 'xxx/usr/sbin/registry'
+has relocations in .text [textrel]
+
+Upstream-Status: Inappropriate [oe-specific]
+
+Signed-off-by: Changqing Li 
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 47b8f1d..13b0f92 100644
+--- a/Makefile
 b/Makefile
+@@ -39,7 +39,7 @@ GODEP=$(shell which godep || echo '')
+
+ ${PREFIX}/bin/registry: $(GOFILES)
+   @echo "+ $@"
+-  @go build -tags "${DOCKER_BUILDTAGS}" -o $@ ${GO_LDFLAGS}  
${GO_GCFLAGS} ./cmd/registry
++  @go build -tags "${DOCKER_BUILDTAGS}" -o $@ ${GO_LDFLAGS} 
${GOBUILDFLAGS} ${GO_GCFLAGS} ./cmd/registry
+
+ ${PREFIX}/bin/digest:  $(GOFILES)
+   @echo "+ $@"
+--
+2.7.4
+



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


[yocto] [PATCH][meta-virtualization] oci-runtime-tools: fix do package qa warning

2018-09-29 Thread changqing.li
From: Changqing Li 

fix below warning:
do_package_qa: QA Issue: ELF binary 'xxx/usr/sbin/oci-runtime-tool'
has relocations in .text [textrel]

Add GOBUILDFLAGS which have -buildmode=pie to fix the problem

Signed-off-by: Changqing Li 
---
 .../files/0001-fix-do_package_qa-error.patch   | 32 ++
 .../oci-runtime-tools/oci-runtime-tools_git.bb |  1 +
 2 files changed, 33 insertions(+)
 create mode 100644 
recipes-containers/oci-runtime-tools/files/0001-fix-do_package_qa-error.patch

diff --git 
a/recipes-containers/oci-runtime-tools/files/0001-fix-do_package_qa-error.patch 
b/recipes-containers/oci-runtime-tools/files/0001-fix-do_package_qa-error.patch
new file mode 100644
index 000..3c5d820
--- /dev/null
+++ 
b/recipes-containers/oci-runtime-tools/files/0001-fix-do_package_qa-error.patch
@@ -0,0 +1,32 @@
+From 7de9fd7db7a001b66d92d5e80806e50bb5252392 Mon Sep 17 00:00:00 2001
+From: Changqing Li 
+Date: Thu, 27 Sep 2018 12:50:32 +0800
+Subject: [PATCH] fix do_package_qa error
+
+fix below error:
+do_package_qa: QA Issue: ELF binary 'xxx/usr/sbin/oci-runtime-tool'
+has relocations in .text [textrel]
+
+Upstream-Status: Inappropriate [oe-specific]
+
+Signed-off-by: Changqing Li 
+---
+ src/import/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/import/Makefile b/src/import/Makefile
+index 77626d2..b97f6ec 100644
+--- a/src/import/Makefile
 b/src/import/Makefile
+@@ -8,7 +8,7 @@ COMMIT=$(shell git rev-parse HEAD 2> /dev/null || true)
+ all: tool runtimetest
+ 
+ tool:
+-  go build -tags "$(BUILDTAGS)" -ldflags "-X main.gitCommit=${COMMIT}" -o 
oci-runtime-tool ./cmd/oci-runtime-tool
++  go build -tags "$(BUILDTAGS)" -ldflags "-X main.gitCommit=${COMMIT}" 
${GOBUILDFLAGS} -o oci-runtime-tool ./cmd/oci-runtime-tool
+ 
+ .PHONY: runtimetest
+ runtimetest:
+-- 
+2.7.4
+
diff --git a/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb 
b/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb
index 61b68b5..218f68c 100644
--- a/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb
+++ b/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb
@@ -5,6 +5,7 @@ LIC_FILES_CHKSUM = 
"file://src/import/LICENSE;md5=b355a61a394a504dacde901c958f66
 
 SRC_URI = "git://github.com/opencontainers/runtime-tools.git \
file://0001-Revert-implement-add-set-function-for-hooks-items.patch 
\
+   file://0001-fix-do_package_qa-error.patch \
"
 
 SRCREV = "6e7da8148f4de2c9e9c9d3b345576898d4f412cb"
-- 
2.7.4

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


[yocto] [PATCH][meta-virtualization] docker-distribution: fix do package qa warning

2018-09-29 Thread changqing.li
From: Changqing Li 

fix below warning:

1.do_package_qa: QA Issue: No GNU_HASH in the elf binary: 
xxx/usr/sbin/registry' [ldflags]
2.do_package_qa: QA Issue: ELF binary 'xxx/usr/sbin/registry'
has relocations in .text [textrel]

Add GOBUILDFLAGS which have -buildmode=pie to fix the second problem

Signed-off-by: Changqing Li 
---
 .../docker-distribution/docker-distribution_git.bb |  3 +-
 .../files/0001-fix-do_package_qa-error.patch   | 32 ++
 2 files changed, 34 insertions(+), 1 deletion(-)
 create mode 100644 
recipes-containers/docker-distribution/files/0001-fix-do_package_qa-error.patch

diff --git a/recipes-containers/docker-distribution/docker-distribution_git.bb 
b/recipes-containers/docker-distribution/docker-distribution_git.bb
index add5ce1..23d94c9 100644
--- a/recipes-containers/docker-distribution/docker-distribution_git.bb
+++ b/recipes-containers/docker-distribution/docker-distribution_git.bb
@@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = 
"file://LICENSE;md5=d2794c0df5b907fdace235a619d80314"
 SRCREV_distribution="48294d928ced5dd9b378f7fd7c6f5da3ff3f2c89"
 SRC_URI = 
"git://github.com/docker/distribution.git;branch=release/2.6;name=distribution;destsuffix=git/src/github.com/docker/distribution
 \
file://docker-registry.service \
+   file://0001-fix-do_package_qa-error.patch \
   "
 
 PACKAGES =+ "docker-registry"
@@ -57,7 +58,7 @@ do_install() {
 }
 
 INSANE_SKIP_${PN} += "ldflags already-stripped"
-INSANE_SKIP_docker-registry += "ldflags already-stripped"
+INSANE_SKIP_${MLPREFIX}docker-registry += "ldflags already-stripped"
 
 FILES_docker-registry = "${sbindir}/*"
 FILES_docker-registry += "${systemd_unitdir}/system/docker-registry.service"
diff --git 
a/recipes-containers/docker-distribution/files/0001-fix-do_package_qa-error.patch
 
b/recipes-containers/docker-distribution/files/0001-fix-do_package_qa-error.patch
new file mode 100644
index 000..269b0cd
--- /dev/null
+++ 
b/recipes-containers/docker-distribution/files/0001-fix-do_package_qa-error.patch
@@ -0,0 +1,32 @@
+From 4b9d701fabff8e7969db081406d00fa9fe46b3fd Mon Sep 17 00:00:00 2001
+From: Changqing Li 
+Date: Thu, 27 Sep 2018 11:05:51 +0800
+Subject: [PATCH] fix do_package_qa error
+
+fix below error:
+do_package_qa: QA Issue: ELF binary 'xxx/usr/sbin/registry' 
+has relocations in .text [textrel]
+
+Upstream-Status: Inappropriate [oe-specific]
+
+Signed-off-by: Changqing Li 
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 47b8f1d..13b0f92 100644
+--- a/Makefile
 b/Makefile
+@@ -39,7 +39,7 @@ GODEP=$(shell which godep || echo '')
+ 
+ ${PREFIX}/bin/registry: $(GOFILES)
+   @echo "+ $@"
+-  @go build -tags "${DOCKER_BUILDTAGS}" -o $@ ${GO_LDFLAGS}  
${GO_GCFLAGS} ./cmd/registry
++  @go build -tags "${DOCKER_BUILDTAGS}" -o $@ ${GO_LDFLAGS} 
${GOBUILDFLAGS} ${GO_GCFLAGS} ./cmd/registry
+ 
+ ${PREFIX}/bin/digest:  $(GOFILES)
+   @echo "+ $@"
+-- 
+2.7.4
+
-- 
2.7.4

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


[yocto] [PATCH][meta-virtualization] oci-image-tools: fix do package qa warning

2018-09-29 Thread changqing.li
From: Changqing Li 

fix below warning:
do_package_qa: QA Issue: ELF binary 'xxx/usr/sbin/oci-image-tool'
has relocations in .text [textrel]

Add GOBUILDFLAGS which have -buildmode=pie to fix the problem

Signed-off-by: Changqing Li 
---
 .../files/0001-fix-do_package_qa-error.patch   | 32 ++
 .../oci-image-tools/oci-image-tools_git.bb |  4 ++-
 2 files changed, 35 insertions(+), 1 deletion(-)
 create mode 100644 
recipes-containers/oci-image-tools/files/0001-fix-do_package_qa-error.patch

diff --git 
a/recipes-containers/oci-image-tools/files/0001-fix-do_package_qa-error.patch 
b/recipes-containers/oci-image-tools/files/0001-fix-do_package_qa-error.patch
new file mode 100644
index 000..4b3efc2
--- /dev/null
+++ 
b/recipes-containers/oci-image-tools/files/0001-fix-do_package_qa-error.patch
@@ -0,0 +1,32 @@
+From 981e2582128911d0b131cb47aeb88005b04b38fe Mon Sep 17 00:00:00 2001
+From: Changqing Li 
+Date: Thu, 27 Sep 2018 12:54:42 +0800
+Subject: [PATCH] fix do_package_qa error
+
+fix below error:
+do_package_qa: QA Issue: ELF binary 'xxx/usr/sbin/oci-image-tool' 
+has relocations in .text [textrel]
+
+Upstream-Status: Inappropriate [oe-specific]
+
+Signed-off-by: Changqing Li 
+---
+ src/import/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/import/Makefile b/src/import/Makefile
+index 61d7a80..7e641e9 100644
+--- a/src/import/Makefile
 b/src/import/Makefile
+@@ -29,7 +29,7 @@ check-license:
+ 
+ .PHONY: tool
+ tool:
+-  go build -ldflags "-X main.gitCommit=${COMMIT}" -o oci-image-tool 
./cmd/oci-image-tool
++  go build -ldflags "-X main.gitCommit=${COMMIT}" ${GOBUILDFLAGS} -o 
oci-image-tool ./cmd/oci-image-tool
+ 
+ 
+ all: tool man
+-- 
+2.7.4
+
diff --git a/recipes-containers/oci-image-tools/oci-image-tools_git.bb 
b/recipes-containers/oci-image-tools/oci-image-tools_git.bb
index 807ee26..ad7c5e9 100644
--- a/recipes-containers/oci-image-tools/oci-image-tools_git.bb
+++ b/recipes-containers/oci-image-tools/oci-image-tools_git.bb
@@ -15,7 +15,9 @@ DEPENDS = "\
 SRC_URI = "git://github.com/opencontainers/image-tools.git \

file://0001-image-manifest-Recursively-remove-pre-existing-entri.patch \

file://0002-image-manifest-Split-unpackLayerEntry-into-its-own-f.patch \
-   file://0001-config-make-Config.User-mapping-errors-a-warning.patch"
+   file://0001-config-make-Config.User-mapping-errors-a-warning.patch \
+   file://0001-fix-do_package_qa-error.patch \
+"
 
 SRCREV = "4abe1a166f9be97e8e71b1bb4d7599cc29323011"
 PV = "0.2.0-dev+git${SRCPV}"
-- 
2.7.4

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


[yocto] [PATCH][meta-virtualization] docker: fix package qa warning

2018-09-29 Thread changqing.li
From: Changqing Li 

fix below warning:
do_package_qa: QA Issue: ELF binary 'xxx/usr/bin/docker'
has relocations in .text [textrel]

Signed-off-by: Changqing Li 
---
 recipes-containers/docker/docker_git.bb|  1 +
 .../files/0001-fix-do_package_qa-error.patch   | 31 ++
 2 files changed, 32 insertions(+)
 create mode 100644 
recipes-containers/docker/files/0001-fix-do_package_qa-error.patch

diff --git a/recipes-containers/docker/docker_git.bb 
b/recipes-containers/docker/docker_git.bb
index 73e0120..1a8d1a6 100644
--- a/recipes-containers/docker/docker_git.bb
+++ b/recipes-containers/docker/docker_git.bb
@@ -28,6 +28,7 @@ SRC_URI = "\
file://docker.init \
file://hi.Dockerfile \
 file://0001-libnetwork-use-GO-instead-of-go.patch \
+file://0001-fix-do_package_qa-error.patch \
"
 
 # Apache-2.0 for docker
diff --git a/recipes-containers/docker/files/0001-fix-do_package_qa-error.patch 
b/recipes-containers/docker/files/0001-fix-do_package_qa-error.patch
new file mode 100644
index 000..79e71a5
--- /dev/null
+++ b/recipes-containers/docker/files/0001-fix-do_package_qa-error.patch
@@ -0,0 +1,31 @@
+From 56c865e2a7269d63f0780b4cd1ed6fdb18e3ff1b Mon Sep 17 00:00:00 2001
+From: Changqing Li 
+Date: Wed, 26 Sep 2018 17:41:59 +0800
+Subject: [PATCH] fix do_package_qa error
+
+fix below error:
+do_package_qa: QA Issue: ELF binary 'xxx/usr/bin/docker' 
+has relocations in .text [textrel]
+
+Upstream-Status: Inappropriate [oe-specific]
+
+Signed-off-by: Changqing Li 
+---
+ cli/scripts/build/dynbinary | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/cli/scripts/build/dynbinary b/cli/scripts/build/dynbinary
+index 3c32ed3..938e086 100755
+--- a/cli/scripts/build/dynbinary
 b/cli/scripts/build/dynbinary
+@@ -9,6 +9,6 @@ source ./scripts/build/.variables
+ 
+ echo "Building dynamically linked $TARGET"
+ export CGO_ENABLED=1
+-go build -o "${TARGET}" -tags pkcs11 --ldflags "${LDFLAGS}" "${SOURCE}"
++go build -o "${TARGET}" -tags pkcs11 --ldflags "${LDFLAGS}" -buildmode=pie 
"${SOURCE}" 
+ 
+ ln -sf "$(basename "${TARGET}")" build/docker
+-- 
+2.7.4
+
-- 
2.7.4

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


[yocto] [PATCH][meta-security] bseccomp: fix do package qa warning

2018-09-29 Thread changqing.li
From: Changqing Li 

Fix below warning:

lib32-libseccomp-2.3.3-r0 do_package: QA Issue: lib32-libseccomp:
Files/directories were installed but not shipped in any package:

Signed-off-by: Changqing Li 
---
 recipes-security/libseccomp/libseccomp_2.3.3.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-security/libseccomp/libseccomp_2.3.3.bb 
b/recipes-security/libseccomp/libseccomp_2.3.3.bb
index 0a8a679..9c66db6 100644
--- a/recipes-security/libseccomp/libseccomp_2.3.3.bb
+++ b/recipes-security/libseccomp/libseccomp_2.3.3.bb
@@ -35,7 +35,7 @@ do_install_ptest() {
 done
 }
 
-FILES_${PN} = "${bindir} ${libdir}/${PN}.so*"
+FILES_${PN} = "${bindir} ${libdir}/${BPN}.so*"
 FILES_${PN}-dbg += "${libdir}/${PN}/tests/.debug/* 
${libdir}/${PN}/tools/.debug"
 
 RDEPENDS_${PN}-ptest = "bash"
-- 
2.7.4

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


[yocto] Yocto poky headless Pi 0 W - OTG /RNDIS

2018-09-29 Thread Outback Dingo
Headless Raspberry PI 0 W cant get OTG rndis up, i followed the guide and set
ENABLE_UART = "1"
ENABLE_DWC2_PERIPHERAL = "1"

current config is

MACHINE ??= "raspberrypi0-wifi"
SERIAL_CONSOLE = ""
ENABLE_UART = "1"
ENABLE_DWC2_PERIPHERAL = "1"
DISABLE_RPI_BOOT_LOGO = "1"
DISABLE_OVERSCAN = "1"
DISABLE_SPLASH = "1"
BOOT_DELAY = "0"
GPU_MEM_256 = "128"
GPU_MEM_512 = "196"
GPU_MEM_1024 = "396"
DISTRO_FEATURES_remove = "x11"
DISTRO_FEATURES_append = " opengl"
PACKAGE_CLASSES = "package_ipk"
IMAGE_INSTALL_append = " chrony"
IMAGE_INSTALL_append = " linux-firmware-bcm43430 wpa-supplicant"
IMAGE_FSTYPES = "tar.bz2 ext4 rpi-sdimg"
SDIMG_ROOTFS_TYPE = "ext4"
CORE_IMAGE_EXTRA_INSTALL += "openssh"
DISTRO_FEATURES_append += "bluez5 bluetooth wifi"


as following the docs it stated
ENABLE_UART = "1"
ENABLE_DWC2_PERIPHERAL = "1"

for OTG, buut i dont seem to see any rndis on my laptop via thhe
second poort, Rasbian / DietPI work fine, so do i need to edit the
config.txt and cmdline.txt like in Raspbian? also do we need a ssh
file in boot as also with Raspbian ?

Edit the file config.txt and add dtoverlay=dwc2 on its own line at the end.
Edit the file cmdline.txt and add modules-load=dwc2,g_ether right
after it says rootwait


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