<?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>14377</bug_id>
          
          <creation_ts>2021-05-06 07:28:10 +0000</creation_ts>
          <short_desc>devtool: deploy-target</short_desc>
          <delta_ts>2025-01-09 15:09:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Reference</product>
          <component>handbook</component>
          <version>3.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Berger">pokylinux</reporter>
          <assigned_to name="Antonin Godard">antonin.godard</assigned_to>
          <cc>poky.doc.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>tim.orling</cc>
    
    <cc>tom.isaacson</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>90244</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2021-05-06 07:28:10 +0000</bug_when>
    <thetext>Here[1] is this:

Some conditions exist that could prevent a deployed application from behaving as expected. When both of the following conditions exist, your application has the potential to not behave correctly when run on the target:

*) You are deploying a new application to the target and the recipe you used to build the application had correctly defined runtime dependencies.

*) The target does not physically have the packages on which the application depends installed.

If both of these conditions exist, your application will not behave as expected. The reason for this misbehavior is because the devtool deploy-target command does not deploy the packages (e.g. libraries) on which your new application depends. The assumption is that the packages are already on the target. Consequently, when a runtime call is made in the application for a dependent function (e.g. a library call), the function cannot be found.

[1] http://docs.yoctoproject.org/ref-manual/devtool-reference.html?highlight=devtool#deploying-your-software-on-the-target-machine

Maybe this should be rephrased/extended a bit.

My understanding is, that devtool does not install packages. So if devtool creates a perfectly fine recipe, but this recipe needs an extra package (e.g. a library), which is not already installed on the target, the app will not run.

There is no need in the recipe to define RDEPENDS explicitly! They are derived from DEPENDS implicitly.

So &quot;You are deploying a new application to the target and the recipe you used to build the application had correctly defined runtime dependencies.&quot; is a bit misleading, since although no RDEPENDS are in the recipe, the package still contains the dependencies.

recipe:
https://pastebin.com/MHbTADZ2

package info - as you see the dependency to is there:

Depends: libc6 (&gt;= 2.32), libtinfo5 (&gt;= 6.2)

https://pastebin.com/KuuqfxvU

and after installing from a package feed all is good:

https://pastebin.com/3u2DYise

This is pretty annoying for the beginner who tries to use devtool.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99994</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-10-24 15:03:55 +0000</bug_when>
    <thetext>Bulk move of 5.1 M4 to 5.2 M2 as approved by AlexB.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100492</commentid>
    <comment_count>2</comment_count>
    <who name="Antonin Godard">antonin.godard</who>
    <bug_when>2024-12-23 15:30:13 +0000</bug_when>
    <thetext>Hi Robert,

I&apos;ve sent a patch on the docs mailing list to explain this:
https://lists.yoctoproject.org/g/docs/topic/patch/110258352

Let me know if that makes it more clear! :)

Changing the status to In Progress Review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100561</commentid>
    <comment_count>3</comment_count>
    <who name="Antonin Godard">antonin.godard</who>
    <bug_when>2025-01-09 15:09:53 +0000</bug_when>
    <thetext>Patch merged on master: https://git.yoctoproject.org/yocto-docs/commit/?id=56c84004daad5f8a5db53e36852331435d57c8af

Marking this bug as Resolved.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>