From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Apr 23 01:30:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C8380D8F for ; Tue, 23 Apr 2013 01:30:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id AC9DB1168 for ; Tue, 23 Apr 2013 01:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r3N1U04G072939 for ; Tue, 23 Apr 2013 01:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r3N1U0Gg072938; Tue, 23 Apr 2013 01:30:00 GMT (envelope-from gnats) Resent-Date: Tue, 23 Apr 2013 01:30:00 GMT Resent-Message-Id: <201304230130.r3N1U0Gg072938@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Heath Nielson Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 91F0AD2B for ; Tue, 23 Apr 2013 01:23:33 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 8421F1136 for ; Tue, 23 Apr 2013 01:23:33 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r3N1NXvh016983 for ; Tue, 23 Apr 2013 01:23:33 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r3N1NXo3016982; Tue, 23 Apr 2013 01:23:33 GMT (envelope-from nobody) Message-Id: <201304230123.r3N1NXo3016982@red.freebsd.org> Date: Tue, 23 Apr 2013 01:23:33 GMT From: Heath Nielson To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/178063: [Patch] graphics/digikam-kde4 can't edit images X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Apr 2013 01:30:00 -0000 >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@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 #include #include +#include +#include +#include #endif #if defined(Q_OS_NETBSD) #include @@ -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: