Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Apr 2013 22:23:51 -0700
From:      Douglas Thrift <douglas@douglasthrift.net>
To:        snabb@epipe.com
Cc:        ports@FreeBSD.org
Subject:   FreeBSD Port: downtimed-0.5
Message-ID:  <51776C67.7070104@douglasthrift.net>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------060900060708020002080601
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hello,

I just noticed that the daemon for downtimed was trying to use /var/lib
instead of /var/db when compiled on FreeBSD 9.1 amd64. I tracked the
problem down to __FreeBSD_kernel__ being defined which was, I presume,
supposed to be used to check for Debian GNU/kFreeBSD in this case. I
have attached a patch that can be added to the files directory for the
port to fix this.

I hope this helps!
-- 
Douglas William Thrift
<douglas@douglasthrift.net>
<http://douglasthrift.net/>;

--------------060900060708020002080601
Content-Type: text/plain; charset=windows-1252;
 name="patch-downtimedb.h"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="patch-downtimedb.h"

--- ./downtimedb.h.orig	2013-04-23 01:45:51.612444692 -0700
+++ ./downtimedb.h	2013-04-23 01:47:11.486445742 -0700
@@ -61,7 +61,8 @@
 #define	DOWNTIMEDB_WHAT_SHUTDOWN	2
 #define	DOWNTIMEDB_WHAT_CRASH		3
 
-#if defined(__linux__) || defined(__FreeBSD_kernel__) || !defined(_PATH_VARDB)
+#if defined(__linux__) || (defined(__FreeBSD_kernel__) \
+	&& !defined(__FreeBSD__)) || !defined(_PATH_VARDB)
 #define	PATH_DOWNTIMEDBDIR	"/var/lib/downtimed/"
 #else
 #define	PATH_DOWNTIMEDBDIR	_PATH_VARDB "downtimed/"

--------------060900060708020002080601--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51776C67.7070104>