From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Feb 9 20:20:03 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 77A9A7D9 for ; Sat, 9 Feb 2013 20:20:03 +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 6A40021B for ; Sat, 9 Feb 2013 20:20:03 +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 r19KK2X9034970 for ; Sat, 9 Feb 2013 20:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r19KK2fm034969; Sat, 9 Feb 2013 20:20:02 GMT (envelope-from gnats) Date: Sat, 9 Feb 2013 20:20:02 GMT Message-Id: <201302092020.r19KK2fm034969@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org Cc: From: The BSD Dreamer Subject: Re: ports/175979: ports/sysutils/conky 1.9.0 compile error X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The BSD Dreamer List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Feb 2013 20:20:03 -0000 The following reply was made to PR ports/175979; it has been noted by GNATS. From: The BSD Dreamer To: bug-followup@FreeBSD.org, t-matubara@miracle.ocn.ne.jp Cc: beastie@tardisi.com Subject: Re: ports/175979: ports/sysutils/conky 1.9.0 compile error Date: Sat, 09 Feb 2013 13:18:25 -0600 From the final patch submitted in ports/168161, the file 'files/patch-src-fs.c' is missing. Adding the patch, makes it update on my system. FreeBSD zen.lhaven.homeip.net 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 --- files/patch-src-fs.c.orig 2013-02-09 13:13:10.985310065 -0600 +++ files/patch-src-fs.c 2013-02-09 12:57:11.046310022 -0600 @@ -0,0 +1,18 @@ +--- src/fs.c.orig 2012-05-04 00:08:27.000000000 +0300 ++++ src/fs.c 2012-07-18 20:24:10.000000000 +0300 +@@ -118,9 +118,15 @@ + + static void update_fs_stat(struct fs_stat *fs) + { ++#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) ++ struct statfs s; ++ ++ if (statfs(fs->path, &s) == 0) { ++#else + struct statfs64 s; + + if (statfs64(fs->path, &s) == 0) { ++#endif + fs->size = (long long)s.f_blocks * s.f_bsize; + /* bfree (root) or bavail (non-roots) ? */ + fs->avail = (long long)s.f_bavail * s.f_bsize;