Gentoo Archives: gentoo-commits

From: Jory Pratt <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/mozilla:master commit in: dev-libs/jemalloc/files/, dev-libs/jemalloc/
Date: Mon, 29 May 2017 06:21:11
Message-Id: 1496038857.4f21dc4d091602bf6f02636814dc87e8a8e2ca6b.anarchy@gentoo
1 commit: 4f21dc4d091602bf6f02636814dc87e8a8e2ca6b
2 Author: Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 29 06:20:57 2017 +0000
4 Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
5 CommitDate: Mon May 29 06:20:57 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=4f21dc4d
7
8 dev-libs/jemalloc: Upstream bug fixes, rediff patches to apply cleanly
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 dev-libs/jemalloc/Manifest | 2 +-
13 .../files/jemalloc-3.5.1-strip-optimization.patch | 27 -----------------
14 .../files/jemalloc-3.5.1_fix_html_install.patch | 12 --------
15 .../files/jemalloc-4.5.0-fix_html_install.patch | 25 ++++++++++++++++
16 .../files/jemalloc-4.5.0-strip-optimization.patch | 35 ++++++++++++++++++++++
17 ...jemalloc-4.4.0.ebuild => jemalloc-4.5.0.ebuild} | 6 ++--
18 dev-libs/jemalloc/metadata.xml | 17 +++++++++++
19 7 files changed, 81 insertions(+), 43 deletions(-)
20
21 diff --git a/dev-libs/jemalloc/Manifest b/dev-libs/jemalloc/Manifest
22 index 6489b88..3e9ded5 100644
23 --- a/dev-libs/jemalloc/Manifest
24 +++ b/dev-libs/jemalloc/Manifest
25 @@ -1 +1 @@
26 -DIST jemalloc-4.4.0.tar.bz2 440144 SHA256 a7aea63e9718d2f1adf81d87e3df3cb1b58deb86fc77bad5d702c4c59687b033 SHA512 2f88fb17ede3bf87e334e9c80949870e0dd85b5adcdd89a1750ccf6df5240f35293159ac0a360d3a29cf0b1d17edf86dcc7997c6bf3190ae7da7442d3a3cc14e WHIRLPOOL 1485ce6cf08ee2233117e281d1a61f376d2b6c73f28c68f2cc1956471bcb56a4eef045c0011de141b669d94d7339de5e79860f6b21bfbeffab821d5eb528759c
27 +DIST jemalloc-4.5.0.tar.bz2 449992 SHA256 9409d85664b4f135b77518b0b118c549009dc10f6cba14557d170476611f6780 SHA512 76953363fe1007952232220afa1a91da4c1c33c02369b5ad239d8dd1d0792141197c15e8489a8f4cd301b08494e65cadd8ecd34d025cb0285700dd78d7248821 WHIRLPOOL 33dc51258d6d27942b656fc355cdde24becf0cd50a507375dd51b2fa6c55a6444ff21bcdae0ebe4fae8d2e95fa31989f5cf8bd435a7a59385ebb225a0a4441fe
28
29 diff --git a/dev-libs/jemalloc/files/jemalloc-3.5.1-strip-optimization.patch b/dev-libs/jemalloc/files/jemalloc-3.5.1-strip-optimization.patch
30 deleted file mode 100644
31 index cc8736b..0000000
32 --- a/dev-libs/jemalloc/files/jemalloc-3.5.1-strip-optimization.patch
33 +++ /dev/null
34 @@ -1,27 +0,0 @@
35 -diff -urN a/configure.ac b/configure.ac
36 ---- a/configure.ac 2014-02-25 18:49:15.000000000 -0600
37 -+++ b/configure.ac 2014-03-07 18:19:53.718147847 -0600
38 -@@ -639,23 +639,6 @@
39 - AC_DEFINE([JEMALLOC_IVSALLOC], [ ])
40 - fi
41 -
42 --dnl Only optimize if not debugging.
43 --if test "x$enable_debug" = "x0" -a "x$no_CFLAGS" = "xyes" ; then
44 -- dnl Make sure that an optimization flag was not specified in EXTRA_CFLAGS.
45 -- optimize="no"
46 -- echo "$CFLAGS $EXTRA_CFLAGS" | grep '\-O' >/dev/null || optimize="yes"
47 -- if test "x${optimize}" = "xyes" ; then
48 -- if test "x$GCC" = "xyes" ; then
49 -- JE_CFLAGS_APPEND([-O3])
50 -- JE_CFLAGS_APPEND([-funroll-loops])
51 -- elif test "x$je_cv_msvc" = "xyes" ; then
52 -- JE_CFLAGS_APPEND([-O2])
53 -- else
54 -- JE_CFLAGS_APPEND([-O])
55 -- fi
56 -- fi
57 --fi
58 --
59 - dnl Enable statistics calculation by default.
60 - AC_ARG_ENABLE([stats],
61 - [AS_HELP_STRING([--disable-stats],
62
63 diff --git a/dev-libs/jemalloc/files/jemalloc-3.5.1_fix_html_install.patch b/dev-libs/jemalloc/files/jemalloc-3.5.1_fix_html_install.patch
64 deleted file mode 100644
65 index 1ce5ad2..0000000
66 --- a/dev-libs/jemalloc/files/jemalloc-3.5.1_fix_html_install.patch
67 +++ /dev/null
68 @@ -1,12 +0,0 @@
69 -diff -urN a/Makefile.in b/Makefile.in
70 ---- a/Makefile.in 2014-02-25 18:49:15.000000000 -0600
71 -+++ b/Makefile.in 2014-03-07 18:26:23.074138895 -0600
72 -@@ -317,7 +317,7 @@
73 - install -m 644 $$d $(MANDIR)/man3; \
74 - done
75 -
76 --install_doc: install_doc_html install_doc_man
77 -+install_doc: install_doc_man
78 -
79 - install: install_bin install_include install_lib install_doc
80 -
81
82 diff --git a/dev-libs/jemalloc/files/jemalloc-4.5.0-fix_html_install.patch b/dev-libs/jemalloc/files/jemalloc-4.5.0-fix_html_install.patch
83 new file mode 100644
84 index 0000000..159702e
85 --- /dev/null
86 +++ b/dev-libs/jemalloc/files/jemalloc-4.5.0-fix_html_install.patch
87 @@ -0,0 +1,25 @@
88 +From c04d0b954adef2d3f1a30d91dc687f6a03b108eb Mon Sep 17 00:00:00 2001
89 +From:
90 +Date: Mon, 29 May 2017 00:58:32 -0500
91 +Subject: [PATCH 2/2] Do not install html doc
92 +
93 +---
94 + Makefile.in | 2 +-
95 + 1 file changed, 1 insertion(+), 1 deletion(-)
96 +
97 +diff --git a/Makefile.in b/Makefile.in
98 +index e49a871..733932a 100644
99 +--- a/Makefile.in
100 ++++ b/Makefile.in
101 +@@ -381,7 +381,7 @@ install_doc_man:
102 + $(INSTALL) -m 644 $$d $(MANDIR)/man3; \
103 + done
104 +
105 +-install_doc: install_doc_html install_doc_man
106 ++install_doc: install_doc_man
107 +
108 + install: install_bin install_include install_lib install_doc
109 +
110 +--
111 +2.13.0
112 +
113
114 diff --git a/dev-libs/jemalloc/files/jemalloc-4.5.0-strip-optimization.patch b/dev-libs/jemalloc/files/jemalloc-4.5.0-strip-optimization.patch
115 new file mode 100644
116 index 0000000..8b346be
117 --- /dev/null
118 +++ b/dev-libs/jemalloc/files/jemalloc-4.5.0-strip-optimization.patch
119 @@ -0,0 +1,35 @@
120 +From c568271163445e380679788388f1cb1edbdeaf88 Mon Sep 17 00:00:00 2001
121 +From:
122 +Date: Mon, 29 May 2017 00:57:15 -0500
123 +Subject: [PATCH 1/2] Strip all optimization, let portage handle.
124 +
125 +---
126 + configure.ac | 12 ------------
127 + 1 file changed, 12 deletions(-)
128 +
129 +diff --git a/configure.ac b/configure.ac
130 +index 20a8a64..d8af618 100644
131 +--- a/configure.ac
132 ++++ b/configure.ac
133 +@@ -851,18 +851,6 @@ if test "x$enable_ivsalloc" = "x1" ; then
134 + AC_DEFINE([JEMALLOC_IVSALLOC], [ ])
135 + fi
136 +
137 +-dnl Only optimize if not debugging.
138 +-if test "x$enable_debug" = "x0" ; then
139 +- if test "x$GCC" = "xyes" ; then
140 +- JE_CFLAGS_ADD([-O3])
141 +- JE_CFLAGS_ADD([-funroll-loops])
142 +- elif test "x$je_cv_msvc" = "xyes" ; then
143 +- JE_CFLAGS_ADD([-O2])
144 +- else
145 +- JE_CFLAGS_ADD([-O])
146 +- fi
147 +-fi
148 +-
149 + dnl Enable statistics calculation by default.
150 + AC_ARG_ENABLE([stats],
151 + [AS_HELP_STRING([--disable-stats],
152 +--
153 +2.13.0
154 +
155
156 diff --git a/dev-libs/jemalloc/jemalloc-4.4.0.ebuild b/dev-libs/jemalloc/jemalloc-4.5.0.ebuild
157 similarity index 91%
158 rename from dev-libs/jemalloc/jemalloc-4.4.0.ebuild
159 rename to dev-libs/jemalloc/jemalloc-4.5.0.ebuild
160 index d34d914..9f7906e 100644
161 --- a/dev-libs/jemalloc/jemalloc-4.4.0.ebuild
162 +++ b/dev-libs/jemalloc/jemalloc-4.5.0.ebuild
163 @@ -1,4 +1,4 @@
164 -# Copyright 1999-2016 Gentoo Foundation
165 +# Copyright 1999-2017 Gentoo Foundation
166 # Distributed under the terms of the GNU General Public License v2
167
168 EAPI=6
169 @@ -14,8 +14,8 @@ SLOT="0/2"
170 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~x86 ~amd64-linux ~x86-linux ~x64-macos"
171 IUSE="debug hardened static-libs stats"
172 HTML_DOCS=( doc/jemalloc.html )
173 -PATCHES=( "${FILESDIR}/${PN}-3.5.1-strip-optimization.patch"
174 - "${FILESDIR}/${PN}-3.5.1_fix_html_install.patch"
175 +PATCHES=( "${FILESDIR}/${PN}-4.5.0-strip-optimization.patch"
176 + "${FILESDIR}/${PN}-4.5.0-fix_html_install.patch"
177 )
178 MULTILIB_WRAPPED_HEADERS=( /usr/include/jemalloc/jemalloc.h )
179 # autotools-utils.eclass auto-adds configure options when static-libs is in IUSE
180
181 diff --git a/dev-libs/jemalloc/metadata.xml b/dev-libs/jemalloc/metadata.xml
182 new file mode 100644
183 index 0000000..d376e50
184 --- /dev/null
185 +++ b/dev-libs/jemalloc/metadata.xml
186 @@ -0,0 +1,17 @@
187 +<?xml version='1.0' encoding='UTF-8'?>
188 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
189 +<pkgmetadata>
190 + <maintainer type="project">
191 + <email>mozilla@g.o</email>
192 + <name>Gentoo Mozilla Team</name>
193 + </maintainer>
194 + <longdescription lang="en">
195 + Jemalloc is a general-purpose scalable concurrent allocator
196 + </longdescription>
197 + <use>
198 + <flag name="stats">Enable statistics calculation/reporting</flag>
199 + </use>
200 + <upstream>
201 + <remote-id type="github">jemalloc/jemalloc</remote-id>
202 + </upstream>
203 +</pkgmetadata>