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

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

    <bug>
          <bug_id>6570</bug_id>
          
          <creation_ts>2005-04-19 14:38:35 +0400</creation_ts>
          <short_desc>/etc/ld.so.conf non-modification may break dist-upgrade</short_desc>
          <delta_ts>2008-03-13 12:29:00 +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>glibc-core</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>9199</blocked>
    
    <blocked>14168</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Shigorin">mike</reporter>
          <assigned_to name="Gleb F-Malinovskiy">glebfm</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>23552</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2005-04-19 14:38:35 +0400</bug_when>
    <thetext>While updating Compact 2.3 to current Sisyphus it was observed that:

- old /etc/ld.so.conf was left intact;
- /etc/ld.so.conf.rpmnew contained &quot;include /etc/ld.so.conf.d/*.conf&quot;.

This behaviour, although compatible with local administrator&apos;s changes, may
break (and it did) dist-upgrades when subsequent package installs rely on their
/etc/ld.so.conf.d/* being processed.

Proposal: check (trigger or just a grep in %post) that include is absent in
/etc/ld.so.conf and if so, add just that line (maybe also warn on stderr).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42126</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2006-11-12 19:28:17 +0300</bug_when>
    <thetext>Предлагаю:

%post
grep -q &apos;^include /etc/ld\.so\.conf\.d/\*&apos; /etc/ld.so.conf || echo &apos;include
/etc/ld.so.conf.d/*.conf&apos; &gt;&gt; /etc/ld.so.conf

BTW -- дома на M30, который тянется с M22, обнаружился именно такой случай, но
при этом не припомню каких-то особых грабель.  В /etc/ld.so.conf.d/ присутствуют
wine.conf (/usr/lib/wine) и xorg.conf (/usr/X11R6/lib), при этом /usr/X11R6/lib
был добавлен чем-то и в имеющийся /etc/ld.so.conf.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42127</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2006-11-12 19:39:02 +0300</bug_when>
    <thetext>В %post какого пакета?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42136</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2006-11-12 21:21:09 +0300</bug_when>
    <thetext>Эээ... что-то шевельнулось, но только сейчас дошло.  Мне придумать маленький
статический хелпер или ты сам сразу его перепишешь? :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42137</commentid>
    <comment_count>4</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2006-11-12 21:29:05 +0300</bug_when>
    <thetext>А зачем статический?
И ведь есть уже /sbin/glibc_post_upgrade, может быть в него встроить?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42138</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2006-11-12 21:32:26 +0300</bug_when>
    <thetext>(In reply to comment #4)
&gt; А зачем статический?
Торможу, это ж %post.

&gt; И ведь есть уже /sbin/glibc_post_upgrade, может быть в него встроить?
А давай.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58571</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2007-11-24 14:35:04 +0300</bug_when>
    <thetext>(In reply to comment #5)
&gt; &gt; И ведь есть уже /sbin/glibc_post_upgrade, может быть в него встроить?
&gt; А давай.
(где-нить ближе к glibc-2.7+? ;-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62039</commentid>
    <comment_count>7</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-01-27 03:30:19 +0300</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; &gt; И ведь есть уже /sbin/glibc_post_upgrade, может быть в него встроить?
&gt; &gt; А давай.
&gt; (где-нить ближе к glibc-2.7+? ;-)

Зачем откладывать в долгий ящик?
В 2.5.1-alt2-4-gda3f153 должно работать.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62076</commentid>
    <comment_count>8</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2008-01-27 23:31:18 +0300</bug_when>
    <thetext>(In reply to comment #7)
&gt; &gt; (где-нить ближе к glibc-2.7+? ;-)
&gt; Зачем откладывать в долгий ящик?
(осмотрев номер баги) Ну... мало ли.

&gt; В 2.5.1-alt2-4-gda3f153 должно работать.
Спасибо, постараюсь дома проверить.  Тут сейчас в наличии (на бранче):

home:~&gt; head /etc/ld.so.conf{,.rpmnew}
==&gt; /etc/ld.so.conf &lt;==

/usr/lib
/usr/lib/qt3/lib
/usr/lib/krb5

/usr/X11R6/lib

==&gt; /etc/ld.so.conf.rpmnew &lt;==
include /etc/ld.so.conf.d/*.conf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62079</commentid>
    <comment_count>9</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-01-27 23:36:37 +0300</bug_when>
    <thetext>(In reply to comment #8)
&gt; &gt; В 2.5.1-alt2-4-gda3f153 должно работать.
&gt; Спасибо, постараюсь дома проверить.

Я уже проверил, сейчас отправил -alt3 в Сизиф.

Логика работы workaround&apos;а такая:
если в ходе _обновления_ пакета glibc-core в файле /etc/ld.so.conf нет
упоминания /etc/ld.so.conf.d/, то в файл /etc/ld.so.conf добавляется строка
include /etc/ld.so.conf.d/*.conf
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>