<?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>Linux~ized &#187; guide</title>
	<atom:link href="http://www.linuxized.com/tag/guide/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxized.com</link>
	<description>wired&#039;s /dev/urandom space</description>
	<lastBuildDate>Tue, 19 Apr 2011 18:56:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>how-to: keep your kde 3.5 after it&#8217;s removed from gentoo&#8217;s tree, using the kde-sunset overlay</title>
		<link>http://www.linuxized.com/2009/11/how-to-keep-your-kde-3-5-after-its-removed-gentoos-tree-using-the-kde-sunset-overlay/#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://www.linuxized.com/2009/11/how-to-keep-your-kde-3-5-after-its-removed-gentoos-tree-using-the-kde-sunset-overlay/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 23:31:51 +0000</pubDate>
		<dc:creator>wired</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[kde 3.5]]></category>
		<category><![CDATA[kde-sunset]]></category>
		<category><![CDATA[overlay]]></category>
		<category><![CDATA[unmask]]></category>

		<guid isPermaLink="false">http://www.linuxized.com/?p=343</guid>
		<description><![CDATA[As most of you know, KDE 3.5 is getting off the Gentoo train for various reasons mentioned elsewhere (in short: security, lack of upstream interest). Some people are still using it though and they have been asking how they can keep it on their system, without emerge screaming each time they try to update world. [...]]]></description>
			<content:encoded><![CDATA[<p>As most of you know, KDE 3.5 <em>is getting off the Gentoo train</em> for various reasons mentioned elsewhere (in short: security, lack of upstream interest).</p>
<p>Some people are still using it though and they have been asking how they can keep it on their system, without emerge screaming each time they try to update world.</p>
<p>I&#8217;m writing this post to guide those people (you? <img src='http://www.linuxized.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ) on how they can achieve that.</p>
<p><span style="text-decoration: underline;"><strong>1. Adding the kde-sunset overlay</strong></span><br />
Perhaps the most important thing you need to remember is that <strong>the ebuilds will be completely removed from the tree</strong>, so you need to add an overlay called <strong>kde-sunset</strong> to portage which contains a copy of most of them.</p>
<p>To add the overlay you need to have layman with <strong>git</strong> USE flag enabled:</p>
<blockquote><p><code>USE="git" emerge -av layman</code></p></blockquote>
<p>make sure you add the <strong>git</strong> USE flag in your <strong>package.use</strong> or <strong>make.conf</strong> <img src='http://www.linuxized.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>you can then use layman to install the overlay:</p>
<blockquote><p><code>layman -f<br />
layman -a kde-sunset</code></p></blockquote>
<p>if this is your first time using layman, you&#8217;ll have to add the following line @ the end of your <strong>make.conf</strong>:</p>
<blockquote><p><code>source /usr/local/portage/layman/make.conf</code></p></blockquote>
<p>you can keep the overlay updated by running:</p>
<blockquote><p><code>layman -s kde-sunset</code></p></blockquote>
<p><span style="text-decoration: underline;"><strong>2. KDE 3.5 is masked</strong> (this is necessary only while KDE 3.5 is still in tree)</span><br />
Now we have the overlay, but <strong>until KDE 3.5 is completely wiped off the tree, there&#8217;s a mask to warn users about it</strong>.<br />
Portage will scream about this mask each time you try to emerge so <strong>you need to unmask KDE 3.5 manually</strong>.</p>
<p>There are two (and a half) ways to do this:<br />
a1) if your package.unmask is a folder, symlink the unmask file from kde-sunset to /etc/portage/package.unmask/</p>
<blockquote><p><code>ln -s /usr/local/portage/layman/kde-sunset/Documentation/package.unmask/kde-3.5 /etc/portage/package.unmask/kde-3.5</code></p></blockquote>
<p>a2) if your package.unmask is not a folder you can append the file (but you&#8217;ll have to update it manually)</p>
<blockquote><p><code>cat /usr/local/portage/layman/kde-sunset/Documentation/package.unmask/kde-3.5 &gt;&gt; /etc/portage/package.unmask</code></p></blockquote>
<p>b) if you don&#8217;t like all that, you can emerge autounmask</p>
<blockquote><p><code>emerge -av autounmask</code></p></blockquote>
<p>and ask it to unmask stuff for you &#8211; note that autounmask doesn&#8217;t like :slot and will only work with -version</p>
<blockquote><p><code>autounmask kde-meta-3.5</code></p></blockquote>
<p><span style="text-decoration: underline;"><strong>3. I don&#8217;t want KDE 4 (yet)</strong></span><br />
So all is great now but portage wants to install KDE 4 when you emerge world.<br />
This is happening because KDE 4 went stable recently and portage thinks you want to upgrade (you should btw <img src='http://www.linuxized.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ).<br />
To fix this one we need to tell portage that we actually want the 3.5 version of KDE and we don&#8217;t care about 4.</p>
<p>we need to <strong>edit /var/lib/portage/world</strong> and <strong>add a version (or a slot) to every kde 3.5 app</strong> we have in there.</p>
<p>* be careful with this file *</p>
<p>for example, lets say that you installed kde 3.5 using the kde-meta ebuild.<br />
if you open <strong>/var/lib/portage/world</strong> you&#8217;ll find a line saying</p>
<blockquote><p>kde-base/kde-meta</p></blockquote>
<p>you need to add <strong>:3.5 </strong>which is the 3.5 slot, or <strong>-3.5.10</strong> which is the version (or both, version first) at the end. if you add the version, you&#8217;ll have to prepend a &#8220;=&#8221; as well.</p>
<p>the line should now read:</p>
<blockquote><p><code>kde-base/kde-meta:3.5</code></p></blockquote>
<p><strong>do this for each KDE 3.5 app you have in the world file.</strong> If you&#8217;re unsure of the slot/version, use <strong>eix packagename</strong> to find it out.</p>
<p><span style="text-decoration: underline;"><strong>4. All systems go</strong></span></p>
<blockquote><p><code>emerge -avDuN world</code></p></blockquote>
<p>^^ this should now be clean of any KDE 4 traces and mask warnings <img src='http://www.linuxized.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If you have any issues or are interested in maintaining kde-sunset, you may visit us over @ <strong>#gentoo-kde in freenode&#8217;s IRC network</strong> or drop us an email at <strong>kde _at_ gentoo _dot_ org</strong>. We&#8217;ll do our best to help you <img src='http://www.linuxized.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Maybe after reading this post your KDE 3 installation will last a bit longer <img src='http://www.linuxized.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </strong></p>
<p>Enjoy and see you w/ KDE 4 soon <img src='http://www.linuxized.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxized.com/2009/11/how-to-keep-your-kde-3-5-after-its-removed-gentoos-tree-using-the-kde-sunset-overlay/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
	</channel>
</rss>

