Date: Sun, 6 May 2007 00:29:11 GMT From: Lars Kristiansen<lars+lister.freebsd@adventuras.no> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/112452: patch: bsdstats install fails because of missing LOCALBASE environment for pkg-install Message-ID: <200705060029.l460TBFt027159@www.freebsd.org> Resent-Message-ID: <200705060040.l460e3jg040823@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 112452 >Category: ports >Synopsis: patch: bsdstats install fails because of missing LOCALBASE environment for pkg-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: Sun May 06 00:40:03 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Lars Kristiansen >Release: 6.2 >Organization: Adventuras >Environment: FreeBSD lisa.master.local 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE-p4 #0: Sat May 5 08:52:45 CEST 2007 root@lisa.master.local:/usr/obj/usr/src/sys/LISA i386 >Description: some output from installing bsdstats: 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 This is because LOCALBASE environment has not been set. It is possible to set this in Makefile. >How-To-Repeat: deinstall; clean the appropriate entries from /etc/periodic.conf; install >Fix: root@lisa/usr/ports/sysutils/bsdstats# diff -u Makefile* --- Makefile Sun May 6 02:20:11 2007 +++ Makefile.orig Sun May 6 01:59:09 2007 @@ -36,10 +36,10 @@ @${ECHO_MSG} " To activate monthly statistics reporting in /etc/periodic.conf," @${ECHO_MSG} " execute the following as root user:" @${ECHO_MSG} - @${ECHO_MSG} "${SETENV} LOCALBASE=\"${LOCALBASE}\" PKG_PREFIX=\"${PREFIX}\" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL" + @${ECHO_MSG} "PKG_PREFIX=\"${PREFIX}\" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL" @${ECHO_MSG} .else - ${SETENV} LOCALBASE="${LOCALBASE}" PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + @PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .endif .include <bsd.port.post.mk> root@lisa/usr/ports/sysutils/bsdstats# >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705060029.l460TBFt027159>