Skip to content

Commit

Permalink
sys-apps/dmapi: fix build w/newer glibc #560212
Browse files Browse the repository at this point in the history
As glibc cleans up its headers to not implicitly include things, packages
like dmapi break a little as they don't include headers they need.
  • Loading branch information
vapier committed Sep 12, 2015
1 parent 71e765c commit 40c56e0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions sys-apps/dmapi/dmapi-2.2.12-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ src_prepare() {
-e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
include/builddefs.in \
|| die
epatch "${FILESDIR}"/${P}-headers.patch

multilib_copy_sources
}
Expand Down
16 changes: 16 additions & 0 deletions sys-apps/dmapi/files/dmapi-2.2.12-headers.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
https://bugs.gentoo.org/560212

pull in headers for funcs that are used

--- a/libdm/dm_handle2path.c
+++ b/libdm/dm_handle2path.c
@@ -20,6 +20,9 @@
#include <dmapi_kern.h>
#include "dmapi_lib.h"

+#include <fcntl.h> /* open */
+#include <unistd.h> /* close */
+#include <string.h> /* strlen */
#include <mntent.h>
#include <dirent.h>
#ifdef linux

0 comments on commit 40c56e0

Please sign in to comment.