从 openrc 到 systemd

将 gnome 升级到了 3.14

rca posted @ 2014年10月13日 09:43 in Gentoo || FreeBSD with tags gentoo gnome , 6908 阅读

主要是想体验一下传说中的可用的 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。

 

Anonymous 说:
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

Anonymous 说:
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. 안전공원

Anonymous 说:
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

Anonymous 说:
2021年4月12日 03:06

Beaver says I also have such interest, you can read my profile here:  Çankaya su tesisatçısı

Anonymous 说:
2021年4月12日 03:11

These websites are really needed, you can learn a lot.  Yenimahalle su tesisatçısı

Anonymous 说:
2021年4月12日 03:16

I encourage you to read this text it is fun     described ... hasta yatakları

Anonymous 说:
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

Anonymous 说:
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

Anonymous 说:
2021年4月13日 02:48

Welcome to the party of my life      here you will learn everything about me. สล็อตW88

Anonymous 说:
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

Anonymous 说:
2021年6月07日 18:07

Cool you write, the information is very good and interesting, I'll give you a link to my site.  натурални витамини

Anonymous 说:
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

Anonymous 说:
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

Anonymous 说:
2021年6月28日 17:17

In this particular article, you will see a summary, satisfy browse this post. how to become a payment processor

Anonymous 说:
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

Anonymous 说:
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

Anonymous 说:
2021年8月05日 21:28

Listed here you'll learn it is important, them offers the link in an helpful webpage: keto diet

Anonymous 说:
2021年8月14日 21:33

For true fans of this thread I will address      is a free online! Chicago Wedding DJ

Anonymous 说:
2021年8月21日 04:25

I use basically superior fabrics : you will discover these products by: Ufa365

Anonymous 说:
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

celeb networth 说:
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...

Paisabazaar Cibil Sc 说:
2022年8月08日 01:08

Transunion CIBIL who provides the CIBIL score and the credit report to the customers also has their enterprise where they allow different third-party websites like PaisaBazar to show customers their CIBIL reports. PaisaBaza is a well-known financial decision information provider service that also provides users now with CIBIL score reports that we are going to discuss further in this article. Paisabazaar Cibil Score Follow the steps below to learn how to use of PaisaBazar’s official website to check your CIBIL score credit report.Many of you might hear that the CIBIL score credit report may sent to your email address timely, but that is for CIBIL paid membership. In case of free, the finest option is to use the PaisaBazar service to check your report. Subscribe to their service where they will send free CIBIL score report updates via WhatsApp directly.

UP High School New Q 说:
2022年8月18日 17:53

UP Board 10th Question Paper 2023 Download, Uttar Pradesh Madhyamik Shiksha Parishad UPMSP has been announced the New Question Paper and Model Question Paper for high school class 10th exams for 2023. UP High School New Question Paper 2023 PDF The examination will begin from March 16th and end on 01st April 2023. The exams are New Model Papered in two sessions first one from 2023 high school and intermediate UP Board examinations.

true caller en ligne 说:
2023年7月13日 23:07

Nous avons tous reçu un appel d’un numéro inconnu ou d’un appelant indésirable à un moment donné de notre vie. Et au fil du temps, le besoin de connaître l’identité de l’appelant se renforce. truecaller en ligne Le portail Truecaller fournit une recherche de numéro de téléphone en ligne sur sa plate-forme, et nous sommes là pour vous aider et c’est entièrement gratuit.

CG Board 6th Class 说:
2023年7月21日 13:10

CG Board Class Teachers need to have a Complete and Deeper Understanding about the Children they are Expected to Teach, This Page Available Links From Where you can Download the Chhattisgarh Class Syllabus 2024 of Maths and Environmental Studies in English and Hindi Medium in Pdf File Format Provided in the Table with the Article, These CG 6th Class Syllabus 2024 are useful to Understand the CG Board 6th Class Syllabus 2024 Concepts well and also to Clear any Doubts in These Subjects, Class Exam Date Sheet 2024 Available at Official Website, Every Year This High School Final Exam Conducted Month of April, so Students Download CG Board 6th class Syllabus 2024 Regular Reading and Fallow for Final Exam Better Performance


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter