Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/sparsehash/, dev-cpp/sparsehash/files/
Date: Mon, 04 Sep 2017 09:56:17
Message-Id: 1504518945.953d20e666f14423bd3f88dad41539a6441927a7.soap@gentoo
1 commit: 953d20e666f14423bd3f88dad41539a6441927a7
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 4 09:55:28 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 4 09:55:45 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=953d20e6
7
8 dev-cpp/sparsehash: Remove automagic dep on google-perftools
9
10 Closes: https://bugs.gentoo.org/show_bug.cgi?id=585968
11 Package-Manager: Portage-2.3.8, Repoman-2.3.3
12
13 .../files/sparsehash-2.0.3-fix-buildsystem.patch | 71 ++++++++++++++++++++++
14 .../files/sparsehash-2.0.3-fix-docdir.patch | 21 -------
15 ...ash-2.0.3.ebuild => sparsehash-2.0.3-r1.ebuild} | 2 +-
16 3 files changed, 72 insertions(+), 22 deletions(-)
17
18 diff --git a/dev-cpp/sparsehash/files/sparsehash-2.0.3-fix-buildsystem.patch b/dev-cpp/sparsehash/files/sparsehash-2.0.3-fix-buildsystem.patch
19 new file mode 100644
20 index 00000000000..237719c3b9f
21 --- /dev/null
22 +++ b/dev-cpp/sparsehash/files/sparsehash-2.0.3-fix-buildsystem.patch
23 @@ -0,0 +1,71 @@
24 +* Do not override $(docdir) as part of the GNU conventions
25 +* Do not install 'COPYING' and 'INSTALL'
26 +* Install html files using html_ prefix and not doc_ prefix
27 +* Do not try to link against tcmalloc, the complexity of juggling
28 + the options around isn't worth it
29 +Bug: https://bugs.gentoo.org/show_bug.cgi?id=585968
30 +
31 +--- a/configure.ac
32 ++++ b/configure.ac
33 +@@ -9,7 +9,7 @@
34 + # (for sanity checking)
35 + AC_CONFIG_SRCDIR(README)
36 + AM_INIT_AUTOMAKE([dist-zip])
37 +-AM_CONFIG_HEADER(src/config.h)
38 ++AC_CONFIG_HEADERS([src/config.h])
39 +
40 + # Checks for programs.
41 + AC_PROG_CXX
42 +@@ -28,23 +28,7 @@
43 + # These are 'only' needed for unittests
44 + AC_CHECK_HEADERS(sys/resource.h unistd.h sys/time.h sys/utsname.h)
45 +
46 +-# If you have google-perftools installed, we can do a bit more testing.
47 +-# We not only want to set HAVE_MALLOC_EXTENSION_H, we also want to set
48 +-# a variable to let the Makefile to know to link in tcmalloc.
49 + AC_LANG([C++])
50 +-AC_CHECK_HEADERS(google/malloc_extension.h,
51 +- tcmalloc_libs=-ltcmalloc,
52 +- tcmalloc_libs=)
53 +-# On some systems, when linking in tcmalloc you also need to link in
54 +-# pthread. That's a bug somewhere, but we'll work around it for now.
55 +-tcmalloc_flags=""
56 +-if test -n "$tcmalloc_libs"; then
57 +- ACX_PTHREAD
58 +- tcmalloc_flags="\$(PTHREAD_CFLAGS)"
59 +- tcmalloc_libs="$tcmalloc_libs \$(PTHREAD_LIBS)"
60 +-fi
61 +-AC_SUBST(tcmalloc_flags)
62 +-AC_SUBST(tcmalloc_libs)
63 +
64 + # Figure out where hash_map lives and also hash_fun.h (or stl_hash_fun.h).
65 + # This also tells us what namespace hash code lives in.
66 +--- a/Makefile.am
67 ++++ b/Makefile.am
68 +@@ -11,12 +11,11 @@
69 + AM_CXXFLAGS = -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow
70 + endif
71 +
72 +-docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
73 + ## This is for HTML and other documentation you want to install.
74 + ## Add your documentation files (in doc/) in addition to these boilerplate
75 + ## Also add a TODO file if you have one
76 +-dist_doc_DATA = AUTHORS COPYING ChangeLog INSTALL NEWS README README_windows.txt \
77 +- TODO \
78 ++dist_doc_DATA = AUTHORS ChangeLog NEWS README README_windows.txt TODO
79 ++dist_html_DATA = \
80 + doc/dense_hash_map.html \
81 + doc/dense_hash_set.html \
82 + doc/sparse_hash_map.html \
83 +@@ -182,11 +181,6 @@
84 + $(sparsehashinclude_HEADERS)
85 + nodist_time_hash_map_SOURCES = $(nodist_internalinclude_HEADERS)
86 +
87 +-# If tcmalloc is installed, use it with time_hash_map; it gives us
88 +-# heap-usage statistics for the hash_map routines, which is very nice
89 +-time_hash_map_CXXFLAGS = @tcmalloc_flags@ $(AM_CXXFLAGS)
90 +-time_hash_map_LDFLAGS = @tcmalloc_flags@
91 +-time_hash_map_LDADD = @tcmalloc_libs@
92 +
93 + ## ^^^^ END OF RULES TO MAKE THE LIBRARIES, BINARIES, AND UNITTESTS
94 +
95
96 diff --git a/dev-cpp/sparsehash/files/sparsehash-2.0.3-fix-docdir.patch b/dev-cpp/sparsehash/files/sparsehash-2.0.3-fix-docdir.patch
97 deleted file mode 100644
98 index 156a7266eaa..00000000000
99 --- a/dev-cpp/sparsehash/files/sparsehash-2.0.3-fix-docdir.patch
100 +++ /dev/null
101 @@ -1,21 +0,0 @@
102 -* Do not override $(docdir) as part of the GNU conventions
103 -* Do not install 'COPYING' and 'INSTALL'
104 -* Install html files using html_ prefix and not doc_ prefix
105 -
106 ---- a/Makefile.am
107 -+++ b/Makefile.am
108 -@@ -11,12 +11,11 @@
109 - AM_CXXFLAGS = -Wall -W -Wwrite-strings -Woverloaded-virtual -Wshadow
110 - endif
111 -
112 --docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
113 - ## This is for HTML and other documentation you want to install.
114 - ## Add your documentation files (in doc/) in addition to these boilerplate
115 - ## Also add a TODO file if you have one
116 --dist_doc_DATA = AUTHORS COPYING ChangeLog INSTALL NEWS README README_windows.txt \
117 -- TODO \
118 -+dist_doc_DATA = AUTHORS ChangeLog NEWS README README_windows.txt TODO
119 -+dist_html_DATA = \
120 - doc/dense_hash_map.html \
121 - doc/dense_hash_set.html \
122 - doc/sparse_hash_map.html \
123
124 diff --git a/dev-cpp/sparsehash/sparsehash-2.0.3.ebuild b/dev-cpp/sparsehash/sparsehash-2.0.3-r1.ebuild
125 similarity index 88%
126 rename from dev-cpp/sparsehash/sparsehash-2.0.3.ebuild
127 rename to dev-cpp/sparsehash/sparsehash-2.0.3-r1.ebuild
128 index 223e0ba7546..b043e1800ff 100644
129 --- a/dev-cpp/sparsehash/sparsehash-2.0.3.ebuild
130 +++ b/dev-cpp/sparsehash/sparsehash-2.0.3-r1.ebuild
131 @@ -16,7 +16,7 @@ IUSE=""
132
133 S=${WORKDIR}/${PN}-${P}
134
135 -PATCHES=( "${FILESDIR}"/${PN}-2.0.3-fix-docdir.patch )
136 +PATCHES=( "${FILESDIR}"/${PN}-2.0.3-fix-buildsystem.patch )
137
138 src_prepare() {
139 default