Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-base/xorg-server/
Date: Tue, 30 Nov 2021 05:04:20
Message-Id: 1638248645.af7be0b9e51a6235d987e5d0a2c47739fb7e8d8b.mattst88@gentoo
1 commit: af7be0b9e51a6235d987e5d0a2c47739fb7e8d8b
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 30 02:50:03 2021 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 30 05:04:05 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af7be0b9
7
8 x11-base/xorg-server: Version bump to 21.1.1
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 x11-base/xorg-server/Manifest | 1 +
13 x11-base/xorg-server/xorg-server-21.1.1.ebuild | 175 +++++++++++++++++++++++++
14 2 files changed, 176 insertions(+)
15
16 diff --git a/x11-base/xorg-server/Manifest b/x11-base/xorg-server/Manifest
17 index de7291d1fbef..86960fe2445a 100644
18 --- a/x11-base/xorg-server/Manifest
19 +++ b/x11-base/xorg-server/Manifest
20 @@ -1 +1,2 @@
21 DIST xorg-server-1.20.13.tar.xz 5122260 BLAKE2B 4435d25d8b379142fcc4bf60d82e52417ac3ab22a77ededa1472785d67c23bfb95be8e10465fc4859645405b8e580d6dcb262caea39c408e724d0e5ea61b37af SHA512 4e0b7bd4e070dc52cb2c51c2056feb133de2c0487d359392ed63abba9702910cd2e2983e9415973d8d6e9672eac78be6f39202687fc56610877914ce722554b3
22 +DIST xorg-server-21.1.1.tar.xz 4958508 BLAKE2B fadac208773700b91003ef18d46e6f2c6b501e59b7491c943f406641e9ff3837a8126034c023e9b6d2d4131ee438c1ef94fa458af1828d4be325519b47069a79 SHA512 8608ed9c1537c95e8a3adea5e3e372a3c5eb841f8e27c84283093f22fb1909e16a800006510da684b13f8f237f33b8a4be3e2537f5f9ab9af4c5ad12770eef0d
23
24 diff --git a/x11-base/xorg-server/xorg-server-21.1.1.ebuild b/x11-base/xorg-server/xorg-server-21.1.1.ebuild
25 new file mode 100644
26 index 000000000000..35b9edee2fbf
27 --- /dev/null
28 +++ b/x11-base/xorg-server/xorg-server-21.1.1.ebuild
29 @@ -0,0 +1,175 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +XORG_DOC=doc
36 +XORG_TARBALL_SUFFIX="xz"
37 +XORG_EAUTORECONF="no"
38 +inherit xorg-3 meson
39 +EGIT_REPO_URI="https://gitlab.freedesktop.org/xorg/xserver.git"
40 +
41 +DESCRIPTION="X.Org X servers"
42 +SLOT="0/${PV}"
43 +if [[ ${PV} != 9999* ]]; then
44 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
45 +fi
46 +
47 +IUSE_SERVERS="xephyr xnest xorg xvfb"
48 +IUSE="${IUSE_SERVERS} debug +elogind minimal selinux suid systemd test +udev unwind xcsecurity"
49 +RESTRICT="!test? ( test )"
50 +
51 +CDEPEND="
52 + media-libs/libglvnd[X]
53 + dev-libs/openssl:0=
54 + >=x11-apps/iceauth-1.0.2
55 + >=x11-apps/rgb-1.0.3
56 + >=x11-apps/xauth-1.0.3
57 + x11-apps/xkbcomp
58 + >=x11-libs/libdrm-2.4.89
59 + >=x11-libs/libpciaccess-0.12.901
60 + >=x11-libs/libXau-1.0.4
61 + >=x11-libs/libXdmcp-1.0.2
62 + >=x11-libs/libXfont2-2.0.1
63 + >=x11-libs/libxcvt-0.1.0
64 + >=x11-libs/libxkbfile-1.0.4
65 + >=x11-libs/libxshmfence-1.1
66 + >=x11-libs/pixman-0.27.2
67 + >=x11-misc/xbitmaps-1.0.1
68 + >=x11-misc/xkeyboard-config-2.4.1-r3
69 + >=x11-libs/libXext-1.0.5
70 + x11-libs/libXv
71 + xephyr? (
72 + x11-libs/libxcb[xkb]
73 + x11-libs/xcb-util
74 + x11-libs/xcb-util-image
75 + x11-libs/xcb-util-keysyms
76 + x11-libs/xcb-util-renderutil
77 + x11-libs/xcb-util-wm
78 + )
79 + !minimal? (
80 + >=x11-libs/libX11-1.1.5
81 + >=x11-libs/libXext-1.0.5
82 + >=media-libs/mesa-18[X(+),egl(+),gbm(+)]
83 + >=media-libs/libepoxy-1.5.4[X,egl(+)]
84 + )
85 + udev? ( virtual/libudev:= )
86 + unwind? ( sys-libs/libunwind )
87 + >=x11-apps/xinit-1.3.3-r1
88 + systemd? (
89 + sys-apps/dbus
90 + sys-apps/systemd
91 + )
92 + elogind? (
93 + sys-apps/dbus
94 + sys-auth/elogind[pam]
95 + sys-auth/pambase[elogind]
96 + )
97 + !!x11-drivers/nvidia-drivers[-libglvnd(+)]
98 +"
99 +DEPEND="${CDEPEND}
100 + >=x11-base/xorg-proto-2021.4.99.2
101 + >=x11-libs/xtrans-1.3.5
102 +"
103 +RDEPEND="${CDEPEND}
104 + !systemd? ( gui-libs/display-manager-init )
105 + selinux? ( sec-policy/selinux-xserver )
106 +"
107 +BDEPEND="
108 + sys-devel/flex
109 +"
110 +PDEPEND="
111 + xorg? ( >=x11-base/xorg-drivers-$(ver_cut 1-2) )"
112 +
113 +REQUIRED_USE="!minimal? (
114 + || ( ${IUSE_SERVERS} )
115 + )
116 + elogind? ( udev )
117 + ?? ( elogind systemd )"
118 +
119 +UPSTREAMED_PATCHES=(
120 +)
121 +
122 +PATCHES=(
123 + "${UPSTREAMED_PATCHES[@]}"
124 + "${FILESDIR}"/${PN}-1.12-unloadsubmodule.patch
125 + # needed for new eselect-opengl, bug #541232
126 + "${FILESDIR}"/${PN}-1.18-support-multiple-Files-sections.patch
127 +)
128 +
129 +src_configure() {
130 + # localstatedir is used for the log location; we need to override the default
131 + # from ebuild.sh
132 + # sysconfdir is used for the xorg.conf location; same applies
133 + # NOTE: fop is used for doc generating; and I have no idea if Gentoo
134 + # package it somewhere
135 +
136 + local emesonargs=(
137 + --localstatedir "${EPREFIX}/var"
138 + --sysconfdir "${EPREFIX}/etc/X11"
139 + --buildtype $(usex debug debug plain)
140 + -Db_ndebug=$(usex debug false true)
141 + $(meson_use doc docs)
142 + $(meson_use !minimal dri1)
143 + $(meson_use !minimal dri2)
144 + $(meson_use !minimal dri3)
145 + $(meson_use !minimal glamor)
146 + $(meson_use !minimal glx)
147 + $(meson_use udev)
148 + $(meson_use udev udev_kms)
149 + $(meson_use unwind libunwind)
150 + $(meson_use xcsecurity)
151 + $(meson_use xephyr)
152 + $(meson_use xnest)
153 + $(meson_use xorg)
154 + $(meson_use xvfb)
155 + -Ddefault_font_path="${EPREFIX}"/usr/share/fonts
156 + -Ddrm=true
157 + -Ddtrace=false
158 + -Dipv6=true
159 + -Dhal=false
160 + -Dlinux_acpi=false
161 + -Dlinux_apm=false
162 + -Dsha1=libcrypto
163 + -Dxkb_output_dir="${EPREFIX}/var/lib/xkb"
164 + )
165 +
166 + if use systemd || use elogind; then
167 + emesonargs+=(
168 + -Dsystemd_logind=true
169 + $(meson_use suid suid_wrapper)
170 + )
171 + else
172 + emesonargs+=(
173 + -Dsystemd_logind=false
174 + $(meson_use suid suid_wrapper)
175 + )
176 + fi
177 +
178 + meson_src_configure
179 +}
180 +
181 +src_install() {
182 + meson_src_install
183 +
184 + #The new meson build system do not leave X symlink
185 + ln -s Xorg "${ED}"/usr/bin/X
186 +
187 + if ! use xorg; then
188 + rm -f "${ED}"/usr/share/man/man1/Xserver.1x \
189 + "${ED}"/usr/$(get_libdir)/xserver/SecurityPolicy \
190 + "${ED}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \
191 + "${ED}"/usr/share/man/man1/Xserver.1x || die
192 + fi
193 +
194 + # install the @x11-module-rebuild set for Portage
195 + insinto /usr/share/portage/config/sets
196 + newins "${FILESDIR}"/xorg-sets.conf xorg.conf
197 +}
198 +
199 +pkg_postrm() {
200 + # Get rid of module dir to ensure opengl-update works properly
201 + if [[ -z ${REPLACED_BY_VERSION} && -e ${EROOT}/usr/$(get_libdir)/xorg/modules ]]; then
202 + rm -rf "${EROOT}"/usr/$(get_libdir)/xorg/modules
203 + fi
204 +}