> Enrico Scholz
> <enrico.scholz-wttK6gPy29v+Hn7q9Vec/[email protected]>
> writes:
>
>> in some packages (e.g. ncurses or glibc) I get package-qa warnings due
>> to host user contamination; e.g.
>
> can be reproduced by
>
> ---
> LICENSE = "closed"
>
> do_compile() {
>         echo foo > bar
> }
>
> do_install() {
>         install -D -p -m 0644 bar ${D}/bin/bar
>         install -d -m 0755 ${D}/usr/bin
>         mv ${D}/bin/bar ${D}/usr/bin/bar
>         ln -s /usr/bin/bar ${D}/bin/bar
> }
>
> FILES_${PN} = "/bin/* /usr/bin/*"
> ---
>
> WARNING: foo-1.0-r0 do_package_qa: QA Issue: foo: /foo/usr/bin/bar is owned 
> by uid 505, which is the same as the user running bitbake. This may be due to 
> host contamination [host-user-contaminated]

Works for me: install correctly changes owner to root:root as it should.

$ dpkg -c foo_1.0-r0_corei7-64.ipk
drwxrwxrwx root/root         0 2018-03-23 16:02 ./
drwxr-xr-x root/root         0 2018-03-23 16:02 ./bin/
lrwxrwxrwx root/root         0 2018-03-23 16:02 ./bin/bar -> /usr/bin/bar
drwxr-xr-x root/root         0 2018-03-23 16:02 ./usr/
drwxr-xr-x root/root         0 2018-03-23 16:02 ./usr/bin/
-rw-r--r-- root/root         4 2018-03-23 16:02 ./usr/bin/bar

Obviously the install/mv pair is pointless, and it's not conventional
to pass -p to preserve timestamps, but none of that should matter.

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

Reply via email to