From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-plasma/kwin/files/, kde-plasma/kwin/
Date: Sat, 10 Jun 2017 16:12:31 +0000 (UTC) [thread overview]
Message-ID: <1497111039.35c1419142a37a2be44c1a66d91f57b9b84382b8.asturm@gentoo> (raw)
commit: 35c1419142a37a2be44c1a66d91f57b9b84382b8
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 10 16:10:39 2017 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Jun 10 16:10:39 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35c14191
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.1.ebuild | 2 ++
kde-plasma/kwin/kwin-5.8.7.ebuild | 2 ++
kde-plasma/kwin/kwin-5.9.5.ebuild | 2 ++
4 files changed, 44 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 00000000000..61c07feaee3
--- /dev/null
+++ b/kde-plasma/kwin/files/kwin-5.8.7-glibc-sysmacros.patch
@@ -0,0 +1,38 @@
+commit 8efef12eeb377e9087551e333d65631968c80e5f
+Author: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
+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.1.ebuild b/kde-plasma/kwin/kwin-5.10.1.ebuild
index 3566ab51d84..30a4b71b6a2 100644
--- a/kde-plasma/kwin/kwin-5.10.1.ebuild
+++ b/kde-plasma/kwin/kwin-5.10.1.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.7.ebuild b/kde-plasma/kwin/kwin-5.8.7.ebuild
index bfbefa0351d..aba9f3344de 100644
--- a/kde-plasma/kwin/kwin-5.8.7.ebuild
+++ b/kde-plasma/kwin/kwin-5.8.7.ebuild
@@ -89,6 +89,8 @@ DEPEND="${COMMON_DEPEND}
RESTRICT+=" test"
+PATCHES=( "${FILESDIR}/${P}-glibc-sysmacros.patch" )
+
src_prepare() {
kde5_src_prepare
use multimedia || eapply "${FILESDIR}/${PN}-gstreamer-optional.patch"
diff --git a/kde-plasma/kwin/kwin-5.9.5.ebuild b/kde-plasma/kwin/kwin-5.9.5.ebuild
index 77c9c31ad8b..222df722d24 100644
--- a/kde-plasma/kwin/kwin-5.9.5.ebuild
+++ b/kde-plasma/kwin/kwin-5.9.5.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"
next reply other threads:[~2017-06-10 16:12 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-10 16:12 Andreas Sturmlechner [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-01-15 0:17 [gentoo-commits] repo/gentoo:master commit in: kde-plasma/kwin/files/, kde-plasma/kwin/ Andreas Sturmlechner
2018-11-13 11:32 Andreas Sturmlechner
2019-10-26 14:20 Andreas Sturmlechner
2020-05-16 22:38 Andreas Sturmlechner
2020-05-16 22:38 Andreas Sturmlechner
2020-10-04 16:07 Andreas Sturmlechner
2021-09-15 17:42 Andreas Sturmlechner
2021-11-23 14:59 Andreas Sturmlechner
2021-12-15 11:28 Andreas Sturmlechner
2022-02-06 21:17 Andreas Sturmlechner
2022-04-18 14:17 Andreas Sturmlechner
2022-05-17 19:02 Andreas Sturmlechner
2022-05-25 21:13 Andreas Sturmlechner
2022-10-28 16:07 Andreas Sturmlechner
2023-05-10 11:37 Andreas Sturmlechner
2023-06-27 11:25 Andreas Sturmlechner
2023-09-20 13:15 Andreas Sturmlechner
2023-11-11 8:37 Andreas Sturmlechner
2024-03-08 20:44 Andreas Sturmlechner
2024-08-11 6:54 Andreas Sturmlechner
2025-02-17 18:38 Sam James
2025-03-05 22:20 Andreas Sturmlechner
2025-03-09 22:16 Sam James
2025-04-15 0:05 Sam James
2025-04-21 20:48 Andreas Sturmlechner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1497111039.35c1419142a37a2be44c1a66d91f57b9b84382b8.asturm@gentoo \
--to=asturm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox