wok-current view xorg-server/receipt @ rev 25701

Fix dep for libglamoregl.so (libepoxy), and miss file for amdgpu (thanks alanyih)
author Stanislas Leduc <shann@slitaz.org>
date Fri Apr 19 12:48:51 2024 +0000 (4 weeks ago)
parents db14014acdba
children
line source
1 # SliTaz package receipt.
3 PACKAGE="xorg-server"
4 VERSION="1.20.14"
5 CATEGORY="x-window"
6 SHORT_DESC="Xorg core server."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 SUGGESTED="xorg-xf86-input-evdev xorg-xf86-video-vesa"
10 TARBALL="$PACKAGE-$VERSION.tar.xz"
11 WEB_SITE="https://www.x.org/"
12 WGET_URL="http://xorg.freedesktop.org/releases/individual/xserver/$TARBALL"
14 # Mesa build dep make also Xorg depends on libdrm.
15 DEPENDS="xorg-xkeyboard-config xorg-libpciaccess xorg-libXxf86vm \
16 xorg-libXfont xorg-libXfont2 xorg-libXau xorg-base-fonts libgcrypt \
17 pixman udev libdrm libepoxy xorg-xf86-input-evdev"
18 BUILD_DEPENDS="xorg-libxkbfile-dev xorg-libpciaccess-dev xorg-libXxf86vm-dev \
19 xorg-libXfont-dev libgcrypt-dev pixman-dev udev-dev mesa-dev pkg-config perl \
20 flex xorg-xf86driproto xorg-xcmiscproto xorg-bigreqsproto xorg-randrproto \
21 xorg-presentproto xorg-dri2proto xorg-libXau-dev xorg-dev-proto libepoxy-dev \
22 xorg-xkbcomp-dev xorg-libXfont2-dev libdrm-dev xorg-glproto xorg-libXv-dev \
23 xcb-util-dev xcb-util-image-dev xcb-util-renderutil-dev \
24 xcb-util-keysyms-dev xcb-util-wm-dev"
26 current_version()
27 {
28 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
29 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
30 }
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 cd $src
37 # Patch to build with gcc > 5
38 patch -p1 < $stuff/xorg-gcc6.patch
40 # Patch to build xorg 1.20 with udev
41 # see https://gitlab.freedesktop.org/xorg/xserver/-/issues/879
42 patch -p1 < $stuff/xorg-udev.patch
44 # Patch xorg CVEs, thanks Slackware
45 # http://ftp.slackware.com/pub/slackware/slackware-15.0/patches/source/xorg-server/patch
47 patch -p1 < $stuff/0001-f1070c01d616c5f21f939d5ebc533738779451ac.patch
48 patch -p1 < $stuff/0002-dd8caf39e9e15d8f302e54045dd08d8ebf1025dc.patch
49 patch -p1 < $stuff/0003-6907b6ea2b4ce949cb07271f5b678d5966d9df42.patch
50 patch -p1 < $stuff/CVE-2022-3550.patch
51 patch -p1 < $stuff/CVE-2022-3551.patch
52 patch -p1 < $stuff/CVE-2022-3553.patch
53 patch -p1 < $stuff/CVE-2022-4283.patch
54 patch -p1 < $stuff/CVE-2022-46340.patch
55 patch -p1 < $stuff/CVE-2022-46341.patch
56 patch -p1 < $stuff/CVE-2022-46342.patch
57 patch -p1 < $stuff/CVE-2022-46343.patch
58 patch -p1 < $stuff/CVE-2022-46344.patch
59 patch -p1 < $stuff/CVE-2022-46340.correction.patch
60 patch -p1 < $stuff/CVE-2023-0494.patch
61 patch -p1 < $stuff/CVE-2023-1393.patch
62 patch -p1 < $stuff/CVE-2023-5367.patch
63 patch -p1 < $stuff/CVE-2023-5380.patch
64 patch -p1 < $stuff/CVE-2023-6377.patch
65 patch -p1 < $stuff/CVE-2023-6478.patch
67 # Patch xorg CVEs January 2024
68 # see https://lists.x.org/archives/xorg/2024-January/061525.html
69 patch -p1 < $stuff/CVE-2023-6816.patch
70 patch -p1 < $stuff/CVE-2024-0229-1.patch
71 patch -p1 < $stuff/CVE-2024-0229-2.patch
72 patch -p1 < $stuff/CVE-2024-0229-3.patch
73 patch -p1 < $stuff/CVE-2024-0408.patch
74 patch -p1 < $stuff/CVE-2024-0409.patch
75 patch -p1 < $stuff/CVE-2024-21885.patch
76 patch -p1 < $stuff/CVE-2024-21886-1.patch
77 patch -p1 < $stuff/CVE-2024-21886-2.patch
79 # Patch xorg CVEs April 2024
80 # see https://lists.x.org/archives/xorg-announce/2024-April/003497.html
81 patch -p1 < $stuff/CVE-2024-31080.patch
82 patch -p1 < $stuff/CVE-2024-31081.patch
83 patch -p1 < $stuff/CVE-2024-31082.patch
84 patch -p1 < $stuff/CVE-2024-31083.patch
86 # Xephyr make possible to use Xorg in a chroot.
87 ./configure \
88 --prefix=/usr \
89 --sysconfdir=/etc \
90 --mandir=/usr/share/man \
91 --localstatedir=/var \
92 --with-module-dir=/usr/lib/X11/modules \
93 --with-xkb-output=/var/lib/xkb \
94 --with-serverconfig-path=/etc/X11 \
95 --enable-install-setuid \
96 --enable-xorg \
97 --enable-kdrive \
98 --enable-kdrive-kbd \
99 --enable-kdrive-mouse \
100 --enable-kdrive-evdev \
101 --enable-xfbdev \
102 --enable-xephyr \
103 --enable-config-udev \
104 --disable-config-dbus \
105 --disable-docs \
106 --disable-devel-docs \
107 --with-fontrootdir=/usr/share/fonts/X11 \
108 --with-os-name="SliTaz GNU/Linux" \
109 --with-vendor-web="http://www.slitaz.org/" \
110 --with-builder-addr=$MAINTAINER \
111 $CONFIGURE_ARGS &&
112 make && make DESTDIR=$DESTDIR install
113 }
115 # Rules to gen a SliTaz package suitable for Tazpkg.
116 genpkg_rules()
117 {
118 mkdir -p $fs/usr/lib $fs/var $fs/etc/X11/xorg.conf.d
119 cp -a $install/usr/lib/X11 $fs/usr/lib
120 cp -a $install/usr/bin $fs/usr
121 cp -a $install/var/lib $fs/var
122 cp -a $install/etc $fs
123 # Remove static libs and split Xnest
124 rm $fs/usr/lib/X11/*/*.*a
125 rm $fs/usr/lib/X11/*/*/*.*a
126 rm $fs/usr/bin/Xnest
127 rm $fs/usr/bin/Xvfb
128 # Kdrive/tinyX --> xorg-server-Xephyr xorg-server-Xfbdev
129 rm $fs/usr/bin/Xephyr
130 #rm $fs/usr/bin/Xfbdev
131 }
133 # We need /var/tmp rw to let xkbcomp builr XKB definition.
134 post_install()
135 {
136 chmod 1777 "$1/var/tmp"
137 }