Bug 9490

Summary: IMAGE_GEN_DEBUGFS = "1" does not work when PACKAGE_CLASSES = "package_ipkg"
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Mark Hatle <mark.hatle>
Component: coreAssignee: Ross Burton <ross.burton>
Status: VERIFIED FIXED QA Contact: Jose Perez C <jose.perez.carranza>
Severity: normal    
Priority: Medium+ CC: anders.darander, jose.perez.carranza, meta.mr.watcher, meta.watcher
Version: 2.1   
Target Milestone: 2.2 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Mark Hatle 2016-04-19 15:04:27 UTC
With the following settings to the stock oe-core local.conf:

IMAGE_GEN_DEBUGFS = '1'
IMAGE_FSTYPES_DEBUGFS = "tar.bz2"
IMAGE_INSTALL_append = " gdbserver"

I get:

ERROR: core-image-minimal-1.0-r0 do_rootfs: Cannot get the installed packages li
st. Command '/home/mhatle/git/oss/oe-core/build-debugfs/tmp-glibc/sysroots/x86_6
4-linux/usr/bin/opkg -f /home/mhatle/git/oss/oe-core/build-debugfs/tmp-glibc/wor
k/qemux86-oe-linux/core-image-minimal/1.0-r0/opkg.conf -o /home/mhatle/git/oss/o
e-core/build-debugfs/tmp-glibc/work/qemux86-oe-linux/core-image-minimal/1.0-r0/r
ootfs  --force_postinstall --prefer-arch-to-version   status' returned 0 and stderr:
Collected errors:
 * file_md5sum_alloc: Failed to open file /home/mhatle/git/oss/oe-core/build-debugfs/tmp-glibc/work/qemux86-oe-linux/core-image-minimal/1.0-r0/rootfs/etc/syslog-startup.conf.busybox: No such file or directory.
 * file_md5sum_alloc: Failed to open file /home/mhatle/git/oss/oe-core/build-debugfs/tmp-glibc/work/qemux86-oe-linux/core-image-minimal/1.0-r0/rootfs/etc/fstab: No such file or directory.
 * file_md5sum_alloc: Failed to open file /home/mhatle/git/oss/oe-core/build-debugfs/tmp-glibc/work/qemux86-oe-linux/core-image-minimal/1.0-r0/rootfs/etc/hostname: No such file or directory.
 * file_md5sum_alloc: Failed to open file /home/mhatle/git/oss/oe-core/build-debugfs/tmp-glibc/work/qemux86-oe-linux/core-image-minimal/1.0-r0/rootfs/etc/shells: No such file or directory.
(and many more lines that are similar)
Comment 1 Anders Darander 2016-05-02 08:17:30 UTC
With commit http://git.openembedded.org/openembedded-core/commit/?h=krogoth&id=5084ed9401250ed269a49d27b303806ab173c5d5, RP fixed most of those issues.

However, when adding openssl (packages: libssl and openssl-conf) to an image, eg core-image-minimal, a similar error occurs related to the openssl.cnf. (It's marked as a CONFFILE, bit is installed into /usr/lib/ssl/openssl.cnf.

ERROR: core-image-minimal-1.0-r0 do_rootfs: Cannot get the installed packages list. Command '/mnt/cs-builds/anders/poky-play/build/tmp-glibc/sysroots/x86_64-linux/usr/bin/opkg -f /mnt/cs-builds/anders/poky-play/build/tmp-glibc/work/qemux86-oe-linux/core-image-minimal/1.0-r0/opkg.conf -o /mnt/cs-builds/anders/poky-play/build/tmp-glibc/work/qemux86-oe-linux/core-image-minimal/1.0-r0/rootfs  --force_postinstall --prefer-arch-to-version   status' returned 0 and stderr:
Collected errors:
 * file_md5sum_alloc: Failed to open file /mnt/cs-builds/anders/poky-play/build/tmp-glibc/work/qemux86-oe-linux/core-image-minimal/1.0-r0/rootfs/usr/lib/ssl/openssl.cnf: No such file or directory.

ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /mnt/cs-builds/anders/poky-play/build/tmp-glibc/work/qemux86-oe-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.13235
ERROR: Task 9 (/mnt/cs-builds/anders/poky-play/meta/recipes-core/images/core-image-minimal.bb, do_rootfs) failed with exit code '1'
Comment 2 Ross Burton 2016-05-03 09:00:50 UTC
Fixed in oe-core 5084ed9401250ed269a49d27b303806ab173c5d5 (master and krogoth branch).
Comment 3 Anders Darander 2016-05-03 09:05:29 UTC
I disagree, se comment #2.

It still fails if the image includes eg openss-cnf.
Comment 4 Anders Darander 2016-05-03 12:12:03 UTC
A quick follow-up fix for the openssl-cnf issue is found at http://lists.openembedded.org/pipermail/openembedded-core/2016-May/120824.html
Comment 5 Anders Darander 2016-05-03 12:15:20 UTC
Wrong link, the patch is in http://lists.openembedded.org/pipermail/openembedded-core/2016-May/120887.html
Comment 6 Ross Burton 2016-05-19 16:12:37 UTC
Really fixed with oe-core 20ea6d274bb0a9a5addb111f32793de49b907865.
Comment 7 Jose Perez C 2016-07-29 17:05:42 UTC
Working correctly on 5b61fa04a335a4fdefd435dc25d4bac41ee21e39

*******************************
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 2086 tasks of which 1326 didn't need to be rerun and all succeeded.