Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107544 - Ebuild for Google Performance Tools.
Summary: Ebuild for Google Performance Tools.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://goog-perftools.sourceforge.net/
Whiteboard:
Keywords: EBUILD
: 140206 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-28 14:40 UTC by Chandler Carruth
Modified: 2009-11-27 13:05 UTC (History)
9 users (show)

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


Attachments
dev-utils/google-perftools-0.3.ebuild (google-perftools-0.3.ebuild,432 bytes, text/plain)
2005-09-28 14:42 UTC, Chandler Carruth
Details
dev-utils/google-perftools-0.3.ebuild (google-perftools-0.3.ebuild,920 bytes, text/plain)
2005-09-28 23:20 UTC, Chandler Carruth
Details
google-perftools-0.3-fixdocs.patch (google-perftools-0.3-fixdocs.patch,2.67 KB, patch)
2005-09-28 23:23 UTC, Chandler Carruth
Details | Diff
dev-utils/google-perftools-1.0.ebuild (google-perftools-1.0.ebuild,546 bytes, text/plain)
2009-01-07 21:40 UTC, toogle
Details
patch against linuxthreads.c (google-perftools-0.97-dirent.patch,556 bytes, patch)
2009-02-19 12:49 UTC, Dawid Węgliński (RETIRED)
Details | Diff
Fixed ebuild (google-perftools-0.97.ebuild,648 bytes, text/plain)
2009-02-19 12:50 UTC, Dawid Węgliński (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chandler Carruth 2005-09-28 14:40:15 UTC
This package contains three tools. It provides the tcmalloc library which is a
more efficient malloc library for heavily threaded and template-driven programs.
It also provides a library and tool to do CPU and memory profiling. This ebuild
simply installs these tools as provided by the google-perftools project.

An outstanding issue: should components be selectable by USE flags? or should
components be installed in seperate ebuilds to allow (for instance) the tcmalloc
library to be listed as a dependency?

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Chandler Carruth 2005-09-28 14:42:50 UTC
Created attachment 69438 [details]
dev-utils/google-perftools-0.3.ebuild

Here is the simple ebuild I made... any changes that need to be made i will be
happy to address.
Comment 2 Ciaran McCreesh 2005-09-28 16:21:06 UTC
Please fix the following and reopen:

* SLOT is mandatory
* http://dev.gentoo.org/~ciaranm/docs/mw-faq/redundant.txt (src_compile)
* http://dev.gentoo.org/~ciaranm/docs/mw-faq/einstall.txt
* http://dev.gentoo.org/~ciaranm/docs/mw-faq/docfiles.txt
Comment 3 Chandler Carruth 2005-09-28 23:20:57 UTC
Created attachment 69455 [details]
dev-utils/google-perftools-0.3.ebuild
Comment 4 Chandler Carruth 2005-09-28 23:21:16 UTC
Ok. I spent some serious time with this, because I realized how sloppilly i had
put that first ebuild together. This ebuild has a number of improvements,
including (I hope) the ones mentioned above.

SLOT is now in there, of course, and I am using the preferred install method.

However, the src_compile() was present for a reason -- emake attempts to both
compile and run all the tests for the package. These tests do not all succeed,
or even come close, but not due to defect of the package that I can see.
Instead, by simply running "make" everything compiles without problem.

Also, I attempted to correct a huge mistake. The makefiles for this package
install the documentation to a nonstandard location. I have patched the make
files to prevent this, and provided correct doc installation commands and a use
flag to enable full html documenation installation.

I hope this moves the ebuild closer to an acceptable status. Please let me know
what further outstanding issues are present.
Comment 5 Chandler Carruth 2005-09-28 23:23:13 UTC
Created attachment 69458 [details, diff]
google-perftools-0.3-fixdocs.patch

this is the patch used...
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-07-18 01:48:40 UTC
*** Bug 140206 has been marked as a duplicate of this bug. ***
Comment 7 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2008-05-18 20:29:39 UTC
i have just added google-perftools to my overlay... no promises about mainline inclusion yet.

http://overlays.gentoo.org/dev/bangert/browser/ebuilds/
dev-util/google-perftools
Comment 8 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2008-05-24 07:29:51 UTC
just a note to anybody working on this:
google-perftools cant reach portage before pound has been fixed. pound will optionally link to tcmalloc, if it is available... no way to turn that off.

i am working on a fix for that...
Comment 9 toogle 2009-01-07 21:40:36 UTC
Created attachment 177714 [details]
dev-utils/google-perftools-1.0.ebuild

Compiled well on my amd64 box.
Comment 10 Dawid Węgliński (RETIRED) gentoo-dev 2009-02-19 12:49:23 UTC
Created attachment 182543 [details, diff]
patch against linuxthreads.c
Comment 11 Dawid Węgliński (RETIRED) gentoo-dev 2009-02-19 12:50:56 UTC
Created attachment 182544 [details]
Fixed ebuild

Add a sys-libs/libunwind build dependency and add a fix to build time.
Comment 12 Dawid Węgliński (RETIRED) gentoo-dev 2009-02-19 12:52:41 UTC
Bleh, feel free to keywords it ~amd64 since i marked it stable in my overlay just to not unmask it. :P
Comment 13 Brian Friday 2009-04-24 17:24:56 UTC
Was able to take the 0.97 ebuild, rename it 1.2, remove the patch call and compile the latest perftools for x86. 

Thought I would throw this in as a FYI for those interested.
Comment 14 Arne Brutschy 2009-07-07 10:02:29 UTC
(In reply to comment #13)
> Was able to take the 0.97 ebuild, rename it 1.2, remove the patch call and
> compile the latest perftools for x86. 
> 
> Thought I would throw this in as a FYI for those interested.
> 
Same here with 1.3 on x86. Should be dev-util/google-perftools-1.3.ebuild by the way, and not dev-utils.
Comment 15 Nico Schlömer 2009-08-03 07:36:24 UTC
FYI, it also works pretty fine here with 1.3 on amd64.

Cheers,
Nico
Comment 16 Scott 'me22' McMurray 2009-10-24 03:53:17 UTC
Glad to see the 1.4 of this in portage.

pprof has a number of modes that use app-text/gv, though, so there should be a use flag to pull that in as a dep.
Comment 17 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-11-27 13:05:37 UTC
me22: please open a new bug about the issue.
thanks