package/exfatprogs: new package
authorJames Hilliard <james.hilliard1@gmail.com>
Fri, 17 Apr 2020 20:14:05 +0000 (14:14 -0600)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 19 Apr 2020 13:30:20 +0000 (15:30 +0200)
exFAT filesystem userspace utilities

We need a patch to fix:
error: unknown type name ‘ssize_t’

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/Config.in.host
package/exfatprogs/0001-exfatprogs-add-missing-include-sys-types.h.patch [new file with mode: 0644]
package/exfatprogs/Config.in [new file with mode: 0644]
package/exfatprogs/Config.in.host [new file with mode: 0644]
package/exfatprogs/exfatprogs.hash [new file with mode: 0644]
package/exfatprogs/exfatprogs.mk [new file with mode: 0644]

index 68b3f6a5c462b47c5fa79d9f46e26aad0367c7d9..4f8a9255ed2fa1d55eeb5ebd19e0ea2f1201f2d0 100644 (file)
@@ -1173,6 +1173,7 @@ F:        configs/pine64_sopine_defconfig
 
 N:     James Hilliard <james.hilliard1@gmail.com>
 F:     package/apcupsd/
+F:     package/exfatprogs/
 F:     package/gensio/
 F:     package/lua-std-debug/
 F:     package/lua-std-normalize/
index 46d3c75ee2b4c4d7ed5a2662e47b7a3fe16dac3f..5e72b750eac52a9ec22b90b4af8c375dc0d932e8 100644 (file)
@@ -199,6 +199,7 @@ menu "Filesystem and flash utilities"
        source "package/erofs-utils/Config.in"
        source "package/exfat/Config.in"
        source "package/exfat-utils/Config.in"
+       source "package/exfatprogs/Config.in"
        source "package/f2fs-tools/Config.in"
        source "package/flashbench/Config.in"
        source "package/fscryptctl/Config.in"
index eb8f63f6890a2d59c08f7fccfc0d1ce8db3b52e9..f1246c708fc30c6be2a236138829804ab15db0d9 100644 (file)
@@ -20,6 +20,7 @@ menu "Host utilities"
        source "package/e2tools/Config.in.host"
        source "package/erofs-utils/Config.in.host"
        source "package/eudev/Config.in.host"
+       source "package/exfatprogs/Config.in.host"
        source "package/f2fs-tools/Config.in.host"
        source "package/faketime/Config.in.host"
        source "package/fatcat/Config.in.host"
diff --git a/package/exfatprogs/0001-exfatprogs-add-missing-include-sys-types.h.patch b/package/exfatprogs/0001-exfatprogs-add-missing-include-sys-types.h.patch
new file mode 100644 (file)
index 0000000..6019e59
--- /dev/null
@@ -0,0 +1,49 @@
+From da03ba80944668817c374a816b8b0c515af0ac89 Mon Sep 17 00:00:00 2001
+From: James Hilliard <james.hilliard1@gmail.com>
+Date: Fri, 17 Apr 2020 13:10:49 -0600
+Subject: [PATCH] exfatprogs: add missing #include <sys/types.h>
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Fixes:
+../include/libexfat.h:72:1: error: unknown type name ‘ssize_t’
+ ssize_t exfat_read(int fd, void *buf, size_t size, off_t offset);
+ ^
+../include/libexfat.h:72:52: error: unknown type name ‘off_t’
+ ssize_t exfat_read(int fd, void *buf, size_t size, off_t offset);
+                                                    ^
+../include/libexfat.h:73:1: error: unknown type name ‘ssize_t’
+ ssize_t exfat_write(int fd, void *buf, size_t size, off_t offset);
+ ^
+../include/libexfat.h:73:53: error: unknown type name ‘off_t’
+ ssize_t exfat_write(int fd, void *buf, size_t size, off_t offset);
+                                                     ^
+../include/libexfat.h:75:1: error: unknown type name ‘ssize_t’
+ ssize_t exfat_utf16_enc(const char *in_str, __u16 *out_str, size_t out_size);
+ ^
+../include/libexfat.h:76:1: error: unknown type name ‘ssize_t’
+ ssize_t exfat_utf16_dec(const __u16 *in_str, size_t in_len,
+ ^
+
+Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
+[Upstream status: https://github.com/exfatprogs/exfatprogs/pull/50]
+---
+ include/exfat_tools.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/include/exfat_tools.h b/include/exfat_tools.h
+index 45de4aa..105fd2a 100644
+--- a/include/exfat_tools.h
++++ b/include/exfat_tools.h
+@@ -6,6 +6,7 @@
+ #ifndef _EXFAT_TOOLS_H
+ #include <stdbool.h>
++#include <sys/types.h>
+ #include <wchar.h>
+ #define KB                    (1024)
+-- 
+2.20.1
+
diff --git a/package/exfatprogs/Config.in b/package/exfatprogs/Config.in
new file mode 100644 (file)
index 0000000..99defb5
--- /dev/null
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_EXFATPROGS
+       bool "exfatprogs"
+       help
+         exFAT filesystem userspace utilities.
+
+         This is the set of tools that works together with the exfat
+         driver in the official Linux kernel (merged in Linux 5.7).
+
+         If you're using the FUSE-based exfat support (from
+         package/exfat), you must use the corresponding user-space
+         programs in package/exfat-utils.
+
+         https://github.com/exfatprogs/exfatprogs
diff --git a/package/exfatprogs/Config.in.host b/package/exfatprogs/Config.in.host
new file mode 100644 (file)
index 0000000..d4a0b0c
--- /dev/null
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_HOST_EXFATPROGS
+       bool "host exfatprogs"
+       help
+         exFAT filesystem userspace utilities
+
+         This is the set of tools that works together with the exfat
+         driver in the official Linux kernel (merged in Linux 5.7).
+
+         If you're using the FUSE-based exfat support (from
+         package/exfat), you must use the corresponding user-space
+         programs in package/exfat-utils.
+
+         https://github.com/exfatprogs/exfatprogs
diff --git a/package/exfatprogs/exfatprogs.hash b/package/exfatprogs/exfatprogs.hash
new file mode 100644 (file)
index 0000000..424cc2b
--- /dev/null
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256  9cd3b71b0d90695969b83a68d5412898c120a60893e01434ef5e2be9f14fe570  exfatprogs-1.0.1.tar.gz
+sha256  576540abf5e95029ad4ad90e32071385a5e95b2c30708c706116f3eb87b9a3de  COPYING
diff --git a/package/exfatprogs/exfatprogs.mk b/package/exfatprogs/exfatprogs.mk
new file mode 100644 (file)
index 0000000..a69f119
--- /dev/null
@@ -0,0 +1,16 @@
+################################################################################
+#
+# exfatprogs
+#
+################################################################################
+
+EXFATPROGS_VERSION = 1.0.1
+EXFATPROGS_SITE = $(call github,exfatprogs,exfatprogs,$(EXFATPROGS_VERSION))
+EXFATPROGS_LICENSE = GPL-2.0+
+EXFATPROGS_LICENSE_FILES = COPYING
+EXFATPROGS_AUTORECONF = YES
+EXFATPROGS_DEPENDENCIES = host-pkgconf
+HOST_EXFATPROGS_DEPENDENCIES = host-pkgconf
+
+$(eval $(autotools-package))
+$(eval $(host-autotools-package))