Blame SPECS/xorg-x11-server-Xwayland.spec

8fce16
%global commit 280aac5a0ee09c45b17ec4be0681397f7c34c12e
8fce16
%global shortcommit %(c=%{commit}; echo ${c:0:7})
8fce16
8fce16
#global gitdate 20210201
8fce16
%global pkgname %{?gitdate:xserver}%{!?gitdate:xwayland}
8fce16
8fce16
%global default_font_path "catalogue:/etc/X11/fontpath.d,built-ins"
8fce16
8fce16
Summary:   Xwayland
8fce16
Name:      xorg-x11-server-Xwayland
8fce16
Version:   21.1.3
002a41
Release:   7%{?gitdate:.%{gitdate}git%{shortcommit}}%{?dist}
8fce16
8fce16
URL:       http://www.x.org
8fce16
%if 0%{?gitdate}
8fce16
Source0:   https://gitlab.freedesktop.org/xorg/%{pkgname}/-/archive/%{commit}/%{pkgname}-%{shortcommit}.tar.gz
8fce16
%else
8fce16
Source0:   https://www.x.org/pub/individual/xserver/%{pkgname}-%{version}.tar.xz
8fce16
%endif
8fce16
8fce16
Patch1: 0001-xwayland-eglstream-Demote-EGLstream-device-warning.patch
8fce16
Patch2: 0002-xwayland-glamor-Change-errors-to-verbose-messages.patch
8fce16
Patch3: 0003-xwayland-glamor-Log-backend-selected-for-debug.patch
8fce16
Patch4: 0004-xwayland-eglstream-Prefer-EGLstream-if-available.patch
8fce16
8fce16
# CVE-2021-4011
8fce16
Patch10001: 0001-record-Fix-out-of-bounds-access-in-SwapCreateRegiste.patch
8fce16
# CVE-2021-4009
8fce16
Patch10002: 0002-xfixes-Fix-out-of-bounds-access-in-ProcXFixesCreateP.patch
8fce16
# CVE-2021-4010
8fce16
Patch10003: 0003-Xext-Fix-out-of-bounds-access-in-SProcScreenSaverSus.patch
8fce16
# CVE-2021-4008
8fce16
Patch10004: 0004-render-Fix-out-of-bounds-access-in-SProcRenderCompos.patch
b1c97a
# CVE-2022-2319/ZDI-CAN-16062, CVE-2022-2320/ZDI-CAN-16070
b1c97a
Patch10005: 0001-xkb-switch-to-array-index-loops-to-moving-pointers.patch
b1c97a
Patch10006: 0002-xkb-swap-XkbSetDeviceInfo-and-XkbSetDeviceInfoCheck.patch
b1c97a
Patch10007: 0003-xkb-add-request-length-validation-for-XkbSetGeometry.patch
002a41
# CVE-2022-3550
002a41
Patch10008: 0001-xkb-proof-GetCountedString-against-request-length-at.patch
002a41
# CVE-2022-3551
002a41
Patch10009: 0001-xkb-fix-some-possible-memleaks-in-XkbGetKbdByName.patch
002a41
# CVE-2022-46340
002a41
Patch10010: 0001-Xtest-disallow-GenericEvents-in-XTestSwapFakeInput.patch
002a41
# related to CVE-2022-46344
002a41
Patch10011: 0002-Xi-return-an-error-from-XI-property-changes-if-verif.patch
002a41
# CVE-2022-46344
002a41
Patch10012: 0003-Xi-avoid-integer-truncation-in-length-check-of-ProcX.patch
002a41
# CVE-2022-46341
002a41
Patch10013: 0004-Xi-disallow-passive-grabs-with-a-detail-255.patch
002a41
# CVE-2022-46343
002a41
Patch10014: 0005-Xext-free-the-screen-saver-resource-when-replacing-i.patch
002a41
# CVE-2022-46342
002a41
Patch10015: 0006-Xext-free-the-XvRTVideoNotify-when-turning-off-from-.patch
002a41
# CVE-2022-46283
002a41
Patch10016: 0007-xkb-reset-the-radio_groups-pointer-to-NULL-after-fre.patch
002a41
# Follow-up to CVE-2022-46340
002a41
Patch10017: 0008-Xext-fix-invalid-event-type-mask-in-XTestSwapFakeInp.patch
002a41
# CVE-2023-0494
002a41
Patch10018: 0001-Xi-fix-potential-use-after-free-in-DeepCopyPointerCl.patch
8fce16
8fce16
License:   MIT
8fce16
8fce16
Requires: xorg-x11-server-common
8fce16
Requires: libEGL
8fce16
8fce16
BuildRequires: gcc
8fce16
BuildRequires: git-core
8fce16
BuildRequires: meson
8fce16
8fce16
BuildRequires: wayland-devel
8fce16
BuildRequires: pkgconfig(wayland-client) >= 1.3.0
8fce16
BuildRequires: pkgconfig(wayland-protocols)
8fce16
BuildRequires: pkgconfig(wayland-eglstream-protocols)
8fce16
8fce16
BuildRequires: pkgconfig(dmx)
8fce16
BuildRequires: pkgconfig(epoxy)
8fce16
BuildRequires: pkgconfig(fontenc)
8fce16
BuildRequires: pkgconfig(libdrm) >= 2.4.0
8fce16
BuildRequires: pkgconfig(libssl)
8fce16
BuildRequires: pkgconfig(libtirpc)
8fce16
BuildRequires: pkgconfig(pixman-1)
8fce16
BuildRequires: pkgconfig(x11)
8fce16
BuildRequires: pkgconfig(xau)
8fce16
BuildRequires: pkgconfig(xdmcp)
8fce16
BuildRequires: pkgconfig(xext)
8fce16
BuildRequires: pkgconfig(xfixes)
8fce16
BuildRequires: pkgconfig(xfont2)
8fce16
BuildRequires: pkgconfig(xi)
8fce16
BuildRequires: pkgconfig(xinerama)
8fce16
BuildRequires: pkgconfig(xkbfile)
8fce16
BuildRequires: pkgconfig(xmu)
8fce16
BuildRequires: pkgconfig(xorg-macros) >= 1.17
8fce16
BuildRequires: pkgconfig(xpm)
8fce16
BuildRequires: pkgconfig(xrender)
8fce16
BuildRequires: pkgconfig(xres)
8fce16
BuildRequires: pkgconfig(xshmfence) >= 1.1
8fce16
BuildRequires: pkgconfig(xtrans) >= 1.3.2
8fce16
BuildRequires: pkgconfig(xtst)
8fce16
BuildRequires: pkgconfig(xv)
8fce16
BuildRequires: xorg-x11-proto-devel >= 7.7-10
8fce16
8fce16
BuildRequires: mesa-libGL-devel >= 9.2
8fce16
BuildRequires: mesa-libEGL-devel
8fce16
BuildRequires: mesa-libgbm-devel
8fce16
8fce16
BuildRequires: audit-libs-devel
8fce16
BuildRequires: libselinux-devel >= 2.0.86-1
8fce16
8fce16
# libunwind is Exclusive for the following arches
8fce16
%ifarch aarch64 %{arm} hppa ia64 mips ppc ppc64 %{ix86} x86_64
8fce16
%if !0%{?rhel}
8fce16
BuildRequires: libunwind-devel
8fce16
%endif
8fce16
%endif
8fce16
8fce16
BuildRequires: pkgconfig(xcb-aux)
8fce16
BuildRequires: pkgconfig(xcb-image)
8fce16
BuildRequires: pkgconfig(xcb-icccm)
8fce16
BuildRequires: pkgconfig(xcb-keysyms)
8fce16
BuildRequires: pkgconfig(xcb-renderutil)
8fce16
8fce16
%description
8fce16
Xwayland is an X server for running X clients under Wayland.
8fce16
8fce16
%package devel
8fce16
Summary: Development package
8fce16
Requires: pkgconfig
8fce16
8fce16
%description devel
8fce16
The development package provides the developmental files which are
8fce16
necessary for developing Wayland compositors using Xwayland.
8fce16
8fce16
%prep
8fce16
%autosetup -S git_am -n %{pkgname}-%{?gitdate:%{commit}}%{!?gitdate:%{version}}
8fce16
8fce16
%build
8fce16
%meson \
8fce16
        -Dxwayland_eglstream=true \
8fce16
        -Ddefault_font_path=%{default_font_path} \
8fce16
        -Dbuilder_string="Build ID: %{name} %{version}-%{release}" \
8fce16
        -Dxkb_output_dir=%{_localstatedir}/lib/xkb \
8fce16
        -Dxcsecurity=true \
8fce16
        -Dglamor=true \
8fce16
        -Ddri3=true
8fce16
8fce16
%meson_build
8fce16
8fce16
%install
8fce16
%meson_install
8fce16
8fce16
# Remove unwanted files/dirs
8fce16
rm $RPM_BUILD_ROOT%{_mandir}/man1/Xserver.1*
8fce16
rm -Rf $RPM_BUILD_ROOT%{_libdir}/xorg
8fce16
rm -Rf $RPM_BUILD_ROOT%{_includedir}/xorg
8fce16
rm -Rf $RPM_BUILD_ROOT%{_datadir}/aclocal
8fce16
rm -Rf $RPM_BUILD_ROOT%{_localstatedir}/lib/xkb
8fce16
8fce16
%files
8fce16
%{_bindir}/Xwayland
8fce16
%{_mandir}/man1/Xwayland.1*
8fce16
8fce16
%files devel
8fce16
%{_libdir}/pkgconfig/xwayland.pc
8fce16
8fce16
%changelog
002a41
* Tue Feb  7 2023 Olivier Fourdan <ofourdan@redhat.com> - 21.1.3-7
002a41
- Fix CVE-2023-0494 (#2166974)
002a41
002a41
* Mon Dec 19 2022 Peter Hutterer <peter.hutterer@redhat.com> - 21.1.3-6
002a41
- Follow-up fix for CVE-2022-46340 (#2151778)
002a41
002a41
* Wed Dec 14 2022 Peter Hutterer <peter.hutterer@redhat.com> - 21.1.3-5
002a41
- CVE fix for: CVE-2022-4283 (#2151803), CVE-2022-46340 (#2151778),
002a41
  CVE-2022-46341 (#2151783), CVE-2022-46342 (#2151786),
002a41
  CVE-2022-46343 (#2151793), CVE-2022-46344 (#2151796)
002a41
002a41
* Mon Nov 14 2022 Olivier Fourdan <ofourdan@redhat.com> -  21.1.3-4
002a41
- Fix CVE-2022-3550, CVE-2022-3551
002a41
  Resolves: rhbz#2140769, rhbz#2140771
002a41
b1c97a
* Fri Jul 29 2022 Olivier Fourdan <ofourdan@redhat.com> - 21.1.3-3
b1c97a
- CVE fix for: CVE-2022-2319/ZDI-CAN-16062, CVE-2022-2320/ZDI-CAN-16070
b1c97a
  Resolves: rhbz#2110440, rhbz#2110433
b1c97a
8fce16
* Fri Jan  7 2022 Olivier Fourdan <ofourdan@redhat.com> - 21.1.3-2
8fce16
- CVE fix for: CVE-2021-4008 (#2038067), CVE-2021-4009 (#2038070),
8fce16
  CVE-2021-4010 (#2038072), CVE-2021-4011 (#2038074)
8fce16
8fce16
* Thu Dec  2 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.1.3-1
8fce16
- Rebase to 21.1.3 (rhbz#2015839)
8fce16
- Prefer EGLstream if both EGLstream and GBM are usable
8fce16
8fce16
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 21.1.1-6
8fce16
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
8fce16
  Related: rhbz#1991688
8fce16
8fce16
* Mon Aug  9 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.1.1-5
8fce16
- Backport the latest fixes from Xwayland for EGLstream (rhbz#1977742)
8fce16
8fce16
* Tue Jun 22 2021 Mohan Boddu <mboddu@redhat.com> - 21.1.1-4
8fce16
- Rebuilt for RHEL 9 BETA for openssl 3.0
8fce16
  Related: rhbz#1971065
8fce16
8fce16
* Mon Jun 21 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.1.1-3
8fce16
- Fix a use-after-free in the previous changes for GLX
8fce16
8fce16
* Thu Jun 17 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.1.1-2
8fce16
- Backport fixes for GLX and EGLstream (#1969486)
8fce16
8fce16
* Thu Jun 17 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.1.1-1
8fce16
- xwayland 21.1.1 (#1952897)
8fce16
8fce16
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 21.1.0-2
8fce16
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
8fce16
8fce16
* Thu Mar  18 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.1.0-1
8fce16
- xwayland 21.1.0
8fce16
8fce16
* Thu Mar  4 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.0.99.902-1
8fce16
- xwayland 21.0.99.902
8fce16
- Remove xdmcp, udev, udev_kms build options
8fce16
- Stop overriding the vendor name, same as xorg-x11-server
8fce16
8fce16
* Thu Feb 18 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.0.99.901-1
8fce16
- xwayland 21.0.99.901
8fce16
8fce16
* Mon Feb  1 2021 Olivier Fourdan <ofourdan@redhat.com> - 1.20.99.1-0.1.20210201git5429791
8fce16
- Initial import (#1912335).