Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/btrfs-progs/, sys-fs/btrfs-progs/files/
Date: Fri, 31 Dec 2021 02:50:13
Message-Id: 1640919001.c1e70e74d97b9cccca55f9f8321f81916d0d1870.sam@gentoo
1 commit: c1e70e74d97b9cccca55f9f8321f81916d0d1870
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 31 02:49:26 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 31 02:50:01 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1e70e74
7
8 sys-fs/btrfs-progs: drop unnecessary musl patch
9
10 Adjusted linux-headers patch instead.
11
12 Bug: https://bugs.gentoo.org/830277
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 sys-fs/btrfs-progs/btrfs-progs-5.15.1.ebuild | 4 ---
16 .../files/5.15-musl-const.h-include.patch | 34 ----------------------
17 2 files changed, 38 deletions(-)
18
19 diff --git a/sys-fs/btrfs-progs/btrfs-progs-5.15.1.ebuild b/sys-fs/btrfs-progs/btrfs-progs-5.15.1.ebuild
20 index 01b66383b662..64cc91680915 100644
21 --- a/sys-fs/btrfs-progs/btrfs-progs-5.15.1.ebuild
22 +++ b/sys-fs/btrfs-progs/btrfs-progs-5.15.1.ebuild
23 @@ -79,10 +79,6 @@ fi
24
25 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
26
27 -PATCHES=(
28 - "${FILESDIR}"/5.15-musl-const.h-include.patch
29 -)
30 -
31 pkg_setup() {
32 use python && python-single-r1_pkg_setup
33 }
34
35 diff --git a/sys-fs/btrfs-progs/files/5.15-musl-const.h-include.patch b/sys-fs/btrfs-progs/files/5.15-musl-const.h-include.patch
36 deleted file mode 100644
37 index a9156ade4b79..000000000000
38 --- a/sys-fs/btrfs-progs/files/5.15-musl-const.h-include.patch
39 +++ /dev/null
40 @@ -1,34 +0,0 @@
41 -https://cgit.openembedded.org/openembedded-core/plain/meta/recipes-devtools/btrfs-tools/btrfs-tools/0001-btrfs-tools-include-linux-const.h-to-fix-build-with-.patch?id=fd8989db25c674ca65389a2d41bf5b447e8794be
42 -
43 -From: Bruce Ashfield <bruce.ashfield@×××××.com>
44 -Date: Fri, 18 Jun 2021 11:10:36 -0400
45 -Subject: [PATCH] btrfs-progs: include linux/const.h to fix build with 5.12+
46 - headers
47 -
48 -btrfs-tools compile fails with mips, musl and 5.12+ headers.
49 -
50 -The definition of __ALIGN_KERNEL has moved in 5.12+ kernels, so we
51 -add an explicit include of const.h to pickup the macro:
52 -
53 - | make: *** [Makefile:595: mkfs.btrfs] Error 1
54 - | make: *** Waiting for unfinished jobs....
55 - | libbtrfs.a(volumes.o): in function `dev_extent_search_start':
56 - | /usr/src/debug/btrfs-tools/5.12.1-r0/git/kernel-shared/volumes.c:464: undefined reference to `__ALIGN_KERNEL'
57 - | collect2: error: ld returned 1 exit status
58 -
59 -This is safe for older kernel's as well, since the header still
60 -exists, and is valid to include.
61 -
62 -Upstream-status: OE Specific [mips64 + musl + libc-headers]
63 -
64 -Signed-off-by: Bruce Ashfield <bruce.ashfield@×××××.com>
65 ---- a/kerncompat.h
66 -+++ b/kerncompat.h
67 -@@ -30,6 +30,7 @@
68 - #include <linux/types.h>
69 - #include <linux/kernel.h>
70 - #include <stdint.h>
71 -+#include <linux/const.h>
72 -
73 - #include <features.h>
74 -