Initial Commit
- initial default booting image
This commit is contained in:
32
package/file/0001-file-seccomp-fstatat64-musl.patch
Normal file
32
package/file/0001-file-seccomp-fstatat64-musl.patch
Normal file
@@ -0,0 +1,32 @@
|
||||
From 8c13923a8e17a02be0989649b2edc20124816729 Mon Sep 17 00:00:00 2001
|
||||
From: Mike Gilbert <floppym@gentoo.org>
|
||||
Date: Tue, 15 Jun 2021 16:08:22 -0400
|
||||
Subject: [PATCH] seccomp: undef fstatat64 to avoid build failure on musl
|
||||
|
||||
sys/stat.h in musl does this:
|
||||
|
||||
#define fstatat64 fstatat
|
||||
|
||||
Counteract this with an #undef.
|
||||
|
||||
Bug: https://bugs.gentoo.org/789336
|
||||
Bug: https://bugs.astron.com/view.php?id=473
|
||||
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
|
||||
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
|
||||
Upstream: N/A under discussion
|
||||
---
|
||||
src/seccomp.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/seccomp.c b/src/seccomp.c
|
||||
index 5a39ee45..d2a1139a 100644
|
||||
--- a/src/seccomp.c
|
||||
+++ b/src/seccomp.c
|
||||
@@ -205,6 +205,7 @@ enable_sandbox_full(void)
|
||||
#endif
|
||||
ALLOW_RULE(fstat64);
|
||||
#ifdef __NR_fstatat64
|
||||
+#undef fstatat64
|
||||
ALLOW_RULE(fstatat64);
|
||||
#endif
|
||||
ALLOW_RULE(futex);
|
||||
7
package/file/Config.in
Normal file
7
package/file/Config.in
Normal file
@@ -0,0 +1,7 @@
|
||||
config BR2_PACKAGE_FILE
|
||||
bool "file"
|
||||
help
|
||||
Program to identify a file's format by scanning binary data
|
||||
for known patterns.
|
||||
|
||||
https://www.darwinsys.com/file/
|
||||
6
package/file/file.hash
Normal file
6
package/file/file.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# Locally calculated after verifying signature
|
||||
# https://astron.com/pub/file/file-5.47.tar.gz.asc
|
||||
# using key BE04995BA8F90ED0C0C176C471112AB16CB33B3A
|
||||
sha256 45672fec165cb4cc1358a2d76b5d57d22876dcb97ab169427ac385cbe1d5597a file-5.47.tar.gz
|
||||
sha256 0bfa856a9930bddadbef95d1be1cf4e163c0be618e76ea3275caaf255283e274 COPYING
|
||||
sha256 2e14b6fa9a74f952ebfde3c96527158df281c953cfaf35609eb854d4da30131c src/vasprintf.c
|
||||
52
package/file/file.mk
Normal file
52
package/file/file.mk
Normal file
@@ -0,0 +1,52 @@
|
||||
################################################################################
|
||||
#
|
||||
# file
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FILE_VERSION = 5.47
|
||||
FILE_SITE = https://astron.com/pub/file
|
||||
FILE_LICENSE = BSD-2-Clause, BSD-3-Clause (vasprintf.c)
|
||||
FILE_LICENSE_FILES = COPYING src/vasprintf.c
|
||||
FILE_CPE_ID_VALID = YES
|
||||
|
||||
FILE_AUTORECONF = YES
|
||||
|
||||
FILE_DEPENDENCIES = host-file
|
||||
FILE_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
|
||||
FILE_INSTALL_STAGING = YES
|
||||
|
||||
HOST_FILE_DEPENDENCIES = host-zlib
|
||||
HOST_FILE_CONF_OPTS = --disable-libseccomp
|
||||
HOST_FILE_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
||||
FILE_CONF_OPTS += --enable-bzlib
|
||||
FILE_DEPENDENCIES += bzip2
|
||||
else
|
||||
FILE_CONF_OPTS += --disable-bzlib
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
|
||||
FILE_CONF_OPTS += --enable-libseccomp
|
||||
FILE_DEPENDENCIES += libseccomp
|
||||
else
|
||||
FILE_CONF_OPTS += --disable-libseccomp
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XZ),y)
|
||||
FILE_CONF_OPTS += --enable-xzlib
|
||||
FILE_DEPENDENCIES += xz
|
||||
else
|
||||
FILE_CONF_OPTS += --disable-xzlib
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
FILE_CONF_OPTS += --enable-zlib
|
||||
FILE_DEPENDENCIES += zlib
|
||||
else
|
||||
FILE_CONF_OPTS += --disable-zlib
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user