Gentoo Archives: gentoo-commits

From: Richard Farina <zerochaos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/wireshark/
Date: Thu, 28 Jun 2018 14:43:19
Message-Id: 1530196985.93e113d4477dccfc195947272eeb76cc6e9d42ef.zerochaos@gentoo
1 commit: 93e113d4477dccfc195947272eeb76cc6e9d42ef
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 13 06:51:23 2018 +0000
4 Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 28 14:43:05 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93e113d4
7
8 net-analyzer/wireshark: Fix install to avoid calling doins per-file
9
10 Call doins per-directory rather than per-file. doins accept multiple
11 arguments, so it's entirely silly to iterate and call it separately
12 for each file; not to mention that thanks to new Python implementation
13 in Portage it is veeeeery slow. This patch reduces install time by
14 around 10 minutes.
15
16 Closes: https://bugs.gentoo.org/656834
17
18 net-analyzer/wireshark/wireshark-2.6.1.ebuild | 41 +++++++++++----------------
19 1 file changed, 17 insertions(+), 24 deletions(-)
20
21 diff --git a/net-analyzer/wireshark/wireshark-2.6.1.ebuild b/net-analyzer/wireshark/wireshark-2.6.1.ebuild
22 index b9152684e6e..efde4f468e8 100644
23 --- a/net-analyzer/wireshark/wireshark-2.6.1.ebuild
24 +++ b/net-analyzer/wireshark/wireshark-2.6.1.ebuild
25 @@ -176,31 +176,24 @@ src_install() {
26 dodoc AUTHORS ChangeLog NEWS README* doc/randpkt.txt doc/README*
27
28 # install headers
29 - local wsheader
30 - for wsheader in \
31 - epan/*.h \
32 - epan/crypt/*.h \
33 - epan/dfilter/*.h \
34 - epan/dissectors/*.h \
35 - epan/ftypes/*.h \
36 - epan/wmem/*.h \
37 - wiretap/*.h \
38 - ws_diag_control.h \
39 - ws_symbol_export.h \
40 - wsutil/*.h
41 - do
42 - echo "Installing ${wsheader}"
43 - insinto /usr/include/wireshark/$( dirname ${wsheader} )
44 - doins ${wsheader}
45 - done
46 -
47 - for wsheader in \
48 - ../${P}_build/config.h \
49 - ../${P}_build/version.h
50 + insinto /usr/include/wireshark
51 + doins ws_diag_control.h ws_symbol_export.h \
52 + "${BUILD_DIR}"/config.h "${BUILD_DIR}"/version.h
53 +
54 + local dir dirs=(
55 + epan
56 + epan/crypt
57 + epan/dfilter
58 + epan/dissectors
59 + epan/ftypes
60 + epan/wmem
61 + wiretap
62 + wsutil
63 + )
64 + for dir in "${dirs[@]}"
65 do
66 - echo "Installing ${wsheader}"
67 - insinto /usr/include/wireshark
68 - doins ${wsheader}
69 + insinto /usr/include/wireshark/${dir}
70 + doins ${dir}/*.h
71 done
72
73 #with the above this really shouldn't be needed, but things may be looking