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

d05f4b
%global commit 280aac5a0ee09c45b17ec4be0681397f7c34c12e
d05f4b
%global shortcommit %(c=%{commit}; echo ${c:0:7})
d05f4b
d05f4b
#global gitdate 20210201
d05f4b
%global pkgname %{?gitdate:xserver}%{!?gitdate:xwayland}
d05f4b
d05f4b
%global default_font_path "catalogue:/etc/X11/fontpath.d,built-ins"
d05f4b
d05f4b
Summary:   Xwayland
d05f4b
Name:      xorg-x11-server-Xwayland
2936a4
Version:   21.1.3
72411e
Release:   10%{?gitdate:.%{gitdate}git%{shortcommit}}%{?dist}
d05f4b
d05f4b
URL:       http://www.x.org
d05f4b
%if 0%{?gitdate}
d05f4b
Source0:   https://gitlab.freedesktop.org/xorg/%{pkgname}/-/archive/%{commit}/%{pkgname}-%{shortcommit}.tar.gz
d05f4b
%else
d05f4b
Source0:   https://www.x.org/pub/individual/xserver/%{pkgname}-%{version}.tar.xz
d05f4b
%endif
d05f4b
2936a4
Patch1: 0001-xwayland-eglstream-Demote-EGLstream-device-warning.patch
2936a4
Patch2: 0002-xwayland-glamor-Change-errors-to-verbose-messages.patch
2936a4
Patch3: 0003-xwayland-glamor-Log-backend-selected-for-debug.patch
2936a4
Patch4: 0004-xwayland-eglstream-Prefer-EGLstream-if-available.patch
2936a4
2936a4
# CVE-2021-4011
2936a4
Patch10001: 0001-record-Fix-out-of-bounds-access-in-SwapCreateRegiste.patch
2936a4
# CVE-2021-4009
2936a4
Patch10002: 0002-xfixes-Fix-out-of-bounds-access-in-ProcXFixesCreateP.patch
2936a4
# CVE-2021-4010
2936a4
Patch10003: 0003-Xext-Fix-out-of-bounds-access-in-SProcScreenSaverSus.patch
2936a4
# CVE-2021-4008
2936a4
Patch10004: 0004-render-Fix-out-of-bounds-access-in-SProcRenderCompos.patch
a04e0a
# CVE-2022-2319/ZDI-CAN-16062, CVE-2022-2320/ZDI-CAN-16070
a04e0a
Patch10005: 0001-xkb-switch-to-array-index-loops-to-moving-pointers.patch
a04e0a
Patch10006: 0002-xkb-swap-XkbSetDeviceInfo-and-XkbSetDeviceInfoCheck.patch
a04e0a
Patch10007: 0003-xkb-add-request-length-validation-for-XkbSetGeometry.patch
72411e
# CVE-2022-3550
72411e
Patch10008: 0001-xkb-proof-GetCountedString-against-request-length-at.patch
72411e
# CVE-2022-3551
72411e
Patch10009: 0001-xkb-fix-some-possible-memleaks-in-XkbGetKbdByName.patch
72411e
# CVE-2022-46340
72411e
Patch10018: 0001-Xtest-disallow-GenericEvents-in-XTestSwapFakeInput.patch
72411e
# related to CVE-2022-46344
72411e
Patch10019: 0002-Xi-return-an-error-from-XI-property-changes-if-verif.patch
72411e
# CVE-2022-46344
72411e
Patch10020: 0003-Xi-avoid-integer-truncation-in-length-check-of-ProcX.patch
72411e
# CVE-2022-46341
72411e
Patch10021: 0004-Xi-disallow-passive-grabs-with-a-detail-255.patch
72411e
# CVE-2022-46343
72411e
Patch10022: 0005-Xext-free-the-screen-saver-resource-when-replacing-i.patch
72411e
# CVE-2022-46342
72411e
Patch10023: 0006-Xext-free-the-XvRTVideoNotify-when-turning-off-from-.patch
72411e
# CVE-2022-4283
72411e
Patch10024: 0007-xkb-reset-the-radio_groups-pointer-to-NULL-after-fre.patch
72411e
# Follow-up to CVE-2022-46340
72411e
Patch10025: 0008-Xext-fix-invalid-event-type-mask-in-XTestSwapFakeInp.patch
72411e
# CVE-2023-0494
72411e
Patch10026: 0001-Xi-fix-potential-use-after-free-in-DeepCopyPointerCl.patch
d05f4b
d05f4b
License:   MIT
d05f4b
d05f4b
Requires: xorg-x11-server-common
d05f4b
Requires: libEGL
d05f4b
Requires: libepoxy >= 1.5.5
d05f4b
d05f4b
BuildRequires: gcc
d05f4b
BuildRequires: git-core
d05f4b
BuildRequires: meson
d05f4b
d05f4b
BuildRequires: wayland-devel
d05f4b
BuildRequires: pkgconfig(wayland-client) >= 1.3.0
d05f4b
BuildRequires: pkgconfig(wayland-protocols)
d05f4b
BuildRequires: pkgconfig(wayland-eglstream-protocols)
d05f4b
d05f4b
BuildRequires: pkgconfig(dmx)
d05f4b
BuildRequires: pkgconfig(epoxy) >= 1.5.5
d05f4b
BuildRequires: pkgconfig(fontenc)
d05f4b
BuildRequires: pkgconfig(libdrm) >= 2.4.0
d05f4b
BuildRequires: pkgconfig(libssl)
d05f4b
BuildRequires: pkgconfig(libtirpc)
d05f4b
BuildRequires: pkgconfig(pixman-1)
d05f4b
BuildRequires: pkgconfig(x11)
d05f4b
BuildRequires: pkgconfig(xau)
d05f4b
BuildRequires: pkgconfig(xdmcp)
d05f4b
BuildRequires: pkgconfig(xext)
d05f4b
BuildRequires: pkgconfig(xfixes)
d05f4b
BuildRequires: pkgconfig(xfont2)
d05f4b
BuildRequires: pkgconfig(xi)
d05f4b
BuildRequires: pkgconfig(xinerama)
d05f4b
BuildRequires: pkgconfig(xkbfile)
d05f4b
BuildRequires: pkgconfig(xmu)
d05f4b
BuildRequires: pkgconfig(xorg-macros) >= 1.17
d05f4b
BuildRequires: pkgconfig(xpm)
d05f4b
BuildRequires: pkgconfig(xrender)
d05f4b
BuildRequires: pkgconfig(xres)
d05f4b
BuildRequires: pkgconfig(xshmfence) >= 1.1
d05f4b
BuildRequires: pkgconfig(xtrans) >= 1.3.2
d05f4b
BuildRequires: pkgconfig(xtst)
d05f4b
BuildRequires: pkgconfig(xv)
d05f4b
BuildRequires: xorg-x11-proto-devel >= 7.7-10
d05f4b
d05f4b
BuildRequires: mesa-libGL-devel >= 9.2
d05f4b
BuildRequires: mesa-libEGL-devel
d05f4b
BuildRequires: mesa-libgbm-devel
d05f4b
d05f4b
BuildRequires: audit-libs-devel
d05f4b
BuildRequires: libselinux-devel >= 2.0.86-1
d05f4b
d05f4b
# libunwind is Exclusive for the following arches
d05f4b
%ifarch aarch64 %{arm} hppa ia64 mips ppc ppc64 %{ix86} x86_64
d05f4b
%if !0%{?rhel}
d05f4b
BuildRequires: libunwind-devel
d05f4b
%endif
d05f4b
%endif
d05f4b
d05f4b
BuildRequires: pkgconfig(xcb-aux)
d05f4b
BuildRequires: pkgconfig(xcb-image)
d05f4b
BuildRequires: pkgconfig(xcb-icccm)
d05f4b
BuildRequires: pkgconfig(xcb-keysyms)
d05f4b
BuildRequires: pkgconfig(xcb-renderutil)
d05f4b
d05f4b
%description
d05f4b
Xwayland is an X server for running X clients under Wayland.
d05f4b
d05f4b
%package devel
d05f4b
Summary: Development package
d05f4b
Requires: pkgconfig
d05f4b
d05f4b
%description devel
d05f4b
The development package provides the developmental files which are
d05f4b
necessary for developing Wayland compositors using Xwayland.
d05f4b
d05f4b
%prep
d05f4b
%autosetup -S git_am -n %{pkgname}-%{?gitdate:%{commit}}%{!?gitdate:%{version}}
d05f4b
d05f4b
%build
d05f4b
%meson \
d05f4b
        -Dxwayland_eglstream=true \
d05f4b
        -Ddefault_font_path=%{default_font_path} \
d05f4b
        -Dbuilder_string="Build ID: %{name} %{version}-%{release}" \
d05f4b
        -Dxkb_output_dir=%{_localstatedir}/lib/xkb \
d05f4b
        -Dxcsecurity=true \
d05f4b
        -Dglamor=true \
d05f4b
        -Ddri3=true
d05f4b
d05f4b
%meson_build
d05f4b
d05f4b
%install
d05f4b
%meson_install
d05f4b
d05f4b
# Remove unwanted files/dirs
d05f4b
rm $RPM_BUILD_ROOT%{_mandir}/man1/Xserver.1*
d05f4b
rm -Rf $RPM_BUILD_ROOT%{_libdir}/xorg
d05f4b
rm -Rf $RPM_BUILD_ROOT%{_includedir}/xorg
d05f4b
rm -Rf $RPM_BUILD_ROOT%{_datadir}/aclocal
d05f4b
rm -Rf $RPM_BUILD_ROOT%{_localstatedir}/lib/xkb
d05f4b
d05f4b
%files
d05f4b
%{_bindir}/Xwayland
d05f4b
%{_mandir}/man1/Xwayland.1*
d05f4b
d05f4b
%files devel
d05f4b
%{_libdir}/pkgconfig/xwayland.pc
d05f4b
d05f4b
%changelog
72411e
* Tue Feb  7 2023 Olivier Fourdan <ofourdan@redhat.com> - 21.1.3-10
72411e
- Fix CVE-2023-0494 (#2166972)
72411e
72411e
* Mon Dec 19 2022 Peter Hutterer <peter.hutterer@redhat.com> - 21.1.3-9
72411e
- Follow-up fix for CVE-2022-46340 (#2151777)
72411e
72411e
* Tue Dec 13 2022 Peter Hutterer <peter.hutterer@redhat.com> - 21.1.3-8
72411e
- CVE fix for: CVE-2022-4283 (#2151802), CVE-2022-46340 (#2151777),
72411e
  CVE-2022-46341 (#2151782), CVE-2022-46342 (#2151785),
72411e
  CVE-2022-46343 (#2151792), CVE-2022-46344 (#2151795)
72411e
72411e
* Mon Nov 14 2022 Olivier Fourdan <ofourdan@redhat.com> -  21.1.3-7
72411e
- Fix CVE-2022-3550, CVE-2022-3551
72411e
  Resolves: rhbz#2140767, rhbz#2140774
72411e
a04e0a
* Fri Jul 29 2022 Olivier Fourdan <ofourdan@redhat.com> - 21.1.3-6
a04e0a
- CVE fix for: CVE-2022-2319/ZDI-CAN-16062, CVE-2022-2320/ZDI-CAN-16070
a04e0a
  Resolves: rhbz#2110442, rhbz#2110437
a04e0a
a04e0a
* Thu Jun 09 2022 Ray Strode <rstrode@redhat.com> - 21.1.3-5
a04e0a
- Rebuild again for ipv6 xtrans fix
a04e0a
  Related: #2075132
a04e0a
a04e0a
* Tue May 24 2022 Ray Strode <rstrode@redhat.com> - 21.1.3-3
a04e0a
- Rebuild for ipv6 xtrans fix
a04e0a
  Related: #2075132
a04e0a
2936a4
* Fri Jan  7 2022 Olivier Fourdan <ofourdan@redhat.com> - 21.1.3-2
2936a4
- CVE fix for: CVE-2021-4008 (#2038066), CVE-2021-4009 (#2038068),
2936a4
  CVE-2021-4010 (#2038071), CVE-2021-4011 (#2038073)
2936a4
2936a4
* Thu Dec  2 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.1.3-1
2936a4
- Rebase to 21.1.3 (rhbz#2015842)
2936a4
- Prefer EGLstream if both EGLstream and GBM are usable
2936a4
d05f4b
* Mon Aug  9 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.1.1-6
d05f4b
- Backport the latest fixes from Xwayland for EGLstream (rhbz#1977741)
d05f4b
d05f4b
* Tue Jun 29 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.1.1-5
d05f4b
- Require libepoxy >= 1.5.5 (rhbz#1976132)
d05f4b
d05f4b
* Mon Jun 21 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.1.1-4
d05f4b
- Fix a use-after-free in the previous changes for GLX
d05f4b
d05f4b
* Mon Jun 14 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.1.1-3
d05f4b
- Backport fixes for GLX and EGLstream (#1961981)
d05f4b
d05f4b
* Thu Jun  03 2021 Tomas Pelka <tpelka@redhat.com> - 21.1.1-2
d05f4b
- bump release and rebuild to correctly trigger gating
d05f4b
d05f4b
* Wed Apr  14 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.1.1-1
d05f4b
- xwayland 21.1.1 (CVE-2021-3472 / ZDI-CAN-1259)
d05f4b
d05f4b
* Thu Mar  18 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.1.0-1
d05f4b
- xwayland 21.1.0
d05f4b
d05f4b
* Thu Mar  4 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.0.99.902-1
d05f4b
- xwayland 21.0.99.902
d05f4b
- Remove xdmcp, udev, udev_kms build options
d05f4b
- Stop overriding the vendor name, same as xorg-x11-server
d05f4b
d05f4b
* Thu Feb 18 2021 Olivier Fourdan <ofourdan@redhat.com> - 21.0.99.901-1
d05f4b
- xwayland 21.0.99.901
d05f4b
d05f4b
* Mon Feb  1 2021 Olivier Fourdan <ofourdan@redhat.com> - 1.20.99.1-0.1.20210201git5429791
d05f4b
- Initial import (#1912335).