Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libtrace/files/, net-libs/libtrace/
Date: Tue, 20 Aug 2019 09:02:35
Message-Id: 1566291746.7f7c94aee5a43251ac2812993d0c7ab51f0d17a2.jer@gentoo
1 commit: 7f7c94aee5a43251ac2812993d0c7ab51f0d17a2
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 20 09:01:15 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 20 09:02:26 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f7c94ae
7
8 net-libs/libtrace: Add include for SIOCGSTAMP definition
9
10 Package-Manager: Portage-2.3.72, Repoman-2.3.17
11 Fixes: https://bugs.gentoo.org/692430
12 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
13
14 .../files/libtrace-4.0.9_p1-SIOCGSTAMP.patch | 12 +++++
15 net-libs/libtrace/libtrace-4.0.9_p1-r1.ebuild | 61 ++++++++++++++++++++++
16 2 files changed, 73 insertions(+)
17
18 diff --git a/net-libs/libtrace/files/libtrace-4.0.9_p1-SIOCGSTAMP.patch b/net-libs/libtrace/files/libtrace-4.0.9_p1-SIOCGSTAMP.patch
19 new file mode 100644
20 index 00000000000..0693601356b
21 --- /dev/null
22 +++ b/net-libs/libtrace/files/libtrace-4.0.9_p1-SIOCGSTAMP.patch
23 @@ -0,0 +1,12 @@
24 +diff --git a/lib/format_linux_common.h b/lib/format_linux_common.h
25 +index 244144b1..b6a66d30 100644
26 +--- a/lib/format_linux_common.h
27 ++++ b/lib/format_linux_common.h
28 +@@ -44,6 +44,7 @@
29 + #include <netpacket/packet.h>
30 + #include <net/ethernet.h>
31 + #include <net/if_arp.h>
32 ++#include <linux/sockios.h>
33 +
34 + #include <net/if.h>
35 + #include <sys/ioctl.h>
36
37 diff --git a/net-libs/libtrace/libtrace-4.0.9_p1-r1.ebuild b/net-libs/libtrace/libtrace-4.0.9_p1-r1.ebuild
38 new file mode 100644
39 index 00000000000..84bdf221362
40 --- /dev/null
41 +++ b/net-libs/libtrace/libtrace-4.0.9_p1-r1.ebuild
42 @@ -0,0 +1,61 @@
43 +# Copyright 1999-2019 Gentoo Authors
44 +# Distributed under the terms of the GNU General Public License v2
45 +
46 +EAPI=7
47 +inherit autotools
48 +
49 +DESCRIPTION="A library and tools for trace processing"
50 +HOMEPAGE="https://research.wand.net.nz/software/libtrace.php"
51 +SRC_URI="https://github.com/${PN^}Team/${PN}/archive//${PV/_p/-}.tar.gz -> ${P}.tar.gz"
52 +
53 +LICENSE="LGPL-3"
54 +SLOT="0"
55 +KEYWORDS="~amd64 ~x86"
56 +IUSE="doc ncurses numa static-libs"
57 +
58 +RDEPEND="
59 + >=net-libs/libpcap-0.8
60 + dev-libs/libyaml
61 + dev-libs/openssl:0=
62 + net-libs/wandio
63 + ncurses? ( sys-libs/ncurses:0= )
64 + numa? ( sys-process/numactl )
65 +"
66 +DEPEND="
67 + ${RDEPEND}
68 + app-doc/doxygen
69 + sys-devel/flex
70 + virtual/os-headers
71 + virtual/pkgconfig
72 + virtual/yacc
73 +"
74 +PATCHES=(
75 + "${FILESDIR}"/${PN}-3.0.20-autoconf-1.13.patch
76 + "${FILESDIR}"/${PN}-4.0.0-no-examples.patch
77 + "${FILESDIR}"/${PN}-4.0.0-with-numa.patch
78 + "${FILESDIR}"/${PN}-4.0.9_p1-tinfo.patch
79 + "${FILESDIR}"/${PN}-4.0.9_p1-SIOCGSTAMP.patch
80 +)
81 +S=${WORKDIR}/${P/_p/-}
82 +
83 +src_prepare() {
84 + default
85 +
86 + eautoreconf
87 +}
88 +
89 +src_configure() {
90 + econf \
91 + $(use_enable static-libs static) \
92 + $(use_with ncurses) \
93 + $(use_with numa) \
94 + --with-man
95 +}
96 +
97 +src_install() {
98 + default
99 +
100 + use doc && dodoc -r docs/doxygen/html
101 +
102 + find "${D}" -name "*.la" -delete || die
103 +}