<?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>13786</bug_id>
          
          <creation_ts>2020-02-06 23:20:51 +0000</creation_ts>
          <short_desc>gstreamer build not determinstic (setcap)</short_desc>
          <delta_ts>2020-02-19 21:30:45 +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>multimedia</component>
          <version>3.0</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>3.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>alex.kanavin</cc>
    
    <cc>crg7475</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>86362</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-02-06 23:20:51 +0000</bug_when>
    <thetext>The gstreamer build (gstreamer1.0_1.16.1.bb) is showing determinism issues depending on whether setcap is installed on the buildhost or not. The autotools fix would be:

# setcap may not exist on the host
CACHED_CONFIGUREVARS = &quot;ac_cv_path_SETCAP=${sbindir}&quot;

Unfortunately I don&apos;t know the meson equivalent.

The diffoscope difference shows a dependency on libcap in some builds and not in others.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86370</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Rafael Giani">crg7475</who>
    <bug_when>2020-02-07 06:12:55 +0000</bug_when>
    <thetext>The relevant location in the meson based builds is here: https://gitlab.freedesktop.org/gstreamer/gstreamer/blob/master/libs/gst/helpers/meson.build#L67

This meson.build file also contains PTP related checks that may similarly cause nondeterministic builds, though I am not sure this really is the case. Worth checking too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86482</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2020-02-19 15:38:32 +0000</bug_when>
    <thetext>I think simply adding a dependency on whatever native recipe provides setcap, and then making sure target libcap is there as well should be enough?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86483</commentid>
    <comment_count>3</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2020-02-19 15:38:58 +0000</bug_when>
    <thetext>Reading that meson code, it does look for setcap in PATH first before falling back to hardcoded host paths.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86493</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-02-19 21:30:45 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=29d57a9e270c64b523021a65fdde140efb40e3c7</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>