g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.2/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -DNDEBUG -DNO_DEBUG -O2 -mcpu=athlon-mp -O3 -pipe -fno-exceptions -fno-check-new -c -o call-graph.o `test -f 'call-graph.cpp' || echo './'`call-graph.cpp kprofwidget.cpp: In member function `void KProfWidget::selectListFont()': kprofwidget.cpp:300: error: `assert' undeclared (first use this function) kprofwidget.cpp:300: error: (Each undeclared identifier is reported only once for each function it appears in.) kprofwidget.cpp: In member function `void KProfWidget::applySettings()': kprofwidget.cpp:458: error: `assert' undeclared (first use this function) kprofwidget.cpp: In member function `void KProfWidget::loadSettings()': kprofwidget.cpp:475: error: `assert' undeclared (first use this function) make[2]: *** [kprofwidget.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/kprof-1.4.2/work/kprof-1.4.2/kprof'make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kprof-1.4.2/work/kprof-1.4.2' make: *** [all] Error 2 !!! ERROR: dev-util/kprof-1.4.2 failed. !!! Function kde_src_compile, Line 127, Exitcode 2 !!! died running emake, kde_src_compile:make
Created attachment 29095 [details, diff] patches kprofwidget.cpp This patch adds an #include <assert.h> statement to kprofwidget.cpp so that kprof compiles without errors
Created attachment 29097 [details] new ebuild which applies patch The original ebuild plus a line to apply the assert-patch
Thanks for the patch. Should it be <cassert> rather than <assert.h> ?
Created attachment 30878 [details, diff] Alternate patch to provide assert by including <cassert>
Created attachment 30879 [details] Alternate ebuild to use the "include_cassert.patch"
Created attachment 30880 [details] Alternate ebuild to use the "include_cassert.patch" (with some cleanups)
Merc: Use emake instead of make. When overriding a inherited function, call it. In this case it would be "kde_src_compile all". Patches should be applied in src_unpack. The ebuild header is invalid >> http://www.gentoo.org/doc/en/ebuild-mistakes.xml
Created attachment 30965 [details] kprof-1.4.2.ebuild
committed :)