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

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">
<channel>
    
    <title>Just my Blog - System Information Scanner</title>
    <link>http://blog.adslweb.net/serendipity/</link>
    <description>SELECT * FROM users WHERE clue &gt; 0</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.5.5 - http://www.s9y.org/</generator>
    <pubDate>Thu, 14 Jul 2011 07:00:56 GMT</pubDate>

    <image>
        <url>http://blog.adslweb.net/serendipity/templates/competition/img/s9y_banner_small.png</url>
        <title>RSS: Just my Blog - System Information Scanner - SELECT * FROM users WHERE clue &gt; 0</title>
        <link>http://blog.adslweb.net/serendipity/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>How to update Python bindings to subversion.</title>
    <link>http://blog.adslweb.net/serendipity/article/287/How-to-update-Python-bindings-to-subversion.</link>
            <category>Linux/Unix/BSD</category>
            <category>System Information Scanner</category>
            <category>System Op stuff</category>
            <category>Work</category>
    
    <comments>http://blog.adslweb.net/serendipity/article/287/How-to-update-Python-bindings-to-subversion.#comments</comments>
    <wfw:comment>http://blog.adslweb.net/serendipity/wfwcomment.php?cid=287</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://blog.adslweb.net/serendipity/rss.php?version=2.0&amp;type=comments&amp;cid=287</wfw:commentRss>
    

    <author>nospam@example.com (Pieter de Rijk)</author>
    <content:encoded>
    &lt;p&gt;Recently I run into the problem that a team had a requirement for subversion 1.6.6 (while CentOS 5u3 was not supporting this... but the vendor didn&#039;t provide a newer release). This team also had a requirement to have TRAC... TRAC is depended on Python... but I was not allowed to update the subversion bindings for python by updating the it on the whole system... so... this is what I did: &lt;br /&gt;&lt;/p&gt; &lt;br /&gt;
&lt;ul&gt; &lt;br /&gt;
&lt;li&gt;Installed a number of devel packages:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;   # &lt;strong&gt;yum install apr-devel neon{,-devel} apr-util-devel&lt;/strong&gt;&lt;br /&gt;
&lt;/pre&gt; &lt;br /&gt;
&lt;/li&gt; &lt;br /&gt;
&lt;li&gt;Compiled sqlite version 3.6.13 and installed it on NFS:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;  $ &lt;strong&gt;./configure --prefix=/nfs/apps/webservices/trac-parent/sqlite/3.6.13&lt;/strong&gt;&lt;br /&gt;
  ...&lt;br /&gt;
  $ &lt;strong&gt;make ; make install&lt;/strong&gt;&lt;br /&gt;
  ...&lt;/pre&gt; &lt;br /&gt;
&lt;/li&gt; &lt;br /&gt;
&lt;li&gt;Compiled subversion 1.6.6 and installed it on NFS:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;$ &lt;strong&gt;make clean; ./configure \&lt;br /&gt;
 --prefix=/&lt;/strong&gt;&lt;strong&gt;&lt;strong&gt;nfs/apps/webservices/trac-parent&lt;/strong&gt;&lt;/strong&gt;&lt;strong&gt;/subversion/1.6.6 \&lt;br /&gt;
 --with-sqlite=&lt;/strong&gt;&lt;strong&gt;&lt;strong&gt;/nfs/apps/webservices/trac-parent/&lt;/strong&gt;&lt;/strong&gt;&lt;strong&gt;sqlite/3.6.13 \&lt;br /&gt;
 --without-neon &lt;/strong&gt;&lt;br /&gt;
...&lt;br /&gt;
$ &lt;strong&gt;make -j8 ; make install ; make swig-py ; make install-swig-py&lt;/strong&gt;&lt;br /&gt;
&lt;/pre&gt; &lt;br /&gt;
&lt;p&gt;…&lt;/p&gt; &lt;br /&gt;
&lt;/li&gt; &lt;br /&gt;
&lt;li&gt;Added the following line to &lt;font face=&quot;courier new,courier,monospace&quot;&gt;/etc/sysconfig/httpd&lt;/font&gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;export LD_LIBRARY_PATH=/nfs/apps/webservices/trac-parent/sqlite/3.6.13/lib/&lt;br /&gt;
&lt;/pre&gt; &lt;br /&gt;
&lt;/li&gt; &lt;br /&gt;
&lt;li&gt;Modified &lt;strong&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;/etc/httpd/conf.d/trac.conf&lt;/font&gt;&lt;/strong&gt; by adding a ‘&lt;strong&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;PythonPath&lt;/font&gt;&lt;/strong&gt;’ to the location-directive:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;lt;Location /projects&amp;gt;&lt;br /&gt;
  ...&lt;br /&gt;
  PythonPath &quot;[&#039;/nfs/apps/webservices/trac-parent/subversion/1.6.6/lib/svn-python&#039;] + sys.path&quot;&lt;br /&gt;
&amp;lt;/Location&amp;gt;&lt;br /&gt;
&lt;/pre&gt; &lt;br /&gt;
&lt;/li&gt; &lt;br /&gt;
&lt;li&gt;Restart the trac daemon:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;# &lt;strong&gt;service httpd stop&lt;/strong&gt;&lt;br /&gt;
# &lt;strong&gt;service httpd start&lt;/strong&gt;&lt;br /&gt;
&lt;/pre&gt; &lt;br /&gt;
&lt;/li&gt; &lt;br /&gt;
&lt;li&gt;Now you’ve to resync the trac-instance with Subversion (the &lt;br /&gt;
repository_dir value in the trac.ini of the instance).. but make sure &lt;br /&gt;
you use the correct bindings in Python:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;# &lt;strong&gt;export LD_LIBRARY_PATH=/nfs/apps/webservices/trac-parent/sqlite/3.6.13/lib/&lt;/strong&gt;&lt;br /&gt;
# &lt;strong&gt;export PYTHONPATH=/nfs/apps/webservices/trac-parent/subversion/1.6.6/lib/svn-python&lt;/strong&gt;&lt;br /&gt;
# &lt;strong&gt;trac-admin ${TRAC_INSTANCE_PATH} repository resync &quot;*&quot;&lt;/strong&gt;&lt;br /&gt;
&lt;/pre&gt; &lt;br /&gt;
&lt;/li&gt; &lt;br /&gt;
&lt;/ul&gt; 
    </content:encoded>

    <pubDate>Wed, 13 Jul 2011 20:33:52 +0200</pubDate>
    <guid isPermaLink="false">http://blog.adslweb.net/serendipity/article/287/guid</guid>
    <creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license>
</item>

</channel>
</rss>
