3

Xorg 正在被移除,这意味着什么?

 9 months ago
source link: https://www.techug.com/post/xorg-being-removed-what-does-this-mean/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Xorg 正在被移除,这意味着什么?

你可能已经看到了 Red Hat Enterprise Linux 10 计划移除 Xorg 的消息。但 Xwayland 还会继续存在,而且由于名字有部分很像,又共用一个 git 仓库,人们对什么是 Xorg 还有些困惑。下面是一张非常简单的 “图片”。这是 xserver 的 git 仓库:

$ tree -d -L 2 xserver
xserver
├── composite
├── config
├── damageext
├── dbe
├── dix
├── doc
│   └── dtrace
├── dri3
├── exa
├── fb
├── glamor
├── glx
├── hw
│   ├── kdrive
│   ├── vfb
│   ├── xfree86              <- this one is Xorg
│   ├── xnest
│   ├── xquartz
│   ├── xwayland
│   └── xwin
├── include
├── m4
├── man
├── mi
├── miext
│   ├── damage
│   ├── rootless
│   ├── shadow
│   └── sync
├── os
├── present
├── pseudoramiX
├── randr
├── record
├── render
├── test
│   ├── bigreq
│   ├── bugs
│   ├── damage
│   ├── scripts
│   ├── sync
│   ├── xi1
│   └── xi2
├── Xext
├── xfixes
├── Xi
└── xkb
$ tree -d -L 2 xserver
xserver
├── composite
├── config
├── damageext
├── dbe
├── dix
├── doc
│   └── dtrace
├── dri3
├── exa
├── fb
├── glamor
├── glx
├── hw
│   ├── kdrive
│   ├── vfb
│   ├── xfree86              <- this one is Xorg
│   ├── xnest
│   ├── xquartz
│   ├── xwayland
│   └── xwin
├── include
├── m4
├── man
├── mi
├── miext
│   ├── damage
│   ├── rootless
│   ├── shadow
│   └── sync
├── os
├── present
├── pseudoramiX
├── randr
├── record
├── render
├── test
│   ├── bigreq
│   ├── bugs
│   ├── damage
│   ├── scripts
│   ├── sync
│   ├── xi1
│   └── xi2
├── Xext
├── xfixes
├── Xi
└── xkb

git repo 提供了多款 X 服务器,其中包括专为裸机运行而设计的 Xorg:Xorg(由于历史原因被放在 hw/xfree86)。其他 hw 目录是包括 Xwayland 在内的其他 X 服务器。所有其他目录都是所有 X 服务器共享的 X 服务器核心功能[1]。从发行版中移除 Xorg 但保留 Xwayland 意味着在构建时使用 –disable-xfree86 -enable-xwayland [1]。就是这么简单(当然还有由此产生的发行版打包工作)。

移除 Xorg 意味着你需要其他能在裸机上运行的东西,那就是你最喜欢的 Wayland 合成器。然后,Xwayland 会与之对话,同时为现有的 X11 应用程序提供兼容 X11 的套接字。

当然,这意味着 X server repo 将继续收到补丁,其中许多补丁也会影响 Xorg。对于那些正在运行 git master 的用户来说。除了安全更新问题 [2],不要对更多的 Xorg 版本抱有希望。

另一方面,Xwayland 得到了积极的维护,并将继续发布新版本。但这些版本是一系列 [1] 的

$ git new-branch xwayland-23.x.y
$ git rm hw/{kdrive/vfb/xfree86/xnest,xquartz,xwin}
$ git tag xwayland-23.x.y

换句话说,Xwayland 发行版就是 xserver git 主分支,其中除 Xwayland 外的所有 X 服务器都被删除了。这就是为什么 Xwayland 可以看到新的更新和发布,而 Xorg 却看不到的原因(当然 git 主分支除外)。这就是为什么你安装的 Xwayland 有 2023 年的代码,而你安装的 Xorg 还停留在 2021 年之后创建的分支上,几乎没有更新。

当你看到 “Xorg 无人维护”、”X 服务器补丁修复”、”Xorg 已被废弃”、”Xwayland 新版本发布 “等标题时,你会感到信息混杂,我希望这对你的困惑有所帮助。

[1]不是 100% 准确,但足够接近
[2] 历史上,Xorg 发行版也包括所有其他 X 服务器(Xquartz、Xwin、Xvfb……),因此这也适用于这些服务器,除非它们采用 Xwayland 发行模式


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK