1 |
commit: d67d725f6bbb13cf73ff577df38e36bd08544d78 |
2 |
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 12 18:01:43 2021 +0000 |
4 |
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 12 18:04:13 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d67d725f |
7 |
|
8 |
sys-block/blktrace: bump using snapshot |
9 |
|
10 |
Reference: CVE-2018-10689 |
11 |
Bug: https://bugs.gentoo.org/655146 |
12 |
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> |
13 |
|
14 |
sys-block/blktrace/Manifest | 1 + |
15 |
.../blktrace/blktrace-1.2.0_p20210419122502.ebuild | 61 ++++++++++++++++++++++ |
16 |
2 files changed, 62 insertions(+) |
17 |
|
18 |
diff --git a/sys-block/blktrace/Manifest b/sys-block/blktrace/Manifest |
19 |
index 5f5984d3f9b..a468e89de08 100644 |
20 |
--- a/sys-block/blktrace/Manifest |
21 |
+++ b/sys-block/blktrace/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST blktrace-1.2.0.tar.bz2 395193 BLAKE2B 8f8505f27985f0451f75ced0e438a88758482227e83ba8de235986ab3f116cf38d5aec340d1e7ce3dc3aa5a97c0bd4c46265687976e7326a54ea2e7cce4afc82 SHA512 ce82c8010ca5c2868746d8eb7c6a107fc7382c05df949eeff79e612f5b1a98301a5aa5ab39de0766ea1c074f95e378ba985401cbeba9a296e3182da7d7a23b86 |
24 |
+DIST blktrace-git-20210419122502.tar.gz 2207917 BLAKE2B 27851953e857af6362604b91740f9df2e59ec79b6c192a3bf85e1ab8f9a4307f3220ec73283b73d121d0846fdf3d00a6fa5761959590ea2daa0c27192637a9f5 SHA512 a459273579480288a354e214795a2c09831b23216f407b30d21ad950d7bb88138aad4e2d5612566f359ae7111a200ca28d19d3a1a6ffcdf446cb07c59feec6fc |
25 |
|
26 |
diff --git a/sys-block/blktrace/blktrace-1.2.0_p20210419122502.ebuild b/sys-block/blktrace/blktrace-1.2.0_p20210419122502.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..4cf61b2d4ce |
29 |
--- /dev/null |
30 |
+++ b/sys-block/blktrace/blktrace-1.2.0_p20210419122502.ebuild |
31 |
@@ -0,0 +1,61 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI="6" |
36 |
+ |
37 |
+inherit toolchain-funcs flag-o-matic linux-info |
38 |
+ |
39 |
+MY_PN="blktrace" |
40 |
+if [[ ${PV} =~ _p20 ]]; then |
41 |
+ #https://brick.kernel.dk/snaps/blktrace-git-20210419122502.tar.gz |
42 |
+ MY_P="${MY_PN}-git-${PV/*_p}" |
43 |
+ EXT='tar.gz' |
44 |
+ S="${WORKDIR}/${PN}" |
45 |
+else |
46 |
+ MY_P="${MY_PN}-${PV}" |
47 |
+ EXT='tar.bz2' |
48 |
+ S="${WORKDIR}/${MY_P}" |
49 |
+fi |
50 |
+ |
51 |
+DESCRIPTION="show detailed info about what is happening on a block device io queue" |
52 |
+HOMEPAGE="https://git.kernel.dk/cgit/blktrace/" |
53 |
+SRC_URI="https://brick.kernel.dk/snaps/${MY_P}.${EXT}" |
54 |
+ |
55 |
+LICENSE="GPL-2" |
56 |
+SLOT="0" |
57 |
+KEYWORDS="~amd64 ~arm ~ppc ~x86" |
58 |
+IUSE="doc" |
59 |
+ |
60 |
+RDEPEND="dev-libs/libaio" |
61 |
+# This is a Linux specific app! |
62 |
+DEPEND="${RDEPEND} |
63 |
+ sys-kernel/linux-headers |
64 |
+ doc? ( |
65 |
+ virtual/latex-base |
66 |
+ >=app-text/texlive-core-2014 |
67 |
+ ) |
68 |
+" |
69 |
+ |
70 |
+CONFIG_CHECK="~BLK_DEV_IO_TRACE" |
71 |
+WARNING_BLK_DEV_IO_TRACE="you need to enable BLK_DEV_IO_TRACE kernel option if you want to gather traces from this machine" |
72 |
+ |
73 |
+PATCHES=( |
74 |
+ #"${FILESDIR}"/${P}-overlapping-io-stats.patch |
75 |
+ #"${FILESDIR}"/${PN}-1.2.0-ldflags.patch #335741 |
76 |
+ #"${FILESDIR}"/${PN}-1.2.0-parallel-build.patch #335741 |
77 |
+) |
78 |
+ |
79 |
+src_compile() { |
80 |
+ append-cppflags -DLVM_REMAP_WORKAROUND -W -I"${S}" |
81 |
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${CPPFLAGS}" |
82 |
+ if use doc; then |
83 |
+ export VARTEXFONTS="${T}/fonts" |
84 |
+ emake docs |
85 |
+ fi |
86 |
+} |
87 |
+ |
88 |
+src_install() { |
89 |
+ emake install CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${CPPFLAGS}" DESTDIR="${ED}" prefix="/usr" mandir="/usr/share/man" |
90 |
+ einstalldocs |
91 |
+ use doc && dodoc doc/blktrace.pdf btt/doc/btt.pdf |
92 |
+} |