From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/kfilemetadata/, kde-frameworks/kfilemetadata/files/
Date: Sun, 14 Jan 2018 21:41:33 +0000 (UTC) [thread overview]
Message-ID: <1515966078.06be4ad32665a4bd1dbc8907ffd94f9ed3ba0d4b.asturm@gentoo> (raw)
commit: 06be4ad32665a4bd1dbc8907ffd94f9ed3ba0d4b
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 14 21:40:06 2018 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Jan 14 21:41:18 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06be4ad3
kde-frameworks/kfilemetadata: Fix build with >=sys-apps/attr-2.4.48
Thanks-to: Lars Wendler <polynomial-c <AT> gentoo.org>
Bug: https://bugs.gentoo.org/644594
Package-Manager: Portage-2.3.19, Repoman-2.3.6
| 46 ++++++++++++++++++++++
.../kfilemetadata/kfilemetadata-5.42.0.ebuild | 2 +
2 files changed, 48 insertions(+)
--git a/kde-frameworks/kfilemetadata/files/kfilemetadata-5.42.0-xattr-header.patch b/kde-frameworks/kfilemetadata/files/kfilemetadata-5.42.0-xattr-header.patch
new file mode 100644
index 00000000000..4d86297b19c
--- /dev/null
+++ b/kde-frameworks/kfilemetadata/files/kfilemetadata-5.42.0-xattr-header.patch
@@ -0,0 +1,46 @@
+From 6de64a4e3f2713c0096eb7ee1ba52e5fbbbc401f Mon Sep 17 00:00:00 2001
+From: Lars Wendler <polynomial-c@gentoo.org>
+Date: Sun, 14 Jan 2018 22:29:25 +0100
+Subject: [PATCH] Fix build with >=attr-2.4.48
+
+It was looking for long deprecated attr/xattr.h header.
+---
+ cmake/FindXattr.cmake | 2 +-
+ src/xattr_p.h | 4 +---
+ 2 files changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/cmake/FindXattr.cmake b/cmake/FindXattr.cmake
+index 3004061..a33f316 100644
+--- a/cmake/FindXattr.cmake
++++ b/cmake/FindXattr.cmake
+@@ -13,7 +13,7 @@ if (XATTR_INCLUDE_DIRS AND XATTR_LIBRARIES)
+ set(XATTR_FOUND TRUE)
+ else ()
+
+- find_path(XATTR_INCLUDE attr/xattr.h
++ find_path(XATTR_INCLUDE sys/xattr.h
+ /usr/include
+ /usr/local/include
+ ${CMAKE_INCLUDE_PATH}
+diff --git a/src/xattr_p.h b/src/xattr_p.h
+index 4663347..542c021 100644
+--- a/src/xattr_p.h
++++ b/src/xattr_p.h
+@@ -32,13 +32,11 @@
+ #include <sys/types.h>
+ #include <sys/xattr.h>
+
+-#if defined(Q_OS_ANDROID)
++#if defined(Q_OS_ANDROID) || defined(Q_OS_LINUX)
+ // attr/xattr.h is not available in the Android NDK so we are defining ENOATTR ourself
+ #ifndef ENOATTR
+ # define ENOATTR ENODATA /* No such attribute */
+ #endif
+-#else
+-#include <attr/xattr.h>
+ #endif
+
+ #include <errno.h>
+--
+2.15.1
+
diff --git a/kde-frameworks/kfilemetadata/kfilemetadata-5.42.0.ebuild b/kde-frameworks/kfilemetadata/kfilemetadata-5.42.0.ebuild
index 602d33e4a94..5b26202d02f 100644
--- a/kde-frameworks/kfilemetadata/kfilemetadata-5.42.0.ebuild
+++ b/kde-frameworks/kfilemetadata/kfilemetadata-5.42.0.ebuild
@@ -28,6 +28,8 @@ DEPEND="${RDEPEND}
test? ( ${PYTHON_DEPS} )
"
+PATCHES=( "${FILESDIR}/${P}-xattr-header.patch" )
+
pkg_setup() {
use test && python-any-r1_pkg_setup
kde5_pkg_setup
next reply other threads:[~2018-01-14 21:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-14 21:41 Andreas Sturmlechner [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-05-20 18:03 [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/kfilemetadata/, kde-frameworks/kfilemetadata/files/ 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=1515966078.06be4ad32665a4bd1dbc8907ffd94f9ed3ba0d4b.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