mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
extra/fuse2 to 2.9.9-5
This commit is contained in:
parent
7ca200ea33
commit
c6ac1e9f7b
4 changed files with 160 additions and 15 deletions
26
extra/fuse2/.SRCINFO
Normal file
26
extra/fuse2/.SRCINFO
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
pkgbase = fuse2
|
||||||
|
pkgdesc = Interface for userspace programs to export a filesystem to the Linux kernel
|
||||||
|
pkgver = 2.9.9
|
||||||
|
pkgrel = 5
|
||||||
|
url = https://github.com/libfuse/libfuse
|
||||||
|
arch = x86_64
|
||||||
|
license = GPL2
|
||||||
|
makedepends = pkg-config
|
||||||
|
depends = glibc
|
||||||
|
depends = fuse-common
|
||||||
|
provides = fuse=2.9.9
|
||||||
|
conflicts = fuse
|
||||||
|
replaces = fuse
|
||||||
|
options = !emptydirs
|
||||||
|
source = https://github.com/libfuse/libfuse/releases/download/fuse-2.9.9/fuse-2.9.9.tar.gz
|
||||||
|
source = https://github.com/libfuse/libfuse/releases/download/fuse-2.9.9/fuse-2.9.9.tar.gz.asc
|
||||||
|
source = conditionally-define-closefrom.patch
|
||||||
|
validpgpkeys = ED31791B2C5C1613AF388B8AD113FCAC3C4E599F
|
||||||
|
sha1sums = 943ba651b14bc4a3c6fd959ed4b8c04f4a59032d
|
||||||
|
sha1sums = SKIP
|
||||||
|
sha1sums = 90750cd0839c1ee427314241f9ea5f054c3335d8
|
||||||
|
sha512sums = 3d82fafd04f2924299bb09d2bb144935fa004a43fb9a6568e2e1cc5a60fded2efa1711029a0d7f12b3e6e4501f7217f2ee3545646d89da8dece083cb390f23e2
|
||||||
|
sha512sums = SKIP
|
||||||
|
sha512sums = 0836d1693bea203b562a86c992107ee48766f41bb05a31e9af41009d2270ac84d7881aa5bc2a11ed478cd03985876aca5080341ddea701a12a630a36e1b1a80b
|
||||||
|
|
||||||
|
pkgname = fuse2
|
|
@ -1,34 +1,41 @@
|
||||||
# Maintainer: Ronald van Haren <ronald.archlinux.org>
|
|
||||||
# Contributor: Tom Gundersen <teg@jklm.no>
|
|
||||||
# Contributor: Mark Rosenstand <mark@archlinux.org>
|
|
||||||
|
|
||||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||||
# - upstream patch for AArch64
|
# - upstream patch for AArch64
|
||||||
|
|
||||||
|
# Contributor: Ronald van Haren <ronald.archlinux.org>
|
||||||
|
# Contributor: Tom Gundersen <teg@jklm.no>
|
||||||
|
# Contributor: Mark Rosenstand <mark@archlinux.org>
|
||||||
|
|
||||||
pkgname=fuse2
|
pkgname=fuse2
|
||||||
pkgver=2.9.9
|
pkgver=2.9.9
|
||||||
pkgrel=4
|
pkgrel=5
|
||||||
pkgdesc="A library that makes it possible to implement a filesystem in a userspace program."
|
pkgdesc='Interface for userspace programs to export a filesystem to the Linux kernel'
|
||||||
arch=('i686' 'x86_64')
|
|
||||||
url='https://github.com/libfuse/libfuse'
|
url='https://github.com/libfuse/libfuse'
|
||||||
|
arch=('x86_64')
|
||||||
license=('GPL2')
|
license=('GPL2')
|
||||||
|
depends=('glibc' 'fuse-common')
|
||||||
|
makedepends=('pkg-config')
|
||||||
provides=(fuse=$pkgver) # TODO: remove it once all packages start to use 'fuse2' name
|
provides=(fuse=$pkgver) # TODO: remove it once all packages start to use 'fuse2' name
|
||||||
replaces=('fuse')
|
replaces=('fuse')
|
||||||
conflicts=('fuse')
|
conflicts=('fuse')
|
||||||
depends=('glibc' 'fuse-common')
|
options=('!emptydirs')
|
||||||
makedepends=('pkg-config')
|
|
||||||
options=(!emptydirs)
|
|
||||||
source=(https://github.com/libfuse/libfuse/releases/download/fuse-$pkgver/fuse-$pkgver.tar.gz{,.asc}
|
source=(https://github.com/libfuse/libfuse/releases/download/fuse-$pkgver/fuse-$pkgver.tar.gz{,.asc}
|
||||||
|
conditionally-define-closefrom.patch
|
||||||
https://github.com/libfuse/libfuse/commit/914871b20a901e3e1e981c92bc42b1c93b7ab81b.patch)
|
https://github.com/libfuse/libfuse/commit/914871b20a901e3e1e981c92bc42b1c93b7ab81b.patch)
|
||||||
sha1sums=('943ba651b14bc4a3c6fd959ed4b8c04f4a59032d'
|
sha1sums=('943ba651b14bc4a3c6fd959ed4b8c04f4a59032d'
|
||||||
'SKIP'
|
'SKIP'
|
||||||
'dd0c03bb92ec0dd105557e6c1649a5a71cc69a94')
|
'90750cd0839c1ee427314241f9ea5f054c3335d8'
|
||||||
|
'0eac15084300e71129eaf3f39b8b7b25a6c18cab')
|
||||||
|
sha512sums=('3d82fafd04f2924299bb09d2bb144935fa004a43fb9a6568e2e1cc5a60fded2efa1711029a0d7f12b3e6e4501f7217f2ee3545646d89da8dece083cb390f23e2'
|
||||||
|
'SKIP'
|
||||||
|
'0836d1693bea203b562a86c992107ee48766f41bb05a31e9af41009d2270ac84d7881aa5bc2a11ed478cd03985876aca5080341ddea701a12a630a36e1b1a80b'
|
||||||
|
'6615563894b3c402468db975c227a531a225848a3ce3e802d25081480d356b53b64ce7ccf60083b7d7e069cb553f4add71f113f119d3a7d02888fee96fc74a73')
|
||||||
validpgpkeys=(ED31791B2C5C1613AF388B8AD113FCAC3C4E599F) # Nikolaus Rath <Nikolaus@rath.org>
|
validpgpkeys=(ED31791B2C5C1613AF388B8AD113FCAC3C4E599F) # Nikolaus Rath <Nikolaus@rath.org>
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd fuse-$pkgver
|
cd fuse-$pkgver
|
||||||
|
|
||||||
patch -p1 -i ../914871b20a901e3e1e981c92bc42b1c93b7ab81b.patch
|
patch -p1 -i ../914871b20a901e3e1e981c92bc42b1c93b7ab81b.patch
|
||||||
|
patch -Np1 -i ${srcdir}/conditionally-define-closefrom.patch
|
||||||
|
autoreconf -i
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
@ -41,12 +48,12 @@ build() {
|
||||||
package() {
|
package() {
|
||||||
cd fuse-$pkgver
|
cd fuse-$pkgver
|
||||||
|
|
||||||
make DESTDIR=${pkgdir} install
|
make DESTDIR="${pkgdir}" install
|
||||||
|
|
||||||
# Remove init script in wrong path
|
# Remove init script in wrong path
|
||||||
# Don't add our own for now, as fusectl fs oopses on 2.6.18
|
# Don't add our own for now, as fusectl fs oopses on 2.6.18
|
||||||
rm -r ${pkgdir}/etc/init.d
|
rm -r "${pkgdir}"/etc/init.d
|
||||||
|
|
||||||
# static device nodes are handled by udev
|
# static device nodes are handled by udev
|
||||||
rm -r ${pkgdir}/dev
|
rm -r "${pkgdir}"/dev
|
||||||
}
|
}
|
||||||
|
|
60
extra/fuse2/conditionally-define-closefrom.patch
Normal file
60
extra/fuse2/conditionally-define-closefrom.patch
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
From 5a43d0f724c56f8836f3f92411e0de1b5f82db32 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Sam James <sam@gentoo.org>
|
||||||
|
Date: Sat, 24 Jul 2021 22:02:45 +0100
|
||||||
|
Subject: [PATCH] util/ulockmgr_server.c: conditionally define closefrom (fix
|
||||||
|
glibc-2.34+)
|
||||||
|
|
||||||
|
closefrom(3) has joined us in glibc-land from *BSD and Solaris. Since
|
||||||
|
it's available in glibc 2.34+, we want to detect it and only define our
|
||||||
|
fallback if the libc doesn't provide it.
|
||||||
|
|
||||||
|
Bug: https://bugs.gentoo.org/803923
|
||||||
|
Signed-off-by: Sam James <sam@gentoo.org>
|
||||||
|
---
|
||||||
|
configure.ac | 1 +
|
||||||
|
util/ulockmgr_server.c | 6 ++++++
|
||||||
|
2 files changed, 7 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index 9946a0efa..a2d481aa9 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -55,6 +55,7 @@ fi
|
||||||
|
|
||||||
|
AC_CHECK_FUNCS([fork setxattr fdatasync splice vmsplice utimensat])
|
||||||
|
AC_CHECK_FUNCS([posix_fallocate])
|
||||||
|
+AC_CHECK_FUNCS([closefrom])
|
||||||
|
AC_CHECK_MEMBERS([struct stat.st_atim])
|
||||||
|
AC_CHECK_MEMBERS([struct stat.st_atimespec])
|
||||||
|
|
||||||
|
diff --git a/util/ulockmgr_server.c b/util/ulockmgr_server.c
|
||||||
|
index 273c7d923..a04dac5c6 100644
|
||||||
|
--- a/util/ulockmgr_server.c
|
||||||
|
+++ b/util/ulockmgr_server.c
|
||||||
|
@@ -22,6 +22,10 @@
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <sys/wait.h>
|
||||||
|
|
||||||
|
+#ifdef HAVE_CONFIG_H
|
||||||
|
+ #include "config.h"
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
struct message {
|
||||||
|
unsigned intr : 1;
|
||||||
|
unsigned nofd : 1;
|
||||||
|
@@ -124,6 +128,7 @@ static int receive_message(int sock, void *buf, size_t buflen, int *fdp,
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
+#if !defined(HAVE_CLOSEFROM)
|
||||||
|
static int closefrom(int minfd)
|
||||||
|
{
|
||||||
|
DIR *dir = opendir("/proc/self/fd");
|
||||||
|
@@ -141,6 +146,7 @@ static int closefrom(int minfd)
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
static void send_reply(int cfd, struct message *msg)
|
||||||
|
{
|
|
@ -0,0 +1,52 @@
|
||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
|
||||||
|
mQINBFMiefoBEADYa1ZUqR/3YDqaf2UGpd9kNfKAY3TAR+xTcTYBKWTkJEy4cX2b
|
||||||
|
ccSEOf7Ef1w0va+WgBwDUAllf+x21UFOWnPnqwb8LJxyg8dN3CRNWf9Z2vRXNOkv
|
||||||
|
nAd0hYnA6xsbSLDQV0wpJOTH1zyZejMMWLpZh5SKRxaJAtpsfZ32qppzJhn4jJb0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||
|
Sj37l6YgXwrl/UxWElaJZ55dnKJecWsvn+z9F1acS5Dvnws=
|
||||||
|
=P5gn
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
Loading…
Reference in a new issue