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

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