From 8b34b490cd73977d0a5d57f600771287a3e3b836 Mon Sep 17 00:00:00 2001 From: idriskalp Date: Thu, 26 Dec 2019 17:53:00 +0300 Subject: [PATCH] klibc 2.0.7 --- .../fix_missing_include_in_sys_mman_h.patch | 35 +++++++++++++++++++ system/devel/klibc/pspec.xml | 12 ++++++- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 system/devel/klibc/files/fix_missing_include_in_sys_mman_h.patch diff --git a/system/devel/klibc/files/fix_missing_include_in_sys_mman_h.patch b/system/devel/klibc/files/fix_missing_include_in_sys_mman_h.patch new file mode 100644 index 00000000..e9a1b115 --- /dev/null +++ b/system/devel/klibc/files/fix_missing_include_in_sys_mman_h.patch @@ -0,0 +1,35 @@ +From d4853d030639cf3542ae39129c18b654d8d4f020 Mon Sep 17 00:00:00 2001 +From: Barret Rhoden +Date: Thu, 14 Mar 2019 17:30:38 -0400 +Subject: Fix missing include in sys/mman.h + +Linux commit 746c9398f5ac ("arch: move common mmap flags to +linux/mman.h") moved a few mmap flags, particularly MAP_PRIVATE, from +asm/mman.h to linux/mman.h. This broke klibc's build, which uses +MAP_PRIVATE. + +linux/mman.h includes asm/mman.h, so this commit merely includes +linux/mman.h instead of asm/mman.h. + +Signed-off-by: Barret Rhoden +Signed-off-by: Ben Hutchings +--- + usr/include/sys/mman.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/usr/include/sys/mman.h b/usr/include/sys/mman.h +index 56f0b65c..3fd626e7 100644 +--- a/usr/include/sys/mman.h ++++ b/usr/include/sys/mman.h +@@ -7,7 +7,7 @@ + + #include + #include +-#include ++#include + + #define MAP_FAILED ((void *)-1) + +-- +cgit 1.2-0.3.lf.el7 + diff --git a/system/devel/klibc/pspec.xml b/system/devel/klibc/pspec.xml index 12374a59..f892c7dd 100644 --- a/system/devel/klibc/pspec.xml +++ b/system/devel/klibc/pspec.xml @@ -13,13 +13,16 @@ library A minimal libc subset for use with initramfs klibc, or "early userspace", is library part of an effort which tries to move as much initialization code in Linux as possible out of the kernel. - https://www.kernel.org/pub/linux/libs/klibc/2.0/klibc-2.0.4.tar.xz + https://mirrors.edge.kernel.org/pub/linux/libs/klibc/2.0/klibc-2.0.7.tar.xz perl + + + @@ -40,6 +43,13 @@ + + 2019-12-26 + 2.0.7 + Version bump + Idris Kalp + idriskalp@gmail.com + 2019-04-06 2.0.4