1 |
commit: 1dcb636abf0488aec91b2c22e6279ee53f8c18d4 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 6 21:50:53 2021 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 6 21:51:33 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1dcb636a |
7 |
|
8 |
sys-fs/diskdev_cmds: adapt to musl |
9 |
|
10 |
Reported-by: Toralf Förster |
11 |
Fixed-by: ernsteiswuerfel |
12 |
Closes: https://bugs.gentoo.org/715862 |
13 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
14 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
15 |
|
16 |
.../diskdev_cmds/diskdev_cmds-332.14_p1-r4.ebuild | 3 +- |
17 |
.../files/diskdev_cmds-332.14_p1-musl.patch | 79 ++++++++++++++++++++++ |
18 |
2 files changed, 81 insertions(+), 1 deletion(-) |
19 |
|
20 |
diff --git a/sys-fs/diskdev_cmds/diskdev_cmds-332.14_p1-r4.ebuild b/sys-fs/diskdev_cmds/diskdev_cmds-332.14_p1-r4.ebuild |
21 |
index 3fe0634bc4f..16b057b2ea3 100644 |
22 |
--- a/sys-fs/diskdev_cmds/diskdev_cmds-332.14_p1-r4.ebuild |
23 |
+++ b/sys-fs/diskdev_cmds/diskdev_cmds-332.14_p1-r4.ebuild |
24 |
@@ -1,4 +1,4 @@ |
25 |
-# Copyright 1999-2020 Gentoo Authors |
26 |
+# Copyright 1999-2021 Gentoo Authors |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
|
29 |
EAPI=7 |
30 |
@@ -29,6 +29,7 @@ PATCHES=( |
31 |
"${FILESDIR}"/${P}-AR.patch |
32 |
"${FILESDIR}"/${P}-no-sysctl.patch |
33 |
"${FILESDIR}"/${P}-ldflags.patch |
34 |
+ "${FILESDIR}"/${P}-musl.patch |
35 |
) |
36 |
|
37 |
src_compile() { |
38 |
|
39 |
diff --git a/sys-fs/diskdev_cmds/files/diskdev_cmds-332.14_p1-musl.patch b/sys-fs/diskdev_cmds/files/diskdev_cmds-332.14_p1-musl.patch |
40 |
new file mode 100644 |
41 |
index 00000000000..7e7c3d1d310 |
42 |
--- /dev/null |
43 |
+++ b/sys-fs/diskdev_cmds/files/diskdev_cmds-332.14_p1-musl.patch |
44 |
@@ -0,0 +1,79 @@ |
45 |
+Port to musl. |
46 |
+ |
47 |
+Patch-by: ernsteiswuerfel |
48 |
+Bug: https://bugs.gentoo.org/715862 |
49 |
+--- a/fsck_hfs.tproj/dfalib/CatalogCheck.c |
50 |
++++ b/fsck_hfs.tproj/dfalib/CatalogCheck.c |
51 |
+@@ -23,6 +23,7 @@ |
52 |
+ #include "Scavenger.h" |
53 |
+ #include "DecompDataEnums.h" |
54 |
+ #include "DecompData.h" |
55 |
++#include <sys/types.h> |
56 |
+ |
57 |
+ /* |
58 |
+ * information collected when visiting catalog records |
59 |
+--- a/fsck_hfs.tproj/dfalib/SRepair.c |
60 |
++++ b/fsck_hfs.tproj/dfalib/SRepair.c |
61 |
+@@ -35,6 +35,7 @@ |
62 |
+ #include "Scavenger.h" |
63 |
+ #include <unistd.h> |
64 |
+ #include <sys/stat.h> |
65 |
++#include <sys/types.h> |
66 |
+ #include <stdlib.h> |
67 |
+ #include "../cache.h" |
68 |
+ |
69 |
+--- a/fsck_hfs.tproj/dfalib/Scavenger.h |
70 |
++++ b/fsck_hfs.tproj/dfalib/Scavenger.h |
71 |
+@@ -44,7 +44,7 @@ |
72 |
+ #include <sys/kauth.h> |
73 |
+ #include <sys/syslimits.h> |
74 |
+ #endif |
75 |
+-#include <sys/errno.h> |
76 |
++#include <errno.h> |
77 |
+ |
78 |
+ #ifdef __cplusplus |
79 |
+ extern "C" { |
80 |
+--- a/fsck_hfs.tproj/fsck_hfs.h |
81 |
++++ b/fsck_hfs.tproj/fsck_hfs.h |
82 |
+@@ -24,6 +24,9 @@ |
83 |
+ |
84 |
+ #include "cache.h" |
85 |
+ |
86 |
++#ifndef __P |
87 |
++#define __P(args) args |
88 |
++#endif |
89 |
+ |
90 |
+ const extern char *cdevname; /* name of device being checked */ |
91 |
+ extern char *progname; |
92 |
+--- a/newfs_hfs.tproj/makehfs.c |
93 |
++++ b/newfs_hfs.tproj/makehfs.c |
94 |
+@@ -35,7 +35,6 @@ |
95 |
+ #include <time.h> |
96 |
+ #include "missing.h" |
97 |
+ #endif |
98 |
+-#include <sys/errno.h> |
99 |
+ #include <sys/stat.h> |
100 |
+ #if !LINUX |
101 |
+ #include <sys/sysctl.h> |
102 |
+@@ -69,6 +68,9 @@ extern Boolean _CFStringGetFileSystemRepresentation(CFStringRef string, UInt8 *b |
103 |
+ #include "newfs_hfs.h" |
104 |
+ #include "readme.h" |
105 |
+ |
106 |
++#ifndef __P |
107 |
++#define __P(args) args |
108 |
++#endif |
109 |
+ |
110 |
+ #define HFS_BOOT_DATA "/usr/share/hfsprogs/hfsbootdata" |
111 |
+ |
112 |
+--- a/newfs_hfs.tproj/newfs_hfs.c |
113 |
++++ b/newfs_hfs.tproj/newfs_hfs.c |
114 |
+@@ -54,6 +54,9 @@ |
115 |
+ #else |
116 |
+ #include <varargs.h> |
117 |
+ #endif |
118 |
++#ifndef __P |
119 |
++#define __P(args) args |
120 |
++#endif |
121 |
+ |
122 |
+ #define NOVAL (-1) |
123 |
+ #define UMASK (0755) |