Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/roct-thunk-interface/, dev-libs/roct-thunk-interface/files/
Date: Thu, 08 Aug 2019 18:14:37
Message-Id: 1565288065.9b35dbfd4ddff447d1095ddd4a93137077954b78.candrews@gentoo
1 commit: 9b35dbfd4ddff447d1095ddd4a93137077954b78
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 8 18:13:43 2019 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 8 18:14:25 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b35dbfd
7
8 dev-libs/roct-thunk-interface: do not install Linux kernel headers
9
10 Closes: https://bugs.gentoo.org/691714
11 Package-Manager: Portage-2.3.71, Repoman-2.3.17
12 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
13
14 ...nterface-2.6.0-do-not-install-kfd_ioctl.h.patch | 25 ++++++++++++++++++++++
15 .../roct-thunk-interface-2.6.0.ebuild | 1 +
16 2 files changed, 26 insertions(+)
17
18 diff --git a/dev-libs/roct-thunk-interface/files/roct-thunk-interface-2.6.0-do-not-install-kfd_ioctl.h.patch b/dev-libs/roct-thunk-interface/files/roct-thunk-interface-2.6.0-do-not-install-kfd_ioctl.h.patch
19 new file mode 100644
20 index 00000000000..711c16f852e
21 --- /dev/null
22 +++ b/dev-libs/roct-thunk-interface/files/roct-thunk-interface-2.6.0-do-not-install-kfd_ioctl.h.patch
23 @@ -0,0 +1,25 @@
24 +https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/pull/42
25 +
26 +From 9090559aad755bf2b5041fb617c3ddf790c7cdf6 Mon Sep 17 00:00:00 2001
27 +From: Craig Andrews <candrews@××××××××××××.com>
28 +Date: Thu, 8 Aug 2019 14:01:04 -0400
29 +Subject: [PATCH] hsakmt-dev should not install linux kernel headers
30 +
31 +hsakmt-dev should not install include/linux/* (currently just kfd_ioctl.h) as those are linux kernel headers provided by the linux kernel header packages (`linux-headers-*` on Debian/Ubuntu or `kernel-headers-*` on Red Hat / Fedora)
32 +---
33 + hsakmt-dev.txt | 2 +-
34 + 1 file changed, 1 insertion(+), 1 deletion(-)
35 +
36 +diff --git a/hsakmt-dev.txt b/hsakmt-dev.txt
37 +index eb0d3e2..6af364c 100644
38 +--- a/hsakmt-dev.txt
39 ++++ b/hsakmt-dev.txt
40 +@@ -44,7 +44,7 @@ set ( CMAKE_VERBOSE_MAKEFILE on )
41 +
42 + ## Set the install targets
43 + install ( FILES libhsakmt.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/share/pkgconfig )
44 +-install ( DIRECTORY ${SOURCE_DIR}/include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${HSAKMT_COMPONENT} )
45 ++install ( DIRECTORY ${SOURCE_DIR}/include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${HSAKMT_COMPONENT} PATTERN "linux" EXCLUDE )
46 +
47 +
48 + ## Set the default generator types for the devel package.
49
50 diff --git a/dev-libs/roct-thunk-interface/roct-thunk-interface-2.6.0.ebuild b/dev-libs/roct-thunk-interface/roct-thunk-interface-2.6.0.ebuild
51 index 8968eaaf965..fadf20cce25 100644
52 --- a/dev-libs/roct-thunk-interface/roct-thunk-interface-2.6.0.ebuild
53 +++ b/dev-libs/roct-thunk-interface/roct-thunk-interface-2.6.0.ebuild
54 @@ -17,6 +17,7 @@ PATCHES=(
55 "${FILESDIR}/${P}-correctly-install.patch"
56 "${FILESDIR}/${P}-correctly-install-pc.patch"
57 "${FILESDIR}/${P}-pc-prefix.patch"
58 + "${FILESDIR}/${P}-do-not-install-kfd_ioctl.h.patch"
59 )
60
61 DESCRIPTION="Radeon Open Compute Thunk Interface"