<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>32821</bug_id>
          
          <creation_ts>2016-11-29 17:50:16 +0300</creation_ts>
          <short_desc>lib.req, debuginfo: RUNPATH should take over RPATH</short_desc>
          <delta_ts>2016-12-01 10:06:31 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>rpm-build</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>32826</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>arseny</cc>
    
    <cc>glebfm</cc>
    
    <cc>imz</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>ruslandh</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>160309</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2016-11-29 17:50:16 +0300</bug_when>
    <thetext>rpm-build-4.0.4-alt100.95

I&apos;ve recently added the support for RUNPATH to verify-elf. And if RUNPATH is set, RPATH has no effect.

Similar enhancement applies to lib.req, debuginfo.req: the symbols which are bound to a library found through RUNPATH, should be put into the requirements on that library. There should not be a chance to assign them to a library found through RPATH.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>160351</commentid>
    <comment_count>1</comment_count>
    <who name="ruslandh">ruslandh</who>
    <bug_when>2016-12-01 09:30:49 +0300</bug_when>
    <thetext>Как я понимаю - для Сизифа решено. 

Как насчёт бекпортировать в другие бренчи?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>160354</commentid>
    <comment_count>2</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2016-12-01 10:06:31 +0300</bug_when>
    <thetext>&gt; Как я понимаю - для Сизифа решено. 

Этот баг не такой значительный, про точность lib.req, debuginfo.req.

Решено (в alt100.96): поддержка RUNPATH в verify-elf (verify_unresolved() и verify_rpath()):

* https://lists.altlinux.org/pipermail/devel/2016-November/201996.html
* https://bugzilla.altlinux.org/show_bug.cgi?id=32826

Этот баг, что если есть и то, и другое (пересборка Sisyphus с помощью alt100.95 показала, что таких случаев не попалось), то  lib.req может сработать не точно (обмануться RPATH вместо RUNPATH -- хотя неопнятно, зачем кому-то устраивать такой обман).

Наличие обоих сейчас сообщатся как error_strict (впрочем как и одного). Можно подумать о том, чтобы серьёзность наличия обоих повысить, тогда до обмана lib.req не дойдёт.(In reply to comment #1)

&gt; Как насчёт бекпортировать в другие бренчи?

Да, планирую. В p8 скоро: как только посмотрю результаты тестовой пересборки Sisyphus с alt100.96 (пока ещё не было, сегодня, наверное, будут результаты, можно и послать сегодня в p8; в t7 попозже)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>