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