From: "Aníbal Limón" <anibal.limon@linux.intel.com>
To: Cleiton Bueno <cleitonrbueno@gmail.com>, yocto@yoctoproject.org
Subject: Re: Problem recipe build with package debian
Date: Wed, 21 Jan 2015 16:38:52 -0600 [thread overview]
Message-ID: <54C02A7C.2090000@linux.intel.com> (raw)
In-Reply-To: <CABKVDBB5PioZdX48N2eRBYNz3QBH+8FVz6+GK5emqC4GRO8EAA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2551 bytes --]
Hi Cleiton,
If you want to build deb packages you need to set in your local.conf,
PACKAGE_CLASSES ?= "package_deb"
Also if you want package-management support in the TARGET_IMAGE you need
to add package-management to
EXTRA_IMAGE_FEATURES.
Regards
alimon
On 21/01/15 15:43, Cleiton Bueno wrote:
> 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] =
> "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; "
>
>
>
>
> --
> /*Att,
> Cleiton Bueno*/
>
>
>
[-- Attachment #2: Type: text/html, Size: 16831 bytes --]
next prev parent reply other threads:[~2015-01-21 22:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-21 21:43 Problem recipe build with package debian Cleiton Bueno
2015-01-21 22:38 ` Aníbal Limón [this message]
2015-01-22 2:17 ` Cleiton Bueno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54C02A7C.2090000@linux.intel.com \
--to=anibal.limon@linux.intel.com \
--cc=cleitonrbueno@gmail.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.