From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 98768158064 for ; Tue, 30 Apr 2024 15:39:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DEB78E29E8; Tue, 30 Apr 2024 15:38:59 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C65B3E29E8 for ; Tue, 30 Apr 2024 15:38:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9FBDD343060 for ; Tue, 30 Apr 2024 15:38:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0CDC61797 for ; Tue, 30 Apr 2024 15:38:55 +0000 (UTC) From: "Andreas K. Hüttel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas K. Hüttel" Message-ID: <1714491491.e61a70fcbe1a8cd07355938471f01bf25e013b64.dilfridge@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/mdadm/files/, sys-fs/mdadm/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-fs/mdadm/files/mdadm-4.3-musl125-1.patch sys-fs/mdadm/mdadm-4.3.ebuild X-VCS-Directories: sys-fs/mdadm/ sys-fs/mdadm/files/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas K. Hüttel X-VCS-Revision: e61a70fcbe1a8cd07355938471f01bf25e013b64 X-VCS-Branch: master Date: Tue, 30 Apr 2024 15:38:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4b447d0d-c7ba-432d-9efa-2fb0631e0fde X-Archives-Hash: f6fecaeef3ed86460990d0033ef02b19 commit: e61a70fcbe1a8cd07355938471f01bf25e013b64 Author: Andreas K. Hüttel gentoo org> AuthorDate: Tue Apr 30 15:35:39 2024 +0000 Commit: Andreas K. Hüttel gentoo org> CommitDate: Tue Apr 30 15:38:11 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e61a70fc sys-fs/mdadm: Add a first musl-1.2.5 build fix Signed-off-by: Andreas K. Hüttel gentoo.org> sys-fs/mdadm/files/mdadm-4.3-musl125-1.patch | 44 ++++++++++++++++++++++++++++ sys-fs/mdadm/mdadm-4.3.ebuild | 1 + 2 files changed, 45 insertions(+) diff --git a/sys-fs/mdadm/files/mdadm-4.3-musl125-1.patch b/sys-fs/mdadm/files/mdadm-4.3-musl125-1.patch new file mode 100644 index 000000000000..a10b56b67b94 --- /dev/null +++ b/sys-fs/mdadm/files/mdadm-4.3-musl125-1.patch @@ -0,0 +1,44 @@ + +Note- This is also needed for musl-1.2.5 (aside other fixes)- dilfridge + +From 52bead95d2957437c691891fcdc49bd6afccdd49 Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Fri, 12 Apr 2024 18:45:13 +0200 +Subject: Create.c: fix uclibc build + +Define FALLOC_FL_ZERO_RANGE if needed as FALLOC_FL_ZERO_RANGE is only +defined for aarch64 on uclibc-ng resulting in the following or1k build +failure since commit 577fd10486d8d1472a6b559066f344ac30a3a391: + +Create.c: In function 'write_zeroes_fork': +Create.c:155:35: error: 'FALLOC_FL_ZERO_RANGE' undeclared (first use in this function) + 155 | if (fallocate(fd, FALLOC_FL_ZERO_RANGE | FALLOC_FL_KEEP_SIZE, + | ^~~~~~~~~~~~~~~~~~~~ + +Fixes: + - http://autobuild.buildroot.org/results/0e04bcdb591ca5642053e1f7e31384f06581e989 + +Signed-off-by: Fabrice Fontaine +Signed-off-by: Mariusz Tkaczyk +--- + Create.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/Create.c b/Create.c +index 4397ff49..d94253b1 100644 +--- a/Create.c ++++ b/Create.c +@@ -32,6 +32,10 @@ + #include + #include + ++#ifndef FALLOC_FL_ZERO_RANGE ++#define FALLOC_FL_ZERO_RANGE 16 ++#endif ++ + static int round_size_and_verify(unsigned long long *size, int chunk) + { + if (*size == 0) +-- +cgit 1.2.3-korg + diff --git a/sys-fs/mdadm/mdadm-4.3.ebuild b/sys-fs/mdadm/mdadm-4.3.ebuild index 4e84a51e91b3..f132d354e746 100644 --- a/sys-fs/mdadm/mdadm-4.3.ebuild +++ b/sys-fs/mdadm/mdadm-4.3.ebuild @@ -36,6 +36,7 @@ PATCHES=( "${FILESDIR}/${PN}"-4.2-mdadm_env.patch #628968 "${FILESDIR}/${PN}"-4.3-ldflags.patch "${FILESDIR}/${PN}"-4.3-no-udev.patch + "${FILESDIR}/${PN}"-4.3-musl125-1.patch "${WORKDIR}/debian/patches/debian/0001-fix-manpages.patch" "${WORKDIR}/debian/patches/debian/0003-host-name-in-default-mailfrom.patch" "${WORKDIR}/debian/patches/debian/0004-exit-gracefully-when-md-device-not-found.patch"