NetBSD Problem Report #52026

From www@NetBSD.org  Fri Mar  3 18:09:04 2017
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 31C9F7A1F8
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  3 Mar 2017 18:09:04 +0000 (UTC)
Message-Id: <20170303180903.11BD97A28C@mollari.NetBSD.org>
Date: Fri,  3 Mar 2017 18:09:03 +0000 (UTC)
From: mj@mjturner.net
Reply-To: mj@mjturner.net
To: gnats-bugs@NetBSD.org
Subject: misc/ansiweather: Should honour ~/.ansiweatherrc, like upstream
X-Send-Pr-Version: www-1.0

>Number:         52026
>Category:       pkg
>Synopsis:       misc/ansiweather: Should honour ~/.ansiweatherrc, like upstream
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 03 18:10:00 +0000 2017
>Originator:     Michael-John Turner
>Release:        current
>Organization:
>Environment:
Darwin tesla.xx.yy 16.4.0 Darwin Kernel Version 16.4.0: Thu Dec 22 22:53:21 PST 2016; root:xnu-3789.41.3~3/RELEASE_X86_64 x86_64
>Description:
Upstream ansiweather allows for a configuration file to exist in the user's home directory. pkgsrc changes this behaviour so that only a system-wide configuration file is read.

The pkgsrc behaviour surprised me. Perhaps a better solution would be to check if the user has a configuration file and use that, otherwise use the system-wide configuration?

>How-To-Repeat:
1) Create ~/.ansiweatherrc
2) Run ansiweather
3) Configuration file is ignored
>Fix:
See above for a suggestion.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.