Problem recipes Yocto install package deb

699 views
Skip to first unread message

Cleiton Bueno

unread,
Jan 21, 2015, 7:50:44 AM1/21/15
to beagl...@googlegroups.com
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?

Cleiton Bueno

unread,
Jan 21, 2015, 4:10:20 PM1/21/15
to beagl...@googlegroups.com
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] = "42ebcf856aa626aa6d021173f4d931e0c84a0a27808d147db89942XXXXXXXXXX"



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; "




Reply all
Reply to author
Forward
0 new messages