1 |
commit: 0e18040d345fe623061142cca2a8e0c43ff332e8 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 19 20:43:21 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 19 20:43:34 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e18040d |
7 |
|
8 |
sys-fs/diskdev_cmds: tweak for glibc-2.32 |
9 |
|
10 |
It does not fix build on musl but fixes build on glibc-2.32. |
11 |
|
12 |
Reported-by: Georg Rudoy |
13 |
Bug: https://bugs.gentoo.org/715862 |
14 |
Package-Manager: Portage-3.0.3, Repoman-3.0.0 |
15 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
16 |
|
17 |
sys-fs/diskdev_cmds/diskdev_cmds-332.14_p1-r3.ebuild | 1 + |
18 |
.../files/diskdev_cmds-332.14_p1-no-sysctl.patch | 12 ++++++++++++ |
19 |
2 files changed, 13 insertions(+) |
20 |
|
21 |
diff --git a/sys-fs/diskdev_cmds/diskdev_cmds-332.14_p1-r3.ebuild b/sys-fs/diskdev_cmds/diskdev_cmds-332.14_p1-r3.ebuild |
22 |
index d65d92da320..57753cb339c 100644 |
23 |
--- a/sys-fs/diskdev_cmds/diskdev_cmds-332.14_p1-r3.ebuild |
24 |
+++ b/sys-fs/diskdev_cmds/diskdev_cmds-332.14_p1-r3.ebuild |
25 |
@@ -27,6 +27,7 @@ PATCHES=( |
26 |
"${WORKDIR}"/diskdev_cmds-${PV}.patch |
27 |
"${FILESDIR}"/${PN}-respect-cflags.patch |
28 |
"${FILESDIR}"/${P}-AR.patch |
29 |
+ "${FILESDIR}"/${P}-no-sysctl.patch |
30 |
) |
31 |
|
32 |
src_compile() { |
33 |
|
34 |
diff --git a/sys-fs/diskdev_cmds/files/diskdev_cmds-332.14_p1-no-sysctl.patch b/sys-fs/diskdev_cmds/files/diskdev_cmds-332.14_p1-no-sysctl.patch |
35 |
new file mode 100644 |
36 |
index 00000000000..f7ff186ca19 |
37 |
--- /dev/null |
38 |
+++ b/sys-fs/diskdev_cmds/files/diskdev_cmds-332.14_p1-no-sysctl.patch |
39 |
@@ -0,0 +1,12 @@ |
40 |
+--- a/newfs_hfs.tproj/makehfs.c |
41 |
++++ b/newfs_hfs.tproj/makehfs.c |
42 |
+@@ -37,8 +37,8 @@ |
43 |
+ #endif |
44 |
+ #include <sys/errno.h> |
45 |
+ #include <sys/stat.h> |
46 |
+-#include <sys/sysctl.h> |
47 |
+ #if !LINUX |
48 |
++#include <sys/sysctl.h> |
49 |
+ #include <sys/vmmeter.h> |
50 |
+ #endif |
51 |
+ |