From 3272db6afe936eea457153502ce2d76a286413ef Mon Sep 17 00:00:00 2001 From: Alex Kiernan Date: Tue, 21 Jan 2020 07:22:31 +0000 Subject: fatcat: Add recipe fatcat is a tool designed to manipulate FAT filesystems, in order to explore, extract, repair, recover and forensic them. It currently supports FAT12, FAT16 and FAT32. Signed-off-by: Alex Kiernan Signed-off-by: Khem Raj --- ...unistd.h-not-argp.h-for-all-POSIX-systems.patch | 37 ++++++++++++++++++++++ .../recipes-utils/fatcat/fatcat_1.1.0.bb | 18 +++++++++++ 2 files changed, 55 insertions(+) create mode 100644 meta-filesystems/recipes-utils/fatcat/fatcat/0001-Use-unistd.h-not-argp.h-for-all-POSIX-systems.patch create mode 100644 meta-filesystems/recipes-utils/fatcat/fatcat_1.1.0.bb (limited to 'meta-filesystems') diff --git a/meta-filesystems/recipes-utils/fatcat/fatcat/0001-Use-unistd.h-not-argp.h-for-all-POSIX-systems.patch b/meta-filesystems/recipes-utils/fatcat/fatcat/0001-Use-unistd.h-not-argp.h-for-all-POSIX-systems.patch new file mode 100644 index 0000000000..fd8e22abca --- /dev/null +++ b/meta-filesystems/recipes-utils/fatcat/fatcat/0001-Use-unistd.h-not-argp.h-for-all-POSIX-systems.patch @@ -0,0 +1,37 @@ +From 14ef83291096e019ebc48040cf63530a2574a26d Mon Sep 17 00:00:00 2001 +From: Alex Kiernan +Date: Sun, 19 Jan 2020 16:03:21 +0000 +Subject: [PATCH] Use unistd.h not argp.h for all POSIX systems + +getopt(3) is found in unistd.h on all POSIX systems and we make no use +of any of the GNU specific argp extensions. Include unistd.h directly to +allow building with musl on linux, whilst retaining compatibility with +glibc and other unices. + +Signed-off-by: Alex Kiernan +Upstream-status: Pending +--- + src/fatcat.cpp | 8 ++------ + 1 file changed, 2 insertions(+), 6 deletions(-) + +diff --git a/src/fatcat.cpp b/src/fatcat.cpp +index ce23ca07bb99..b4427e465bde 100644 +--- a/src/fatcat.cpp ++++ b/src/fatcat.cpp +@@ -1,14 +1,10 @@ + #include +-#include +-#ifdef __APPLE__ +-#include +-#else ++#include + #ifdef __WIN__ + #include + #include "xgetopt/xgetopt.h" + #else +-#include +-#endif ++#include + #endif + + #include diff --git a/meta-filesystems/recipes-utils/fatcat/fatcat_1.1.0.bb b/meta-filesystems/recipes-utils/fatcat/fatcat_1.1.0.bb new file mode 100644 index 0000000000..c72671739d --- /dev/null +++ b/meta-filesystems/recipes-utils/fatcat/fatcat_1.1.0.bb @@ -0,0 +1,18 @@ +SUMMARY = "FAT filesystems explore, extract, repair, and forensic tool" +DESCRIPTION = "This tool is designed to manipulate FAT filesystems, in order to \ +explore, extract, repair, recover and forensic them. It currently supports \ +FAT12, FAT16 and FAT32." +HOMEPAGE = "https://github.com/Gregwar/fatcat" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=57fbbfebd0dd1d6ff21b8cecb552a03f" + +SRC_URI = "git://github.com/Gregwar/fatcat.git \ + file://0001-Use-unistd.h-not-argp.h-for-all-POSIX-systems.patch \ + " + +SRCREV = "b923172d97c578297964c062e3a92799e2a9eca4" + +S = "${WORKDIR}/git" + +inherit cmake -- cgit 1.2.3-korg