<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5264</bug_id>
          
          <creation_ts>2013-09-25 08:21:10 +0000</creation_ts>
          <short_desc>Way to install all PACKAGES of a recipe</short_desc>
          <delta_ts>2016-07-29 02:17:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>1.8</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Hongxu Jia">hongxu.jia</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>hongxu.jia</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>net147</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>37158</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-09-25 08:21:10 +0000</bug_when>
    <thetext>We have been asked many times on how to install all the PACKAGES of a recipe, we can only list them one by one in the RDPENDS (or IMAGE_INSTALL and so on) currently, or something like perl-modules, kernel-modules which depends on many other packages, but this is not easy to custom, maybe we can add such a config variable to do this, for example:

INSTALL_ALL_alsa-utils = &quot;1&quot;

Then the PACKAGES which generated by alsa-utils will be installed on the image, and will exclude the -dev/-staticdev/-dbg/-locale if they are not enabled by the features.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37160</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-09-25 08:34:31 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; We have been asked many times on how to install all the PACKAGES of a
&gt; recipe, we can only list them one by one in the RDPENDS (or IMAGE_INSTALL
&gt; and so on) currently, or something like perl-modules, kernel-modules which
&gt; depends on many other packages, but this is not easy to custom, maybe we can
&gt; add such a config variable to do this, for example:
&gt; 
&gt; INSTALL_ALL_alsa-utils = &quot;1&quot;
&gt; 
&gt; Then the PACKAGES which generated by alsa-utils will be installed on the
&gt; image, and will exclude the -dev/-staticdev/-dbg/-locale if they are not
&gt; enabled by the features.

Just act as we add the package one by one. Usually, when the user wants to add a pkg, he doesn&apos;t care which sub package contains the file that he needs, and it would confuse him if he adds the pkg, but doesn&apos;t find what he needs, this will   be useful for him.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43756</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Liu">net147</who>
    <bug_when>2014-06-04 08:51:03 +0000</bug_when>
    <thetext>This would be useful if you want to install all the tzdata packages.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47760</commentid>
    <comment_count>3</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2015-01-07 06:53:04 +0000</bug_when>
    <thetext>Here is the design:

1) According to the packages listed in PACKAGE_INSTALL, figure out recipes
   which produced them by invoking script oe-pkgdata-util;

2) Go on invoking script oe-pkgdata-util to list all available packages in
   these recipes except *-(doc|dbg|dev|staticdev|locale|ptest), and use them
   to replace packages in PACKAGE_INSTALL;

3) Packages installation at do_rootfs time as normal;

4) INSTALL_ALL is a global switch for all packages listed in PACKAGE_INSTALL,
   you also could assign INSTALL_ALL_pkgname ?= &quot;1&quot; for the particular
   package in PACKAGE_INSTALL;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47761</commentid>
    <comment_count>4</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2015-01-07 06:54:11 +0000</bug_when>
    <thetext>Test Steps:

1. vim local.conf
...
MACHINE ?= &quot;qemux86-64&quot;
require conf/multilib.conf
MULTILIBS = &quot;multilib:lib32&quot;
DEFAULTTUNE_virtclass-multilib-lib32 = &quot;x86&quot;
IMAGE_INSTALL_append = &quot; busybox lib32-python3&quot;
INSTALL_ALL_busybox ?= &quot;1&quot; 
INSTALL_ALL_lib32-python3 ?= &quot;1&quot;
...

2. Build core-image-minimal
$ bitbake core-image-minimal

3. Check installed_pkgs.txt, all available package of busybox and
lib32-python3 have been installed.
...
$ cat tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/installed_pkgs.txt
...
busybox core2-64
busybox-hwclock core2-64
busybox-syslog core2-64
busybox-udhcpc core2-64
busybox-udhcpd core2-64
...

4. Edit local.conf to assign INSTALL_ALL_busybox ?= &quot;0&quot;

5. build core-image-minimal

6. Check installed_pkgs.txt, busybox-udhcpd not installed
...
$ cat tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/installed_pkgs.txt
...
busybox core2-64
busybox-hwclock core2-64
busybox-syslog core2-64
busybox-udhcpc core2-64
...

//Hongxu</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64629</commentid>
    <comment_count>5</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2016-07-29 02:17:15 +0000</bug_when>
    <thetext>Rejected by Richard, it is not a good idea.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>