2008 deposunda mod_python paketinin olmadığını fark ettim. Zaten paketleme işine başlamak istiyordum. Bu paketi kendim yapayım dedim ve 2007 deposundaki mod_python paketine bakarak bir paket oluşturmaya çalıştım. Aslında yaptığım şey <a href="http://svn.pardus.org.tr/pardus/2007/server/www/mod_python/">http://svn.pardus.org.tr/pardus/2007/server/www/mod_python/</a> adresindekileri kopyalayıp yapıştırmaktı. Tek değişikliğim actions.py dosyasındaki apxs2 --&gt; apxs yapmak oldu. Ama olmadı :) Sanırım bu konuda yardım alabileceğim yer burası... <br>
<br>pisi build pspec.xml --debug komutu sonucu aldığım hata şu; <br><br>...<br>*** 0 errors, 1 warnings<br>/usr/share/apr/build/libtool --silent --mode=link gcc -o <a href="http://mod_python.la">mod_python.la</a>&nbsp; -rpath /usr/lib/apache2/modules -module -avoid-version&nbsp;&nbsp;&nbsp; finfoobject.lo hlistobject.lo hlist.lo filterobject.lo connobject.lo serverobject.lo util.lo tableobject.lo requestobject.lo _apachemodule.lo mod_python.lo -Wl,-O1 -Wl,-z,relro -Wl,--hash-style=gnu -L/usr/lib/python2.5/config -Xlinker -export-dynamic -Wl,-O1 -Wl,-z,relro -Wl,--hash-style -lm -lpython2.5 -lpthread -ldl -lutil -lm<br>
/usr/bin/ld: invalid hash style `-soname&#39;<br>collect2: ld returned 1 exit status<br>apxs:Error: Command failed with rc=65536<br>.<br>make[1]: *** [mod_python.so] Hata 1<br>make[1]: `/var/pisi/mod_python-3.3.1-5/work/mod_python-3.3.1/src&#39; dizininden çıkılıyor<br>
make: *** [do_dso] Hata 2<br>DEBUG: &quot;make -j1 OPT=&quot;`apxs -q CFLAGS` -fPIC&quot;&quot; için dönüş değeri 2<br>İnşa başarısızlığa uğradı.<br>Program sonlandırıldı.<br>&lt;class &#39;pisi.actionsapi.autotools.MakeError&#39;&gt;: İnşa başarısızlığa uğradı.<br>
Genel yardım için lütfen &#39;pisi help&#39; komutunu kullanınız.<br>Geri-iz:<br>&nbsp; File &quot;/usr/bin/pisi&quot;, line 80, in &lt;module&gt;<br>&nbsp;&nbsp;&nbsp; cli.run_command()<br>&nbsp; File &quot;/usr/lib/pardus/pisi/cli/pisicli.py&quot;, line 136, in run_command<br>
&nbsp;&nbsp;&nbsp; self.command.run()<br>&nbsp; File &quot;/usr/lib/pardus/pisi/cli/build.py&quot;, line 119, in run<br>&nbsp;&nbsp;&nbsp; pisi.api.build(x)<br>&nbsp; File &quot;/usr/lib/pardus/pisi/api.py&quot;, line 691, in build<br>&nbsp;&nbsp;&nbsp; return pisi.atomicoperations.build(*args, **kw)<br>
&nbsp; File &quot;/usr/lib/pardus/pisi/atomicoperations.py&quot;, line 564, in build<br>&nbsp;&nbsp;&nbsp; return pisi.operations.build.build(package)<br>&nbsp; File &quot;/usr/lib/pardus/pisi/operations/build.py&quot;, line 966, in build<br>&nbsp;&nbsp;&nbsp; return pb.build()<br>
&nbsp; File &quot;/usr/lib/pardus/pisi/operations/build.py&quot;, line 203, in build<br>&nbsp;&nbsp;&nbsp; self.run_build_action()<br>&nbsp; File &quot;/usr/lib/pardus/pisi/operations/build.py&quot;, line 345, in run_build_action<br>&nbsp;&nbsp;&nbsp; if self.run_action_function(ctx.const.build_func):<br>
&nbsp; File &quot;/usr/lib/pardus/pisi/operations/build.py&quot;, line 442, in run_action_function<br>&nbsp;&nbsp;&nbsp; self.actionLocals[func]()<br>&nbsp; File &quot;error&quot;, line 20, in build<br>&nbsp; File &quot;/usr/lib/pardus/pisi/actionsapi/autotools.py&quot;, line 99, in make<br>
&nbsp;&nbsp;&nbsp; raise MakeError(_(&#39;Make failed.&#39;))<br><br><br>pspec.xml ve actions.py dosyaları içeriğini gönderiyorum..<br><br>################<br>pspec.xml <br>################<br>&lt;?xml version=&quot;1.0&quot; ?&gt;<br>&lt;!DOCTYPE PISI SYSTEM &quot;<a href="http://www.pardus.org.tr/projeler/pisi/pisi-spec.dtd">http://www.pardus.org.tr/projeler/pisi/pisi-spec.dtd</a>&quot;&gt;<br>
&lt;PISI&gt;<br>&nbsp;&nbsp;&nbsp; &lt;Source&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Name&gt;mod_python&lt;/Name&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Homepage&gt;<a href="http://www.modpython.org">http://www.modpython.org</a>&lt;/Homepage&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Packager&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Name&gt;Ahmet AYGÜN&lt;/Name&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Email&gt;<a href="mailto:ahmet@zion.gen.tr">ahmet@zion.gen.tr</a>&lt;/Email&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Packager&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;License&gt;Apache-2.0&lt;/License&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;IsA&gt;library&lt;/IsA&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Summary&gt;Python module for Apache&lt;/Summary&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Description&gt;mod_python is an Apache module that embeds the Python interpreter within the server.&lt;/Description&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;Archive sha1sum=&quot;e538170fd78e09408b6d8593da980b126a0fef93&quot; type=&quot;targz&quot;&gt;<a href="http://godel.cs.bilgi.edu.tr/apache/httpd/modpython/mod_python-3.3.1.tgz">http://godel.cs.bilgi.edu.tr/apache/httpd/modpython/mod_python-3.3.1.tgz</a>&lt;/Archive&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;BuildDependencies&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Dependency&gt;apache&lt;/Dependency&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Dependency&gt;python&lt;/Dependency&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/BuildDependencies&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/Source&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;Package&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Name&gt;mod_python&lt;/Name&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;RuntimeDependencies&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Dependency&gt;apache&lt;/Dependency&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Dependency&gt;python&lt;/Dependency&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/RuntimeDependencies&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Files&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Path fileType=&quot;config&quot;&gt;/etc&lt;/Path&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Path fileType=&quot;library&quot;&gt;/usr/lib&lt;/Path&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Files&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;AdditionalFiles&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;AdditionalFile target=&quot;/etc/apache2/modules.d/16_mod_python.conf&quot; permission=&quot;0644&quot; owner=&quot;root&quot;&gt;16_mod_python.conf&lt;/AdditionalFile&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/AdditionalFiles&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Provides&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;COMAR script=&quot;package.py&quot;&gt;System.Package&lt;/COMAR&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Provides&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/Package&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;History&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Update release=&quot;5&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Date&gt;2007-04-21&lt;/Date&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Version&gt;3.3.1&lt;/Version&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Comment&gt;Version bump.&lt;/Comment&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Name&gt;Ahmet AYGÜN&lt;/Name&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Email&gt;<a href="mailto:ahmet@zion.gen.tr">ahmet@zion.gen.tr</a>&lt;/Email&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Update&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Update release=&quot;4&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Date&gt;2006-10-09&lt;/Date&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Version&gt;3.2.10&lt;/Version&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Comment&gt;Version bump.&lt;/Comment&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Name&gt;Ahmet AYGÜN&lt;/Name&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Email&gt;<a href="mailto:ahmet@zion.gen.tr">ahmet@zion.gen.tr</a>&lt;/Email&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Update&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Update release=&quot;3&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Date&gt;2006-03-25&lt;/Date&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Version&gt;3.2.8&lt;/Version&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Comment&gt;comar script added.&lt;/Comment&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Name&gt;Ahmet AYGÜN&lt;/Name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Email&gt;<a href="mailto:ahmet@zion.gen.tr">ahmet@zion.gen.tr</a>&lt;/Email&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Update&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Update release=&quot;2&quot; type=&quot;security&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Date&gt;2006-03-02&lt;/Date&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Version&gt;3.2.8&lt;/Version&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Comment&gt;Version bump to fix <a href="http://www.modpython.org/fs_sec_warn.html">http://www.modpython.org/fs_sec_warn.html</a>&lt;/Comment&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Name&gt;İsmail Dönmez&lt;/Name&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Email&gt;<a href="mailto:ismail@pardus.org.tr">ismail@pardus.org.tr</a>&lt;/Email&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Update&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Update release=&quot;1&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Date&gt;2006-01-26&lt;/Date&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Version&gt;3.1.4&lt;/Version&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Comment&gt;First release.&lt;/Comment&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Name&gt;Ahmet AYGÜN&lt;/Name&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Email&gt;<a href="mailto:ahmet@zion.gen.tr">ahmet@zion.gen.tr</a>&lt;/Email&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Update&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/History&gt;<br>&lt;/PISI&gt;<br><br>################<br>actions.py<br>################<br><br>#!/usr/bin/python<br># -*- coding: utf-8 -*-<br>#<br># Copyright 2005-2007 TUBITAK/UEKAE<br>
# Licensed under the GNU General Public License, version 2.<br># See the file <a href="http://www.gnu.org/copyleft/gpl.txt">http://www.gnu.org/copyleft/gpl.txt</a>.<br><br>from pisi.actionsapi import autotools<br>from pisi.actionsapi import pisitools<br>
from pisi.actionsapi import get<br><br>def setup():<br>&nbsp;&nbsp;&nbsp; pisitools.dosed(&quot;dist/Makefile.in&quot;, &quot;--optimize 2&quot;, &quot;--no-compile&quot;)<br>&nbsp;&nbsp;&nbsp; pisitools.dosed(&quot;src/requestobject.c&quot;, &quot;LONG_LONG&quot;, &quot;PY_LONG_LONG&quot;)<br>
<br>&nbsp;&nbsp;&nbsp; autotools.autoconf()<br>&nbsp;&nbsp;&nbsp; autotools.configure(&quot;--with-apxs=/usr/sbin/apxs&quot;)<br><br>def build():<br>&nbsp;&nbsp;&nbsp; autotools.make(&quot;OPT=\&quot;`apxs -q CFLAGS` -fPIC\&quot;&quot;)<br><br>def install():<br>&nbsp;&nbsp;&nbsp; autotools.install(&quot;DESTDIR=\&quot;%s\&quot;&quot; % get.installDIR())<br>
<br><br>-- <br>Hüseyin -neXus- Berberoğlu<br><a href="http://www.birazkisisel.com">http://www.birazkisisel.com</a> - süper blog