Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/4] fix WARNING: QA Issue on kmod/udev/nfs-utils (unsafe references [/ references to /usr/lib])
@ 2013-11-04  7:13 Hongxu Jia
  2013-11-04  7:13 ` [PATCH 1/4] insane.bbclass: support to skip unsafe references in binaries qa check Hongxu Jia
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Hongxu Jia @ 2013-11-04  7:13 UTC (permalink / raw)
  To: openembedded-core; +Cc: saul.wold

The following changes since commit f3541226b8b1187e79dec0f6f9f3c58cedf9ac9b:

  bitbake: hob: do not display the "Package list may be incomplete!" dialog (2013-11-01 17:59:31 +0000)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib hongxu/fix-qa-issue
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/fix-qa-issue

Hongxu Jia (4):
  insane.bbclass: support to skip  unsafe references in binaries qa
    check.
  kmod: fix QA issue
  udev: fix  QA issue
  nfs-utils: fix QA issue

 meta/classes/insane.bbclass                            | 4 ++++
 meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.8.bb | 2 ++
 meta/recipes-core/udev/udev.inc                        | 3 +--
 meta/recipes-kernel/kmod/kmod_git.bb                   | 1 +
 4 files changed, 8 insertions(+), 2 deletions(-)

-- 
1.8.1.2



^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 1/4] insane.bbclass: support to skip unsafe references in binaries qa check.
  2013-11-04  7:13 [PATCH 0/4] fix WARNING: QA Issue on kmod/udev/nfs-utils (unsafe references [/ references to /usr/lib]) Hongxu Jia
@ 2013-11-04  7:13 ` Hongxu Jia
  2013-11-04  7:13 ` [PATCH 2/4] kmod: fix QA issue Hongxu Jia
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Hongxu Jia @ 2013-11-04  7:13 UTC (permalink / raw)
  To: openembedded-core; +Cc: saul.wold

Add a variable to support skipping the unsafe references in binaries qa check.

[YOCTO #5142]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta/classes/insane.bbclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index eb440c2..20bbab0 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -318,6 +318,10 @@ def package_qa_check_unsafe_references_in_binaries(path, name, d, elf, messages)
 	if elf:
 		import subprocess as sub
 		pn = d.getVar('PN', True)
+		# Skip for any packages with unsafe-ref-bin in INSANE_SKIP
+		if 'unsafe-ref-bin' in (d.getVar('INSANE_SKIP_' + pn, True) or "").split():
+			bb.note("Package %s skipping unsafe references in binaries QA test" % (pn))
+			return
 
 		exec_prefix = d.getVar('exec_prefix', True)
 		sysroot_path = d.getVar('STAGING_DIR_TARGET', True)
-- 
1.8.1.2



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/4] kmod: fix QA issue
  2013-11-04  7:13 [PATCH 0/4] fix WARNING: QA Issue on kmod/udev/nfs-utils (unsafe references [/ references to /usr/lib]) Hongxu Jia
  2013-11-04  7:13 ` [PATCH 1/4] insane.bbclass: support to skip unsafe references in binaries qa check Hongxu Jia
@ 2013-11-04  7:13 ` Hongxu Jia
  2013-11-04  7:13 ` [PATCH 3/4] udev: " Hongxu Jia
  2013-11-04  7:13 ` [PATCH 4/4] nfs-utils: " Hongxu Jia
  3 siblings, 0 replies; 7+ messages in thread
From: Hongxu Jia @ 2013-11-04  7:13 UTC (permalink / raw)
  To: openembedded-core; +Cc: saul.wold

The commit 7163ebd92a799b8f000b2b6f303b20de468b5f90
Revert "kmod: Use base_libdir for installing libkmod"

It caused a QA Issue WARNING:
...
WARNING: QA Issue: kmod: /bin/kmod, installed in the base_prefix, requires a shared library under exec_prefix (/usr): libkmod.so.2 => /usr/lib64/libkmod.so.2 (0x00000000dead1000)
...

But we did this reasonably, we should skip the qa check explicitly.

[YOCTO #5142]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta/recipes-kernel/kmod/kmod_git.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-kernel/kmod/kmod_git.bb b/meta/recipes-kernel/kmod/kmod_git.bb
index f90b9aa..b370016 100644
--- a/meta/recipes-kernel/kmod/kmod_git.bb
+++ b/meta/recipes-kernel/kmod/kmod_git.bb
@@ -15,6 +15,7 @@ RCONFLICTS_libkmod2 += "module-init-tools-insmod-static module-init-tools-depmod
 bindir = "${base_bindir}"
 sbindir = "${base_sbindir}"
 # libdir = "${base_libdir}"
+INSANE_SKIP_${PN} = "unsafe-ref-bin"
 
 do_install_append () {
         install -dm755 ${D}${base_bindir}
-- 
1.8.1.2



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 3/4] udev: fix QA issue
  2013-11-04  7:13 [PATCH 0/4] fix WARNING: QA Issue on kmod/udev/nfs-utils (unsafe references [/ references to /usr/lib]) Hongxu Jia
  2013-11-04  7:13 ` [PATCH 1/4] insane.bbclass: support to skip unsafe references in binaries qa check Hongxu Jia
  2013-11-04  7:13 ` [PATCH 2/4] kmod: fix QA issue Hongxu Jia
@ 2013-11-04  7:13 ` Hongxu Jia
  2013-11-04  9:50   ` Hongxu Jia
  2013-11-04  7:13 ` [PATCH 4/4] nfs-utils: " Hongxu Jia
  3 siblings, 1 reply; 7+ messages in thread
From: Hongxu Jia @ 2013-11-04  7:13 UTC (permalink / raw)
  To: openembedded-core; +Cc: saul.wold

...
WARNING: QA Issue: udev: /lib/libgudev-1.0.so.0.1.1, installed in the base_prefix, requires a shared library under exec_prefix (/usr): libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xdead3000)
WARNING: QA Issue: udev: /lib/libgudev-1.0.so.0.1.1, installed in the base_prefix, requires a shared library under exec_prefix (/usr): libffi.so.6 => /usr/lib/libffi.so.6 (0xdead4000)
WARNING: QA Issue: udev: /lib/libgudev-1.0.so.0.1.1, installed in the base_prefix, requires a shared library under exec_prefix (/usr): libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xdead5000)
WARNING: QA Issue: udev: /lib/udev/udevd, installed in the base_prefix, requires a shared library under exec_prefix (/usr): libkmod.so.2 => /usr/lib/libkmod.so.2 (0xdead3000)
...

Install libgudev-1.0.so.0.1.1 in ${libdir} rather than ${base_libdir}
fixed this issue.

[YOCTO #5142]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta/recipes-core/udev/udev.inc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta/recipes-core/udev/udev.inc b/meta/recipes-core/udev/udev.inc
index 2ff8f00..2f883a0 100644
--- a/meta/recipes-core/udev/udev.inc
+++ b/meta/recipes-core/udev/udev.inc
@@ -32,14 +32,13 @@ inherit autotools pkgconfig update-rc.d
 
 libexecdir = "${base_libdir}"
 EXTRA_OECONF = "--disable-introspection \
-                --with-rootlibdir=${base_libdir} \
+                --with-rootlibdir=${libdir} \
                 --with-pci-ids-path=${datadir}/pci.ids \
                 ac_cv_file__usr_share_pci_ids=no \
                 ac_cv_file__usr_share_hwdata_pci_ids=no \
                 ac_cv_file__usr_share_misc_pci_ids=yes \
                 --sbindir=${base_sbindir} \
                 --libexecdir=${nonarch_base_libdir} \
-                --with-rootlibdir=${base_libdir} \
                 --with-rootprefix= \
                 --without-systemdsystemunitdir \
                "
-- 
1.8.1.2



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 4/4] nfs-utils: fix QA issue
  2013-11-04  7:13 [PATCH 0/4] fix WARNING: QA Issue on kmod/udev/nfs-utils (unsafe references [/ references to /usr/lib]) Hongxu Jia
                   ` (2 preceding siblings ...)
  2013-11-04  7:13 ` [PATCH 3/4] udev: " Hongxu Jia
@ 2013-11-04  7:13 ` Hongxu Jia
  2013-11-04  7:59   ` Hongxu Jia
  3 siblings, 1 reply; 7+ messages in thread
From: Hongxu Jia @ 2013-11-04  7:13 UTC (permalink / raw)
  To: openembedded-core; +Cc: saul.wold

...
WARNING: QA Issue: nfs-utils: Found a reference to /usr/ in /home/jiahongxu/yocto/build-20131025-gcc5/bitbake_build/tmp/work/x86_64-wrs-linux/nfs-utils/1.2.8-r1/packages-split/nfs-utils/sbin/osd_login
WARNING: QA Issue: Shell scripts in base_bindir and base_sbindir should not reference anything in exec_prefix
...

Move osd_login from ${base_sbindir} to ${sbindir} fixed this issue

[YOCTO #5142]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.8.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.8.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.8.bb
index e3e8136..5329822 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.8.bb
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.8.bb
@@ -89,4 +89,6 @@ do_install_append () {
 	rm -f ${D}${sbindir}/rpcdebug
 	rm -f ${D}${sbindir}/rpcgen
 	rm -f ${D}${sbindir}/locktest
+
+	mv ${D}${base_sbindir}/osd_login ${D}${sbindir}/osd_login
 }
-- 
1.8.1.2



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 4/4] nfs-utils: fix QA issue
  2013-11-04  7:13 ` [PATCH 4/4] nfs-utils: " Hongxu Jia
@ 2013-11-04  7:59   ` Hongxu Jia
  0 siblings, 0 replies; 7+ messages in thread
From: Hongxu Jia @ 2013-11-04  7:59 UTC (permalink / raw)
  To: openembedded-core; +Cc: saul.wold

On 11/04/2013 03:13 PM, Hongxu Jia wrote:
> ...
> WARNING: QA Issue: nfs-utils: Found a reference to /usr/ in /home/jiahongxu/yocto/build-20131025-gcc5/bitbake_build/tmp/work/x86_64-wrs-linux/nfs-utils/1.2.8-r1/packages-split/nfs-utils/sbin/osd_login
> WARNING: QA Issue: Shell scripts in base_bindir and base_sbindir should not reference anything in exec_prefix
> ...
>
> Move osd_login from ${base_sbindir} to ${sbindir} fixed this issue
>
> [YOCTO #5142]
>
> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
> ---
>   meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.8.bb | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.8.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.8.bb
> index e3e8136..5329822 100644
> --- a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.8.bb
> +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.8.bb
> @@ -89,4 +89,6 @@ do_install_append () {
>   	rm -f ${D}${sbindir}/rpcdebug
>   	rm -f ${D}${sbindir}/rpcgen
>   	rm -f ${D}${sbindir}/locktest
> +
> +	mv ${D}${base_sbindir}/osd_login ${D}${sbindir}/osd_login
There will be error while rerun 'bitbake nfs-utils -cinstall -f'.

It's better to modify osd_login's Makefile to let its be installed in 
${sbindir}
rather than the hardcoded moving in bb,

I have updated git://git.pokylinux.org/poky-contrib hongxu/fix-qa-issue

--- /dev/null
+++ 
b/meta/recipes-connectivity/nfs-utils/nfs-utils/osd_login-let-sbindir-can-be-overridden-at-config-ti.patch
@@ -0,0 +1,24 @@
+osd_login: let sbindir can be overridden at config time
+
+Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
+Upstream-Status: Pending
+---
+ utils/osd_login/Makefile.am | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/utils/osd_login/Makefile.am b/utils/osd_login/Makefile.am
+--- a/utils/osd_login/Makefile.am
++++ b/utils/osd_login/Makefile.am
+@@ -1,9 +1,5 @@
+ ## Process this file with automake to produce Makefile.in
+
+-# These binaries go in /sbin (not /usr/sbin), and that cannot be
+-# overridden at config time.
+-sbindir = /sbin
+-
+ sbin_SCRIPTS = osd_login
+
+ MAINTAINERCLEANFILES = Makefile.in
+--
+1.8.1.2
+
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.8.bb 
b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.8.bb
index e3e8136..84dd623 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.8.bb
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.8.bb
@@ -15,6 +15,7 @@ RRECOMMENDS_${PN} = "kernel-module-nfsd"
  SRC_URI = 
"${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.bz2 \
             file://nfs-utils-1.0.6-uclibc.patch \
             file://nfs-utils-1.2.3-sm-notify-res_init.patch \
+ file://osd_login-let-sbindir-can-be-overridden-at-config-ti.patch \
             file://nfsserver \
             file://nfs-utils.conf \

//Hongxu


>   }



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 3/4] udev: fix QA issue
  2013-11-04  7:13 ` [PATCH 3/4] udev: " Hongxu Jia
@ 2013-11-04  9:50   ` Hongxu Jia
  0 siblings, 0 replies; 7+ messages in thread
From: Hongxu Jia @ 2013-11-04  9:50 UTC (permalink / raw)
  To: openembedded-core

On 11/04/2013 03:13 PM, Hongxu Jia wrote:
> ...
> WARNING: QA Issue: udev: /lib/libgudev-1.0.so.0.1.1, installed in the base_prefix, requires a shared library under exec_prefix (/usr): libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xdead3000)
> WARNING: QA Issue: udev: /lib/libgudev-1.0.so.0.1.1, installed in the base_prefix, requires a shared library under exec_prefix (/usr): libffi.so.6 => /usr/lib/libffi.so.6 (0xdead4000)
> WARNING: QA Issue: udev: /lib/libgudev-1.0.so.0.1.1, installed in the base_prefix, requires a shared library under exec_prefix (/usr): libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xdead5000)

This patch fixed the above three warning, not include the fourth.
So please drop this, v2 will send.

//Hongxu

> WARNING: QA Issue: udev: /lib/udev/udevd, installed in the base_prefix, requires a shared library under exec_prefix (/usr): libkmod.so.2 => /usr/lib/libkmod.so.2 (0xdead3000)
> ...
>
> Install libgudev-1.0.so.0.1.1 in ${libdir} rather than ${base_libdir}
> fixed this issue.
>
> [YOCTO #5142]
>
> Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
> ---
>   meta/recipes-core/udev/udev.inc | 3 +--
>   1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/meta/recipes-core/udev/udev.inc b/meta/recipes-core/udev/udev.inc
> index 2ff8f00..2f883a0 100644
> --- a/meta/recipes-core/udev/udev.inc
> +++ b/meta/recipes-core/udev/udev.inc
> @@ -32,14 +32,13 @@ inherit autotools pkgconfig update-rc.d
>   
>   libexecdir = "${base_libdir}"
>   EXTRA_OECONF = "--disable-introspection \
> -                --with-rootlibdir=${base_libdir} \
> +                --with-rootlibdir=${libdir} \
>                   --with-pci-ids-path=${datadir}/pci.ids \
>                   ac_cv_file__usr_share_pci_ids=no \
>                   ac_cv_file__usr_share_hwdata_pci_ids=no \
>                   ac_cv_file__usr_share_misc_pci_ids=yes \
>                   --sbindir=${base_sbindir} \
>                   --libexecdir=${nonarch_base_libdir} \
> -                --with-rootlibdir=${base_libdir} \
>                   --with-rootprefix= \
>                   --without-systemdsystemunitdir \
>                  "



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-11-04  9:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-04  7:13 [PATCH 0/4] fix WARNING: QA Issue on kmod/udev/nfs-utils (unsafe references [/ references to /usr/lib]) Hongxu Jia
2013-11-04  7:13 ` [PATCH 1/4] insane.bbclass: support to skip unsafe references in binaries qa check Hongxu Jia
2013-11-04  7:13 ` [PATCH 2/4] kmod: fix QA issue Hongxu Jia
2013-11-04  7:13 ` [PATCH 3/4] udev: " Hongxu Jia
2013-11-04  9:50   ` Hongxu Jia
2013-11-04  7:13 ` [PATCH 4/4] nfs-utils: " Hongxu Jia
2013-11-04  7:59   ` Hongxu Jia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox