<?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>Plasma5 &#8211; richliu&#039;s blog</title>
	<atom:link href="https://blog.richliu.com/tag/plasma5/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.richliu.com</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Sun, 24 Apr 2016 18:53:15 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>[Gentoo] KDE 升級到 Plasma 5</title>
		<link>https://blog.richliu.com/2016/04/25/1949/gentoo-kde-%e5%8d%87%e7%b4%9a%e5%88%b0-plasma-5/</link>
					<comments>https://blog.richliu.com/2016/04/25/1949/gentoo-kde-%e5%8d%87%e7%b4%9a%e5%88%b0-plasma-5/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Sun, 24 Apr 2016 18:53:15 +0000</pubDate>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Plasma5]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[升級]]></category>
		<guid isPermaLink="false">https://blog.richliu.com/?p=1949</guid>

					<description><![CDATA[<p>其實大多數照 Plasma 5 這一份文件升級即可 https://wiki.gentoo.org/wiki/ [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2016/04/25/1949/gentoo-kde-%e5%8d%87%e7%b4%9a%e5%88%b0-plasma-5/">[Gentoo] KDE 升級到 Plasma 5</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>其實大多數照 Plasma 5 這一份文件升級即可<br />
https://wiki.gentoo.org/wiki/KDE/Plasma_5_upgrade</p>
<p>但是過程碰到很多問題, 這邊隨意記錄一下<br />
<span id="more-1949"></span></p>
<p>首先要照 Plasma 5 那份文件做</p>
<p>升級之後要跑一次 emerge &#8211;depclean 看有些那 KDE 的 package 沒有清乾淨, dependency 要去掉<br />
所以清掉舊的 KDE4 的 Library<br />
另外, 如果有 ruby 1.9, 記得也要升級成新版, 可能會造成 qtwebkit compile 錯誤</p>
<p>如果同時 gcc 是從 4.9 升級到 5.3 要跑一下這個指令<br />
$ revdep-rebuild &#8211;library &#8216;libstdc++.so.6&#8217; &#8212; &#8211;exclude gcc<br />
想必我每次 read news 根本沒有看到重點</p>
<p>執行這一行升級整個系統<br />
$ emerge &#8211;update &#8211;newuse &#8211;deep &#8211;with-bdeps=y @world<br />
執行完沒問題, 執行<br />
$ emerge &#8211;depclean<br />
執行完沒問題, 執行<br />
$ emerge @preserved-rebuild</p>
<p>本人以前的升級習慣真不好 :X</p>
<p>其他錯誤訊息的解決方法, 放在這邊看有沒有人能 Google 到</p>
<blockquote><p>
# emerge -a1v kde-plasma/kinfocenter kwin plasma</p>
<p>These are the packages that would be merged, in order:</p>
<p>Calculating dependencies&#8230; done!</p>
<p>emerge: there are no ebuilds built with USE flags to satisfy &#8220;&gt;=dev-qt/qtgui-5.5.1:5[gles2]&#8221;.<br />
!!! One of the following packages is required to complete your request:<br />
&#8211; dev-qt/qtgui-5.5.1-r1::gentoo (Change USE: +gles2, this change violates use flag constraints defined by dev-qt/qtgui-5.5.1-r1: &#8216;any-of ( eglfs xcb ) accessibility? ( dbus xcb ) eglfs? ( egl ) ibus? ( dbus ) libinput? ( udev ) xcb? ( gles2? ( egl ) )&#8217;)<br />
(dependency required by &#8220;kde-plasma/kinfocenter-5.6.3::gentoo[gles]&#8221; [ebuild])<br />
(dependency required by &#8220;kde-plasma/kinfocenter&#8221; [argument])</p></blockquote>
<p>這是因為我 USE flag 有 opengl 和 gels 這二個 flag, 事實上我是 intel 的顯示卡, 不必要去管這個, 所以移掉就好了</p>
<p>在 ~/.xinitrc 放 exec startkde 執行之後會有類似這樣的訊息</p>
<blockquote><p>startkde: Starting up&#8230;<br />
QStandardPaths: wrong ownership on runtime directory (null), -2 instead of 1000<br />
kdeinit5: Aborting. bind() failed: Permission denied </p></blockquote>
<p>建一個 /var/run/user 的目錄再給它 777 的權限, 改完之後就可以執行<br />
執行完一次之後再改回來也不會有問題 (這什麼怪問題)</p>
<p>升級到 5 沒有 KDM , 要改用 SDDM<br />
有碰到 sddm 沒法啟動 Plasma 暫時不想管<br />
沒想到重開機之後就 OK 了</p>
<p>ref. <a href="https://forums.gentoo.org/viewtopic-t-1039382.html" target="_blank" rel="noopener">[SOLVED] Emerging of dev-qt/qtwebkit-5.5.1-r1::gentoo fails</a><br />
<a href="https://forums.gentoo.org/viewtopic-t-1043412.html" target="_blank" rel="noopener">qtwebkit-5.5.1 [SOLVED]</a><br />
<a href="https://forum.kde.org/viewtopic.php?f=287&#038;t=121306" target="_blank" rel="noopener">wrong ownership on runtime directory /tmp, 0 instead of 1000</a></p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2016/04/25/1949/gentoo-kde-%e5%8d%87%e7%b4%9a%e5%88%b0-plasma-5/">[Gentoo] KDE 升級到 Plasma 5</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.richliu.com/2016/04/25/1949/gentoo-kde-%e5%8d%87%e7%b4%9a%e5%88%b0-plasma-5/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
