(using 0001-Implement-_GTK_FRAME_EXTENTS.patch on gentoo, the patch is most likely outdated)
>>> Unpacking source...
>>> Unpacking kwin-5.17.1.tar.xz to /var/tmp/portage/kde-plasma/kwin-5.17.1/work
>>> Source unpacked in /var/tmp/portage/kde-plasma/kwin-5.17.1/work
>>> Preparing source in /var/tmp/portage/kde-plasma/kwin-5.17.1/work/kwin-5.17.1 ...
* Applying 0001-Implement-_GTK_FRAME_EXTENTS.patch ...
1 out of 6 hunks FAILED -- saving rejects to file client.h.rej
6 out of 13 hunks FAILED -- saving rejects to file placement.cpp.rej [ !! ]
* ERROR: kde-plasma/kwin-5.17.1::gentoo failed (prepare phase):
* patch -p1 failed with /etc/portage/patches/kde-plasma/kwin/0001-Implement-_GTK_FRAME_EXTENTS.patch
*
* Call stack:
* ebuild.sh, line 125: Called src_prepare
* environment, line 3899: Called kde5_src_prepare
* environment, line 3376: Called cmake-utils_src_prepare
* environment, line 2498: Called default_src_prepare
* phase-functions.sh, line 937: Called __eapi6_src_prepare
* environment, line 1620: Called eapply_user
* environment, line 2712: Called eapply '/etc/portage/patches/kde-plasma/kwin/0001-Implement-_GTK_FRAME_EXTENTS.patch'
* environment, line 2682: Called _eapply_patch '/etc/portage/patches/kde-plasma/kwin/0001-Implement-_GTK_FRAME_EXTENTS.patch'
* environment, line 2620: Called __helpers_die 'patch -p1 failed with /etc/portage/patches/kde-plasma/kwin/0001-Implement-_GTK_FRAME_EXTENTS.patch'
* isolated-functions.sh, line 112: Called die
* The specific snippet of code:
* die "$@"
*
* If you need support, post the output of `emerge --info '=kde-plasma/kwin-5.17.1::gentoo'`,
* the complete build log and the output of `emerge -pqv '=kde-plasma/kwin-5.17.1::gentoo'`.
* The complete build log is located at '/var/tmp/portage/kde-plasma/kwin-5.17.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/kde-plasma/kwin-5.17.1/temp/environment'.
* Working directory: '/var/tmp/portage/kde-plasma/kwin-5.17.1/work/kwin-5.17.1'
* S: '/var/tmp/portage/kde-plasma/kwin-5.17.1/work/kwin-5.17.1'
>>> Failed to emerge kde-plasma/kwin-5.17.1, Log file:
(using 0001-Implement-_GTK_FRAME_EXTENTS.patch on gentoo, the patch is most likely outdated)