<?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>12730</bug_id>
          
          <creation_ts>2018-05-04 01:51:09 +0000</creation_ts>
          <short_desc>meson strips RPATH during install</short_desc>
          <delta_ts>2018-09-27 13:39:14 +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>devtools / tool chain</component>
          <version>unspecified</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>2.6 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Linus Svensson">linus.svensson</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <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>80489</commentid>
    <comment_count>0</comment_count>
    <who name="Linus Svensson">linus.svensson</who>
    <bug_when>2018-05-04 01:51:09 +0000</bug_when>
    <thetext>The meson build system removes RPATH from binaries it installs. More info in: https://github.com/mesonbuild/meson/issues/314

This breaks -native builds for meson based packages.

There is support to add RPATH entries after install with the &apos;install_rpath&apos; keyword, given to executable and shared_library family of functions in meson. This is, however, needed to be done in every package built with meson.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80514</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-05-08 02:43:58 +0000</bug_when>
    <thetext>NetBSD has a work around: https://github.com/NetBSD/pkgsrc/commit/2fb2c013715a6374b4e2d1f8e9f2143e827f0f64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80516</commentid>
    <comment_count>2</comment_count>
    <who name="Linus Svensson">linus.svensson</who>
    <bug_when>2018-05-08 04:33:03 +0000</bug_when>
    <thetext>I brought up this subject with Nirbheek Chauhan during GStreamer hackfest last weekend. This is one of the subjects he intends to discuss with Jussi at GUADEC, which starts at July 6.

Is it an option to set LD_LIBRARY_PATH in the environment?

Wouldn&apos;t it be best for OE if there was option in meson to control this, and only keep rpaths for -native packges? Or are there use cases for host builds as well?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80875</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-06-21 13:03:35 +0000</bug_when>
    <thetext>Good news: appears to be fixed in meson git.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80876</commentid>
    <comment_count>4</comment_count>
    <who name="Linus Svensson">linus.svensson</who>
    <bug_when>2018-06-21 13:31:26 +0000</bug_when>
    <thetext>Perhaps it&apos;s good enough to wait for a release with that fixed then.

I think we have one package that suffers from this problem, but we temporarily fixed it with patchelf.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81607</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2018-09-24 14:41:37 +0000</bug_when>
    <thetext>Linus, is this fixed by:
   6c09949663 meson: update to 0.47.2
??</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81639</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-09-26 13:12:53 +0000</bug_when>
    <thetext>Closing as we believe this was solved with Meson 0.47.2.  Linus, if you can verify, that would be much appreciated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81640</commentid>
    <comment_count>7</comment_count>
    <who name="Linus Svensson">linus.svensson</who>
    <bug_when>2018-09-26 14:17:48 +0000</bug_when>
    <thetext>Hi,

Sure, I can verify this. I&apos;ll get back. Don&apos;t know if I can do it today or tomorrow, but I&apos;ll try to have it done before the weekend.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81651</commentid>
    <comment_count>8</comment_count>
    <who name="Linus Svensson">linus.svensson</who>
    <bug_when>2018-09-27 13:39:14 +0000</bug_when>
    <thetext>Yes,

This works for me now.

Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>