From nobody@FreeBSD.org  Tue Apr  4 18:38:18 2000
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21])
	by hub.freebsd.org (Postfix) with ESMTP id B5BAA37B8CA
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  4 Apr 2000 18:38:18 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.9.3/8.9.2) id SAA70710;
	Tue, 4 Apr 2000 18:38:18 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Message-Id: <200004050138.SAA70710@freefall.freebsd.org>
Date: Tue, 4 Apr 2000 18:38:18 -0700 (PDT)
From: tla@spiderchain.com
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: ${CHMOD} is not set in ports makefiles after upgrading
X-Send-Pr-Version: www-1.0

>Number:         17805
>Category:       misc
>Synopsis:       ${CHMOD} is not set in ports makefiles after upgrading
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr  4 18:40:01 PDT 2000
>Closed-Date:    Sat Apr 8 05:01:01 PDT 2000
>Last-Modified:  Sat Apr  8 05:01:34 PDT 2000
>Originator:     Eli Dart
>Release:        3.2-release
>Organization:
>Environment:
FreeBSD spiderchain.com 3.2-RELEASE FreeBSD 3.2-RELEASE #0: Tue May 18 04:05:08 GMT 1999     root@spiderchain:/usr/src/sys/compile/FOO  i386


>Description:

I installed the package for the ports collection (32upgrade.tgz) as
recommended.  Now when building ports ${CHMOD} is null, so a make
install can randomly fail with a message like "640: command not found"
when it should be /bin/chmod 640 <somefile>

I believe this is the issue...I've had to hack several port makefiles
recently to add a value for ${CHMOD}.  If this is too vague, tell me to
go get stuffed, and I'll get more detailed about it next time it happens.

>How-To-Repeat:
Install the ports upgrade package.  Build a port that uses ${CHMOD}
in its makefile (the cyrus imap server is one).  Notice that make install
fails with "640: command not found" or similar.
>Fix:
I'm not a make guru, but somewhere in there ${CHMOD} needs to get set.


>Release-Note:
>Audit-Trail:

From: "Chris D. Faulhaber" <jedgar@fxp.org>
To: tla@spiderchain.com
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/17805: ${CHMOD} is not set in ports makefiles after upgrading
Date: Tue, 4 Apr 2000 21:46:31 -0400 (EDT)

 On Tue, 4 Apr 2000 tla@spiderchain.com wrote:
 
 > 
 > >Number:         17805
 > >Category:       misc
 > >Synopsis:       ${CHMOD} is not set in ports makefiles after upgrading
 > 
 > I believe this is the issue...I've had to hack several port makefiles
 > recently to add a value for ${CHMOD}.  If this is too vague, tell me to
 > go get stuffed, and I'll get more detailed about it next time it happens.
 > 
 > >How-To-Repeat:
 > Install the ports upgrade package.  Build a port that uses ${CHMOD}
 > in its makefile (the cyrus imap server is one).  Notice that make install
 > fails with "640: command not found" or similar.
 > >Fix:
 > I'm not a make guru, but somewhere in there ${CHMOD} needs to get set.
 > 
 > 
 
 jedgar@pluto:/usr/ports/Mk$ ident bsd.port.mk && grep chmod bsd.port.mk
 bsd.port.mk:
      $FreeBSD: ports/Mk/bsd.port.mk,v 1.332 2000/04/02 08:32:26 asami Exp
 $
      $NetBSD: $
 CHMOD?=         /bin/chmod
 jedgar@pluto:/usr/ports/Mk$
 
 Can you let us know what errors you are seeing?  Also, check that
 /usr/ports/Mk/* and the port(s) you are building are up-to-date.
 
 -----
 Chris D. Faulhaber - jedgar@fxp.org - jedgar@FreeBSD.org
 --------------------------------------------------------
 FreeBSD: The Power To Serve   -   http://www.FreeBSD.org
 
 
State-Changed-From-To: open->closed 
State-Changed-By: jedgar 
State-Changed-When: Sat Apr 8 05:01:01 PDT 2000 
State-Changed-Why:  
Originator says updating his ports fixed the problem 
>Unformatted:
