mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-09 14:28:23 +02:00
community/ceph: upgrade to 14.2.8
**Changes:** * Bump the version from 14.2.7 -> 14.2.8 * Add patch to fix build on musl * Set MAKEFLAGS to keep build from using all the memory... thanks C++ * Re-enable the build
This commit is contained in:
parent
3df0109a08
commit
7cd37d4488
@ -1,7 +1,7 @@
|
||||
# Contributor: John Coyle <dx9err@gmail.com>
|
||||
# Maintainer: Iggy Jackson <iggy@kws1.com>
|
||||
pkgname=ceph
|
||||
pkgver=14.2.7
|
||||
pkgver=14.2.8
|
||||
pkgrel=0
|
||||
pkgdesc="Ceph is a distributed object store and file system"
|
||||
pkgusers="ceph"
|
||||
@ -86,6 +86,7 @@ makedepends="
|
||||
source="https://download.ceph.com/tarballs/ceph_$pkgver.orig.tar.gz
|
||||
allperms.patch
|
||||
musl-fixes.patch
|
||||
fix-seek-data-hole.patch
|
||||
"
|
||||
subpackages="
|
||||
$pkgname-doc
|
||||
@ -141,6 +142,8 @@ _py2_sitelib() {
|
||||
|
||||
build() {
|
||||
export CEPH_BUILD_VIRTUALENV="$builddir"
|
||||
# builders keep failing when -jN == nproc
|
||||
export MAKEFLAGS="$MAKEFLAGS -j16"
|
||||
|
||||
mkdir -p "$builddir"/build
|
||||
cd "$builddir"/build
|
||||
@ -453,6 +456,9 @@ _pkg() {
|
||||
done
|
||||
}
|
||||
|
||||
sha512sums="59f475e56053ba5e7e3a482a3a91b4d44272e6ec8051b92783de76c09c0d967a7ef76676db998968a709e48f08e90828dd8f86bd96a7c3fd111d48bfb7fd93b1 ceph_14.2.7.orig.tar.gz
|
||||
sha512sums="
|
||||
38b0c6df58579377528c8f8e06d0cbc40f471f6eb2fb4a05b395f6fddbd3f2117674545b2147d8730973b01967ddcd4322a769ba03f9c625417ed35cc39f195a ceph_14.2.8.orig.tar.gz
|
||||
e1becd813ed3f28e2e4a6bef78b3b5117c1c0bb9cabe0ba9c912e0a20b551b6b2667495cddb94acd64192e287144911ff1c11e0d636fe04cc458146cfb0daca8 allperms.patch
|
||||
35722b11ad52a3145153635b6a96abda2a23ae9c7e63e2eac006c1e5b8014452c4a1a11bbe0292fd731e4c43aa38e27dd75d2ff9d25bcf52290278f71e868570 musl-fixes.patch"
|
||||
35722b11ad52a3145153635b6a96abda2a23ae9c7e63e2eac006c1e5b8014452c4a1a11bbe0292fd731e4c43aa38e27dd75d2ff9d25bcf52290278f71e868570 musl-fixes.patch
|
||||
951eab175ffcfc39675302ea9ea5ac18c9c348a0c5180c6b1f376e4547c079dd660ec50e08e32d47a4144bd17248b81842df85e55a93903054f58f976d85f8a1 fix-seek-data-hole.patch
|
||||
"
|
||||
|
||||
72
community/ceph/fix-seek-data-hole.patch
Normal file
72
community/ceph/fix-seek-data-hole.patch
Normal file
@ -0,0 +1,72 @@
|
||||
From ffc79f128ca577908899689fffbdbbd97a7af2ef Mon Sep 17 00:00:00 2001
|
||||
From: Stefan Bischoff <stefan.bischoff@9plus.de>
|
||||
Date: Tue, 12 Nov 2019 16:11:32 +0100
|
||||
Subject: [PATCH] client: Fixes for missing consts SEEK_DATA and SEEK_HOLE on
|
||||
alpine linux
|
||||
|
||||
Fixes: https://tracker.ceph.com/issues/42602
|
||||
Signed-off-by: Stefan Bischoff <stefan.bischoff@lw-rulez.de>
|
||||
---
|
||||
src/client/Client.cc | 25 ++++++++++++++++++++++++-
|
||||
1 file changed, 24 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/client/Client.cc b/src/client/Client.cc
|
||||
index 281b4ef03123..737bfabe67f7 100644
|
||||
--- a/src/client/Client.cc
|
||||
+++ b/src/client/Client.cc
|
||||
@@ -8908,9 +8908,28 @@ loff_t Client::_lseek(Fh *f, loff_t offset, int whence)
|
||||
{
|
||||
Inode *in = f->inode.get();
|
||||
int r;
|
||||
+ bool whence_check = false;
|
||||
loff_t pos = -1;
|
||||
|
||||
- if (whence == SEEK_END || whence == SEEK_DATA || whence == SEEK_HOLE) {
|
||||
+ switch (whence) {
|
||||
+ case SEEK_END:
|
||||
+ whence_check = true;
|
||||
+ break;
|
||||
+
|
||||
+#ifdef SEEK_DATA
|
||||
+ case SEEK_DATA:
|
||||
+ whence_check = true;
|
||||
+ break;
|
||||
+#endif
|
||||
+
|
||||
+#ifdef SEEK_HOLE
|
||||
+ case SEEK_HOLE:
|
||||
+ whence_check = true;
|
||||
+ break;
|
||||
+#endif
|
||||
+ }
|
||||
+
|
||||
+ if (whence_check) {
|
||||
r = _getattr(in, CEPH_STAT_CAP_SIZE, f->actor_perms);
|
||||
if (r < 0) {
|
||||
return r;
|
||||
@@ -8930,6 +8949,7 @@ loff_t Client::_lseek(Fh *f, loff_t offset, int whence)
|
||||
pos = in->size + offset;
|
||||
break;
|
||||
|
||||
+#ifdef SEEK_DATA
|
||||
case SEEK_DATA:
|
||||
if (offset < 0 || static_cast<uint64_t>(offset) >= in->size) {
|
||||
r = -ENXIO;
|
||||
@@ -8937,7 +8957,9 @@ loff_t Client::_lseek(Fh *f, loff_t offset, int whence)
|
||||
}
|
||||
pos = offset;
|
||||
break;
|
||||
+#endif
|
||||
|
||||
+#ifdef SEEK_HOLE
|
||||
case SEEK_HOLE:
|
||||
if (offset < 0 || static_cast<uint64_t>(offset) >= in->size) {
|
||||
r = -ENXIO;
|
||||
@@ -8946,6 +8968,7 @@ loff_t Client::_lseek(Fh *f, loff_t offset, int whence)
|
||||
pos = in->size;
|
||||
}
|
||||
break;
|
||||
+#endif
|
||||
|
||||
default:
|
||||
ldout(cct, 1) << __func__ << ": invalid whence value " << whence << dendl;
|
||||
Loading…
x
Reference in New Issue
Block a user