Skip to content

Commit 584772f

Browse files
committed
fuse-archive: new submission at 1.12
1 parent 5d10afa commit 584772f

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-0
lines changed

fuse/fuse-archive/Portfile

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2+
3+
PortSystem 1.0
4+
5+
# Fuse3 building doesn't work right, hande stuff manually for now.
6+
#PortGroup fuse 1.0
7+
configure.cppflags-prepend -I${prefix}/include/fuse3
8+
depends_lib-append port:macfuse
9+
depends_build-append path:bin/pkg-config:pkgconfig
10+
11+
PortGroup github 1.0
12+
PortGroup boost 1.0
13+
PortGroup makefile 1.0
14+
15+
github.setup google fuse-archive 1.12 v
16+
github.tarball_from archive
17+
revision 0
18+
categories fuse
19+
license Apache-2
20+
maintainers nomaintainer
21+
description Mount archives with FUSE
22+
long_description \
23+
Mount an archive or compressed file as a FUSE file system.
24+
25+
checksums rmd160 4a55ca94cc1792698697cf0d8b77d957cad71dde \
26+
sha256 cf05bc4f23de0985fb578a2d02f95d6cb82eb6bc2f6e740f57702a172e0088df \
27+
size 624697
28+
29+
depends_lib-append port:libarchive
30+
boost.version 1.81
31+
patchfiles make.diff apple.diff
32+
use_configure no
33+
build.target all
34+
compiler.cxx_standard 2020
35+
36+
destroot {
37+
xinstall -m 755 ${worksrcpath}/out/fuse-archive ${destroot}${prefix}/bin
38+
xinstall -d ${destroot}${prefix}/share/man/man1
39+
xinstall -m 644 ${worksrcpath}/fuse-archive.1 ${destroot}${prefix}/share/man/man1
40+
}

fuse/fuse-archive/files/apple.diff

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
--- fuse-archive.cc
2+
+++ fuse-archive.cc
3+
@@ -152,6 +152,9 @@ std::string_view GetErrorString(archive* const a) {
4+
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
5+
#define lseek64 lseek
6+
#endif
7+
+#if !defined(O_PATH) // OpenBSD and macOS
8+
+#define O_PATH O_RDONLY
9+
+#endif
10+
11+
// ---- Globals
12+
13+
@@ -951,7 +954,7 @@ void CreateCacheFile() {
14+
15+
std::string const cache_dir = GetCacheDir();
16+
17+
-#if !defined(__FreeBSD__) && !defined(__OpenBSD__)
18+
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__APPLE__)
19+
g_cache_fd = open(cache_dir.c_str(), O_TMPFILE | O_RDWR | O_EXCL, 0);
20+
if (g_cache_fd >= 0) {
21+
LOG(DEBUG) << "Created anonymous cache file in " << Path(cache_dir);

fuse/fuse-archive/files/make.diff

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--- Makefile
2+
+++ Makefile
3+
@@ -17,6 +17,7 @@ CXXFLAGS += $(shell $(PKG_CONFIG) --cflags $(DEPS))
4+
LDFLAGS += $(shell $(PKG_CONFIG) --libs $(DEPS))
5+
CXXFLAGS += -std=c++20 -Wall -Wextra -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter
6+
CXXFLAGS += -D_FILE_OFFSET_BITS=64
7+
+CXXFLAGS += -std=gnu++20 -DFUSE_DARWIN_ENABLE_EXTENSIONS=0
8+
9+
ifeq ($(DEBUG), 1)
10+
CXXFLAGS += -O0 -g

0 commit comments

Comments
 (0)