Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34546 - New Ebuild for ccmalloc (ccmalloc-0.4.0)
Summary: New Ebuild for ccmalloc (ccmalloc-0.4.0)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2003-11-27 13:13 UTC by Darryl Bleau
Modified: 2004-11-10 00:43 UTC (History)
1 user (show)

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


Attachments
New ccmalloc ebuild (ccmalloc-0.4.0.ebuild,972 bytes, text/plain)
2003-11-27 13:14 UTC, Darryl Bleau
Details
initial ccmalloc Changelog (ChangeLog,405 bytes, text/plain)
2003-11-27 13:15 UTC, Darryl Bleau
Details
New ebuild to overcome ccmalloc prefix issues (ccmalloc-0.4.0.ebuild,1.32 KB, text/plain)
2003-11-27 14:56 UTC, Darryl Bleau
Details
new ebuild: make install dir a variable (ccmalloc-0.4.0.ebuild,1.35 KB, text/plain)
2003-11-27 15:10 UTC, Darryl Bleau
Details
fix version number in changelog (ChangeLog,405 bytes, text/plain)
2003-11-27 15:12 UTC, Darryl Bleau
Details
more correct ebuild (ccmalloc-0.4.0.ebuild,1.36 KB, text/plain)
2004-01-09 16:00 UTC, Darryl Bleau
Details
Another ebuild attempt (ccmalloc-0.4.0.ebuild,1.05 KB, text/plain)
2004-07-20 17:48 UTC, Christian Adaker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Darryl Bleau 2003-11-27 13:13:44 UTC
ccmalloc not in portage! sacrilege!
Comment 1 Darryl Bleau 2003-11-27 13:14:51 UTC
Created attachment 21381 [details]
New ccmalloc ebuild

This is my first ebuild.. tested here, seems to build and function fine!
Comment 2 Darryl Bleau 2003-11-27 13:15:23 UTC
Created attachment 21382 [details]
initial ccmalloc Changelog
Comment 3 Darryl Bleau 2003-11-27 13:19:24 UTC
Comment on attachment 21382 [details]
initial ccmalloc Changelog

># ChangeLog for dev-libs/ccmalloc
># Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
># $Header: /home/cvsroot/gentoo-x86/dev-libs/ccmalloc/ChangeLog,v 1.0 2003/11/27 13:32:49 noone Exp $
>
>*ccmalloc-0.4.0 (27 Nov 2003)
>
>  27 Nov 2003; Darryl Bleau <darrylbleau@submersion.com> ChangeLog, ccmalloc-0.4.0.ebuild:
>  New ebuild for ccmalloc 0.4.0, easy tool to find memory problems.
Comment 4 Darryl Bleau 2003-11-27 13:21:23 UTC
Comment on attachment 21381 [details]
New ccmalloc ebuild

># $Header: /home/cvsroot/gentoo-x86/dev-libs/ccmalloc/ccmalloc-0.4.0.ebuild,v 1.0 2003/11/27 13:06:01 noone Exp $
>
>DESCRIPTION="Easy to use memory checking library"
>SRC_URI="http://www.inf.ethz.ch/personal/biere/projects/ccmalloc/${P}.tar.gz"
>HOMEPAGE="http://www.inf.ethz.ch/personal/biere/projects/ccmalloc/"
>
>IUSE=""
>SLOT="0"
>LICENSE="GPL-2"
>KEYWORDS="~amd64 ~x86"
>
>DEPEND="virtual/glibc"
>
>src_compile() {
>	./configure --prefix=${D}/usr/local
>}
>
>src_install() {
>	dodoc BUGS FEATURES INSTALL LICENSE NEWS README TODO USAGE VERSION
>	make prefix=${D}/usr/local install
>}
>
>pkg_postinst() {
>	ewarn "****************************************************************"
>	ewarn " You should copy 'ccmalloc.cfg' as '.ccmalloc' to your project  "
>	ewarn " directory and read it carefully.                               "
>	ewarn " ccmalloc.cfg is in /usr/local/share/ccmalloc/                  "    
>	ewarn "****************************************************************"
>}
Comment 5 Darryl Bleau 2003-11-27 13:58:27 UTC
This ebuild isn't going to work. It installed, and appeared to function, but there is a fatal flaw.

ccmalloc uses the --prefix sent to the configure script in the Makefile. So, if you set --prefix=${D}/usr/local like I did, the makefile will put everything in the right place but ccmalloc itself will be looking in the workdir for live running. Probably not good.

I'm pondering a way to fix this.. but I'm not exactly an ebuild expert, though I've read over a few and read the howto.. so I can pretend. Any help here?
Comment 6 Darryl Bleau 2003-11-27 14:56:39 UTC
Created attachment 21384 [details]
New ebuild to overcome ccmalloc prefix issues

Basically, I had a look through the makefile and I do some of the building by
hand. I've testing emerging and unemerging on three boxes, as well as actually
using the program. I don't know if this is the _preferred_ way of overcoming
such problems, but it does seem to work. Makes the ebuild dependant on the
original package, which may or may not be a good idea. Anyway, there it is.
Works for me, so far.
Comment 7 Darryl Bleau 2003-11-27 15:10:57 UTC
Created attachment 21385 [details]
new ebuild: make install dir a variable

tested on a few more systems, still works, just thought I'd clean it up a bit
by making an INST_DIR variable. This should be the last one :)
Comment 8 Darryl Bleau 2003-11-27 15:12:12 UTC
Created attachment 21386 [details]
fix version number in changelog
Comment 9 Luca Barbato gentoo-dev 2003-12-29 08:05:56 UTC
there is something wrong in your ebuild:
1 in src_compile you should build everything you need
2 in the src_install you should NOT build anything, you just install in ${D}
3 Is there a reason to make prefix different from /usr ?

please refer to the skel.ebuild in /usr/portage and
http://dev.gentoo.org/~liquidx/ebuildmistakes.html
Comment 10 Darryl Bleau 2004-01-09 16:00:03 UTC
Created attachment 23521 [details]
more correct ebuild

I think this is more correct? I also changed the $Header part as per liquidx's
page. Tested, builds and runs on x86 and amd64 (I only have those two platforms
to test on).
Comment 11 Darryl Bleau 2004-01-09 16:01:26 UTC
Do I also need to put a DEPEND for sed and make?
Comment 12 Luca Barbato gentoo-dev 2004-02-24 09:58:16 UTC
You should add gcc as DEPEND and just have glibc as RDEPEND.

another questiong is why you aren't using the configure scripts provided in the package and issue just a make install .

Sorry for the delay but was busy with exams
Comment 13 Darryl Bleau 2004-02-25 10:54:19 UTC
I didn't use the make install script as per comment 5 and 6. I'm not sure how else to solve the problem. Is there a better way? Maybe I'm missing something.
Comment 14 Luca Barbato gentoo-dev 2004-02-25 23:51:37 UTC
you configure with the prefix=/usr and then you make DESTDIR=${D}/usr or make prefix=${D}/usr

you can use our wrapper econf and einstall

Comment 15 Christian Adaker 2004-07-20 17:48:04 UTC
Created attachment 35844 [details]
Another ebuild attempt

This looks a bit cleaner. Normal econf and einstall don't seem to work, since
this is a non-standard configuration script.

I'm not an ebuild expert, so don't kill me if there is some missing DEPEND or
anything.
Comment 16 David Holm (RETIRED) gentoo-dev 2004-11-10 00:43:20 UTC
Thank you for the ebuild. I have added a slightly modified one to portage.