package/musl-fts: new package
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 22 Sep 2019 09:06:25 +0000 (11:06 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Wed, 9 Oct 2019 21:08:05 +0000 (23:08 +0200)
This package provides a replacement implementation for <fts.h>
functions missing from musl and uClibc-ng.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Reviewed-by: Matt Weber <matthew.weber@rockwellcollins.com>
[Arnout: move v from VERSION to SITE, as suggested by Matt]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
DEVELOPERS
package/Config.in
package/musl-fts/Config.in [new file with mode: 0644]
package/musl-fts/musl-fts.hash [new file with mode: 0644]
package/musl-fts/musl-fts.mk [new file with mode: 0644]

index 05f33eb2c3da1137cec673942e1cb4ac919dc4d2..75e3f76986c8366d65676fd963ab1c7adc06d051 100644 (file)
@@ -2304,6 +2304,7 @@ F:        package/monit/
 F:     package/mpdecimal/
 F:     package/msmtp/
 F:     package/musl/
+F:     package/musl-fts/
 F:     package/ne10/
 F:     package/pkg-python.mk
 F:     package/pkg-autotools.mk
index 47b602c54734d7201362d904e92468eee33d5fe8..71e939797cdd1633d51c950879a3ed209ab50ec9 100644 (file)
@@ -1775,6 +1775,7 @@ endif
        source "package/msgpack/Config.in"
        source "package/mtdev2tuio/Config.in"
        source "package/musl-compat-headers/Config.in"
+       source "package/musl-fts/Config.in"
        source "package/openblas/Config.in"
        source "package/orc/Config.in"
        source "package/p11-kit/Config.in"
diff --git a/package/musl-fts/Config.in b/package/musl-fts/Config.in
new file mode 100644 (file)
index 0000000..a7f38c1
--- /dev/null
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_MUSL_FTS
+       bool "musl-fts"
+       depends on !BR2_TOOLCHAIN_USES_GLIBC
+       help
+         The musl-fts package implements the fts(3) functions
+         fts_open, fts_read, fts_children, fts_set and fts_close,
+         which are missing in musl and uClibc-ng C libraries.
diff --git a/package/musl-fts/musl-fts.hash b/package/musl-fts/musl-fts.hash
new file mode 100644 (file)
index 0000000..8838c84
--- /dev/null
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256   49ae567a96dbab22823d045ffebe0d6b14b9b799925e9ca9274d47d26ff482a6  musl-fts-1.2.7.tar.gz
+sha256   55af87e4017668f54467a3380e7ebbac5e672d8c763bfe95e6fc882a6fdc4046  COPYING
diff --git a/package/musl-fts/musl-fts.mk b/package/musl-fts/musl-fts.mk
new file mode 100644 (file)
index 0000000..d1999ac
--- /dev/null
@@ -0,0 +1,21 @@
+################################################################################
+#
+# musl-fts
+#
+################################################################################
+
+MUSL_FTS_VERSION = 1.2.7
+MUSL_FTS_SITE = $(call github,void-linux,musl-fts,v$(MUSL_FTS_VERSION))
+MUSL_FTS_AUTORECONF = YES
+MUSL_FTS_LICENSE = BSD-3-Clause
+MUSL_FTS_LICENSE_FILES = COPYING
+# pkg-config needed for autoreconf
+MUSL_FTS_DEPENDENCIES = host-pkgconf
+MUSL_FTS_INSTALL_STAGING = YES
+
+define MUSL_FTS_CREATE_M4_DIR
+       mkdir -p $(@D)/m4
+endef
+MUSL_FTS_POST_PATCH_HOOKS += MUSL_FTS_CREATE_M4_DIR
+
+$(eval $(autotools-package))