Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jul 2007 20:46:04 GMT
From:      Volker Werth <volker@vwsoft.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/114305: [patch] bsdstats.sh does not get started after port install
Message-ID:  <200707042046.l64Kk4lf018237@www.freebsd.org>
Resent-Message-ID: <200707042050.l64Ko1Pf098364@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         114305
>Category:       ports
>Synopsis:       [patch] bsdstats.sh does not get started after port install
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 04 20:50:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Volker Werth
>Release:        7-CURRENT
>Organization:
>Environment:
FreeBSD zeus.vwsoft.com 7.0-CURRENT-200706 FreeBSD 7.0-CURRENT-200706 #0: Sun Jun  3 18:41:02 UTC 2007     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
At the end of the installation process pkg-install asks the user for running bsdstats. pkg-install is unable to start the script as ${LOCALBASE} isn't set in the environment.

As a workaround, the following patch makes sure ${LOCALBASE} is at least there with a default value (not that clever will work as long as /usr/local is the default).
>How-To-Repeat:
 make install clean
===>  Extracting for bsdstats-5.3_4
===>  Patching for bsdstats-5.3_4
===>  Configuring for bsdstats-5.3_4
===>  Installing for bsdstats-5.3_4

..

********************
Would you like to activate monthly reporting in /etc/periodic.conf [n]? y
Would you like to send a list of installed hardware as well [n]? y
Would you like to send a list of installed ports as well [n]? y
Would you like to run it now [y]? y
/usr/ports/sysutils/bsdstats/pkg-install: /etc/periodic/monthly/300.statistics: not found
*** Error code 127

Stop in /usr/ports/sysutils/bsdstats.

>Fix:
diff -u pkg-install.old pkg-install
--- pkg-install.old     Wed Jul  4 22:27:46 2007
+++ pkg-install Wed Jul  4 22:28:18 2007
@@ -3,6 +3,8 @@
 # pkg-install : based off ${PORTSDIR}/mail/courier/files/pkg-install.in
 #
 
+LOCALBASE=${LOCALBASE:=/usr/local}
+
 ask() {
     local question default answer


>Release-Note:
>Audit-Trail:
>Unformatted:



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