Hardknott - pseudo excluded from intercept_scripts
The following code is an effective workaround. It must be added after the core-image is inherited.
python () {
pseudo_ignore_paths = d.getVar('PSEUDO_IGNORE_PATHS') result = ','.join([x for x in pseudo_ignore_paths.split(',') if
"intercept_scripts" not in x])
d.setVar('PSEUDO_IGNORE_PATHS', result)
}
..Ch:W..
Quoted 31 lines · Chuck Wolber via lists.yoctoproject.org
I was attempting an image build with Yocto Hardknott, and I ran into a chown problem during
do_rootfs(). I traced it down to ${WORKDIR}/intercept_scripts showing up in thePSEUDO_IGNORE_PATHSenvironment variable.This commit made the change:
I continued down the rabbit hole until I got here:
https://git.openembedded.org/openembedded-core/tree/meta/lib/oe/package_manager/__init__.py#n173
Line 192 specifically is the smoking gun. The files are being copied from poky/scripts/postinst-intercepts into the ${WORKDIR}/intercept_scripts directory and immediately failing when the copyFile utility attempts to do a chown.
Is there any logical explanation for this? Is this a bug or am I doing something wrong? Is there a workaround?
..Ch:W..
--
*"Perfection must be reached by degrees; she requires the slow hand of time." - Voltaire*
Signature · 2 lines
*"Perfection must be reached by degrees; she requires the slow hand of time." - Voltaire*
Quoted 8 lines · Chuck Wolber
The following code is an effective workaround. It must be added after the core-image is inherited.
python () {
pseudo_ignore_paths =d.getVar('PSEUDO_IGNORE_PATHS')
result = ','.join([x for x inpseudo_ignore_paths.split(',')if "intercept_scripts" not in x])d.setVar('PSEUDO_IGNORE_PATHS', result)
}
Quoted 20 lines
..Ch:W..
Quoted 16 lines · Chuck Wolber via lists.yoctoproject.org
I was attempting an image build with Yocto Hardknott, and I ran into a chown problem during
do_rootfs(). I traced it down to ${WORKDIR}/intercept_scripts showing up in thePSEUDO_IGNORE_PATHSenvironment variable.This commit made the change:
https://git.openembedded.org/openembedded-core/commit/meta/classes/image.bbclass?id=9463be2292b942a1072eea88881b9644e55aadb9I continued down the rabbit hole until I got here:
https://git.openembedded.org/openembedded-core/tree/meta/lib/oe/package_manager/__init__.py#n173Line 192 specifically is the smoking gun. The files are being copied from poky/scripts/postinst-intercepts into the ${WORKDIR}/intercept_scripts directory and immediately failing when the copyFile utility attempts to do a chown.
Is there any logical explanation for this? Is this a bug or am I doing something wrong? Is there a workaround?
This should be fixed in master, the issue was triggered by a checkout owned by root/root:
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=eff192abe2ee43ebf981bafbb7fca8602ebdcf0c
Steve/Anuj: We'll likely want to backport that one.
Cheers,
Richard