Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87322 - gmemusage (new ebuild)
Summary: gmemusage (new ebuild)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://www.reptilelabour.com/software...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2005-03-30 12:48 UTC by Federico Ferri (RETIRED)
Modified: 2007-10-28 16:01 UTC (History)
2 users (show)

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


Attachments
Apply this patch if source doesn't compile (gmemusage-0.2-patch0.diff,1.59 KB, patch)
2005-03-30 13:05 UTC, Federico Ferri (RETIRED)
Details | Diff
A unified diff of the above two issues. (gmemusage-0.2-gentoo.patch,2.99 KB, patch)
2005-09-16 04:10 UTC, Tres 'RiverRat' Melton
Details | Diff
The ebuild (gmemusage-0.2.ebuild,849 bytes, text/plain)
2005-09-16 06:05 UTC, Tres 'RiverRat' Melton
Details
An updated ebuild. (gmemusage-0.2.ebuild,963 bytes, text/plain)
2005-09-16 17:38 UTC, Tres 'RiverRat' Melton
Details
emerge --info for the AMD64 (emerge-info-amd64,3.00 KB, text/plain)
2005-09-16 17:39 UTC, Tres 'RiverRat' Melton
Details
emerge --info for the x86 (emerge-info-x86,2.94 KB, text/plain)
2005-09-16 17:39 UTC, Tres 'RiverRat' Melton
Details
gmemusage-0.2.ebuild (gmemusage-0.2.ebuild,969 bytes, text/plain)
2005-09-16 22:57 UTC, Tres 'RiverRat' Melton
Details
gmemusage-0.2.ebuild (gmemusage-0.2.ebuild,1.17 KB, text/plain)
2005-09-18 00:01 UTC, Chris White (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Federico Ferri (RETIRED) gentoo-dev 2005-03-30 12:48:26 UTC
Gmemusage is a small X application written by Raju Mathur, which displays the relative proportions of memory in use by running processes.
He has been attempting to emulate a monitor (also called gmemusage) which is used on Silicon Graphics workstations.

Reproducible: Always
Steps to Reproduce:
# make
(maybe you have to fix util.c, adding a #include <string.h> on top of the file)
Comment 1 Federico Ferri (RETIRED) gentoo-dev 2005-03-30 13:05:49 UTC
Created attachment 54873 [details, diff]
Apply this patch if source doesn't compile

Here are the changes i made.

WARNING: i added a pair of strdup(str); ... free(str_); because of a
const/notconst compiling issue. sorry for the dirty work, but i can't do better
:p
Comment 2 Tres 'RiverRat' Melton 2005-09-16 04:10:34 UTC
Created attachment 68571 [details, diff]
A unified diff of the above two issues.

This gets a clean compile here.  (ebuild coming)
Comment 3 Tres 'RiverRat' Melton 2005-09-16 06:05:54 UTC
Created attachment 68578 [details]
The ebuild

This builds and runs cleanly on ~amd64.  It still needs a proper digest with
md5s coming from the author.
Comment 4 Tres 'RiverRat' Melton 2005-09-16 17:38:54 UTC
Created attachment 68624 [details]
An updated ebuild.

This is an updated ebuild that works on AMD64 and installs and runs on x86 but
won't display due to a lack of opengl support in the ancient Pentium II that I
tested it on.  Following is the emerge --info for the two machines.
Comment 5 Tres 'RiverRat' Melton 2005-09-16 17:39:31 UTC
Created attachment 68625 [details]
emerge --info for the AMD64
Comment 6 Tres 'RiverRat' Melton 2005-09-16 17:39:51 UTC
Created attachment 68626 [details]
emerge --info for the x86
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2005-09-16 18:11:09 UTC
Please, put the version into attachment description...
Comment 8 Tres 'RiverRat' Melton 2005-09-16 22:57:45 UTC
Created attachment 68642 [details]
gmemusage-0.2.ebuild

This is an updated ebuild, well the description is any way, for the gmemusage
package.  Jakub requested that but he also crossed out the emerge --info
attachments in comments 5 & 6 and I don't know what he wants instead.  Anyway,
here goes.
Comment 9 Chris White (RETIRED) gentoo-dev 2005-09-18 00:01:11 UTC
Created attachment 68714 [details]
gmemusage-0.2.ebuild
Comment 10 Chris White (RETIRED) gentoo-dev 2005-09-18 00:04:01 UTC
Ok, here's a nice diff breakdown: 
 
-RDEPEND="virtual/x11 
-       virtual/opengl" 
+RDEPEND="media-libs/glut 
+               virtual/x11 
+               virtual/opengl" 
 
media-libs/glut is needed or it doesn't compile. 
 
 src_unpack() { 
        unpack ${A} 
+       cd "${S}" 
        epatch ${FILESDIR}/${P}-gentoo.patch || die "patch failed" 
 
the current working directory of unpack isn't ${S}, so we need to be in there. 
 
+ 
+       # custom cflags... 
+       # multi-lib fix... 
+       sed -i \ 
+               -e "s:^CFLAGS.*:CFLAGS = ${CFLAGS} -DLINUX:g" \ 
+               -e "s:^LIBS    =  -L/usr/X11R6/lib:LIBS = 
-L/usr/X11R6/$(get_libdir):g" \ 
+               Makefile || die "sed-ing failed" 
 
Some fixes here for custom CFLAGS and $(get_libdir)'ed library directory. 
 
-       dodoc README COPYING 
+       dodoc README 
 
don't need COPYING 
 
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2007-10-28 16:01:24 UTC
Last release is from 1999 and while it builds with warnings using patch attached, it doesn't function properly (only draws a black box to left, nothing like what is shown in screenshot at upstream page)