summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/mdadm/Makefile17
1 files changed, 13 insertions, 4 deletions
diff --git a/package/mdadm/Makefile b/package/mdadm/Makefile
index 69d17ee2f..1301203cc 100644
--- a/package/mdadm/Makefile
+++ b/package/mdadm/Makefile
@@ -4,23 +4,32 @@
include ${ADK_TOPDIR}/rules.mk
PKG_NAME:= mdadm
-PKG_VERSION:= 4.2
+PKG_VERSION:= 4.4
PKG_RELEASE:= 1
-PKG_HASH:= 461c215670864bb74a4d1a3620684aa2b2f8296dffa06743f26dda5557acf01d
+PKG_HASH:= 556266fb8322de465eff2aa7e0f7d2b1056153770c70971834833f571dbc02a2
PKG_DESCR:= tool for managing software raid arrays
PKG_DEPENDS:= libudev
PKG_BUILDDEP:= eudev
PKG_KDEPENDS:= blk-dev-md md md-raid0 md-raid1 md-raid456
PKG_SECTION:= sys/fs
PKG_URL:= http://neil.brown.name/blog/mdadm
-PKG_SITES:= ${MASTER_SITE_KERNEL:=utils/raid/mdadm/}
+PKG_SITES:= https://github.com/md-raid-utilities/mdadm/archive/refs/tags/
+
+DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
+WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_NAME}-${PKG_VERSION}
include ${ADK_TOPDIR}/mk/package.mk
$(eval $(call PKG_template,MDADM,mdadm,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
CONFIG_STYLE:= manual
-XAKE_FLAGS+= CROSS_COMPILE="${TARGET_CROSS}" CHECK_RUN_DIR=0
+# gcc-12.4.0 at least seems to get some things wrong
+TARGET_CFLAGS+= -Wno-error=uninitialized
+# Without this, I get "undefined reference to `__stack_chk_fail'" while linking
+TARGET_CFLAGS+= -fno-stack-protector
+XAKE_FLAGS+= CROSS_COMPILE="${TARGET_CROSS}" \
+ CHECK_RUN_DIR=0 \
+ CXFLAGS="${TARGET_CFLAGS}"
mdadm-install:
${INSTALL_DIR} ${IDIR_MDADM}/usr/sbin