From nobody@FreeBSD.org  Mon Oct 28 16:40:04 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5C89137B401
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 28 Oct 2002 16:40:04 -0800 (PST)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D135F43E75
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 28 Oct 2002 16:40:03 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.6/8.12.6) with ESMTP id g9T0e37R010253
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 28 Oct 2002 16:40:03 -0800 (PST)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.6/8.12.6/Submit) id g9T0e3xH010251;
	Mon, 28 Oct 2002 16:40:03 -0800 (PST)
Message-Id: <200210290040.g9T0e3xH010251@www.freebsd.org>
Date: Mon, 28 Oct 2002 16:40:03 -0800 (PST)
From: Jon Disnard <jon.disnard@ca.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: usr.bin/bin/Makefile issues
X-Send-Pr-Version: www-1.0

>Number:         44582
>Category:       bin
>Synopsis:       usr.bin/bin/Makefile issues
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    johan
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 28 16:50:01 PST 2002
>Closed-Date:    Sun Feb 02 02:05:38 PST 2003
>Last-Modified:  Sun Feb 02 02:05:38 PST 2003
>Originator:     Jon Disnard
>Release:        4.7-stable
>Organization:
Computer Associates
>Environment:
FreeBSD disjo03BSD.ca.com 4.7-STABLE FreeBSD 4.7-STABLE #0: Fri Oct 25 06:10:30 CDT 2002     root@disjo03BSD.ca.com:/usr/obj/usr/src/sys/DELLCPIR2  i386
>Description:
/usr/src/usr/bin/less/Makefile has an absolute path where a variable should be writen. Since the $LINKS line is writen with a absolute-path instead of the normal $BINDIR variable, it causes problems when $BINDIR is on another filesystem. This has caused me problems when 
>How-To-Repeat:
Makesure /usr is on another file system from /root. Change into '/usr/src/usr.bin/less', and run the following make command: "make BINDIR=/root/build_area/usr.bin/ install all clean". That will but 'less' in the '/root/build_area/usr.bin/' directory, and next attempt to make a hardlink that targets /usr/bin/more. Since /root, and /usr live on different filesystems, that is imposible. For example: a make fiel might have:
PROG=foo
LINKS= $BINDIR/foo $BINDIR/bar

The 'less' Makefile has:
LINKS= $BINDIR/less /usr/bin/more

That is inconsitent with all the other Makefiles in the /usr/src/usr/bin src area that have the $LINK variable in their Makefile.
>Fix:
in the 'less' Makefile, do this:
LINKS=  ${BINDIR}/less ${BINDIR}/more
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->johan 
Responsible-Changed-By: johan 
Responsible-Changed-When: Sun Nov 24 03:35:32 PST 2002 
Responsible-Changed-Why:  
I will take care of this when the code-freeze for  
current is over. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=44582 
State-Changed-From-To: open->patched 
State-Changed-By: johan 
State-Changed-When: Wed Dec 18 02:15:28 PST 2002 
State-Changed-Why:  
Committed to current. I will MFC after X-mass. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=44582 
State-Changed-From-To: patched->closed 
State-Changed-By: johan 
State-Changed-When: Sun Feb 2 02:05:08 PST 2003 
State-Changed-Why:  
Committed to -stable 

http://www.freebsd.org/cgi/query-pr.cgi?pr=44582 
>Unformatted:
