ports/175979: ports/sysutils/conky 1.9.0 compile error
The BSD Dreamer
beastie at tardisi.com
Sat Feb 9 20:20:03 UTC 2013
The following reply was made to PR ports/175979; it has been noted by GNATS.
From: The BSD Dreamer <beastie at tardisi.com>
To: bug-followup at FreeBSD.org, t-matubara at miracle.ocn.ne.jp
Cc: beastie at 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 at 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;
More information about the freebsd-ports-bugs
mailing list