<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Freya.no &#187; gentoo</title>
	<atom:link href="http://wp.freya.no/tag/gentoo/feed/" rel="self" type="application/rss+xml" />
	<link>http://wp.freya.no</link>
	<description>Knowledge is power</description>
	<lastBuildDate>Wed, 28 Jul 2010 16:50:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Howto: Kickstart an existing md array</title>
		<link>http://wp.freya.no/2009/06/howto-kickstart-an-existing-md-array/</link>
		<comments>http://wp.freya.no/2009/06/howto-kickstart-an-existing-md-array/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 20:34:01 +0000</pubDate>
		<dc:creator>kent</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://wp.freya.no/?p=246</guid>
		<description><![CDATA[mdadm --assemble /dev/md0 /dev/sd[abcd]1]]></description>
			<content:encoded><![CDATA[<pre>mdadm --assemble /dev/md0 /dev/sd[abcd]1</pre>
 <img src="http://wp.freya.no/wp-content/plugins/feed-statistics.php?view=1&post_id=246" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://wp.freya.no/2009/06/howto-kickstart-an-existing-md-array/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to specify shared object path in Linux</title>
		<link>http://wp.freya.no/2009/02/how-to-specify-shared-object-path-in-linux/</link>
		<comments>http://wp.freya.no/2009/02/how-to-specify-shared-object-path-in-linux/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 21:00:27 +0000</pubDate>
		<dc:creator>kent</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://wp.freya.no/?p=226</guid>
		<description><![CDATA[If you&#8217;re on a system as a user and with no means of installing custom libraries or updating libraries for your custom program, you can load your own libraries with this simple command. $ ./executable ./executable: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory Use ldd to [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re on a system as a user and with no means of installing custom libraries or updating libraries for your custom program, you can load your own libraries with this simple command.</p>
<pre>$ ./executable
./executable: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory</pre>
<p>Use ldd to find out what missing libraries you have:</p>
<pre>$ ldd executable
        linux-gate.so.1 =&gt;  (0xa942d000)
        libncursesw.so.5 =&gt; /lib/libncursesw.so.5 (0xa93e9000)
        <span style="color: #ff0000">libcurl.so.4 =&gt; not found</span>
        librt.so.1 =&gt; /lib/tls/i686/cmov/librt.so.1 (0xa93df000)
        libssl.so.0.9.8 =&gt; /usr/lib/i686/cmov/libssl.so.0.9.8 (0xa939d000)
        libdl.so.2 =&gt; /lib/tls/i686/cmov/libdl.so.2 (0xa9399000)
        libz.so.1 =&gt; /usr/lib/libz.so.1 (0xa9384000)
        libcrypto.so.0.9.8 =&gt; /usr/lib/i686/cmov/libcrypto.so.0.9.8 (0xa9241000)
        libsigc-2.0.so.0 =&gt; /usr/lib/libsigc-2.0.so.0 (0xa923b000)
        libstdc++.so.6 =&gt; /usr/lib/libstdc++.so.6 (0xa9148000)
        libm.so.6 =&gt; /lib/tls/i686/cmov/libm.so.6 (0xa9123000)
        libgcc_s.so.1 =&gt; /lib/libgcc_s.so.1 (0xa9118000)
        libc.so.6 =&gt; /lib/tls/i686/cmov/libc.so.6 (0xa8fc9000)
        libpthread.so.0 =&gt; /lib/tls/i686/cmov/libpthread.so.0 (0xa8fb0000)
        /lib/ld-linux.so.2 (0xa942e000)</pre>
<p>Copy over your libcurl.so.4 to the system and invoke your custom executable with:</p>
<pre>$ LD_PRELOAD=./libcurl.so.4:./libexecutable.so.11 ./executable</pre>
<p>Separate different libraries with a colon (:).</p>
 <img src="http://wp.freya.no/wp-content/plugins/feed-statistics.php?view=1&post_id=226" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://wp.freya.no/2009/02/how-to-specify-shared-object-path-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subversion + SVN::Notify + Apache 2.2.x + mod_auth</title>
		<link>http://wp.freya.no/subversion/subversion-svnnotify-apache-22x-mod_auth/</link>
		<comments>http://wp.freya.no/subversion/subversion-svnnotify-apache-22x-mod_auth/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 21:54:01 +0000</pubDate>
		<dc:creator>kent</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://wp.freya.no/?p=220</guid>
		<description><![CDATA[This is a brief guide on how to set up Subversion with Trac on Apache with commit-mails sent with SVN::Notify Perl module. First of all, we need to install some software. # emerge -av subversion apache When everythin has installed fine, continue. Create a repository somewhere. # cd /var/svn/ # svnadmin create test # ll [...]]]></description>
			<content:encoded><![CDATA[<p>This is a brief guide on how to set up Subversion with Trac on Apache with commit-mails sent with SVN::Notify Perl module.</p>
<p>First of all, we need to install some software.</p>
<pre># emerge -av subversion apache</pre>
<p>When everythin has installed fine, continue.</p>
<p>Create a repository somewhere.</p>
<pre># cd /var/svn/
# svnadmin create test
# ll
drwxr-xr-x  6 root   root   4.0K 2009-01-30 12:56 test</pre>
<p>Change the permissions to apache:apache and rights 770:</p>
<pre># chown apache:apache test -R &amp;&amp; chmod 770 test -R
# ll
drwxrwx---  6 apache apache 4.0K 2009-01-30 12:56 test</pre>
<p>Our repository root is at /var/svn/test and our Subversion root is /var/svn.</p>
<p>Two more files are needed if you are doing HTTP Authentication, /var/svn/htpasswd and /var/svn/authz.</p>
<p>Create the htpasswd file with htpasswd2.</p>
<pre># htpasswd2 -c htpasswd username</pre>
<p>The authz file looks like this (with the defaults).</p>
<pre>[groups]
# harry_and_sally = harry,sally

[/]
username = rw
* =

# [repository:/baz/fuz]
# @harry_and_sally = rw
# * = r</pre>
<p>Our next step is to configure Apache to work with Subversion.</p>
<p>Open up/etc/conf.d/apache2 and make sure APACHE2_OPTS contains &#8220;-D SVN -D SVN_AUTHZ -D PHP5 -D DAV&#8221;.</p>
<p>If you&#8217;re doing a SVN repository with authentication, I&#8217;d advise you to use SVN over SSL (HTTPS).</p>
<p>If we want to use svn.example.com as our Subversion repository URL, our Apache config should look like:</p>
<pre>&lt;VirtualHost *:443&gt;
    ServerName svn.example.com
    #Include /etc/apache2/vhosts.d/default_vhost.include
    ErrorLog /var/log/apache2/ssl_error_log

    &lt;IfModule log_config_module&gt;
        TransferLog /var/log/apache2/ssl_access_log
    &lt;/IfModule&gt;

    &lt;Location /&gt;
        AuthType Basic
        AuthName "Subversion repository and Trac"
        AuthUserFile /var/svn/htpasswd
        Require valid-user
        SSLRequireSSL

        DAV svn
        SVNParentPath /var/svn/
        BrowserMatch "SVN" redirect-carefull
        AuthzSVNAccessFile  /var/svn/authz
        SVNListParentPath on
    &lt;/Location&gt;

    DocumentRoot "/var/www/localhost/htdocs"
&lt;/VirtualHost&gt;</pre>
<p>If everything is successful, you&#8217;ll be able to access your subversion repository at https://svn.example.com/test.</p>
<p>Final touch is the Perl module SVN::Notify. Fire up CPAN.</p>
<pre># cpan

cpan shell -- CPAN exploration and modules installation (v1.9301)
ReadLine support enabled

cpan[1]&gt; install SVN::Notify
cpan[2]&gt; install HTML::Entities</pre>
<p>Enter your SVN hooks directory.</p>
<pre># cd /var/svn/test/hooks</pre>
<p>And copy the post commit template to post commit.</p>
<pre># cp post-commit.tmpl post-commit
# vim post-commit</pre>
<p>Make sure the following lines are present:</p>
<pre>REPOS="$1"
REV="$2"

export LANG="nb_NO.UTF-8" # optional
/usr/bin/svnnotify --repos-path "/var/svn/test" --revision "$REV" --svnlook /usr/bin/svnlook --sendmail /usr/sbin/sendmail --to <span id="emob-znvy@rknzcyr.pbz-42">mail {at} example(.)com</span><script type="text/javascript">
    var mailNode = document.getElementById('emob-znvy@rknzcyr.pbz-42');
    var linkNode = document.createElement('a');
    linkNode.setAttribute('href', "mailto:%6D%61%69%6C%40%65%78%61%6D%70%6C%65%2E%63%6F%6D");
    tNode = document.createTextNode("mail {at} example(.)com");
    linkNode.appendChild(tNode);
    linkNode.setAttribute('id', "emob-znvy@rknzcyr.pbz-42");
    mailNode.parentNode.replaceChild(linkNode, mailNode);
</script> --from <span id="emob-fia@rknzcyr.pbz-86">svn {at} example(.)com</span><script type="text/javascript">
    var mailNode = document.getElementById('emob-fia@rknzcyr.pbz-86');
    var linkNode = document.createElement('a');
    linkNode.setAttribute('href', "mailto:%73%76%6E%40%65%78%61%6D%70%6C%65%2E%63%6F%6D");
    tNode = document.createTextNode("svn {at} example(.)com");
    linkNode.appendChild(tNode);
    linkNode.setAttribute('id', "emob-fia@rknzcyr.pbz-86");
    mailNode.parentNode.replaceChild(linkNode, mailNode);
</script> --with-diff --reply-to <span id="emob-ab-ercyl@rknzcyr.pbz-90">no-reply {at} example(.)com</span><script type="text/javascript">
    var mailNode = document.getElementById('emob-ab-ercyl@rknzcyr.pbz-90');
    var linkNode = document.createElement('a');
    linkNode.setAttribute('href', "mailto:%6E%6F%2D%72%65%70%6C%79%40%65%78%61%6D%70%6C%65%2E%63%6F%6D");
    tNode = document.createTextNode("no-reply {at} example(.)com");
    linkNode.appendChild(tNode);
    linkNode.setAttribute('id', "emob-ab-ercyl@rknzcyr.pbz-90");
    mailNode.parentNode.replaceChild(linkNode, mailNode);
</script> --linkize --handler HTML::ColorDiff --smtp localhost --svn-encoding "UTF-8"</pre>
<p>Whenever someone does a commit, a mail with the colored diff is sent out to the recipients.</p>
 <img src="http://wp.freya.no/wp-content/plugins/feed-statistics.php?view=1&post_id=220" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://wp.freya.no/subversion/subversion-svnnotify-apache-22x-mod_auth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>*** Can&#039;t link to Pango. Pango is required to build</title>
		<link>http://wp.freya.no/2008/12/cant-link-to-pango-pango-is-required-to-build/</link>
		<comments>http://wp.freya.no/2008/12/cant-link-to-pango-pango-is-required-to-build/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 23:13:11 +0000</pubDate>
		<dc:creator>kent</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[cairo]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[gtk+]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pango]]></category>

		<guid isPermaLink="false">http://wp.freya.no/?p=211</guid>
		<description><![CDATA[After being puzzled by this error for some time, I finally was able to solve it with lots of help from my friend Simeon. GTK+ ./configure failed both on emerge gtk+ and on a manual source build with these errors. configure:33559: gcc -o conftest -g -O2 -Wall -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1 conftest.c [...]]]></description>
			<content:encoded><![CDATA[<p>After being puzzled by this error for some time, I finally was able to solve it with lots of help <a href="http://simeon.simeonov.no/" target="_blank">from my friend Simeon</a>. GTK+ ./configure failed both on emerge gtk+ and on a manual source build with these errors.</p>
<pre>configure:33559: gcc -o conftest -g -O2 -Wall -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1       conftest.c -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0    &gt;&amp;5
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libcairo.so: undefined reference to `XRenderFindStandardFormat'
/opt/blackdown-jdk-1.4.2.03/jre/lib/i386/libXrender.so.1: undefined reference to `XMissingExtension'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libcairo.so: undefined reference to `XRenderQuerySubpixelOrder'
/opt/blackdown-jdk-1.4.2.03/jre/lib/i386/libXrender.so.1: undefined reference to `XextRemoveDisplay'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libcairo.so: undefined reference to `XRenderSetPictureFilter'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libcairo.so: undefined reference to `XRenderCompositeTrapezoids'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libcairo.so: undefined reference to `XRenderCompositeText32'
/opt/blackdown-jdk-1.4.2.03/jre/lib/i386/libXrender.so.1: undefined reference to `XextFindDisplay'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libcairo.so: undefined reference to `XRenderCompositeText16'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libcairo.so: undefined reference to `XRenderCompositeText8'
/opt/blackdown-jdk-1.4.2.03/jre/lib/i386/libXrender.so.1: undefined reference to `XextAddDisplay'
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libcairo.so: undefined reference to `XRenderSetPictureTransform'
collect2: ld returned 1 exit status
configure:33566: $? = 1</pre>
<p>While installing cairo, I got these warnings:</p>
<pre>/sbin/ldconfig: /opt/blackdown-jdk-1.4.2.03/jre/lib/i386/libXxf86vm.so.1 is not a symbolic link
/sbin/ldconfig: /opt/blackdown-jdk-1.4.2.03/jre/lib/i386/libXxf86misc.so.1 is not a symbolic link
/sbin/ldconfig: /opt/blackdown-jdk-1.4.2.03/jre/lib/i386/libXxf86dga.so.1 is not a symbolic link
/sbin/ldconfig: /opt/blackdown-jdk-1.4.2.03/jre/lib/i386/libXv.so.1 is not a symbolic link
...</pre>
<p>I found this:</p>
<pre>grep -R VMHANDLE /etc/
/etc/csh.env:setenv VMHANDLE 'blackdown-jdk-1.4.2'
/etc/env.d/20java:VMHANDLE=blackdown-jdk-1.4.2
/etc/profile.env:export VMHANDLE='blackdown-jdk-1.4.2'
/etc/profile.csh:setenv VMHANDLE 'blackdown-jdk-1.4.2'</pre>
<p>Opened up /etc/env.d/20java and commented everything. Then I did:</p>
<pre>env-update
source /etc/profile</pre>
<p>And I did:</p>
<pre>emerge -av cairo gtk+</pre>
<p>Which resulted in GTK+ being correctly configured, compiled, linked and installed!</p>
 <img src="http://wp.freya.no/wp-content/plugins/feed-statistics.php?view=1&post_id=211" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://wp.freya.no/2008/12/cant-link-to-pango-pango-is-required-to-build/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
