[yocto] How to prevent building -dbg and -doc packages?

Martin Jansa martin.jansa at gmail.com
Wed Oct 23 15:11:56 PDT 2013


Why do you want to disable them? All the files are already there, so
packaging them in right package doesn't cost much (if your reason was build
time).


On Wed, Oct 23, 2013 at 6:31 PM, Bryan Evenson <bevenson at melinkcorp.com>wrote:

> I'm on poky/dylan-9.0.1.  I'm not using any of the -dbg and the -doc
> packages and I'd like to clean things up for my build by not building these
> packages in the first place across the entire system.  I see references in
> the documentation to these package types, but I haven't found anything
> about how to keep the system from generating them.
>
> I tried going into meta/conf/bitbake.conf and modifying the PACKAGES
> variable to look as follows:
>
> PACKAGES = "${PN}-staticdev ${PN}-dev ${PN}-locale ${PACKAGE_BEFORE_PN}
> ${PN}"
>
> This caused a bunch of packages to get rebuilt and seemed to be working
> until it got to the libpam package.  Then I got the following errors:
>
> ERROR: QA Issue: non debug package contains .debug directory:
> libpam-xtests path
> /work/arm926ejste-poky-linux-gnueabi/libpam/1.1.6-r2/packages-split/libpam-xtests/usr/share/Linux-PAM/xtests/.debug/tst-pam_dispatch2
> ERROR: QA Issue: non debug package contains .debug directory:
> libpam-xtests path
> /work/arm926ejste-poky-linux-gnueabi/libpam/1.1.6-r2/packages-split/libpam-xtests/usr/share/Linux-PAM/xtests/.debug/tst-pam_pwhistory1
> ERROR: QA Issue: non debug package contains .debug directory:
> libpam-xtests path
> /work/arm926ejste-poky-linux-gnueabi/libpam/1.1.6-r2/packages-split/libpam-xtests/usr/share/Linux-PAM/xtests/.debug/tst-pam_access3
> ERROR: QA Issue: non debug package contains .debug directory:
> libpam-xtests path
> /work/arm926ejste-poky-linux-gnueabi/libpam/1.1.6-r2/packages-split/libpam-xtests/usr/share/Linux-PAM/xtests/.debug/tst-pam_unix2
> ERROR: QA Issue: non debug package contains .debug directory:
> libpam-xtests path
> /work/arm926ejste-poky-linux-gnueabi/libpam/1.1.6-r2/packages-split/libpam-xtests/usr/share/Linux-PAM/xtests/.debug/tst-pam_succeed_if1
> ERROR: QA Issue: non debug package contains .debug directory:
> libpam-xtests path
> /work/arm926ejste-poky-linux-gnueabi/libpam/1.1.6-r2/packages-split/libpam-xtests/usr/share/Linux-PAM/xtests/.debug/tst-pam_authsucceed
> ERROR: QA Issue: non debug package contains .debug directory:
> libpam-xtests path
> /work/arm926ejste-poky-linux-gnueabi/libpam/1.1.6-r2/packages-split/libpam-xtests/usr/share/Linux-PAM/xtests/.debug/tst-pam_dispatch4
> ERROR: QA Issue: non debug package contains .debug directory:
> libpam-xtests path
> /work/arm926ejste-poky-linux-gnueabi/libpam/1.1.6-r2/packages-split/libpam-xtests/usr/share/Linux-PAM/xtests/.debug/tst-pam_access1
> ERROR: QA Issue: non debug package contains .debug directory:
> libpam-xtests path
> /work/arm926ejste-poky-linux-gnueabi/libpam/1.1.6-r2/packages-split/libpam-xtests/usr/share/Linux-PAM/xtests/.debug/tst-pam_time1
> ERROR: QA Issue: non debug package contains .debug directory:
> libpam-xtests path
> /work/arm926ejste-poky-linux-gnueabi/libpam/1.1.6-r2/packages-split/libpam-xtests/usr/share/Linux-PAM/xtests/.debug/tst-pam_unix3
> ERROR: QA Issue: non debug package contains .debug directory:
> libpam-xtests path
> /work/arm926ejste-poky-linux-gnueabi/libpam/1.1.6-r2/packages-split/libpam-xtests/usr/share/Linux-PAM/xtests/.debug/tst-pam_authfail
> ERROR: QA Issue: non debug package contains .debug directory:
> libpam-xtests path
> /work/arm926ejste-poky-linux-gnueabi/libpam/1.1.6-r2/packages-split/libpam-xtests/usr/share/Linux-PAM/xtests/.debug/tst-pam_cracklib1
> ERROR: QA Issue: non debug package contains .debug directory:
> libpam-xtests path
> /work/arm926ejste-poky-linux-gnueabi/libpam/1.1.6-r2/packages-split/libpam-xtests/usr/share/Linux-PAM/xtests/.debug/tst-pam_access2
> ERROR: QA Issue: non debug package contains .debug directory:
> libpam-xtests path
> /work/arm926ejste-poky-linux-gnueabi/libpam/1.1.6-r2/packages-split/libpam-xtests/usr/share/Linux-PAM/xtests/.debug/tst-pam_cracklib2
> ERROR: QA Issue: non debug package contains .debug directory:
> libpam-xtests path
> /work/arm926ejste-poky-linux-gnueabi/libpam/1.1.6-r2/packages-split/libpam-xtests/usr/share/Linux-PAM/xtests/.debug/tst-pam_dispatch1
> ERROR: QA Issue: non debug package contains .debug directory:
> libpam-xtests path
> /work/arm926ejste-poky-linux-gnueabi/libpam/1.1.6-r2/packages-split/libpam-xtests/usr/share/Linux-PAM/xtests/.debug/tst-pam_dispatch5
> ERROR: QA Issue: non debug package contains .debug directory:
> libpam-xtests path
> /work/arm926ejste-poky-linux-gnueabi/libpam/1.1.6-r2/packages-split/libpam-xtests/usr/share/Linux-PAM/xtests/.debug/tst-pam_limits1
> ERROR: QA Issue: non debug package contains .debug directory:
> libpam-xtests path
> /work/arm926ejste-poky-linux-gnueabi/libpam/1.1.6-r2/packages-split/libpam-xtests/usr/share/Linux-PAM/xtests/.debug/tst-pam_dispatch3
> ERROR: QA Issue: non debug package contains .debug directory:
> libpam-xtests path
> /work/arm926ejste-poky-linux-gnueabi/libpam/1.1.6-r2/packages-split/libpam-xtests/usr/share/Linux-PAM/xtests/.debug/tst-pam_group1
> ERROR: QA Issue: non debug package contains .debug directory:
> libpam-xtests path
> /work/arm926ejste-poky-linux-gnueabi/libpam/1.1.6-r2/packages-split/libpam-xtests/usr/share/Linux-PAM/xtests/.debug/tst-pam_unix4
> ERROR: QA Issue: non debug package contains .debug directory:
> libpam-xtests path
> /work/arm926ejste-poky-linux-gnueabi/libpam/1.1.6-r2/packages-split/libpam-xtests/usr/share/Linux-PAM/xtests/.debug/tst-pam_access4
> ERROR: QA Issue: non debug package contains .debug directory:
> libpam-xtests path
> /work/arm926ejste-poky-linux-gnueabi/libpam/1.1.6-r2/packages-split/libpam-xtests/usr/share/Linux-PAM/xtests/.debug/tst-pam_unix1
> ERROR: QA run found fatal errors. Please consider fixing them.
> ERROR: Function failed: do_package_qa
> ERROR: Logfile of failure stored in:
> /media/sda3/poky/poky-build/tmp/work/arm926ejste-poky-linux-gnueabi/libpam/1.1.6-r2/temp/log.do_package.8163
> ERROR: Task 362 (/media/sda3/poky/meta/recipes-extended/pam/
> libpam_1.1.6.bb, do_package) failed with exit code '1'
>
> So either I didn't remove enough from bitbake.conf or there is a better
> way to do this.  Does anyone know of a good way to avoid building all the
> -dbg and -doc packages?
>
> Thanks,
> Bryan
>
>
>
>
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20131024/e7089323/attachment.html>


More information about the yocto mailing list