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, 25 Aug 2020 15:55:02
Message-Id: 1598370890.cc09c03b3e14dfc3888d5344b6fc2c2216a854fc.mattst88@gentoo
1 commit: cc09c03b3e14dfc3888d5344b6fc2c2216a854fc
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 25 15:54:24 2020 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 25 15:54:50 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc09c03b
7
8 x11-base/xorg-server: Version bump to 1.20.9
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-1.20.9.ebuild | 238 +++++++++++++++++++++++++
14 2 files changed, 239 insertions(+)
15
16 diff --git a/x11-base/xorg-server/Manifest b/x11-base/xorg-server/Manifest
17 index 0b04317f8a0..54fca181b59 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.8.tar.bz2 6309640 BLAKE2B 0dadd3a7afdb768bcd79f99f3670f7efcb919c43ea88870c93df598b080fbbec48f88cfa996fb7bff2363cffe70d42d9b154855691a64ddb26156f1b378512a0 SHA512 ab0ec0fcbf490c61558b9297f61b58fd2dedb676c78bef6431dc9166054743b43a0091b88a8b3f4e81d1f539909440ee7e188a298cefabe13ea89159639cd805
22 +DIST xorg-server-1.20.9.tar.bz2 6302902 BLAKE2B b5d78f38dcf6a9af980a8d5caab751bd7b159a4af5503f176c5af87cce371ecc71572af67f99f08b5794410d2e9a32379ed0d70ceda9f9e2ed3eb6de3bb5fb72 SHA512 d9b5f93e1b9763a89187d8b272aa7d4ce9709641b8539f4536708af153310e5a4931bffd4229c51a3b0e3b12da7838750aa71b635751fb4c0bb27438cce4e5e6
23
24 diff --git a/x11-base/xorg-server/xorg-server-1.20.9.ebuild b/x11-base/xorg-server/xorg-server-1.20.9.ebuild
25 new file mode 100644
26 index 00000000000..a1d8168f6c1
27 --- /dev/null
28 +++ b/x11-base/xorg-server/xorg-server-1.20.9.ebuild
29 @@ -0,0 +1,238 @@
30 +# Copyright 1999-2020 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +XORG_DOC=doc
36 +inherit xorg-3 multilib flag-o-matic toolchain-funcs
37 +EGIT_REPO_URI="https://gitlab.freedesktop.org/xorg/xserver.git"
38 +
39 +DESCRIPTION="X.Org X servers"
40 +SLOT="0/${PV}"
41 +if [[ ${PV} != 9999* ]]; then
42 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
43 +fi
44 +
45 +IUSE_SERVERS="dmx kdrive wayland xephyr xnest xorg xvfb"
46 +IUSE="${IUSE_SERVERS} debug +elogind ipv6 libressl +libglvnd minimal selinux suid systemd +udev unwind xcsecurity"
47 +
48 +CDEPEND="libglvnd? (
49 + media-libs/libglvnd[X]
50 + !app-eselect/eselect-opengl
51 + !!x11-drivers/nvidia-drivers[-libglvnd(-)]
52 + )
53 + !libglvnd? ( >=app-eselect/eselect-opengl-1.3.0 )
54 + !libressl? ( dev-libs/openssl:0= )
55 + libressl? ( dev-libs/libressl:0= )
56 + >=x11-apps/iceauth-1.0.2
57 + >=x11-apps/rgb-1.0.3
58 + >=x11-apps/xauth-1.0.3
59 + x11-apps/xkbcomp
60 + >=x11-libs/libdrm-2.4.89
61 + >=x11-libs/libpciaccess-0.12.901
62 + >=x11-libs/libXau-1.0.4
63 + >=x11-libs/libXdmcp-1.0.2
64 + >=x11-libs/libXfont2-2.0.1
65 + >=x11-libs/libxkbfile-1.0.4
66 + >=x11-libs/libxshmfence-1.1
67 + >=x11-libs/pixman-0.27.2
68 + >=x11-libs/xtrans-1.3.5
69 + >=x11-misc/xbitmaps-1.0.1
70 + >=x11-misc/xkeyboard-config-2.4.1-r3
71 + dmx? (
72 + x11-libs/libXt
73 + >=x11-libs/libdmx-1.0.99.1
74 + >=x11-libs/libX11-1.1.5
75 + >=x11-libs/libXaw-1.0.4
76 + >=x11-libs/libXext-1.0.99.4
77 + >=x11-libs/libXfixes-5.0
78 + >=x11-libs/libXi-1.2.99.1
79 + >=x11-libs/libXmu-1.0.3
80 + x11-libs/libXrender
81 + >=x11-libs/libXres-1.0.3
82 + >=x11-libs/libXtst-1.0.99.2
83 + )
84 + kdrive? (
85 + >=x11-libs/libXext-1.0.5
86 + x11-libs/libXv
87 + )
88 + xephyr? (
89 + x11-libs/libxcb[xkb]
90 + x11-libs/xcb-util
91 + x11-libs/xcb-util-image
92 + x11-libs/xcb-util-keysyms
93 + x11-libs/xcb-util-renderutil
94 + x11-libs/xcb-util-wm
95 + )
96 + !minimal? (
97 + >=x11-libs/libX11-1.1.5
98 + >=x11-libs/libXext-1.0.5
99 + >=media-libs/mesa-18[X(+),egl,gbm]
100 + >=media-libs/libepoxy-1.5.4[X,egl(+)]
101 + )
102 + udev? ( virtual/libudev:= )
103 + unwind? ( sys-libs/libunwind )
104 + wayland? (
105 + >=dev-libs/wayland-1.3.0
106 + >=media-libs/libepoxy-1.5.4[egl(+)]
107 + >=dev-libs/wayland-protocols-1.18
108 + )
109 + >=x11-apps/xinit-1.3.3-r1
110 + systemd? (
111 + sys-apps/dbus
112 + sys-apps/systemd
113 + )
114 + elogind? (
115 + sys-apps/dbus
116 + sys-auth/elogind[pam]
117 + sys-auth/pambase[elogind]
118 + )
119 + "
120 +
121 +DEPEND="${CDEPEND}
122 + sys-devel/flex
123 + >=x11-base/xorg-proto-2018.4
124 + dmx? (
125 + doc? (
126 + || (
127 + www-client/links
128 + www-client/lynx
129 + www-client/w3m
130 + )
131 + )
132 + )"
133 +
134 +RDEPEND="${CDEPEND}
135 + selinux? ( sec-policy/selinux-xserver )
136 +"
137 +
138 +PDEPEND="
139 + xorg? ( >=x11-base/xorg-drivers-$(ver_cut 1-2) )"
140 +
141 +REQUIRED_USE="!minimal? (
142 + || ( ${IUSE_SERVERS} )
143 + )
144 + elogind? ( udev )
145 + ?? ( elogind systemd )
146 + minimal? ( !wayland )
147 + xephyr? ( kdrive )"
148 +
149 +UPSTREAMED_PATCHES=(
150 +)
151 +
152 +PATCHES=(
153 + "${UPSTREAMED_PATCHES[@]}"
154 + "${FILESDIR}"/${PN}-1.12-unloadsubmodule.patch
155 + # needed for new eselect-opengl, bug #541232
156 + "${FILESDIR}"/${PN}-1.18-support-multiple-Files-sections.patch
157 +)
158 +
159 +pkg_setup() {
160 + if use wayland && use minimal; then
161 + ewarn "glamor is necessary for acceleration under Xwayland."
162 + ewarn "Performance may be unacceptable without it."
163 + ewarn "Build with USE=-minimal to enable glamor."
164 + fi
165 +
166 + # localstatedir is used for the log location; we need to override the default
167 + # from ebuild.sh
168 + # sysconfdir is used for the xorg.conf location; same applies
169 + # NOTE: fop is used for doc generating; and I have no idea if Gentoo
170 + # package it somewhere
171 + XORG_CONFIGURE_OPTIONS=(
172 + $(use_enable ipv6)
173 + $(use_enable debug)
174 + $(use_enable dmx)
175 + $(use_enable kdrive)
176 + $(use_enable unwind libunwind)
177 + $(use_enable wayland xwayland)
178 + $(use_enable !minimal record)
179 + $(use_enable !minimal xfree86-utils)
180 + $(use_enable !minimal dri)
181 + $(use_enable !minimal dri2)
182 + $(use_enable !minimal dri3)
183 + $(use_enable !minimal glamor)
184 + $(use_enable !minimal glx)
185 + $(use_enable xcsecurity)
186 + $(use_enable xephyr)
187 + $(use_enable xnest)
188 + $(use_enable xorg)
189 + $(use_enable xvfb)
190 + $(use_enable udev config-udev)
191 + $(use_with doc doxygen)
192 + $(use_with doc xmlto)
193 + $(use_with systemd systemd-daemon)
194 + --enable-libdrm
195 + --sysconfdir="${EPREFIX}"/etc/X11
196 + --localstatedir="${EPREFIX}"/var
197 + --with-fontrootdir="${EPREFIX}"/usr/share/fonts
198 + --with-xkb-output="${EPREFIX}"/var/lib/xkb
199 + --disable-config-hal
200 + --disable-linux-acpi
201 + --without-dtrace
202 + --without-fop
203 + --with-os-vendor=Gentoo
204 + --with-sha1=libcrypto
205 + CPP="$(tc-getPROG CPP cpp)"
206 + )
207 +
208 + if use systemd || use elogind; then
209 + XORG_CONFIGURE_OPTIONS+=(
210 + "--enable-systemd-logind"
211 + "--disable-install-setuid"
212 + "$(use_enable suid suid-wrapper)"
213 + )
214 + else
215 + XORG_CONFIGURE_OPTIONS+=(
216 + "--disable-systemd-logind"
217 + "--disable-suid-wrapper"
218 + "$(use_enable suid install-setuid)"
219 + )
220 + fi
221 +}
222 +
223 +src_install() {
224 + xorg-3_src_install
225 +
226 + server_based_install
227 +
228 + if ! use minimal && use xorg; then
229 + # Install xorg.conf.example into docs
230 + dodoc "${S}"/hw/xfree86/xorg.conf.example
231 + fi
232 +
233 + newinitd "${FILESDIR}"/xdm-setup.initd-1 xdm-setup
234 + newinitd "${FILESDIR}"/xdm.initd-11 xdm
235 + newconfd "${FILESDIR}"/xdm.confd-4 xdm
236 +
237 + # install the @x11-module-rebuild set for Portage
238 + insinto /usr/share/portage/config/sets
239 + newins "${FILESDIR}"/xorg-sets.conf xorg.conf
240 +
241 + find "${ED}"/var -type d -empty -delete || die
242 +}
243 +
244 +pkg_postinst() {
245 + if ! use minimal; then
246 + # sets up libGL and DRI2 symlinks if needed (ie, on a fresh install)
247 + if ! use libglvnd; then
248 + eselect opengl set xorg-x11 --use-old
249 + fi
250 + fi
251 +}
252 +
253 +pkg_postrm() {
254 + # Get rid of module dir to ensure opengl-update works properly
255 + if [[ -z ${REPLACED_BY_VERSION} && -e ${EROOT}/usr/$(get_libdir)/xorg/modules ]]; then
256 + rm -rf "${EROOT}"/usr/$(get_libdir)/xorg/modules
257 + fi
258 +}
259 +
260 +server_based_install() {
261 + if ! use xorg; then
262 + rm "${ED}"/usr/share/man/man1/Xserver.1x \
263 + "${ED}"/usr/$(get_libdir)/xserver/SecurityPolicy \
264 + "${ED}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \
265 + "${ED}"/usr/share/man/man1/Xserver.1x
266 + fi
267 +}