Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/6] Small fixes from bitbake world
@ 2012-12-04  1:31 Martin Jansa
  2012-12-04  1:31 ` [PATCH 1/6] at: drop initscript dependency Martin Jansa
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Martin Jansa @ 2012-12-04  1:31 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit 24b954253dd1aa626835352c4dc8d085a19aae35:

  xserver-xorg: restore packaging for the DRI/DRI2/DBE extensions (2012-12-03 16:38:28 +0000)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib jansa/pull
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=jansa/pull

Enrico Scholz (1):
  sstate.bbclass: fixed file-conflict check

Martin Jansa (5):
  at: drop initscript dependency
  packagegroup-core-basic: use VIRTUAL-RUNTIME_initscripts and
    VIRTUAL-RUNTIME_init_manager
  distutils: remove empty datadir/share after it's content is moved to
    datadir
  util-linux: use u-a for eject
  sstate.bbclass: fix detection of owners matching sstate files

 meta/classes/distutils.bbclass                                 | 1 +
 meta/classes/sstate.bbclass                                    | 5 ++---
 meta/recipes-core/util-linux/util-linux.inc                    | 3 ++-
 meta/recipes-core/util-linux/util-linux_2.22.1.bb              | 2 +-
 meta/recipes-extended/at/at_3.1.13.bb                          | 2 +-
 meta/recipes-extended/packagegroups/packagegroup-core-basic.bb | 8 +++++---
 6 files changed, 12 insertions(+), 9 deletions(-)

-- 
1.8.0




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

* [PATCH 1/6] at: drop initscript dependency
  2012-12-04  1:31 [PATCH 0/6] Small fixes from bitbake world Martin Jansa
@ 2012-12-04  1:31 ` Martin Jansa
  2012-12-04 15:45   ` Saul Wold
  2012-12-04  1:31 ` [PATCH 2/6] packagegroup-core-basic: use VIRTUAL-RUNTIME_initscripts and VIRTUAL-RUNTIME_init_manager Martin Jansa
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 8+ messages in thread
From: Martin Jansa @ 2012-12-04  1:31 UTC (permalink / raw)
  To: openembedded-core

* doesn't look like build dependency
* and for runtime dependency if needed we should use VIRTUAL-RUNTIME_initscripts

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/recipes-extended/at/at_3.1.13.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-extended/at/at_3.1.13.bb b/meta/recipes-extended/at/at_3.1.13.bb
index 3580e09..96cc34a 100644
--- a/meta/recipes-extended/at/at_3.1.13.bb
+++ b/meta/recipes-extended/at/at_3.1.13.bb
@@ -4,7 +4,7 @@ the system load levels drop to a particular level."
 SECTION = "base"
 LICENSE="GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=4325afd396febcb659c36b49533135d4"
-DEPENDS = "flex flex-native initscripts \
+DEPENDS = "flex flex-native \
 	${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
 RDEPENDS_${PN} = "${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_DEPS}', '', d)}"
 PAM_DEPS = "libpam libpam-runtime pam-plugin-env pam-plugin-limits"
-- 
1.8.0




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

* [PATCH 2/6] packagegroup-core-basic: use VIRTUAL-RUNTIME_initscripts and VIRTUAL-RUNTIME_init_manager
  2012-12-04  1:31 [PATCH 0/6] Small fixes from bitbake world Martin Jansa
  2012-12-04  1:31 ` [PATCH 1/6] at: drop initscript dependency Martin Jansa
@ 2012-12-04  1:31 ` Martin Jansa
  2012-12-04  1:31 ` [PATCH 3/6] distutils: remove empty datadir/share after it's content is moved to datadir Martin Jansa
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Martin Jansa @ 2012-12-04  1:31 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/recipes-extended/packagegroups/packagegroup-core-basic.bb | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-extended/packagegroups/packagegroup-core-basic.bb b/meta/recipes-extended/packagegroups/packagegroup-core-basic.bb
index d3eeeed..31cac33 100644
--- a/meta/recipes-extended/packagegroups/packagegroup-core-basic.bb
+++ b/meta/recipes-extended/packagegroups/packagegroup-core-basic.bb
@@ -3,7 +3,7 @@
 #
 
 DESCRIPTION = "Create Basic Image Tasks"
-PR = "r5"
+PR = "r6"
 LICENSE = "MIT"
 
 inherit packagegroup
@@ -90,9 +90,11 @@ RDEPENDS_packagegroup-core-dev-utils = "\
     patch \
     "
 
+VIRTUAL-RUNTIME_initscripts ?= "initscripts"
+VIRTUAL-RUNTIME_init_manager ?= "sysvinit"
 RDEPENDS_packagegroup-core-initscripts = "\
-    initscripts \
-    sysvinit \
+    ${VIRTUAL-RUNTIME_initscripts} \
+    ${VIRTUAL-RUNTIME_init_manager} \
     ethtool \
     mingetty \
     sysklogd \
-- 
1.8.0




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

* [PATCH 3/6] distutils: remove empty datadir/share after it's content is moved to datadir
  2012-12-04  1:31 [PATCH 0/6] Small fixes from bitbake world Martin Jansa
  2012-12-04  1:31 ` [PATCH 1/6] at: drop initscript dependency Martin Jansa
  2012-12-04  1:31 ` [PATCH 2/6] packagegroup-core-basic: use VIRTUAL-RUNTIME_initscripts and VIRTUAL-RUNTIME_init_manager Martin Jansa
@ 2012-12-04  1:31 ` Martin Jansa
  2012-12-04  1:31 ` [PATCH 4/6] util-linux: use u-a for eject Martin Jansa
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Martin Jansa @ 2012-12-04  1:31 UTC (permalink / raw)
  To: openembedded-core

* fixes a lot of QA warnings about unpackaged /usr/share/share

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/classes/distutils.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/distutils.bbclass b/meta/classes/distutils.bbclass
index c73b24f..552e5f3 100644
--- a/meta/classes/distutils.bbclass
+++ b/meta/classes/distutils.bbclass
@@ -64,6 +64,7 @@ distutils_do_install() {
         #
         if test -e ${D}${datadir}/share; then
             mv -f ${D}${datadir}/share/* ${D}${datadir}/
+            rmdir ${D}${datadir}/share
         fi
 }
 
-- 
1.8.0




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

* [PATCH 4/6] util-linux: use u-a for eject
  2012-12-04  1:31 [PATCH 0/6] Small fixes from bitbake world Martin Jansa
                   ` (2 preceding siblings ...)
  2012-12-04  1:31 ` [PATCH 3/6] distutils: remove empty datadir/share after it's content is moved to datadir Martin Jansa
@ 2012-12-04  1:31 ` Martin Jansa
  2012-12-04  1:31 ` [PATCH 5/6] sstate.bbclass: fixed file-conflict check Martin Jansa
  2012-12-04  1:31 ` [PATCH 6/6] sstate.bbclass: fix detection of owners matching sstate files Martin Jansa
  5 siblings, 0 replies; 8+ messages in thread
From: Martin Jansa @ 2012-12-04  1:31 UTC (permalink / raw)
  To: openembedded-core

* 2.22.1 now builds eject which conflicts with eject from eject recipe in meta-oe

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/recipes-core/util-linux/util-linux.inc       | 3 ++-
 meta/recipes-core/util-linux/util-linux_2.22.1.bb | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc
index 058f06f..30d80e5 100644
--- a/meta/recipes-core/util-linux/util-linux.inc
+++ b/meta/recipes-core/util-linux/util-linux.inc
@@ -136,7 +136,7 @@ ALTERNATIVE_PRIORITY = "100"
 
 ALTERNATIVE_${PN}  = "dmesg kill more reset mkswap blockdev pivot_root"
 ALTERNATIVE_${PN} += "mkfs.minix hexdump last logger mesg renice wall"
-ALTERNATIVE_${PN} += "setsid chrt flock hwclock utmpdump"
+ALTERNATIVE_${PN} += "setsid chrt flock hwclock utmpdump eject"
 
 ALTERNATIVE_LINK_NAME[dmesg] = "${base_bindir}/dmesg"
 ALTERNATIVE_LINK_NAME[kill] = "${base_bindir}/kill"
@@ -147,6 +147,7 @@ ALTERNATIVE_LINK_NAME[mkswap] = "${base_sbindir}/mkswap"
 ALTERNATIVE_LINK_NAME[blockdev] = "${base_sbindir}/blockdev"
 ALTERNATIVE_LINK_NAME[pivot_root] = "${base_sbindir}/pivot_root"
 ALTERNATIVE_LINK_NAME[mkfs.minix] = "${base_sbindir}/mkfs.minix"
+ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject"
 
 # There seems to be problem, atleast on nslu2, with these, untill they are
 # fixed the busybox ones have higher priority
diff --git a/meta/recipes-core/util-linux/util-linux_2.22.1.bb b/meta/recipes-core/util-linux/util-linux_2.22.1.bb
index c72634d..0177bba 100644
--- a/meta/recipes-core/util-linux/util-linux_2.22.1.bb
+++ b/meta/recipes-core/util-linux/util-linux_2.22.1.bb
@@ -1,5 +1,5 @@
 MAJOR_VERSION = "2.22"
-PR = "r0"
+PR = "r1"
 require util-linux.inc
 
 # note that `lscpu' is under GPLv3+
-- 
1.8.0




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

* [PATCH 5/6] sstate.bbclass: fixed file-conflict check
  2012-12-04  1:31 [PATCH 0/6] Small fixes from bitbake world Martin Jansa
                   ` (3 preceding siblings ...)
  2012-12-04  1:31 ` [PATCH 4/6] util-linux: use u-a for eject Martin Jansa
@ 2012-12-04  1:31 ` Martin Jansa
  2012-12-04  1:31 ` [PATCH 6/6] sstate.bbclass: fix detection of owners matching sstate files Martin Jansa
  5 siblings, 0 replies; 8+ messages in thread
From: Martin Jansa @ 2012-12-04  1:31 UTC (permalink / raw)
  To: openembedded-core

From: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>

The value of subprocess.Popen().communicate()[0] is a string.
Checking for '!= None' will always match causing bogus warnings
regarding already staged files.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/classes/sstate.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 6de35e6..967ae9b 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -171,7 +171,7 @@ def sstate_install(ss, d):
                 sstate_search_cmd = "grep -rl %s %s --exclude=master.list | sed -e 's:^.*/::' -e 's:\.populate-sysroot::'" % (f, d.expand("${SSTATE_MANIFESTS}"))
                 cmd_array = sstate_search_cmd.split(' ')
                 search_output = subprocess.Popen(cmd_array, stdout=subprocess.PIPE).communicate()[0]
-                if search_output != None:
+                if search_output != "":
                     match.append("Matched in %s" % search_output.rstrip())
     if match:
         bb.warn("The recipe %s is trying to install files into a shared area when those files already exist. Those files and their manifest location are:\n   %s\nPlease verify which package should provide the above files." % (d.getVar('PN', True), "\n   ".join(match)))
-- 
1.8.0




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

* [PATCH 6/6] sstate.bbclass: fix detection of owners matching sstate files
  2012-12-04  1:31 [PATCH 0/6] Small fixes from bitbake world Martin Jansa
                   ` (4 preceding siblings ...)
  2012-12-04  1:31 ` [PATCH 5/6] sstate.bbclass: fixed file-conflict check Martin Jansa
@ 2012-12-04  1:31 ` Martin Jansa
  5 siblings, 0 replies; 8+ messages in thread
From: Martin Jansa @ 2012-12-04  1:31 UTC (permalink / raw)
  To: openembedded-core

* without this patch:
  Python 2.7.3
  >>> sstate_search_cmd = "grep -rl /OE/jansa-test/shr-core/tmp-eglibc/pkgdata/armv7a-vfp-neon-oe-linux-gnueabi/runtime-reverse/vim-common /OE/jansa-test/shr-core/tmp-eglibc/sstate-control --exclude=master.list | sed -e 's:^.*/::' -e 's:\.populate-sysroot::'"
  >>> cmd_array = sstate_search_cmd.split(' ')
  >>> search_output = subprocess.Popen(cmd_array, stdout=subprocess.PIPE).communicate()[0]
  grep: |: No such file or directory
  grep: sed: No such file or directory

* Adding shell=True and using cmd string instead of array makes it work:
  >>> search_output = subprocess.Popen(sstate_search_cmd, shell=True, stdout=subprocess.PIPE).communicate()[0]
  >>> print search_output
  manifest-armv7a-vfp-neon-gvim.package
  manifest-armv7a-vfp-neon-vim-tiny.package
  manifest-armv7a-vfp-neon-vim.package

  But still isn't 100% reliable, I guess it's caused by some other package
  being removed from sstate while grep is already running.
  So sometimes grep can show error on STDERR
  >>> search_output = subprocess.Popen(sstate_search_cmd, shell=True, stdout=subprocess.PIPE).communicate()[0]
  grep: /OE/jansa-test/shr-core/tmp-eglibc/sstate-control/manifest-armv7a-vfp-neon-systemtap.package: No such file or directory

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/classes/sstate.bbclass | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 967ae9b..832b39e 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -169,8 +169,7 @@ def sstate_install(ss, d):
             if realmatch:
                 match.append(f)
                 sstate_search_cmd = "grep -rl %s %s --exclude=master.list | sed -e 's:^.*/::' -e 's:\.populate-sysroot::'" % (f, d.expand("${SSTATE_MANIFESTS}"))
-                cmd_array = sstate_search_cmd.split(' ')
-                search_output = subprocess.Popen(cmd_array, stdout=subprocess.PIPE).communicate()[0]
+                search_output = subprocess.Popen(sstate_search_cmd, shell=True, stdout=subprocess.PIPE).communicate()[0]
                 if search_output != "":
                     match.append("Matched in %s" % search_output.rstrip())
     if match:
-- 
1.8.0




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

* Re: [PATCH 1/6] at: drop initscript dependency
  2012-12-04  1:31 ` [PATCH 1/6] at: drop initscript dependency Martin Jansa
@ 2012-12-04 15:45   ` Saul Wold
  0 siblings, 0 replies; 8+ messages in thread
From: Saul Wold @ 2012-12-04 15:45 UTC (permalink / raw)
  To: Martin Jansa; +Cc: openembedded-core

On 12/03/2012 05:31 PM, Martin Jansa wrote:
> * doesn't look like build dependency
> * and for runtime dependency if needed we should use VIRTUAL-RUNTIME_initscripts
>
Agreed on the VIRTUAL-RUNTIME, which I think is needed for the 
populate-volatiles script for the /var and /run directories.

Sau!

> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
>   meta/recipes-extended/at/at_3.1.13.bb | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-extended/at/at_3.1.13.bb b/meta/recipes-extended/at/at_3.1.13.bb
> index 3580e09..96cc34a 100644
> --- a/meta/recipes-extended/at/at_3.1.13.bb
> +++ b/meta/recipes-extended/at/at_3.1.13.bb
> @@ -4,7 +4,7 @@ the system load levels drop to a particular level."
>   SECTION = "base"
>   LICENSE="GPLv2+"
>   LIC_FILES_CHKSUM = "file://COPYING;md5=4325afd396febcb659c36b49533135d4"
> -DEPENDS = "flex flex-native initscripts \
> +DEPENDS = "flex flex-native \
>   	${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
>   RDEPENDS_${PN} = "${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_DEPS}', '', d)}"
>   PAM_DEPS = "libpam libpam-runtime pam-plugin-env pam-plugin-limits"
>



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

end of thread, other threads:[~2012-12-04 16:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-04  1:31 [PATCH 0/6] Small fixes from bitbake world Martin Jansa
2012-12-04  1:31 ` [PATCH 1/6] at: drop initscript dependency Martin Jansa
2012-12-04 15:45   ` Saul Wold
2012-12-04  1:31 ` [PATCH 2/6] packagegroup-core-basic: use VIRTUAL-RUNTIME_initscripts and VIRTUAL-RUNTIME_init_manager Martin Jansa
2012-12-04  1:31 ` [PATCH 3/6] distutils: remove empty datadir/share after it's content is moved to datadir Martin Jansa
2012-12-04  1:31 ` [PATCH 4/6] util-linux: use u-a for eject Martin Jansa
2012-12-04  1:31 ` [PATCH 5/6] sstate.bbclass: fixed file-conflict check Martin Jansa
2012-12-04  1:31 ` [PATCH 6/6] sstate.bbclass: fix detection of owners matching sstate files Martin Jansa

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