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

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

    <bug>
          <bug_id>18788</bug_id>
          
          <creation_ts>2009-02-09 21:43:29 +0300</creation_ts>
          <short_desc>%{_libdir}/python2.5/site-packages/mod_python/_psp.so нет в пакете</short_desc>
          <delta_ts>2009-02-13 15:21:25 +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>apache2-mod_python</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dimitry V. Ketov">dketov</reporter>
          <assigned_to name="Nobody&apos;s working on this, feel free to take it">nobody</assigned_to>
          
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>85642</commentid>
    <comment_count>0</comment_count>
    <who name="Dimitry V. Ketov">dketov</who>
    <bug_when>2009-02-09 21:43:29 +0300</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85654</commentid>
    <comment_count>1</comment_count>
    <who name="swi">swi</who>
    <bug_when>2009-02-10 00:15:40 +0300</bug_when>
    <thetext>Да. Из тарбола он тоже не инсталлируется никуда. Обоснуйте в чем проблема?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85705</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitry V. Ketov">dketov</who>
    <bug_when>2009-02-10 18:17:45 +0300</bug_when>
    <thetext>Из тарбола по make install он исталлируется в %{_libdir}/python2.5/site-packages/mod_python/_psp.so

Обоснование:

/etc/httpd2/conf/sites-available/test.conf

...
AddHandler mod_python .py
PythonHandler mod_python.psp
...


приводит к ошибке

MOD_PYTHON ERROR

ProcessId:      20684
...

Phase:          &apos;PythonHandler&apos;
Handler:        &apos;mod_python.psp&apos;

Traceback (most recent call last):

  File &quot;/usr/lib64/python2.5/site-packages/mod_python/importer.py&quot;, line 1537, in HandlerDispatch
    default=default_handler, arg=req, silent=hlist.silent)

  File &quot;/usr/lib64/python2.5/site-packages/mod_python/importer.py&quot;, line 1202, in _process_target
    module = import_module(module_name, path=path)

  File &quot;/usr/lib64/python2.5/site-packages/mod_python/importer.py&quot;, line 304, in import_module
    return __import__(module_name, {}, {}, [&apos;*&apos;])

  File &quot;/usr/lib64/python2.5/site-packages/mod_python/psp.py&quot;, line 21, in &lt;module&gt;
    import apache, Session, util, _psp

ImportError: No module named _psp</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85806</commentid>
    <comment_count>3</comment_count>
    <who name="swi">swi</who>
    <bug_when>2009-02-12 23:16:07 +0300</bug_when>
    <thetext>(In reply to comment #2)
&gt; Из тарбола по make install он исталлируется в
&gt; %{_libdir}/python2.5/site-packages/mod_python/_psp.so

а можно копипаст как оно это делает в студию?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85813</commentid>
    <comment_count>4</comment_count>
    <who name="Dimitry V. Ketov">dketov</who>
    <bug_when>2009-02-13 13:18:13 +0300</bug_when>
    <thetext>[root@host mod_python-3.3.1]# make install  | grep _psp

copying build/lib.linux-x86_64-2.5/mod_python/_psp.so -&gt; /usr/lib64/python2.5/site-packages/mod_python</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85818</commentid>
    <comment_count>5</comment_count>
    <who name="swi">swi</who>
    <bug_when>2009-02-13 15:09:46 +0300</bug_when>
    <thetext>(In reply to comment #4)
&gt; [root@host mod_python-3.3.1]# make install  | grep _psp
&gt; 
&gt; copying build/lib.linux-x86_64-2.5/mod_python/_psp.so -&gt;
&gt; /usr/lib64/python2.5/site-packages/mod_python

morsov@alexey ~/git/apache2-mod_python $ grep _psp log
building &apos;mod_python._psp&apos; extension
x86_64-alt-linux-gcc -pthread -DNDEBUG -pipe -Wall -O2 -fPIC -DPIC -D_GNU_SOURCE -pipe -Wall -O2 -fPIC -I/usr/src/RPM/BUILD/mod_python-3.3.1/src/include -I/usr/include/python2.5 -c /usr/src/RPM/BUILD/mod_python-3.3.1/src/_pspmodule.c -o build/temp.linux-x86_64-2.5/usr/src/RPM/BUILD/mod_python-3.3.1/src/_pspmodule.o
x86_64-alt-linux-gcc -pthread -shared -pipe -Wall -O2 build/temp.linux-x86_64-2.5/usr/src/RPM/BUILD/mod_python-3.3.1/src/psp_string.o build/temp.linux-x86_64-2.5/usr/src/RPM/BUILD/mod_python-3.3.1/src/psp_parser.o build/temp.linux-x86_64-2.5/usr/src/RPM/BUILD/mod_python-3.3.1/src/_pspmodule.o -lpython2.5 -o build/lib.linux-x86_64-2.5/mod_python/_psp.so
mode of `./usr/lib64/python2.5/site-packages/mod_python/_psp.so&apos; changed to 0644 (rw-r--r--)
+ install -c dist/build/lib.linux-x86_64-2.5/mod_python/_psp.so /usr/src/tmp/apache2-mod_python-buildroot/usr/lib64/python2.5/site-packages/mod_python
verify-elf: WARNING: ./usr/lib64/apache2/modules/mod_python.so: undefined symbol: apr_psprintf


я не понимаю как вы его собираете и как он у вас при make install ставится в lib собственно.
вообщем теперь _psp.so лежит где просили.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85819</commentid>
    <comment_count>6</comment_count>
    <who name="Dimitry V. Ketov">dketov</who>
    <bug_when>2009-02-13 15:21:25 +0300</bug_when>
    <thetext>&gt;я не понимаю как вы его собираете и как он у вас при make install ставится в lib собственно

tar xvzf mod_python-3.3.1.tgz
cd mod_python-3.3.1
make
make install

&gt;вообщем теперь _psp.so лежит где просили
это не я просил, это PythonHandler mod_python.psp просил :)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>