From nobody@FreeBSD.org  Tue Oct  3 09:17:06 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 36E4216A40F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  3 Oct 2006 09:17:06 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 013AE43D53
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  3 Oct 2006 09:17:06 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k939H53b048676
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 3 Oct 2006 09:17:05 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k939H5mJ048675;
	Tue, 3 Oct 2006 09:17:05 GMT
	(envelope-from nobody)
Message-Id: <200610030917.k939H5mJ048675@www.freebsd.org>
Date: Tue, 3 Oct 2006 09:17:05 GMT
From: "George L. Yermunlik" <yz@yz.kiev.ua>
To: freebsd-gnats-submit@FreeBSD.org
Subject: sysutils/bsdstats periodic script doesn't search for `dig' in /usr/local/bin/
X-Send-Pr-Version: www-2.3

>Number:         103932
>Category:       ports
>Synopsis:       sysutils/bsdstats periodic script doesn't search for `dig' in /usr/local/bin/
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    scrappy
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 03 09:20:17 GMT 2006
>Closed-Date:    Wed Oct 04 04:49:26 GMT 2006
>Last-Modified:  Wed Oct 04 04:49:26 GMT 2006
>Originator:     George L. Yermunlik
>Release:        4.11-STABLE
>Organization:
>Environment:
FreeBSD yz.iptelecom.net.ua 4.11-STABLE FreeBSD 4.11-STABLE #64: Mon Aug 28 11:46:43 EEST 2006     root@yz.iptelecom.net.ua:/usr/src/sys/compile/YZ  i386
>Description:
sysutils/bsdstats installs a periodic script /usr/local/etc/periodic/monthly/300.statistics, which refers to `dig' utility
using PATH "/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin".
I don't have system bind installed, but have one from ports, which
installs its binaries to /usr/local/bin/ (including `dig'), so the script cannot find `dig', because there's no "/usr/local/bin" in the PATH.
Problem is not critical as it just generetes an error and skips `if' statement in the script, which checks if the bsdstats server is reachable.
>How-To-Repeat:
Rebuild your world without bind ("NO_BIND=true" in /etc/make.conf), install dns/bind9 (with default OPTIONS), install sysutils/bsdstats and run /usr/local/etc/periodic/monthly/300.statistics
>Fix:
--- files/300.statistics.orig   Mon Oct  2 12:36:01 2006
+++ files/300.statistics        Mon Oct  2 12:36:05 2006
@@ -26,7 +26,7 @@
 checkin_server=${monthly_statistics_checkin_server:-"bsdstats.org"}
 id_token_file='/var/db/bsdstats'

-PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
+PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
 export PATH

 unset HTTP_USER_AGENT

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->scrappy 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Oct 3 09:20:25 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=103932 
State-Changed-From-To: open->closed 
State-Changed-By: scrappy 
State-Changed-When: Wed Oct 4 04:49:07 UTC 2006 
State-Changed-Why:  

Fixed in v4.7 


http://www.freebsd.org/cgi/query-pr.cgi?pr=103932 
>Unformatted:
