Просмотр исходного кода

mdadm: backport musl patch

Needed to fix compilation with GCC14.

Signed-off-by: Rosen Penev <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/16912
Signed-off-by: Robert Marko <[email protected]>
(cherry picked from commit 1f3d5858b441cf4e1195b96242dd08d68538e83d)
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <[email protected]>
Rosen Penev 1 год назад
Родитель
Сommit
25427d7942
2 измененных файлов с 25 добавлено и 1 удалено
  1. 1 1
      package/utils/mdadm/Makefile
  2. 24 0
      package/utils/mdadm/patches/060-gcc14.patch

+ 1 - 1
package/utils/mdadm/Makefile

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mdadm
 PKG_VERSION:=4.3
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@KERNEL/linux/utils/raid/mdadm

+ 24 - 0
package/utils/mdadm/patches/060-gcc14.patch

@@ -0,0 +1,24 @@
+From 8bda86099089b44129ef6206764f9de47a45f0db Mon Sep 17 00:00:00 2001
+From: Alexander Kanavin <[email protected]>
+Date: Tue, 12 Mar 2024 11:01:50 +0100
+Subject: [PATCH] util.c: add limits.h include for NAME_MAX definition
+
+Add limits.h include for NAME_MAX definition.
+
+Signed-off-by: Alexander Kanavin <[email protected]>
+Signed-off-by: Mariusz Tkaczyk <[email protected]>
+---
+ util.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/util.c
++++ b/util.c
+@@ -36,7 +36,7 @@
+ #include	<ctype.h>
+ #include	<dirent.h>
+ #include	<dlfcn.h>
+-
++#include	<limits.h>
+ 
+ /*
+  * following taken from linux/blkpg.h because they aren't