[yocto] Installing .deb file in Build

DAMARLA Satya Swaroop swaroop.damarla at gmail.com
Tue Jun 25 06:20:19 PDT 2013


Hi Guys,

I am trying to install .deb file and the recipe is as follows... may I ask
you what is the mistake that is not allowing it to build it into the
rootfilesystem....

*UMMARY = "Bootstrapper from Skidata"*
*DESCRIPTION = "For the moment it just installs the .deb file"*
*LICENSE = "CLOSED"*
*
*
*SRC_URI[md5sum] = "7835334732d1704765e52168994b09a6"*
*SRC_URI[sha256sum] =
"11bda24a487da08ef6d3133cc0bf55862e6ae75891c7d08433341f2f3a0dc740"*
*
*
*
*
*SRC_URI =
"file:///home/damarla/openYocto/downloads/skidata-bootstraploader-1.0.0.14.deb"
*
*
*
*inherit bin_package*
*
*
*INITSCRIPT_PACKAGES = "${PN}-bsd"*
*INITSCRIPT_NAME_${PN}-bsp = "bootstraploader"*
*INITSCRIPT_PARAMS_${PN}-bsp = "defaults 90"*
*
*
*PACKAGES =+ "${PN} ${PN}-bsd"*
*
*
*FILES_${PN}-bsd = "${sysconfdir}/init.d/bootstraploader"*
*FILES_${PN} = "${D}/usr/skidata/bootstraploader/*.sh
${D}/usr/skidata/bootstraploader/*.pm"*

and the error I get is

*ERROR: Function failed: do_rootfs (log file is located at
/home/damarla/openYocto/poky/buildSmartCPU/tmp/work/smartcpu-untersberg-linux-gnueabi/rootfs-smartcpu/1.0-r0/temp/log.do_rootfs.30357)
*
*ERROR: Logfile of failure stored in:
/home/damarla/openYocto/poky/buildSmartCPU/tmp/work/smartcpu-untersberg-linux-gnueabi/rootfs-smartcpu/1.0-r0/temp/log.do_rootfs.30357
*
*Log data follows:*
*| DEBUG: Executing shell function do_rootfs*
*| dpkg-scanpackages: info: Wrote 33 entries to output Packages file.*
*| dpkg-scanpackages: info: Wrote 5352 entries to output Packages file.*
*| dpkg-scanpackages: info: Wrote 157 entries to output Packages file.*
*| dpkg-scanpackages: info: Wrote 33 entries to output Packages file.*
*| Ign file: ./ InRelease*
*| Ign file: ./ InRelease*
*| Ign file: ./ InRelease*
*| Ign file: ./ Release.gpg*
*| Ign file: ./ Release.gpg*
*| Ign file: ./ Release.gpg*
*| Get:1 file: ./ Release [16 B]*
*| Get:2 file: ./ Release [29 B]*
*| Get:3 file: ./ Release [11 B]*
*| Ign file: ./ Translation-en*
*| Ign file: ./ Translation-en*
*| Ign file: ./ Translation-en*
*| Reading package lists...*
*| Reading package lists...*
*| Building dependency tree...*
*| Reading state information...*
*| The following extra packages will be installed:*
*|   eglibc-binary-localedata-en-us*
*| The following NEW packages will be installed:*
*|   eglibc-binary-localedata-en-us locale-base-en-us*
*| 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.*
*| Need to get 0 B/327 kB of archives.*
*| After this operation, 0 B of additional disk space will be used.*
*| WARNING: The following packages cannot be authenticated!*
*|   eglibc-binary-localedata-en-us locale-base-en-us*
*| Authentication warning overridden.*
*| dpkg: warning: overriding problem because --force enabled:*
*|  package architecture (armel) does not match system (amd64)*
*| Selecting previously unselected package eglibc-binary-localedata-en-us.*
*| (Reading database ... 0 files and directories currently installed.)*
*| Unpacking eglibc-binary-localedata-en-us (from
.../eglibc-binary-localedata-en-us_2.17-r0_armel.deb) ...*
*| dpkg: warning: overriding problem because --force enabled:*
*|  package architecture (armel) does not match system (amd64)*
*| Selecting previously unselected package locale-base-en-us.*
*| Unpacking locale-base-en-us (from
.../locale-base-en-us_2.17-r0_armel.deb) ...*
*| Reading package lists...*
*| Building dependency tree...*
*| Reading state information...*
*| The following extra packages will be installed:*
*|   eglibc-binary-localedata-en-gb*
*| The following NEW packages will be installed:*
*|   eglibc-binary-localedata-en-gb locale-base-en-gb*
*| 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.*
*| 2 not fully installed or removed.*
*| Need to get 0 B/327 kB of archives.*
*| After this operation, 0 B of additional disk space will be used.*
*| WARNING: The following packages cannot be authenticated!*
*|   eglibc-binary-localedata-en-gb locale-base-en-gb*
*| Authentication warning overridden.*
*| dpkg: warning: overriding problem because --force enabled:*
*|  package architecture (armel) does not match system (amd64)*
*| Selecting previously unselected package eglibc-binary-localedata-en-gb.*
*| (Reading database ... 18 files and directories currently installed.)*
*| Unpacking eglibc-binary-localedata-en-gb (from
.../eglibc-binary-localedata-en-gb_2.17-r0_armel.deb) ...*
*| dpkg: warning: overriding problem because --force enabled:*
*|  package architecture (armel) does not match system (amd64)*
*| Selecting previously unselected package locale-base-en-gb.*
*| Unpacking locale-base-en-gb (from
.../locale-base-en-gb_2.17-r0_armel.deb) ...*
*| Reading package lists...*
*| Building dependency tree...*
*| Reading state information...*
*| Package bootstrapper 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*
*| *
*| E: Package 'bootstrapper' has no installation candidate*
*| E: Unable to locate package bootstrapper-bsd*
*| ERROR: Function failed: do_rootfs (log file is located at
/home/damarla/openYocto/poky/buildSmartCPU/tmp/work/smartcpu-untersberg-linux-gnueabi/rootfs-smartcpu/1.0-r0/temp/log.do_rootfs.30357)
*
*ERROR: Task 7
(/home/damarla/openYocto/poky/meta-skidata/recipes-smartcpu/images/
rootfs-smartcpu.bb, do_rootfs) failed with exit code '1'*
*NOTE: Tasks Summary: Attempted 5162 tasks of which 5160 didn't need to be
rerun and 1 failed.*
*No currently running tasks (5161 of 5163)*
*
*
*Summary: 1 task failed:*
*  /home/damarla/openYocto/poky/meta-skidata/recipes-smartcpu/images/
rootfs-smartcpu.bb, do_rootfs*
*Summary: There was 1 ERROR message shown, returning a non-zero exit code.*

Where did I make the error. I created two packages here and I put those
packages in my rootfs...
Suggestions please,

Greets,
Satya


On Thu, Jun 20, 2013 at 12:09 PM, Paul Eggleton <
paul.eggleton at linux.intel.com> wrote:

> On Wednesday 19 June 2013 09:10:20 DAMARLA Satya Swaroop wrote:
> > I have a .deb file which has to be installed. It installs properly on the
> > target image but I want to install it at the build itself by creating a
> > bitbake recipe.. Is it possible to install .deb files or not? If
> possible,
> > please suggest me so that I can make it..
>
> I think the bin_package class is designed explicitly to help with this.
> Have a
> look at classes/bin_package.bbclass.
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20130625/3ae9d528/attachment.html>


More information about the yocto mailing list