From owner-freebsd-ports-bugs@FreeBSD.ORG Sun May 6 00:40:04 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4D48F16A403 for ; Sun, 6 May 2007 00:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 2C84313C457 for ; Sun, 6 May 2007 00:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l460e4GU040824 for ; Sun, 6 May 2007 00:40:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l460e3jg040823; Sun, 6 May 2007 00:40:04 GMT (envelope-from gnats) Resent-Date: Sun, 6 May 2007 00:40:04 GMT Resent-Message-Id: <200705060040.l460e3jg040823@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Lars Kristiansen Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0926516A401 for ; Sun, 6 May 2007 00:34:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id ECB3313C48A for ; Sun, 6 May 2007 00:34:13 +0000 (UTC) (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 l460YDbv027620 for ; Sun, 6 May 2007 00:34:13 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l460TBFt027159; Sun, 6 May 2007 00:29:11 GMT (envelope-from nobody) Message-Id: <200705060029.l460TBFt027159@www.freebsd.org> Date: Sun, 6 May 2007 00:29:11 GMT From: Lars Kristiansen To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: ports/112452: patch: bsdstats install fails because of missing LOCALBASE environment for pkg-install X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 May 2007 00:40:04 -0000 >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 root@lisa/usr/ports/sysutils/bsdstats# >Release-Note: >Audit-Trail: >Unformatted: