Skip to contentSkip to conversation

Trouble by last dbus patch (46e6c3fa8034b12d178d605f3f5d7efe69671a13)?

PATCH In review Andreas Müller 9 participants 22 messages Oct 27, 2011 – Nov 9, 2011

lore
Share & tools
lore
#0 lore raw

Since the last updates of all layers (angstrom based) I have issues with

* networkmanager/nm-applet (meta-oe): I am not allowed to change the settings any more
* xfce-session (meta-oe): Logging out takes very long and Restart/Shutdown is disabled

I remember that I had similar issues a while ago. That could be worked around by starting some dbus stuff ( do not exactly remember what it was ).

With this vague idea I checked and found in oe-core:

| dbus: use useradd class to allow use in read-only filesystems
| author	Otavio Salvador <[email protected]>
| commit	46e6c3fa8034b12d178d605f3f5d7efe69671a13

Not understanding totally what is all about I see in /etc/passw

| messagebus:x:999:998::/var/lib/dbus:/bin/sh

but I don't have /var/lib/dbus on my sytem!!

I did not check yet, but maybe this is an incompatibilty with angstrom custom

| FILESYSTEM_PERMS_TABLES = "fs-perms-angstrom.txt"

somebody around to enlight the darkness?

Andreas

#1 lore raw
Quoted 20 lines · Andreas Müller

Since the last updates of all layers (angstrom based) I have issues with

* networkmanager/nm-applet (meta-oe): I am not allowed to change the settings any more
* xfce-session (meta-oe): Logging out takes very long and Restart/Shutdown is disabled

I remember that I had similar issues a while ago. That could be worked around by starting some dbus stuff ( do not exactly remember what it was ).

With this vague idea I checked and found in oe-core:

| dbus: use useradd class to allow use in read-only filesystems
| author	Otavio Salvador<[email protected]>
| commit	46e6c3fa8034b12d178d605f3f5d7efe69671a13

Not understanding totally what is all about I see in /etc/passw

| messagebus:x:999:998::/var/lib/dbus:/bin/sh

Quoted 7 lines

but I don't have /var/lib/dbus on my sytem!!

I did not check yet, but maybe this is an incompatibilty with angstrom custom

| FILESYSTEM_PERMS_TABLES = "fs-perms-angstrom.txt"

somebody around to enlight the darkness?

useradd should be creating the home directory automatically, but I'd guess it's not being picked up during packaging. Try adding:

${localstatedir}/lib/dbus

to FILES_${PN}

This is a reasonable guess off the top of my head.

Scott

Signature · 3 lines
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center
#2 lore raw
Quoted 32 lines · Scott Garman
Quoted 20 lines · Andreas Müller

Since the last updates of all layers (angstrom based) I have issues with

* networkmanager/nm-applet (meta-oe): I am not allowed to change the settings any more
* xfce-session (meta-oe): Logging out takes very long and Restart/Shutdown is disabled

I remember that I had similar issues a while ago. That could be worked around by starting some dbus stuff ( do not exactly remember what it was ).

With this vague idea I checked and found in oe-core:

| dbus: use useradd class to allow use in read-only filesystems
| author	Otavio Salvador<[email protected]>
| commit	46e6c3fa8034b12d178d605f3f5d7efe69671a13

Not understanding totally what is all about I see in /etc/passw

| messagebus:x:999:998::/var/lib/dbus:/bin/sh

Quoted 7 lines

but I don't have /var/lib/dbus on my sytem!!

I did not check yet, but maybe this is an incompatibilty with angstrom custom

| FILESYSTEM_PERMS_TABLES = "fs-perms-angstrom.txt"

somebody around to enlight the darkness?

useradd should be creating the home directory automatically, but I'd guess it's not being picked up during packaging. Try adding:

Quoted 9 lines

${localstatedir}/lib/dbus

to FILES_${PN}

This is a reasonable guess off the top of my head.

Scott

On the machine I created /var/lib/dbus and made messagebus owner but no change in behaviour..

Andreas

#3 lore raw
Quoted 37 lines · Andreas Müller
Quoted 36 lines · Scott Garman
Quoted 20 lines · Andreas Müller

Since the last updates of all layers (angstrom based) I have issues with

* networkmanager/nm-applet (meta-oe): I am not allowed to change the settings any more
* xfce-session (meta-oe): Logging out takes very long and Restart/Shutdown is disabled

I remember that I had similar issues a while ago. That could be worked around by starting some dbus stuff ( do not exactly remember what it was ).

With this vague idea I checked and found in oe-core:

| dbus: use useradd class to allow use in read-only filesystems
| author	Otavio Salvador<[email protected]>
| commit	46e6c3fa8034b12d178d605f3f5d7efe69671a13

Not understanding totally what is all about I see in /etc/passw

| messagebus:x:999:998::/var/lib/dbus:/bin/sh

Quoted 7 lines

but I don't have /var/lib/dbus on my sytem!!

I did not check yet, but maybe this is an incompatibilty with angstrom custom

| FILESYSTEM_PERMS_TABLES = "fs-perms-angstrom.txt"

somebody around to enlight the darkness?

useradd should be creating the home directory automatically, but I'd guess it's not being picked up during packaging. Try adding:

${localstatedir}/lib/dbus

to FILES_${PN}

Quoted 7 lines
Quoted 5 lines

This is a reasonable guess off the top of my head.

Scott

On the machine I created /var/lib/dbus and made messagebus owner but no change in behaviour..

And in retrospect, I now realize the useradd utility should create this home directory at rootfs creation time, so there's no chance it could be a packaging problem. So forget my initial suggestion.

Scott

Signature · 3 lines
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center
#4 lore raw
In reply to Andreas Müller
Quoted 2 lines · Andreas Müller

I remember that I had similar issues a while ago. That could be worked around by starting some dbus stuff ( do not exactly remember what it was ).

You probably mean policykit, which has a ruleset for actions a user can do or not on dbus.

Bye Henning

#5 lore raw
In reply to Andreas Müller
Quoted 20 lines · Andreas Müller

Since the last updates of all layers (angstrom based) I have issues with

* networkmanager/nm-applet (meta-oe): I am not allowed to change the settings any more
* xfce-session (meta-oe): Logging out takes very long and Restart/Shutdown is disabled

I remember that I had similar issues a while ago. That could be worked around by starting some dbus stuff ( do not exactly remember what it was ).

With this vague idea I checked and found in oe-core:

| dbus: use useradd class to allow use in read-only filesystems
| author	Otavio Salvador <[email protected]>
| commit	46e6c3fa8034b12d178d605f3f5d7efe69671a13

Not understanding totally what is all about I see in /etc/passw

| messagebus:x:999:998::/var/lib/dbus:/bin/sh

Quoted 7 lines

but I don't have /var/lib/dbus on my sytem!!

I did not check yet, but maybe this is an incompatibilty with angstrom custom

| FILESYSTEM_PERMS_TABLES = "fs-perms-angstrom.txt"

somebody around to enlight the darkness?

There are some issues due to the orcering of when we now start some of the services. After the above change the dbus service starts much earlier on first boot, before some of the other postinstalls have run. This can mean you see errors due to users which have not yet been created by postinstalls (e.g. avahi or xuser) yet the dbus files reference these and its trying to start those services.

We're looking at fixing the remaining adduser type postinstalls to address this. I'm not sure if this is related to the problem you were seeing above or not.

Cheers,

Richard

#6 lore raw
Quoted 42 lines · Richard Purdie
Quoted 25 lines · Andreas Müller

Since the last updates of all layers (angstrom based) I have issues with

* networkmanager/nm-applet (meta-oe): I am not allowed to change the settings

any more

* xfce-session (meta-oe): Logging out takes very long and Restart/Shutdown is

disabled

I remember that I had similar issues a while ago. That could be worked around by starting some dbus stuff ( do not exactly remember what it was ).

With this vague idea I checked and found in oe-core:

| dbus: use useradd class to allow use in read-only filesystems
| author	Otavio Salvador <[email protected]>
| commit	46e6c3fa8034b12d178d605f3f5d7efe69671a13

Not understanding totally what is all about I see in /etc/passw

| messagebus:x:999:998::/var/lib/dbus:/bin/sh

Quoted 8 lines

but I don't have /var/lib/dbus on my sytem!!

I did not check yet, but maybe this is an incompatibilty with angstrom custom

| FILESYSTEM_PERMS_TABLES = "fs-perms-angstrom.txt"

somebody around to enlight the darkness?

There are some issues due to the orcering of when we now start some of the services. After the above change the dbus service starts much earlier on first boot, before some of the other postinstalls have run. This can mean you see errors due to users which have not yet been created by postinstalls (e.g. avahi or xuser) yet the dbus files reference these and its trying to start those services.

Quoted 4 lines

We're looking at fixing the remaining adduser type postinstalls to address this. I'm not sure if this is related to the problem you were seeing above or not.

FYI: reverting the patch fixes mentioned issues here.

Andreas

#7 lore raw
Quoted 44 lines · Andreas Müller
Quoted 43 lines · Richard Purdie
Quoted 26 lines · Andreas Müller

Since the last updates of all layers (angstrom based) I have issues with

* networkmanager/nm-applet (meta-oe): I am not allowed to change the settings

any more

* xfce-session (meta-oe): Logging out takes very long and Restart/Shutdown is

disabled

I remember that I had similar issues a while ago. That could be worked around by starting some dbus stuff ( do not exactly remember what it was ).

With this vague idea I checked and found in oe-core:

| dbus: use useradd class to allow use in read-only filesystems
| author	Otavio Salvador <[email protected]>
| commit	46e6c3fa8034b12d178d605f3f5d7efe69671a13

Not understanding totally what is all about I see in /etc/passw

| messagebus:x:999:998::/var/lib/dbus:/bin/sh

Quoted 8 lines

but I don't have /var/lib/dbus on my sytem!!

I did not check yet, but maybe this is an incompatibilty with angstrom custom

| FILESYSTEM_PERMS_TABLES = "fs-perms-angstrom.txt"

somebody around to enlight the darkness?

There are some issues due to the orcering of when we now start some of the services. After the above change the dbus service starts much earlier on first boot, before some of the other postinstalls have run. This can mean you see errors due to users which have not yet been created by postinstalls (e.g. avahi or xuser) yet the dbus files reference these and its trying to start those services.

Quoted 6 lines
Quoted 3 lines

We're looking at fixing the remaining adduser type postinstalls to address this. I'm not sure if this is related to the problem you were seeing above or not.

FYI: reverting the patch fixes mentioned issues here.

Maybe I missed something but after starting a new image - to get the errors mentioned above worked around - I still have to do manually on the machine :

chown messagebus:messagebus /var/run/dbus ${D}${localstatedir}/lib/dbus chown root:messagebus /usr/libexec/dbus-daemon-launch-helper chmod 4754 /usr/libexec/dbus-daemon-launch-helper

As long as this is not fixed, can we have this additionally in pkg_postinst_dbus temporary?

Andreas

#8 lore raw
Quoted 54 lines · Andreas Müller
Quoted 44 lines · Andreas Müller
Quoted 43 lines · Richard Purdie
Quoted 26 lines · Andreas Müller

Since the last updates of all layers (angstrom based) I have issues with

* networkmanager/nm-applet (meta-oe): I am not allowed to change the settings

any more

* xfce-session (meta-oe): Logging out takes very long and Restart/Shutdown is

disabled

I remember that I had similar issues a while ago. That could be worked around by starting some dbus stuff ( do not exactly remember what it was ).

With this vague idea I checked and found in oe-core:

| dbus: use useradd class to allow use in read-only filesystems
| author	Otavio Salvador <[email protected]>
| commit	46e6c3fa8034b12d178d605f3f5d7efe69671a13

Not understanding totally what is all about I see in /etc/passw

| messagebus:x:999:998::/var/lib/dbus:/bin/sh

Quoted 8 lines

but I don't have /var/lib/dbus on my sytem!!

I did not check yet, but maybe this is an incompatibilty with angstrom custom

| FILESYSTEM_PERMS_TABLES = "fs-perms-angstrom.txt"

somebody around to enlight the darkness?

There are some issues due to the orcering of when we now start some of the services. After the above change the dbus service starts much earlier on first boot, before some of the other postinstalls have run. This can mean you see errors due to users which have not yet been created by postinstalls (e.g. avahi or xuser) yet the dbus files reference these and its trying to start those services.

Quoted 6 lines
Quoted 3 lines

We're looking at fixing the remaining adduser type postinstalls to address this. I'm not sure if this is related to the problem you were seeing above or not.

FYI: reverting the patch fixes mentioned issues here.

Maybe I missed something but after starting a new image - to get the errors mentioned above worked around - I still have to do manually on the machine :

Quoted 6 lines

chown messagebus:messagebus /var/run/dbus ${D}${localstatedir}/lib/dbus chown root:messagebus /usr/libexec/dbus-daemon-launch-helper chmod 4754 /usr/libexec/dbus-daemon-launch-helper

As long as this is not fixed, can we have this additionally in pkg_postinst_dbus temporary?

You have wrong ${D} there, but you can apply
http://git.openembedded.org/openembedded-core-contrib/commit/?h=shr&id=283b046e6e38afb63125776afdb5ee5fea0d0b7e
which still works, but it's not proper fix.

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#9 lore raw
Quoted 60 lines · Martin Jansa
Quoted 59 lines · Andreas Müller
Quoted 44 lines · Andreas Müller
Quoted 43 lines · Richard Purdie
Quoted 26 lines · Andreas Müller

Since the last updates of all layers (angstrom based) I have issues with

* networkmanager/nm-applet (meta-oe): I am not allowed to change the settings

any more

* xfce-session (meta-oe): Logging out takes very long and Restart/Shutdown is

disabled

I remember that I had similar issues a while ago. That could be worked around by starting some dbus stuff ( do not exactly remember what it was ).

With this vague idea I checked and found in oe-core:

| dbus: use useradd class to allow use in read-only filesystems
| author	Otavio Salvador <[email protected]>
| commit	46e6c3fa8034b12d178d605f3f5d7efe69671a13

Not understanding totally what is all about I see in /etc/passw

| messagebus:x:999:998::/var/lib/dbus:/bin/sh

Quoted 8 lines

but I don't have /var/lib/dbus on my sytem!!

I did not check yet, but maybe this is an incompatibilty with angstrom custom

| FILESYSTEM_PERMS_TABLES = "fs-perms-angstrom.txt"

somebody around to enlight the darkness?

There are some issues due to the orcering of when we now start some of the services. After the above change the dbus service starts much earlier on first boot, before some of the other postinstalls have run. This can mean you see errors due to users which have not yet been created by postinstalls (e.g. avahi or xuser) yet the dbus files reference these and its trying to start those services.

Quoted 5 lines
Quoted 3 lines

We're looking at fixing the remaining adduser type postinstalls to address this. I'm not sure if this is related to the problem you were seeing above or not.

FYI: reverting the patch fixes mentioned issues here.

Maybe I missed something but after starting a new image - to get the errors mentioned above worked around - I still have to do manually on the machine :

chown messagebus:messagebus /var/run/dbus ${D}${localstatedir}/lib/dbus chown root:messagebus /usr/libexec/dbus-daemon-launch-helper chmod 4754 /usr/libexec/dbus-daemon-launch-helper

Quoted 7 lines
Quoted 2 lines

As long as this is not fixed, can we have this additionally in pkg_postinst_dbus temporary?

You have wrong ${D} there, but you can apply
http://git.openembedded.org/openembedded-core-contrib/commit/?h=shr&id=283b
046e6e38afb63125776afdb5ee5fea0d0b7e which still works, but it's not proper fix.

That's exactly the workaround I meant :)

Andreas

#10 lore raw
In reply to Andreas Müller
Quoted 20 lines · Andreas Müller

Since the last updates of all layers (angstrom based) I have issues with

* networkmanager/nm-applet (meta-oe): I am not allowed to change the settings any more
* xfce-session (meta-oe): Logging out takes very long and Restart/Shutdown is disabled

I remember that I had similar issues a while ago. That could be worked around by starting some dbus stuff ( do not exactly remember what it was ).

With this vague idea I checked and found in oe-core:

| dbus: use useradd class to allow use in read-only filesystems
| author	Otavio Salvador <[email protected]>
| commit	46e6c3fa8034b12d178d605f3f5d7efe69671a13

Not understanding totally what is all about I see in /etc/passw

| messagebus:x:999:998::/var/lib/dbus:/bin/sh

Quoted 7 lines

but I don't have /var/lib/dbus on my sytem!!

I did not check yet, but maybe this is an incompatibilty with angstrom custom

| FILESYSTEM_PERMS_TABLES = "fs-perms-angstrom.txt"

somebody around to enlight the darkness?

one problem seems to be /usr/lib/dbus-1.0/dbus-daemon-launch-helper having wrong ownership. It is root:root instead of root:messagebus how it should be. Dunno if that is the only problem but fixing that makes dbus-activation work again.

Quoted 1 line

Andreas

Klaus 'mrmoku' Kurzmann

#11 lore raw

PATCH 1/1 dbus: add work around to set right owner in postinst

* even when I see right chown/chmod in log.do_install, files are still owned by bitbake:bitbake (user running bitbake) and we need to fix it on target

$ tail -n 4 temp/log.do_install.27768                                                                                                                         
+ chown messagebus:messagebus /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/run/dbus /OE/shr-core/tmp/work/armv7a-vfp-neon-o
e-linux-gnueabi/dbus-1.4.12-r2/image/var/lib/dbus
+ chown root:messagebus /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper
+ chmod 4754 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper
+ ln -sf /dev/null /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image//lib/systemd/system/dbus-1.service
$ ll -d /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/run/dbus \                                                            
  /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/lib/dbus \                                                                  
  /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper \                                         
 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper
-rwsr-xr-- 1 bitbake bitbake 819869 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-he
lper*                                                                                                                                                         
-rwsr-xr-- 1 bitbake bitbake 819869 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-he
lper*                                                                                                                                                         
drwxr-xr-x 2 bitbake bitbake   4096 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/lib/dbus/
drwxr-xr-x 2 bitbake bitbake   4096 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/run/dbus/

* and we _cannot_ use ${D} in postinst script because it get's expanded
before including postinst file to ipk's control.tar.gz
and on target I see something like this:
if [ -z "/OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then which is wrong $D without {} works

---
 meta/recipes-core/dbus/dbus.inc |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
meta/recipes-core/dbus/dbus.inc +7 -2
index 2a97c02..b862bb4 100644
@@ -10,7 +10,7 @@ DEPENDS = "expat virtual/libintl ${@base_contains('DISTRO_FEATURES', 'x11', '${X
 DEPENDS_virtclass-native = "expat-native virtual/libintl-native"
 DEPENDS_virtclass-nativesdk = "expat-nativesdk virtual/libintl-nativesdk virtual/libx11"
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \
            file://tmpdir.patch; \
@@ -51,9 +51,14 @@ RRECOMMENDS_${PN}-lib = "${PN}"
 FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-glib-tool"
 
 pkg_postinst_dbus() {
-	if [ -z "${D}" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then
+	if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then
 		/etc/init.d/populate-volatile.sh update
 	fi
+	if [ -z "$D" ] ; then
+		chown messagebus:messagebus ${localstatedir}/run/dbus ${localstatedir}/lib/dbus
+		chown root:messagebus ${libexecdir}/dbus-daemon-launch-helper
+		chmod 4754 ${libexecdir}/dbus-daemon-launch-helper
+	fi
 }
 
 EXTRA_OECONF_X = "${@base_contains('DISTRO_FEATURES', 'x11', '--with-x', '--without-x', d)}"
Signature · 1 line
1.7.7.1
#12 lore raw

Re: [PATCH] dbus: add work around to set right owner in postinst

On Sat, Oct 29, 2011 at 08:53, Martin Jansa <[email protected]> wrote:
...

Quoted 5 lines

+       if [ -z "$D" ] ; then
+               chown messagebus:messagebus ${localstatedir}/run/dbus ${localstatedir}/lib/dbus
+               chown root:messagebus ${libexecdir}/dbus-daemon-launch-helper
+               chmod 4754 ${libexecdir}/dbus-daemon-launch-helper
+       fi

If you use $D in directories it will work for in-target and rootfs installs allowing use of it in read-only-fs.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#13 lore raw

Re: [PATCH] dbus: add work around to set right owner in postinst

Quoted 10 lines · Otavio Salvador

On Sat, Oct 29, 2011 at 08:53, Martin Jansa <[email protected]> wrote:
...

Quoted 5 lines

+       if [ -z "$D" ] ; then
+               chown messagebus:messagebus ${localstatedir}/run/dbus ${localstatedir}/lib/dbus
+               chown root:messagebus ${libexecdir}/dbus-daemon-launch-helper
+               chmod 4754 ${libexecdir}/dbus-daemon-launch-helper
+       fi

If you use $D in directories it will work for in-target and rootfs installs allowing use of it in read-only-fs.

As in http://paste.debian.net/141111/ (untested)

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#14 lore raw

Re: [PATCH] dbus: add work around to set right owner in postinst

In reply to Martin Jansa

Op 29 okt. 2011, om 12:53 heeft Martin Jansa het volgende geschreven:

Quoted 2 lines

* even when I see right chown/chmod in log.do_install, files are still owned by bitbake:bitbake (user running bitbake) and we need to fix it on target

I suspect fsperms.txt is breaking things, but I haven't tested it yet.

regards,

Koen

#15 lore raw

Re: [PATCH] dbus: add work around to set right owner in postinst

Quoted 8 lines · Koen Kooi

Op 29 okt. 2011, om 12:53 heeft Martin Jansa het volgende geschreven:

Quoted 2 lines

* even when I see right chown/chmod in log.do_install, files are still owned by bitbake:bitbake (user running bitbake) and we need to fix it on target

I suspect fsperms.txt is breaking things, but I haven't tested it yet.

I did try to reset FILESYSTEM_PERMS_TABLE to "" and the issue still existed.

Further testing and debugging showed that both IPK and RPM packaging seems to kill off the ownership, but DEB packaging retained it correctly!

More research and digging is required.

Sau!

Quoted 12 lines

regards,

Koen

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

#16 lore raw

PATCH v2 1/1 dbus: fix for right owner in postinst

In reply to Martin Jansa

* even when I see right chown/chmod in log.do_install, files are still owned by bitbake:bitbake (user running bitbake) and we need to fix it on target

$ tail -n 4 temp/log.do_install.27768
+ chown messagebus:messagebus /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/run/dbus /OE/shr-core/tmp/work/armv7a-vfp-neon-o
e-linux-gnueabi/dbus-1.4.12-r2/image/var/lib/dbus
+ chown root:messagebus /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper
+ chmod 4754 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper
+ ln -sf /dev/null /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image//lib/systemd/system/dbus-1.service
$ ll -d /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/run/dbus \
  /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/lib/dbus \
  /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper \
 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper
-rwsr-xr-- 1 bitbake bitbake 819869 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-he
lper*
-rwsr-xr-- 1 bitbake bitbake 819869 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-he
lper*
drwxr-xr-x 2 bitbake bitbake   4096 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/lib/dbus/
drwxr-xr-x 2 bitbake bitbake   4096 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/run/dbus/

* and we _cannot_ use ${D} in postinst script because it get's expanded
before including postinst file to ipk's control.tar.gz
and on target I see something like this:
if [ -z "/OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then which is wrong $D without {} works

* V2: updated with Otavio version to fix it also for do_rootfs

---
 meta/recipes-core/dbus/dbus.inc |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)
meta/recipes-core/dbus/dbus.inc +5 -7
index 2a97c02..a72407c 100644
@@ -10,7 +10,7 @@ DEPENDS = "expat virtual/libintl ${@base_contains('DISTRO_FEATURES', 'x11', '${X
 DEPENDS_virtclass-native = "expat-native virtual/libintl-native"
 DEPENDS_virtclass-nativesdk = "expat-nativesdk virtual/libintl-nativesdk virtual/libx11"
 
-PR = "r1"
+PR = "r3"
 
 SRC_URI = "http://dbus.freedesktop.org/releases/dbus/dbus-${PV}.tar.gz \
            file://tmpdir.patch; \
@@ -51,9 +51,12 @@ RRECOMMENDS_${PN}-lib = "${PN}"
 FILES_${PN}-dev += "${libdir}/dbus-1.0/include ${bindir}/dbus-glib-tool"
 
 pkg_postinst_dbus() {
-	if [ -z "${D}" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then
+	if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then
 		/etc/init.d/populate-volatile.sh update
 	fi
+	chown messagebus:messagebus $D${localstatedir}/run/dbus $D${localstatedir}/lib/dbus
+	chown root:messagebus $D${libexecdir}/dbus-daemon-launch-helper
+	chmod 4754 $D${libexecdir}/dbus-daemon-launch-helper
 }
 
 EXTRA_OECONF_X = "${@base_contains('DISTRO_FEATURES', 'x11', '--with-x', '--without-x', d)}"
@@ -81,11 +84,6 @@ do_install() {
 
 	mkdir -p ${D}${localstatedir}/run/dbus ${D}${localstatedir}/lib/dbus
 
-	chown messagebus:messagebus ${D}${localstatedir}/run/dbus ${D}${localstatedir}/lib/dbus
-
-	chown root:messagebus ${D}${libexecdir}/dbus-daemon-launch-helper
-	chmod 4754 ${D}${libexecdir}/dbus-daemon-launch-helper
-
 	# disable dbus-1 sysv script on systemd installs
 	# nearly all distros call the initscript plain 'dbus', but OE-core is different
 	ln -sf /dev/null ${D}/${base_libdir}/systemd/system/dbus-1.service
Signature · 1 line
1.7.7.1
#17 lore raw

Re: [PATCHv2] dbus: fix for right owner in postinst

Quoted 26 lines · Martin Jansa

* even when I see right chown/chmod in log.do_install, files are still owned by bitbake:bitbake (user running bitbake) and we need to fix it on target

$ tail -n 4 temp/log.do_install.27768
+ chown messagebus:messagebus /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/run/dbus /OE/shr-core/tmp/work/armv7a-vfp-neon-o
e-linux-gnueabi/dbus-1.4.12-r2/image/var/lib/dbus
+ chown root:messagebus /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper
+ chmod 4754 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper
+ ln -sf /dev/null /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image//lib/systemd/system/dbus-1.service
$ ll -d /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/run/dbus \
  /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/lib/dbus \
  /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper \
 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper
-rwsr-xr-- 1 bitbake bitbake 819869 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-he
lper*
-rwsr-xr-- 1 bitbake bitbake 819869 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-he
lper*
drwxr-xr-x 2 bitbake bitbake   4096 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/lib/dbus/
drwxr-xr-x 2 bitbake bitbake   4096 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/run/dbus/

* and we _cannot_ use ${D} in postinst script because it get's expanded
before including postinst file to ipk's control.tar.gz
and on target I see something like this:
if [ -z "/OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then which is wrong $D without {} works

Quoted 6 lines

* V2: updated with Otavio version to fix it also for do_rootfs

---
 meta/recipes-core/dbus/dbus.inc |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

This is just wallpapering over the cracks I'm afraid. There is something more fundamental going wrong here and we need to track it down...

Cheers,

Richard

#18 lore raw

Re: [PATCHv2] dbus: fix for right owner in postinst

Op 31 okt. 2011, om 23:40 heeft Richard Purdie het volgende geschreven:

Quoted 29 lines · Martin Jansa
Quoted 28 lines

* even when I see right chown/chmod in log.do_install, files are still owned by bitbake:bitbake (user running bitbake) and we need to fix it on target

$ tail -n 4 temp/log.do_install.27768
+ chown messagebus:messagebus /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/run/dbus /OE/shr-core/tmp/work/armv7a-vfp-neon-o
e-linux-gnueabi/dbus-1.4.12-r2/image/var/lib/dbus
+ chown root:messagebus /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper
+ chmod 4754 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper
+ ln -sf /dev/null /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image//lib/systemd/system/dbus-1.service
$ ll -d /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/run/dbus \
 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/lib/dbus \
 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper \
/OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper
-rwsr-xr-- 1 bitbake bitbake 819869 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-he
lper*
-rwsr-xr-- 1 bitbake bitbake 819869 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-he
lper*
drwxr-xr-x 2 bitbake bitbake   4096 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/lib/dbus/
drwxr-xr-x 2 bitbake bitbake   4096 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/run/dbus/

* and we _cannot_ use ${D} in postinst script because it get's expanded
before including postinst file to ipk's control.tar.gz
and on target I see something like this:
if [ -z "/OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then which is wrong $D without {} works

* V2: updated with Otavio version to fix it also for do_rootfs

Quoted 7 lines
Quoted 4 lines

---
meta/recipes-core/dbus/dbus.inc | 12 +++++-------

1 files changed, 5 insertions(+), 7 deletions(-)

This is just wallpapering over the cracks I'm afraid. There is something more fundamental going wrong here and we need to track it down...

Any news on this?

#19 lore raw

Re: [PATCHv2] dbus: fix for right owner in postinst

Quoted 39 lines · Koen Kooi

Op 31 okt. 2011, om 23:40 heeft Richard Purdie het volgende geschreven:

Quoted 29 lines · Martin Jansa
Quoted 28 lines

* even when I see right chown/chmod in log.do_install, files are still owned by bitbake:bitbake (user running bitbake) and we need to fix it on target

$ tail -n 4 temp/log.do_install.27768
+ chown messagebus:messagebus /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/run/dbus /OE/shr-core/tmp/work/armv7a-vfp-neon-o
e-linux-gnueabi/dbus-1.4.12-r2/image/var/lib/dbus
+ chown root:messagebus /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper
+ chmod 4754 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper
+ ln -sf /dev/null /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image//lib/systemd/system/dbus-1.service
$ ll -d /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/run/dbus \
 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/lib/dbus \
 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper \
/OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper
-rwsr-xr-- 1 bitbake bitbake 819869 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-he
lper*
-rwsr-xr-- 1 bitbake bitbake 819869 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-he
lper*
drwxr-xr-x 2 bitbake bitbake   4096 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/lib/dbus/
drwxr-xr-x 2 bitbake bitbake   4096 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/run/dbus/

* and we _cannot_ use ${D} in postinst script because it get's expanded
before including postinst file to ipk's control.tar.gz
and on target I see something like this:
if [ -z "/OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then which is wrong $D without {} works

* V2: updated with Otavio version to fix it also for do_rootfs

Quoted 7 lines
Quoted 4 lines

---
meta/recipes-core/dbus/dbus.inc | 12 +++++-------

1 files changed, 5 insertions(+), 7 deletions(-)

This is just wallpapering over the cracks I'm afraid. There is something more fundamental going wrong here and we need to track it down...

Quoted 1 line

Any news on this?

Yes, expect to see some patches for review shortly. There are several interwoven issues.

Cheers,

Richard

#20 lore raw

Re: [PATCHv2] dbus: fix for right owner in postinst

In reply to Richard Purdie
Quoted 29 lines · Richard Purdie
Quoted 28 lines · Martin Jansa

* even when I see right chown/chmod in log.do_install, files are still owned by bitbake:bitbake (user running bitbake) and we need to fix it on target

$ tail -n 4 temp/log.do_install.27768
+ chown messagebus:messagebus /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/run/dbus /OE/shr-core/tmp/work/armv7a-vfp-neon-o
e-linux-gnueabi/dbus-1.4.12-r2/image/var/lib/dbus
+ chown root:messagebus /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper
+ chmod 4754 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper
+ ln -sf /dev/null /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image//lib/systemd/system/dbus-1.service
$ ll -d /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/run/dbus \
  /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/lib/dbus \
  /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper \
 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper
-rwsr-xr-- 1 bitbake bitbake 819869 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-he
lper*
-rwsr-xr-- 1 bitbake bitbake 819869 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-he
lper*
drwxr-xr-x 2 bitbake bitbake   4096 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/lib/dbus/
drwxr-xr-x 2 bitbake bitbake   4096 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/run/dbus/

* and we _cannot_ use ${D} in postinst script because it get's expanded
  before including postinst file to ipk's control.tar.gz
  and on target I see something like this:
  if [ -z "/OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then which is wrong $D without {} works

* V2: updated with Otavio version to fix it also for do_rootfs

Quoted 7 lines
Quoted 4 lines

---
 meta/recipes-core/dbus/dbus.inc |   12 +++++-------

 1 files changed, 5 insertions(+), 7 deletions(-)

This is just wallpapering over the cracks I'm afraid. There is something more fundamental going wrong here and we need to track it down...

Is pseudo really supposed to allow chown in do_install()? And then ie keep changed owners in sysroot or even sstate to recreate packages later with right file owners?

Because normally all produced files are owned by UID who is building them (in my example bitbake) and only when creating packages/rootfs it's packaged with expected UID for target (ie root).

So this wallpapering makes current dbus at least usable on target.

Cheers,

#21 lore raw

Re: [PATCHv2] dbus: fix for right owner in postinst

Quoted 39 lines · Martin Jansa
Quoted 29 lines · Richard Purdie
Quoted 28 lines · Martin Jansa

* even when I see right chown/chmod in log.do_install, files are still owned by bitbake:bitbake (user running bitbake) and we need to fix it on target

$ tail -n 4 temp/log.do_install.27768
+ chown messagebus:messagebus /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/run/dbus /OE/shr-core/tmp/work/armv7a-vfp-neon-o
e-linux-gnueabi/dbus-1.4.12-r2/image/var/lib/dbus
+ chown root:messagebus /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper
+ chmod 4754 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper
+ ln -sf /dev/null /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image//lib/systemd/system/dbus-1.service
$ ll -d /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/run/dbus \
  /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/lib/dbus \
  /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper \
 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-helper
-rwsr-xr-- 1 bitbake bitbake 819869 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-he
lper*
-rwsr-xr-- 1 bitbake bitbake 819869 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/usr/libexec/dbus-daemon-launch-he
lper*
drwxr-xr-x 2 bitbake bitbake   4096 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/lib/dbus/
drwxr-xr-x 2 bitbake bitbake   4096 Oct 29 12:35 /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image/var/run/dbus/

* and we _cannot_ use ${D} in postinst script because it get's expanded
before including postinst file to ipk's control.tar.gz
and on target I see something like this:
if [ -z "/OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/dbus-1.4.12-r2/image" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then which is wrong $D without {} works

* V2: updated with Otavio version to fix it also for do_rootfs

Quoted 7 lines
Quoted 4 lines
---
 meta/recipes-core/dbus/dbus.inc |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

This is just wallpapering over the cracks I'm afraid. There is something more fundamental going wrong here and we need to track it down...

Quoted 3 lines

Is pseudo really supposed to allow chown in do_install()? And then ie keep changed owners in sysroot or even sstate to recreate packages later with right file owners?

Yes, it is.

Quoted 3 lines

Because normally all produced files are owned by UID who is building them (in my example bitbake) and only when creating packages/rootfs it's packaged with expected UID for target (ie root).

I appreciate that.

Quoted 1 line

So this wallpapering makes current dbus at least usable on target.

This doesn't mean the fix is correct though. I have a patch series to fix the real issues (there are several) that will be published shortly.

Cheers,

Richard