summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYixun Lan <dlan@gentoo.org>2016-06-16 18:52:37 +0800
committerYixun Lan <dlan@gentoo.org>2016-06-16 18:55:25 +0800
commit3136c76f780e6102b2e55598d85861808cc4abb7 (patch)
tree433e55f3a751e5f87d4f503cbe07c33cbdfe27a6 /sys-cluster
parentx11-wm/stumpwm: Reset xdg environment (diff)
downloadgentoo-3136c76f780e6102b2e55598d85861808cc4abb7.tar.gz
gentoo-3136c76f780e6102b2e55598d85861808cc4abb7.tar.bz2
gentoo-3136c76f780e6102b2e55598d85861808cc4abb7.zip
sys-cluster/ceph: fix missing xfs header err when USE=xfs enabled
Gentoo-Bug: 585988 Package-Manager: portage-2.3.0_rc1
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/ceph/ceph-9.2.1-r1.ebuild1
-rw-r--r--sys-cluster/ceph/files/ceph-9.2.1-libxfs.patch28
2 files changed, 29 insertions, 0 deletions
diff --git a/sys-cluster/ceph/ceph-9.2.1-r1.ebuild b/sys-cluster/ceph/ceph-9.2.1-r1.ebuild
index 53f3e9c57019..494094e8e251 100644
--- a/sys-cluster/ceph/ceph-9.2.1-r1.ebuild
+++ b/sys-cluster/ceph/ceph-9.2.1-r1.ebuild
@@ -74,6 +74,7 @@ STRIP_MASK="/usr/lib*/rados-classes/*"
PATCHES=(
"${FILESDIR}"/${PN}-0.79-libzfs.patch
+ "${FILESDIR}"/${P}-libxfs.patch
)
check-reqs_export_vars() {
diff --git a/sys-cluster/ceph/files/ceph-9.2.1-libxfs.patch b/sys-cluster/ceph/files/ceph-9.2.1-libxfs.patch
new file mode 100644
index 000000000000..85515be36531
--- /dev/null
+++ b/sys-cluster/ceph/files/ceph-9.2.1-libxfs.patch
@@ -0,0 +1,28 @@
+From 602425abd5cef741fc1b5d4d1dd70c68e153fc8d Mon Sep 17 00:00:00 2001
+From: Ira Cooper <ira@redhat.com>
+Date: Thu, 31 Mar 2016 12:30:45 -0400
+Subject: [PATCH] configure: Add -D_LARGEFILE64_SOURCE to Linux build.
+
+Without -D_LARGEFILE64_SOURCE we can't build against libxfs,
+because off64_t must be defined.
+
+Signed-off-by: Ira Cooper <ira@redhat.com>
+---
+ configure.ac | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/configure.ac b/configure.ac
+index 48a7fc2..610c40b 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -63,6 +63,7 @@ darwin*)
+ ;;
+ linux*)
+ linux="yes"
++ CFLAGS="-D_LARGEFILE64_SOURCE ${CFLAGS}"
+ ;;
+ freebsd*)
+ freebsd="yes"
+--
+2.8.4
+