将 gnome 升级到了 3.14
主要是想体验一下传说中的可用的 wayland + gnome。
GENTOO Portage 中目前还没提供 gnome 3.14 ebuild。找了一下,thankjura fork 的半官方 gnome overlay 提供了 gnome 3.14 的大部分 ebuild,得到它们:
$ git clone https://github.com/thankjura/gentoo-gnome.git
然后修改一下 /etc/make.conf
,增加以下的类似内容:
PORTDIR_OVERLAY="/home/xxxx/portage/gentoo-gnome $PORTDIR_OVERLAY"
如果想体验 wayland 后端的 gnome 3.14,建议在 /etc/make.conf
文件中开启全局的 wayland
旗标。
再在个人的 USE 定制文件中增加:
media-libs/cogl gles2 kms
media-libs/mesa gles2
x11-libs/libxcb xkb
注意,thankjura 提供的 cogl ebuild 中是没有 kms 旗标的,但是再编译 mutter 时,mutter 依赖 clutter 的 kms 方面的函数,而 clutter 的 kms 函数只是对 cogl 的 kms 函数的封装,所以必须在 cogl 这个源头就得支持 kms。之所以会出现这个问题,可能是 mutter 包目前未提供可以关掉 kms 的功能。我没搞清楚为啥非要 kms……总之,我们要修改 thankjura 提供的 cogl ebuild,否则 mutter 编译不过去。下面给出我修改的部分:
IUSE="examples gles2 gstreamer +introspection +opengl +pango test wayland kms"
src_configure() {
# TODO: think about kms-egl, quartz, sdl, wayland
# Prefer gl over gles2 if both are selected
# Profiling needs uprof, which is not available in portage yet, bug #484750
# FIXME: Doesn't provide prebuilt docs, but they can neither be rebuilt, bug #483332
gnome2_src_configure \
--disable-examples-install \
--disable-maintainer-flags \
--enable-cairo \
--enable-deprecated \
--enable-gdk-pixbuf \
--enable-glib \
$(use_enable opengl glx) \
$(use_enable opengl gl) \
$(use_enable gles2) \
$(use_enable gles2 cogl-gles2) \
$(use_enable gles2 xlib-egl-platform) \
$(usex gles2 --with-default-driver=$(usex opengl gl gles2)) \
$(use_enable gstreamer cogl-gst) \
$(use_enable introspection) \
$(use_enable pango cogl-pango) \
$(use_enable test unit-tests) \
$(use_enable kms kms_egl_platform) \
$(use_enable wayland wayland-egl-platform) \
$(use_enable wayland wayland-egl-server) \
--disable-profile
# $(use_enable profile)
}
除了 cogl 需要改,clutter 也需要改。mutter 需要 clutter 支持 evdev input 什么的……这意味着需要安装一个 libinput 的包,但是 thankjura 没有提供 libinput 的 ebuild,可以在自己的 overlay/dev-libs 分类中增加目录 libinput,然后在该目录内增加 libinput-0.6.ebuild,内容为:
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
DESCRIPTION="Library to handle input devices in Wayland"
HOMEPAGE="http://www.freedesktop.org/wiki/Software/libinput/"
SRC_URI="http://www.freedesktop.org/software/${PN}/${P}.tar.xz"
LICENSE=""
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND="
dev-libs/libevdev"
RDEPEND="${DEPEND}"
再修改一下 thankjura 的 clutter ebuild,我修改的部分:
IUSE="debug doc gtk +introspection +egl test wayland +evdev" # evdev tslib
src_configure() {
# XXX: Conformance test suite (and clutter itself) does not work under Xvfb
# (GLX error blabla)
# XXX: Profiling, coverage disabled for now
# XXX: What about cex100/egl/osx/wayland/win32 backends?
# XXX: evdev/tslib input seem to be experimental?
gnome2_src_configure \
--enable-xinput \
--enable-x11-backend=yes \
--disable-profile \
--disable-maintainer-flags \
--disable-gcov \
--disable-cex100-backend \
--disable-quartz-backend \
--disable-win32-backend \
--disable-tslib-input \
$(use_enable evdev evdev-input) \
$(usex debug --enable-debug=yes --enable-debug=minimum) \
$(use_enable doc docs) \
$(use_enable gtk gdk-backend) \
$(use_enable introspection) \
$(use_enable test gdk-pixbuf) \
$(use_enable egl egl-backend) \
$(use_enable wayland wayland-backend) \
$(use_enable wayland wayland-compositor)
}
现在差不多可以省级系统了……不过,如果要体验 wayland,而你的显卡是 Nvidia,要记得把驱动换成 nouveau。貌似现在运行在 wayland 上面的 gnome 只是能看,不怎么好用。我用的 fcitx 版本还不支持 wayland,所以没法输入中文;其次就是鼠标对桌面的操控有些障碍,指针有时会乱跳,鼠标中键没法滚动屏幕……所以,我围观了一下传说中的 wayland,很快的又切换回了 X11。
2021年3月04日 00:53
I often take joy in finding a site that provides quality ideas because I like being familiar with interesting things. Very often when I have been to this website I have enjoyed the good article here. I'll be sure to watch out for your future write-up.. Thank you for the great posting I will revisit in the future. operator assisted conference calling
2021年3月24日 17:23
it's really nice and meanful. it's really cool blog. Linking is very useful thing.you have really helped lots of people who visit blog and provide them usefull information. 안전공원
2021年4月05日 05:07
In this article understand the most important thing, the item will give you a keyword rich link a great useful website page: Onewheel XR Accessories
2021年4月12日 03:06
Beaver says I also have such interest, you can read my profile here: Çankaya su tesisatçısı
2021年4月12日 03:11
These websites are really needed, you can learn a lot. Yenimahalle su tesisatçısı
2021年4月12日 03:16
I encourage you to read this text it is fun described ... hasta yatakları
2021年4月12日 03:19
In this article understand the most important thing, the item will give you a keyword rich link a great useful website page: açılış organizasyonu
2021年4月12日 03:23
Thanks for writing such a good article, I stumbled onto your blog and read a few post. I like your style of writing... lot hesaplama
2021年4月13日 02:48
Welcome to the party of my life here you will learn everything about me. สล็อตW88
2021年5月09日 01:43
You bear through a awesome vacancy. I sanity definitely quarry it moreover personally suggest to my buddys. I am self-possessed they determination be benefited from this scene. www.metrotimes.com
2021年6月07日 18:07
Cool you write, the information is very good and interesting, I'll give you a link to my site. натурални витамини
2021年6月26日 11:39
I should assert barely that its astounding! The blog is informational also always fabricate amazing entitys. iso credit card processor
2021年6月26日 11:44
I really appreciate this wonderful post that you have provided for us. I assure this would be beneficial for most of the people. selling merchant services
2021年6月28日 17:17
In this particular article, you will see a summary, satisfy browse this post. how to become a payment processor
2021年6月28日 17:25
Amazing, this is great as you want to learn more, I invite to This is my page. merchant services sales jobs
2021年7月02日 03:16
Thanks for writing such a good article, I stumbled onto your blog and read a few post. I like your style of writing... I want to start a credit card processing company
2021年8月05日 21:28
Listed here you'll learn it is important, them offers the link in an helpful webpage: keto diet
2021年8月14日 21:33
For true fans of this thread I will address is a free online! Chicago Wedding DJ
2021年8月21日 04:25
I use basically superior fabrics : you will discover these products by: Ufa365
2021年8月21日 15:44
Very good topic, similar texts are I do not know if they are as good as your work out. chicago makeup artist
2021年11月15日 20:37
All the basic information about every celebrity is available now on the largest database of celebrity networth where you can find all the information and net worth of a singer, actor, businessman...