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

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

    <bug>
          <bug_id>24883</bug_id>
          
          <creation_ts>2011-01-10 00:22:14 +0300</creation_ts>
          <short_desc>fails with libnotify-WARNING **: Missing symbol &apos;gdk_screen_make_display_name&apos;</short_desc>
          <delta_ts>2011-01-12 08:28:38 +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>python-module-notify</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>https://bugzilla.redhat.com/show_bug.cgi?id=626852</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergey Vlasov">vsu</reporter>
          <assigned_to name="Grigory Ustinov">grenka</assigned_to>
          <cc>antohami</cc>
    
    <cc>cas</cc>
    
    <cc>cow</cc>
    
    <cc>darktemplar</cc>
    
    <cc>evg</cc>
    
    <cc>george</cc>
    
    <cc>grenka</cc>
    
    <cc>imz</cc>
    
    <cc>lav</cc>
    
    <cc>mithraen</cc>
    
    <cc>nbr</cc>
    
    <cc>qa_viy</cc>
    
    <cc>real.altlinux.org</cc>
    
    <cc>rider</cc>
    
    <cc>sem</cc>
    
    <cc>shaba</cc>
    
    <cc>sin</cc>
    
    <cc>slev</cc>
    
    <cc>vitty</cc>
    
    <cc>viy</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>116983</commentid>
    <comment_count>0</comment_count>
    <who name="Sergey Vlasov">vsu</who>
    <bug_when>2011-01-10 00:22:14 +0300</bug_when>
    <thetext>python-module-notify-0.1.1-alt3.1.1

Не работает даже простейший тест:

$ python
Python 2.6.6 (r266:84292, Oct  1 2010, 13:15:00) 
[GCC 4.4.4 20100726 (ALT Linux 4.4.4-alt3)] on linux2
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt; import pygtk
&gt;&gt;&gt; import pynotify
&gt;&gt;&gt; pynotify.init(&quot;Test&quot;)

(.:9514): libnotify-WARNING **: Missing symbol &apos;gdk_screen_make_display_name&apos;
False

Аналогичным образом не работают и вызовы, например, из deluge.

В https://bugzilla.redhat.com/show_bug.cgi?id=626852 описана причина этого явления - libnotify пытается весьма странным образом поддерживать работу одной и той же библиотеки и с GTK2, и с GTK3, но в случае использования из Python этот механизм не работает из-за того, что библиотеки GTK оказываются загруженными через dlopen() без RTLD_GLOBAL, в результате для libnotify нужные символы оказываются недоступны. Правда, в ALT этот механизм всё равно не работает, поскольку libnotify явным образом линкуется с GTK2 (чтобы не допускать недолинковки), но проверка наличия символов при этом не отключена.

Не очень красивый объезд со стороны python-module-notify:

http://pkgs.fedoraproject.org/gitweb/?p=notify-python.git;a=commitdiff;h=aff714b471ab470ce5668db5d03205c18904de88

Хотя, возможно, правильнее было бы лечить эту проблему непосредственно в libnotify.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116989</commentid>
    <comment_count>1</comment_count>
    <who name="real@altlinux.org">real.altlinux.org</who>
    <bug_when>2011-01-10 06:38:21 +0300</bug_when>
    <thetext>&quot;Хотя, возможно, правильнее было бы лечить эту проблему непосредственно в
libnotify.&quot;

Так что делать-то будем? Приложить этот патч я могу. Или правильней будет перевесить эту багу на libnotify?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117075</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2011-01-12 08:28:38 +0300</bug_when>
    <thetext>python-module-notify-0.1.1-alt4 -&gt; sisyphus:

* Wed Jan 12 2011 Eugeny A. Rostovtsev (REAL) &lt;real at altlinux&gt; 0.1.1-alt4
- Fixed init.py so that it is able to load the needed GTK2 symbols from
  pygtk by Tom &quot;spot&quot; Callaway &lt;tcallawa@redhat.com&gt; (ALT #24883)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>