initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
From a0594387565e1e6b4a8a8ba04ad13b135cc1f0b5 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Thu, 1 Apr 2021 07:49:46 +0200
|
||||
Subject: [PATCH] lib/getrandom.c: fix build with uclibc < 1.0.35
|
||||
|
||||
Fix the following build failure with uclibc < 1.0.35 which is raised
|
||||
since the addition of getrandom module in
|
||||
https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=682cc4e678aceff32dea2a84b6e5147bdf5a20a7:
|
||||
|
||||
In file included from ./sys/random.h:40,
|
||||
from getrandom.c:22:
|
||||
/tmp/instance-0/output-1/per-package/tar/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/sys/random.h:27:35: error: unknown type name 'size_t'
|
||||
27 | extern int getrandom(void *__buf, size_t count, unsigned int flags)
|
||||
| ^~~~~~
|
||||
/tmp/instance-0/output-1/per-package/tar/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/sys/random.h:8:1: note: 'size_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
|
||||
7 | #include <features.h>
|
||||
+++ |+#include <stddef.h>
|
||||
8 |
|
||||
|
||||
This patch is not upstreamable as it is only a workaround for
|
||||
uclibc < 1.0.35, upstream uclibc has been patched with
|
||||
https://github.com/wbx-github/uclibc-ng/commit/00972c02c2b6e0a95d5def4a71bdfb188e091782
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/f40e09d621ab5ba66dd97138dec174acfb7fda2a
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
gnu/getrandom.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/gnu/getrandom.c b/gnu/getrandom.c
|
||||
index 41212fb32..0ad3f9648 100644
|
||||
--- a/gnu/getrandom.c
|
||||
+++ b/gnu/getrandom.c
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
+#include <stddef.h>
|
||||
#include <sys/random.h>
|
||||
|
||||
#include <errno.h>
|
||||
--
|
||||
2.30.2
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
config BR2_PACKAGE_TAR
|
||||
bool "tar"
|
||||
depends on BR2_USE_WCHAR
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
help
|
||||
A program that saves many files together into a single tape
|
||||
or disk archive, and can restore individual files from the
|
||||
archive.
|
||||
|
||||
http://www.gnu.org/software/tar/
|
||||
|
||||
comment "tar needs a toolchain w/ wchar"
|
||||
depends on !BR2_USE_WCHAR
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
@@ -0,0 +1,4 @@
|
||||
# Locally calculated after checking signature
|
||||
sha256 63bebd26879c5e1eea4352f0d03c991f966aeb3ddeb3c7445c902568d5411d28 tar-1.34.tar.xz
|
||||
sha256 51337b19c71df92cd4f51c50efe4dc6ddc267d31fd54679be9e9bc2e6ce8132b tar-1.34.cpio.gz
|
||||
sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 COPYING
|
||||
@@ -0,0 +1,54 @@
|
||||
################################################################################
|
||||
#
|
||||
# tar
|
||||
#
|
||||
################################################################################
|
||||
|
||||
TAR_VERSION = 1.34
|
||||
TAR_SOURCE = tar-$(TAR_VERSION).tar.xz
|
||||
TAR_SITE = $(BR2_GNU_MIRROR)/tar
|
||||
# busybox installs in /bin, so we need tar to install as well in /bin
|
||||
# so that we don't end up with two different tar
|
||||
TAR_CONF_OPTS = --exec-prefix=/
|
||||
TAR_LICENSE = GPL-3.0+
|
||||
TAR_LICENSE_FILES = COPYING
|
||||
TAR_CPE_ID_VENDOR = gnu
|
||||
# only tar <= 1.16
|
||||
TAR_IGNORE_CVES += CVE-2007-4476
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ACL),y)
|
||||
TAR_DEPENDENCIES += acl
|
||||
TAR_CONF_OPTS += --with-posix-acls
|
||||
else
|
||||
TAR_CONF_OPTS += --without-posix-acls
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ATTR),y)
|
||||
TAR_DEPENDENCIES += attr
|
||||
TAR_CONF_OPTS += --with-xattrs
|
||||
else
|
||||
TAR_CONF_OPTS += --without-xattrs
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
# host-tar: use cpio.gz instead of tar.gz to prevent chicken-egg problem
|
||||
# of needing tar to build tar.
|
||||
HOST_TAR_SOURCE = tar-$(TAR_VERSION).cpio.gz
|
||||
|
||||
define HOST_TAR_EXTRACT_CMDS
|
||||
mkdir -p $(@D)
|
||||
cd $(@D) && \
|
||||
$(call suitable-extractor,$(HOST_TAR_SOURCE)) $(TAR_DL_DIR)/$(HOST_TAR_SOURCE) | cpio -i --preserve-modification-time
|
||||
mv $(@D)/tar-$(HOST_TAR_VERSION)/* $(@D)
|
||||
rmdir $(@D)/tar-$(HOST_TAR_VERSION)
|
||||
endef
|
||||
|
||||
HOST_TAR_CONF_OPTS = --without-selinux
|
||||
|
||||
# we are built before ccache
|
||||
HOST_TAR_CONF_ENV = \
|
||||
CC="$(HOSTCC_NOCCACHE)" \
|
||||
CXX="$(HOSTCXX_NOCCACHE)"
|
||||
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user