ports/50992: ports-bug: devel/kprof
Zako
hagerakko at geocities.co.jp
Tue Apr 15 15:00:33 UTC 2003
>Number: 50992
>Category: ports
>Synopsis: ports-bug: devel/kprof
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Tue Apr 15 08:00:30 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: zako
>Release: FreeBSD 5.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD bsd 5.0-RELEASE FreeBSD 5.0-RELEASE #1: Sat Apr 5
20:21:09 JST 2003 root at bsd:/usr/src/sys/i386/compile/mykernel i386
XFree86-4.2.0_1,1 XFree86-libraries-4.2.1_5
qt-3.0.5_5 kdelibs-3.0.5_1 kdebase-3.0.5
>Description:
Kprof-1.3.1 configure scripts can detect Qt treeview libs.
But if compiled without libqtreeview,it will not work because of
kprof's bug.
Kprof in packages-5.0/4.x causes null pointer assigns
when GNU prof output file was opened.
>How-To-Repeat:
open in kprof any files that created 'gprof -b gmon.out (or a.out.gmon)'.
>Fix:
add dependency for libqtreeview or patch to kprof sources.
--- kprof.patch begins here ---
diff -ruN kprof.org/Makefile kprof/Makefile
--- kprof.org/Makefile Fri Apr 11 21:59:48 2003
+++ kprof/Makefile Fri Apr 11 22:02:29 2003
@@ -8,6 +8,7 @@
PORTNAME= kprof
PORTVERSION= 1.3.1
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff -ruN kprof.org/files/patch-aa kprof/files/patch-aa
--- kprof.org/files/patch-aa Thu Jan 1 09:00:00 1970
+++ kprof/files/patch-aa Thu Apr 10 23:00:54 2003
@@ -0,0 +1,31 @@
+*** kprof/kprofwidget.cpp.orig Thu Apr 10 22:50:13 2003
+--- kprof/kprofwidget.cpp Thu Apr 10 22:59:37 2003
+***************
+*** 445,450 ****
+--- 445,457 ----
+ QFileInfo gmonfinfo (outfile);
+ if (!gmonfinfo.exists ())
+ {
++ outfile = filename + ".gmon";
++ QFileInfo ngmoninfo (outfile);
++ }
++ QFileInfo ngmoninfo (outfile);
++
++ if (!gmonfinfo.exists () && !ngmoninfo.exists () )
++ {
+ outfile = finfo.dirPath () + "/fnccheck.out";
+ QFileInfo fnccheckinfo (outfile);
+ if (!fnccheckinfo.exists ())
+***************
+*** 591,600 ****
+ prepareProfileView (mObjs, true);
+ customizeColumns (mObjs, sLastFileFormat);
+
+- #ifdef HAVE_LIBQTREEMAP
+ QListViewItem *obj_toplevel = new QListViewItem(mObjs,"Objects");
+ QListViewItem *hier_toplevel = new QListViewItem(mHier,"Hierarchy");
+- #endif
+
+ // fill lists
+ fillFlatProfileList ();
+--- 598,605 ----
--- kprof.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list