ports/178063: [Patch] graphics/digikam-kde4 can't edit images

Heath Nielson heathn at gmail.com
Tue Apr 23 01:30:00 UTC 2013


>Number:         178063
>Category:       ports
>Synopsis:       [Patch] graphics/digikam-kde4 can't edit images
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 23 01:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Heath Nielson
>Release:        9.1-STABLE
>Organization:
>Environment:
FreeBSD hershey.bar.net 9.1-STABLE FreeBSD 9.1-STABLE #28 r249603: Wed Apr 17 22:19:57 MDT 2013     root at hershey.bar.net:/usr/obj/usr/src/sys/HERSHEY  amd64
>Description:
Images cannot be edited in digikam.  Trying to load an image in the image editor causes the following console messages:

digikam(50234)/digikam (core) Digikam::KMemoryInfo::update: Platform identified :  "FREEBSD"
digikam(50234)/digikam (core): Error to get physical memory information form a recognized platform 
digikam(50234)/digikam (core) Digikam::TIFFLoader::load: Failed to allocate memory for TIFF image "/home/twix/share/Photos/Scanned/Scan-130416-0014_v1.tiff"

>How-To-Repeat:
Install digikam, select an image then click F4 to edit the image.  The image should fail to load.
>Fix:
Patch is attached.

Patch attached with submission follows:

--- libs/3rdparty/kmemoryinfo/kmemoryinfo_backend.cpp.orig	2013-03-11 02:24:30.000000000 -0600
+++ libs/3rdparty/kmemoryinfo/kmemoryinfo_backend.cpp	2013-03-30 19:26:40.000000000 -0600
@@ -63,6 +63,9 @@
 #include <sys/types.h>
 #include <sys/sysctl.h>
 #include <unistd.h>
+#include <paths.h>
+#include <fcntl.h>
+#include <kvm.h>
 #endif
 #if defined(Q_OS_NETBSD)
 #include <sys/param.h>
@@ -115,7 +118,7 @@
         return kvmd;
     }
 
-    kvmd = kvm_openfiles(NULL, NULL, NULL, O_RDONLY, NULL);
+    kvmd = kvm_openfiles(NULL, "/dev/null", NULL, O_RDONLY, NULL);
 
     if (kvmd == NULL)
     {
@@ -217,9 +220,9 @@
     int    mib[2];
     u_long physmem;
     size_t size;
-    u_long free_count;
-    u_long cache_count;
-    u_long inactive_count;
+    u_int free_count;
+    u_int cache_count;
+    u_int inactive_count;
     int    pagesize;
 #endif // defined(Q_OS_FREEBSD) || defined(Q_OS_DFBSD)
 


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list