Skip to content
Snippets Groups Projects
Commit f7f2cdbe authored by Jake Buchholz Göktürk's avatar Jake Buchholz Göktürk
Browse files

community/cachefilesd: fix build on musl

parent 0ef7296e
No related branches found
No related tags found
1 merge request!54263community/cachefilesd: fix build on musl
Pipeline #190051 canceled
......@@ -2,7 +2,7 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=cachefilesd
pkgver=0.10.10
pkgrel=2
pkgrel=3
pkgdesc="Userspace daemon acting as a backend for FS-Cache"
url="https://people.redhat.com/~dhowells/fscache/"
arch="all"
......@@ -12,7 +12,9 @@ makedepends="rpm file"
options="!check"
subpackages="$pkgname-doc"
source="https://people.redhat.com/~dhowells/cachefs/$pkgname-$pkgver.tar
$pkgname.initd"
$pkgname.initd
musl-stat64.patch
"
build() {
sed -i "s#/sbin/#/usr/bin/#g" cachefilesd.c
......@@ -29,4 +31,5 @@ package() {
sha512sums="
d7d816b5ef1fffe1272cb8c2e9cbd18c1393438afca250436a36a446c6a37303e7784057725a56be839e0489101190b563c4fc015fc4ff11baa8003121e5183a cachefilesd-0.10.10.tar
854b66470ace24caf24e979de3c1c12a426972bc745823b3a0f47ac80811ac5da4fa6a249e65386acdec2e7561178bb1d2c4b301a2178458f10496bb8eac5b2f cachefilesd.initd
e4611595320bb4d6168d2b5a5b3d711251041c25cf8d6e1a4e58122a732ee971fe34d5968dedaa36f6d1e1951af218c931b133da5d208eef0e325334bd63e627 musl-stat64.patch
"
--- a/cachefilesd.c
+++ b/cachefilesd.c
@@ -53,6 +53,14 @@
#include <sys/vfs.h>
#include <sys/stat.h>
+/* explicit musl 64-bit definitions no longer exist */
+#ifndef stat64
+#define stat64 stat
+#endif
+#ifndef fstatat64
+#define fstatat64 fstatat
+#endif
+
typedef enum objtype {
OBJTYPE_INDEX,
OBJTYPE_DATA,
Common subdirectories: cachefilesd-inotify-0.11.0.orig/redhat and cachefilesd-inotify-0.11.0/redhat
Common subdirectories: cachefilesd-inotify-0.11.0.orig/selinux and cachefilesd-inotify-0.11.0/selinux
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment