Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 503628 - dev-libs/jemalloc Convert to multilib
Summary: dev-libs/jemalloc Convert to multilib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2014-03-06 14:31 UTC by Brian Evans (RETIRED)
Modified: 2014-03-10 16:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
jemalloc-3.4.0-r1.ebuild (jemalloc-3.4.0-r1.ebuild,1.31 KB, text/plain)
2014-03-06 14:31 UTC, Brian Evans (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Evans (RETIRED) gentoo-dev 2014-03-06 14:31:26 UTC
Created attachment 371868 [details]
jemalloc-3.4.0-r1.ebuild

Please update dev-libs/jemalloc to multilib.

Attached is my attempt at a multilib ebuild
Comment 1 Jory A. Pratt gentoo-dev 2014-03-06 14:47:46 UTC
(In reply to Brian Evans from comment #0)
> Created attachment 371868 [details]
> jemalloc-3.4.0-r1.ebuild
> 
> Please update dev-libs/jemalloc to multilib.
> 
> Attached is my attempt at a multilib ebuild

Please provide diffs. They speed up your bug being resolved.
Comment 2 Brian Evans (RETIRED) gentoo-dev 2014-03-06 15:18:32 UTC
Here is the diff.

--- jemalloc-3.4.0.ebuild	2013-09-24 18:51:43.000000000 -0400
+++ jemalloc-3.4.0-r1.ebuild	2014-03-06 09:36:13.650701603 -0500
@@ -1,10 +1,10 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/jemalloc/jemalloc-3.4.0.ebuild,v 1.1 2013/09/24 22:51:43 anarchy Exp $
+# $Header: $
 
-EAPI=4
+EAPI=5
 
-inherit autotools eutils
+inherit autotools-multilib eutils
 
 DESCRIPTION="Jemalloc is a general-purpose scalable concurrent allocator"
 HOMEPAGE="http://www.canonware.com/jemalloc/"
@@ -15,25 +15,24 @@
 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~x86 ~x64-macos"
 IUSE="debug static-libs stats"
 
-src_prepare() {
-	epatch \
-		"${FILESDIR}/${PN}-3.0.0-strip-optimization.patch" \
-		"${FILESDIR}/${PN}-3.0.0-no-pprof.patch" \
-		"${FILESDIR}/${PN}-3.0.0_fix_html_install.patch" \
-		"${FILESDIR}/${PN}-fix-ar-call.patch"
-
-	eautoreconf
-}
-
-src_configure() {
-	econf \
-		$(use_enable debug) \
-		$(use_enable stats)
-}
+HTML_DOCS=( doc/jemalloc.html )
+PATCHES=(
+	"${FILESDIR}/${PN}-3.0.0-strip-optimization.patch"
+	"${FILESDIR}/${PN}-3.0.0-no-pprof.patch"
+	"${FILESDIR}/${PN}-3.0.0_fix_html_install.patch"
+	"${FILESDIR}/${PN}-fix-ar-call.patch"
+)
+MULTILIB_WRAPPED_HEADERS=( /usr/include/jemalloc/jemalloc_defs.h )
+# Silence warning from enable/disable shared/static added by autotools-utils_src_configure
+QA_CONFIGURE_OPTIONS=".*shared .*static"
+
+myeconfargs=(
+	$(use_enable debug)
+	$(use_enable stats)
+)
 
 src_install() {
-	default
-	dohtml doc/jemalloc.html
+	autotools-multilib_src_install
 
 	if [[ ${CHOST} == *-darwin* ]] ; then
 		# fixup install_name, #437362
Comment 3 Ian Stakenvicius (RETIRED) gentoo-dev 2014-03-10 16:30:26 UTC
+*jemalloc-3.5.1-r1 (10 Mar 2014)
+
+  10 Mar 2014; Ian Stakenvicius (_AxS_) <axs@gentoo.org>
+  +jemalloc-3.5.1-r1.ebuild:
+  added multilib-build version (bug 503628), thanks to grknight
+