[OE-core] Ownership issue in package contents
Mario Domenech Goulart
mario at ossystems.com.br
Fri Mar 27 17:31:55 UTC 2015
Hi,
I'm observing an issue with directory ownership in package
contents. Not sure if I'm overlooking something really basic or
if I hit a bug.
Here's a minimal recipe to illustrate the problem:
$ cat foo.bb
LICENSE = "CLOSED"
inherit useradd
USERADD_PACKAGES = "${PN}"
USERADD_PARAM_${PN} = "foo"
do_install() {
install -d -m 755 ${D}${libdir}/foo
touch ${D}${libdir}/foo/bar
chown -R foo:foo ${D}${libdir}/foo
}
Here's the package content:
$ dpkg -c foo_1.0-r0.0_cortexa9hf-vfp-neon.ipk
drwxrwxrwx root/root 0 2015-03-27 13:37 ./
drwxr-xr-x root/root 0 2015-03-27 13:37 ./usr/
drwxr-xr-x root/root 0 2015-03-27 13:37 ./usr/lib/
drwxr-xr-x root/root 0 2015-03-27 13:37 ./usr/lib/foo/
-rw-r--r-- foo/foo 0 2015-03-27 13:37 ./usr/lib/foo/bar
Note that, although I run "chown -R foo:foo ${D}${libdir}/foo" in
the recipe, ./usr/lib/foo/ in the package is owned by root.
However, its content has the right ownership.
I also generated and checked the rpm package and observed the
same issue.
Best wishes.
Mario
--
http://www.ossystems.com.br
More information about the Openembedded-core
mailing list