[yocto] Problem recipe build with package debian

Cleiton Bueno cleitonrbueno at gmail.com
Wed Jan 21 13:43:06 PST 2015


I have a deb package with several scripts and configurations that I want to
use the BBB.
I created a recipe, as well as other modules and packages to install.


The recipe I'm using is equal below, (removed some details, is just the
example base)



SUMMARY = ""
DESCRIPTION = ""
HOMEPAGE = ""



LIC_FILES_CHKSUM = "file://LICENSE;md5=1726e2117494ba3e13e1c3d93f795360"

SRC_URI = "file://my_pkg.deb"

SRC_URI[md5sum] = ""
SRC_URI[sha256sum] = ""

S = "${WORKDIR}/my_pkg-${PV}"

inherit package_deb


do_install_append() {
    install -m 755 -D ${WORKDIR}/my_pkg.deb
}




Has anyone created recipe to install deb packages?




My bibake process build...


Reading package lists...
Building dependency tree...
Reading state information...
Package pkgAll is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

W: Unable to read /home/bueno/yocto/poky/projTest/tmp/work/qemux86-
poky-linux/projTest/1.0-r0/apt/preferences.d/ - DirectoryExists (2: No such
file or directory)
E: Package 'pkgAll' has no installation candidate

ERROR: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/bueno/yocto/poky/
projTest/tmp/work/qemux86-poky-linux/projTest/1.0-r0/
temp/log.do_rootfs.27791
ERROR: Task 7 (/home/bueno/yocto/poky/projTest//../meta-pkgAll/
recipes-core/images/projTest.bb, do_rootfs) failed with exit code '1'



Now, my recipe the package deb:

SUMMARY = "XXXXXX"
DESCRIPTION = "XXXXXXXXXXXXXX"

LICENSE = "CLOSED"


SRC_URI = "file://projTest_1.0.deb"

SRC_URI[md5sum] = "32d0c2b332440a47dd370eXXXXXXXXXX"
SRC_URI[sha256sum] = "42ebcf856aa626aa6d021173f4d931
e0c84a0a27808d147db89942XXXXXXXXXX"



inherit bin_package pkgconfig


install_deb() {

    ${STAGING_BINDIR_NATIVE}/dpkg --root=${IMAGE_ROOTFS}/
--admindir=${IMAGE_ROOTFS}/var/lib/dpkg/ -i file://projTest_1.0.deb
}

ROOTFS_POSTPROCESS_COMMAND += "install_deb; "




-- 

*Att,Cleiton Bueno*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150121/3af7e99f/attachment.html>


More information about the yocto mailing list