$NetBSD: patch-ah,v 1.1.1.1 2009/01/08 00:21:00 jmcneill Exp $ --- src/pk-main.c.orig 2008-12-04 08:45:11.000000000 -0500 +++ src/pk-main.c 2009-01-07 08:33:31.000000000 -0500 @@ -178,9 +178,11 @@ main (int argc, char *argv[]) PkSyslog *syslog = NULL; GError *error = NULL; GOptionContext *context; +#ifdef __linux__ const gchar *env_pk_verbose; const gchar *env_pk_console; const gchar *env_pk_logging; +#endif const GOptionEntry options[] = { { "backend", '\0', 0, G_OPTION_ARG_STRING, &backend_name, @@ -251,6 +253,7 @@ main (int argc, char *argv[]) goto exit_program; } +#ifdef __linux__ /* we don't actually need to do this, except it rules out the * 'it works from the command line but not service activation' bugs */ env_pk_verbose = g_getenv (EGG_VERBOSE); @@ -260,6 +263,7 @@ main (int argc, char *argv[]) g_setenv (EGG_VERBOSE, env_pk_verbose, FALSE); g_setenv (EGG_CONSOLE, env_pk_console, FALSE); g_setenv (EGG_LOGGING, env_pk_logging, FALSE); +#endif /* get values from the config file */ conf = pk_conf_new ();