Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
From 8db993c32f97188bdd6de4b2aa177fc513ee7e9f Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Sun, 15 Oct 2023 21:22:58 +0200
|
||||
Subject: [PATCH] src/compressor.h: fix build with gcc >= 13
|
||||
|
||||
Fix the following build failure with gcc >= 13:
|
||||
|
||||
In file included from ../src/compressor.c:3:
|
||||
../src/compressor.h:59:59: error: unknown type name 'size_t'
|
||||
59 | int compressor_input(CompressorContext *c, const void *p, size_t sz);
|
||||
| ^~~~~~
|
||||
../src/compressor.h:19:1: note: 'size_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
|
||||
18 | #include "cacompression.h"
|
||||
+++ |+#include <stddef.h>
|
||||
19 |
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/ab08f3b90d253db45643dd058b80ae1dd5f49d0f
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Upstream: https://github.com/systemd/casync/pull/270
|
||||
---
|
||||
src/compressor.h | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/compressor.h b/src/compressor.h
|
||||
index 2c9f93b..ae2eb30 100644
|
||||
--- a/src/compressor.h
|
||||
+++ b/src/compressor.h
|
||||
@@ -4,6 +4,7 @@
|
||||
#define foocompresshorhfoo
|
||||
|
||||
#include <stdbool.h>
|
||||
+#include <stddef.h>
|
||||
|
||||
#if HAVE_LIBLZMA
|
||||
# include <lzma.h>
|
||||
--
|
||||
2.42.0
|
||||
|
||||
13
package/casync/Config.in
Normal file
13
package/casync/Config.in
Normal file
@@ -0,0 +1,13 @@
|
||||
config BR2_PACKAGE_CASYNC
|
||||
bool "casync"
|
||||
depends on BR2_TOOLCHAIN_USES_GLIBC # scandirat() is not implemented by musl and uclibc-ng
|
||||
select BR2_PACKAGE_ACL
|
||||
select BR2_PACKAGE_LIBCURL
|
||||
select BR2_PACKAGE_OPENSSL
|
||||
help
|
||||
Content-Addressable Data Synchronization Tool
|
||||
|
||||
https://github.com/systemd/casync
|
||||
|
||||
comment "casync needs a glibc toolchain"
|
||||
depends on !BR2_TOOLCHAIN_USES_GLIBC
|
||||
3
package/casync/casync.hash
Normal file
3
package/casync/casync.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# sha256 locally computed
|
||||
sha256 5d58def4c5ca902b35a97178d4619b9298a35b27d5748a2cc346bd36c2e38e9c casync-0efa7abffe5fffbde8c457d3c8fafbdde0bb6e4f.tar.gz
|
||||
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 LICENSE.LGPL2.1
|
||||
64
package/casync/casync.mk
Normal file
64
package/casync/casync.mk
Normal file
@@ -0,0 +1,64 @@
|
||||
################################################################################
|
||||
#
|
||||
# casync
|
||||
#
|
||||
################################################################################
|
||||
|
||||
CASYNC_VERSION = 0efa7abffe5fffbde8c457d3c8fafbdde0bb6e4f
|
||||
CASYNC_SITE = $(call github,systemd,casync,$(CASYNC_VERSION))
|
||||
CASYNC_LICENSE = LGPL-2.1+
|
||||
CASYNC_LICENSE_FILES = LICENSE.LGPL2.1
|
||||
CASYNC_DEPENDENCIES = acl libcurl openssl
|
||||
|
||||
CASYNC_CONF_OPTS = -Dman=false -Doss-fuzz=false -Dllvm-fuzz=false
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BASH_COMPLETION),y)
|
||||
CASYNC_DEPENDENCIES += bash-completion
|
||||
# The default path is correct, leave it as-is
|
||||
else
|
||||
CASYNC_CONF_OPTS += -Dbashcompletiondir=no
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBFUSE),y)
|
||||
CASYNC_DEPENDENCIES += libfuse
|
||||
CASYNC_CONF_OPTS += -Dfuse=true
|
||||
else
|
||||
CASYNC_CONF_OPTS += -Dfuse=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
|
||||
CASYNC_DEPENDENCIES += libselinux
|
||||
CASYNC_CONF_OPTS += -Dselinux=true
|
||||
else
|
||||
CASYNC_CONF_OPTS += -Dselinux=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
||||
CASYNC_DEPENDENCIES += udev
|
||||
CASYNC_CONF_OPTS += -Dudev=true
|
||||
else
|
||||
CASYNC_CONF_OPTS += -Dudev=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZSTD),y)
|
||||
CASYNC_DEPENDENCIES += zstd
|
||||
CASYNC_CONF_OPTS += -Dlibzstd=enabled
|
||||
else
|
||||
CASYNC_CONF_OPTS += -Dlibzstd=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XZ),y)
|
||||
CASYNC_DEPENDENCIES += xz
|
||||
CASYNC_CONF_OPTS += -Dliblzma=enabled
|
||||
else
|
||||
CASYNC_CONF_OPTS += -Dliblzma=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
CASYNC_DEPENDENCIES += zlib
|
||||
CASYNC_CONF_OPTS += -Dlibz=enabled
|
||||
else
|
||||
CASYNC_CONF_OPTS += -Dlibz=disabled
|
||||
endif
|
||||
|
||||
$(eval $(meson-package))
|
||||
Reference in New Issue
Block a user