<?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>The Inferno &#187; Gentoo</title>
	<atom:link href="http://www.viren.ca/blog/category/gentoo/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.viren.ca/blog</link>
	<description>It is a fallacy to state that something exists just because it can&#039;t be proven that it doesn&#039;t</description>
	<lastBuildDate>Tue, 07 Feb 2012 06:09:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>The Monolith</title>
		<link>http://www.viren.ca/blog/the-monolith/</link>
		<comments>http://www.viren.ca/blog/the-monolith/#comments</comments>
		<pubDate>Thu, 14 May 2009 22:23:25 +0000</pubDate>
		<dc:creator>Viren</dc:creator>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[emerge]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[monolithic KDE]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.viren.ca/blog/?p=367</guid>
		<description><![CDATA[So it&#8217;s the end of the KDE monolith for me. I&#8217;ve come to like KDE and use it as my primary desktop over the years, but everything must come to an end. Never fear, I&#8217;m not switching to GNOME or Xfce (which kicks ass), but just going with the split ebuilds. So basically, if, like [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" src="http://www.viren.ca/images/snapshot1.png" alt="" width="717" height="573" /></p>
<p>So it&#8217;s the end of the KDE monolith for me. I&#8217;ve come to like KDE and use it as my primary desktop over the years, but everything must come to an end. Never fear, I&#8217;m not switching to GNOME or Xfce (which kicks ass), but just going with the split ebuilds.</p>
<p>So basically, if, like me, you installed the monolithic KDE in Gentoo, circa 2005 and are now looking to upgrade to KDE 4.2.x, here&#8217;s the easy way to do it. Be warned that all your KDE 3.5.x apps will disappear, but your data will remain. For example, the new Kmail 4.2.3 replaced Kmail 3.5.9 but left all my email intact.</p>
<p>A caveat, you might need to install KDE 3.5.10, which is the last KDE 3.x version out there, if you intend to run apps such as Kile or Krusader, which rely on KDE 3.5 libraries. Luckily, Gentoo works with slots, which allow you to have KDE 3.5.10 and 4.2.3 installed concurrently.</p>
<p>So, first unmerge that evil monolithic KDE (from a terminal, of course, not within KDE, I&#8217;m not responsible if you do so)</p>
<blockquote>
<pre>emerge -C kde</pre>
<pre>emerge --depclean -a</pre>
</blockquote>
<p>Clean out everything you don&#8217;t need, trim the list if you wish.</p>
<p>Now, check the availability of the KDE version  you require with eix:</p>
<blockquote>
<pre>eix -e kdebase-meta</pre>
</blockquote>
<p>You should see both 3.5.10 and 4.2.3, which is the latest one as of this writing. Now use <a href="http://gentoo-portage.com/app-portage/autounmask">autounmask</a> to unmask them both, at least on the x86 platform:</p>
<blockquote>
<pre>autounmask kde-base/kdebase-meta-4.2.3</pre>
</blockquote>
<p>Let this run for a while, it takes around 20 minutes. Then emerge it and you should have a working kde 4.2.3:</p>
<blockquote>
<pre>emerge --newuse =kdebase-meta-4.2.3</pre>
</blockquote>
<p>Once you&#8217;re in your new KDE, you&#8217;ll see that many apps that worked before no longer do so, such as Kmplayer and Kile. Just unmerge the previous monolithic KDE 3.5.9 versions and emerge the KDE 3.5.10 equivalents</p>
<blockquote>
<pre>emerge -aC kdegraphics</pre>
<pre>autounmask kde-base/kdegraphics-meta-3.5.10</pre>
<pre>emerge =kdegraphics-meta-3.5.10</pre>
</blockquote>
<p>And there you have it, a seamless upgrade from monolithic KDE 3.5.9 to a split ebuild KDE 4.2.3 on Gentoo. Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.viren.ca/blog/the-monolith/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gentoo glibc troubles</title>
		<link>http://www.viren.ca/blog/gentoo-glibc-troubles/</link>
		<comments>http://www.viren.ca/blog/gentoo-glibc-troubles/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 23:27:54 +0000</pubDate>
		<dc:creator>Viren</dc:creator>
				<category><![CDATA[Computer Woes]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[e2fsprogs]]></category>
		<category><![CDATA[emerge]]></category>
		<category><![CDATA[glibc]]></category>

		<guid isPermaLink="false">http://www.viren.ca/blog/?p=325</guid>
		<description><![CDATA[I ran into some troubles with Gentoo and glibc over the weekend. Here&#8217;s what fixed it, in case it helps anyone out in the future. Why it broke: Someone upgraded glibc from 2.6 to 2.9_p20081201. It&#8217;s masked, and what&#8217;s worse, installing it moves the old glibc libraries from /usr/lib to /usr/local/lib, which is a most [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into some troubles with Gentoo and glibc over the weekend. Here&#8217;s what fixed it, in case it helps anyone out in the future.</p>
<p>Why it broke:</p>
<p>Someone upgraded glibc from 2.6 to 2.9_p20081201. It&#8217;s masked, and what&#8217;s worse, installing it moves the old glibc libraries from /usr/lib to /usr/local/lib, which is a most un-Gentoo location.</p>
<p>Additionally, the famous e2fsprogs circular bug occurred, which can be fixed by following these steps:</p>
<blockquote>
<pre id="comment_text_115">quickpkg com_err ss e2fsprogs &amp;&amp;
emerge -uDNf world &amp;&amp;
emerge -C com_err ss e2fsprogs &amp;&amp;
emerge e2fsprogs &amp;&amp;
emerge -uDN world &amp;&amp;
revdep-rebuild #(if necessary)</pre>
</blockquote>
<p>However, having a new glibc breaks the e2fsprogs emerge with the following message:</p>
<blockquote>
<ol>
<li>/usr/<span class="kw3">local</span>/lib/libdl.so<span class="nu0">.2</span>: undefined reference to `_dl_tls_get_addr_soft@GLIBC_PRIVATE<span class="st0">&#8216;</span></li>
<li><span class="st0"> The ebuild environment file is located at &#8216;</span>/var/tmp/portage/sys-fs/e2fsprogs<span class="nu0">-1.41</span><span class="nu0">.3</span>/temp/environment<span class="st0">&#8216;.</span></li>
<li><span class="st0"> A complete build log is located at &#8216;</span>/var/tmp/portage/sys-fs/e2fsprogs<span class="nu0">-1.41</span><span class="nu0">.3</span>/temp/build.log<span class="st0">&#8216;.</span></li>
<li><span class="st0">collect2: ld returned 1 exit status</span></li>
<li><span class="st0">make[2]: *** [debugfs] Error 1</span></li>
<li><span class="st0">make[2]: Leaving directory `/var/tmp/portage/sys-fs/e2fsprogs-1.41.3/work/e2fsprogs-1.41.3/debugfs&#8217;</span></li>
<li><span class="kw2">make</span><span class="br0">[</span><span class="nu0">1</span><span class="br0">]</span>: *** <span class="br0">[</span>all-progs-recursive<span class="br0">]</span> Error <span class="nu0">1</span></li>
<li><span class="kw2">make</span><span class="br0">[</span><span class="nu0">1</span><span class="br0">]</span>: Leaving directory `/var/tmp/portage/sys-fs/e2fsprogs<span class="nu0">-1.41</span><span class="nu0">.3</span>/work/e2fsprogs<span class="nu0">-1.41</span><span class="nu0">.3</span><span class="st0">&#8216;</span></li>
<li><span class="st0">make: *** [all] Error 2</span></li>
<li><span class="st0"> </span></li>
<li><span class="st0"> ERROR: sys-fs/e2fsprogs-1.41.3 failed.</span></li>
<li><span class="st0"> Call stack:</span></li>
<li><span class="st0"> ebuild.sh, line   49:  Called src_compile</span></li>
<li><span class="st0"> environment, line 2449:  Called die</span></li>
<li><span class="st0"> The specific snippet of code:</span></li>
<li><span class="st0"> emake COMPILE_ET=compile_et MK_CMDS=mk_cmds || die;</span></li>
<li><span class="st0"> The die message:</span></li>
<li><span class="st0"> (no error message)</span></li>
<li><span class="st0"> </span></li>
<li><span class="st0"> If you need support, post the topmost build error, and the call stack if relevant.</span></li>
</ol>
</blockquote>
<p>So, I asked on #gentoo but got no answer. Not because they didn&#8217;t help, but because it stumped them as well. So here&#8217;s my fix.</p>
<p>Symbolically link /usr/local/lib/libdl.so.2 to /lib64/libdl.so.2. Then emerge e2fsprogs. This will fix the problem.</p>
<blockquote><p>ln -snf /lib64/libdl.so.2 /usr/local/lib/libdl.so.2</p>
<p>emerge e2fsprogs</p></blockquote>
<p>Note that, after this, /usr/local/lib/libdl.so.2 will point to /usr/local/lib/libdl.so as before. Portage fixes this every time it runs, so emerge everything except for e2fsprogs before this fix, then emerge e2fsprogs and you can boot again. So to summarize:</p>
<p>If you upgrade glibc and this breaks the e2fsprogs compilation, temporarily make libdl.so.2 point to the new libdl.so.2 and e2fsprogs will compile. This will restore the core utilites such as  fsck and mount, thereby letting you boot again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.viren.ca/blog/gentoo-glibc-troubles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving the Root Partition</title>
		<link>http://www.viren.ca/blog/moving-the-root-partition/</link>
		<comments>http://www.viren.ca/blog/moving-the-root-partition/#comments</comments>
		<pubDate>Sat, 17 May 2008 02:38:16 +0000</pubDate>
		<dc:creator>Viren</dc:creator>
				<category><![CDATA[Computer Woes]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[linux root partition]]></category>
		<category><![CDATA[move root partition]]></category>

		<guid isPermaLink="false">http://www.viren.ca/blog/?p=190</guid>
		<description><![CDATA[I&#8217;m a Gentoo user (but not a Gentoo ricer) and last week, I noticed all sorts of aberrations with the emerge command: Emerge stalling at a random point during &#8220;emerge -uD world&#8220;. Processor usage went down to 0% and disk I/O shot up to 1011 MB/sec. This would continue for a few minutes and the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a Gentoo user (but not a Gentoo ricer) and last week, I noticed all sorts of aberrations with the emerge command:</p>
<ol>
<li>Emerge stalling at a random point during &#8220;<code>emerge -uD world</code>&#8220;. Processor usage went down to 0% and disk I/O shot up to 1011 MB/sec. This would continue for a few minutes and the system would eventually become unresponsive and required a hard reset</li>
<li>Emerge stopping at a random point with the error that the root partition was mounted read-only and thus /var/tmp/portage was unwriteable to.</li>
</ol>
<p>So of course, I booted into a livecd and ran e2fsck on the root partition: / , <code>/dev/sda2</code> in this case. There were no errors with the filesystem. After some investigation and asking in #gentoo, I realized that my disk had developed some faults and these weren&#8217;t filesystem faults, but actual physical drive problems. This left me with no choice but to migrate the / partition to my 2nd drive. </p>
<p>I fired up qtparted and made a 50 GB ext3 partition on my second hard drive, <code>/dev/sdb6</code>. I mounted it at <code>/mnt/newroot</code> and at this point I was still running off <code>/dev/sda2</code> as root, but in a root shell I typed:<br />
<code>cp -ax / /mnt/newroot</code></p>
<p>This copied over all my files, with some errors about copying files from <code>/proc</code> and <code>/sys</code> which I ignored. This took around 30 minutes for the 12 GB on /.</p>
<p>Once this was done, I deleted the contents of <code>/proc</code> and <code>/sys</code> on the new root. Then I edited <code>/etc/fstab</code> to mount <code>/dev/sdb6</code> as the new root. One last change was in <code>/boot/grub/grub.conf</code>, which needed the root to be changed from <code>root=/dev/sda2/</code> to <code>root=/dev/sdb6/</code>.</p>
<p>With everything done, I rebooted into my new root and everything worked, right off the bat. However there was one slight bug, the /etc/fstab needed to be modified on the new root as well. You could modify <code>/etc/fstab</code> before copying it over to avoid this.</p>
<p>I realize that the best way to do this would have been to reboot into a livecd and then copy my / over, thereby avoiding the cp errors with the files in <code>/proc</code> and <code>/sys</code>, as well as having to delete them later. But this lazier approach saved me one reboot. I suppose you could have copied over all the folders explicitly and simply ignored <code>/proc</code> and <code>/sys</code> too.</p>
<p>One important caveat: my <code>/boot</code> partition is on a completely different partition, <code>/dev/sda4</code>. This helped me immensely, I&#8217;m not sure how this would affect bootability if my /boot folder actually contained my kernel. Maybe one would have to modify <code>initrd</code>? I&#8217;m not sure.</p>
<p>Anyway, it was painless and straightforward, hope it works out for you if you ever try it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.viren.ca/blog/moving-the-root-partition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.274 seconds -->

