ports/112452: patch: bsdstats install fails because of missing LOCALBASE environment for pkg-install
Lars Kristiansen
lars+lister.freebsd at adventuras.no
Sun May 6 00:40:04 UTC 2007
>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 at 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 at 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 at lisa/usr/ports/sysutils/bsdstats#
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list