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