commit: c3e6e6bdcd1108209df98de131a49bf6cf86c86d Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Tue Jun 13 20:19:33 2017 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Tue Jun 13 20:22:44 2017 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=c3e6e6bd
kde-plasma/kwin: Fix build with future glibc Gentoo-bug: 603138 Package-Manager: Portage-2.3.5, Repoman-2.3.1 .../kwin/files/kwin-5.8.7-glibc-sysmacros.patch | 38 ++++++++++++++++++++++ kde-plasma/kwin/kwin-5.10.49.9999.ebuild | 2 ++ kde-plasma/kwin/kwin-5.8.49.9999.ebuild | 2 ++ 3 files changed, 42 insertions(+) diff --git a/kde-plasma/kwin/files/kwin-5.8.7-glibc-sysmacros.patch b/kde-plasma/kwin/files/kwin-5.8.7-glibc-sysmacros.patch new file mode 100644 index 0000000000..61c07feaee --- /dev/null +++ b/kde-plasma/kwin/files/kwin-5.8.7-glibc-sysmacros.patch @@ -0,0 +1,38 @@ +commit 8efef12eeb377e9087551e333d65631968c80e5f +Author: Andreas Sturmlechner <[email protected]> +Date: Sat Jun 10 17:00:25 2017 +0200 + + Fix build with future glibc (major/minor macros), BSD compatible + + Summary: + Also adding sys/types.h which is not implicitly included from all over. + + Thanks-to: [ade] in #kde-devel + + See also: + https://sourceware.org/ml/libc-alpha/2015-11/msg00452.html + https://git.reviewboard.kde.org/r/127662/ + + Reviewers: #plasma + + Subscribers: plasma-devel, kwin, #kwin, adridg + + Tags: #kwin + + Differential Revision: https://phabricator.kde.org/D6175 + +diff --git a/logind.cpp b/logind.cpp +index fee0f2ff4..bb84af4f9 100644 +--- a/logind.cpp ++++ b/logind.cpp +@@ -29,6 +29,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. + #include <QDBusMetaType> + + #include <sys/stat.h> ++#include <sys/types.h> ++#ifndef major ++#include <sys/sysmacros.h> ++#endif + #include <unistd.h> + #include "utils.h" + diff --git a/kde-plasma/kwin/kwin-5.10.49.9999.ebuild b/kde-plasma/kwin/kwin-5.10.49.9999.ebuild index 2c30350ef7..a66b73c17a 100644 --- a/kde-plasma/kwin/kwin-5.10.49.9999.ebuild +++ b/kde-plasma/kwin/kwin-5.10.49.9999.ebuild @@ -87,6 +87,8 @@ DEPEND="${COMMON_DEPEND} RESTRICT+=" test" +PATCHES=( "${FILESDIR}/${PN}-5.8.7-glibc-sysmacros.patch" ) + src_prepare() { kde5_src_prepare use multimedia || eapply "${FILESDIR}/${PN}-gstreamer-optional.patch" diff --git a/kde-plasma/kwin/kwin-5.8.49.9999.ebuild b/kde-plasma/kwin/kwin-5.8.49.9999.ebuild index b80a548d23..f02dc903ec 100644 --- a/kde-plasma/kwin/kwin-5.8.49.9999.ebuild +++ b/kde-plasma/kwin/kwin-5.8.49.9999.ebuild @@ -88,6 +88,8 @@ DEPEND="${COMMON_DEPEND} RESTRICT+=" test" +PATCHES=( "${FILESDIR}/${PN}-5.8.7-glibc-sysmacros.patch" ) + src_prepare() { kde5_src_prepare use multimedia || eapply "${FILESDIR}/${PN}-gstreamer-optional.patch"
