Date: Sat, 9 Feb 2013 20:20:02 GMT From: The BSD Dreamer <beastie@tardisi.com> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/175979: ports/sysutils/conky 1.9.0 compile error Message-ID: <201302092020.r19KK2fm034969@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/175979; it has been noted by GNATS. From: The BSD Dreamer <beastie@tardisi.com> 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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302092020.r19KK2fm034969>