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)
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
Created attachment 68571 [details, diff] A unified diff of the above two issues. This gets a clean compile here. (ebuild coming)
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.
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.
Created attachment 68625 [details] emerge --info for the AMD64
Created attachment 68626 [details] emerge --info for the x86
Please, put the version into attachment description...
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.
Created attachment 68714 [details] gmemusage-0.2.ebuild
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
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)