From owner-freebsd-bugs Mon Oct 28 16:50: 4 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD10837B401 for ; Mon, 28 Oct 2002 16:50:02 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFCB843E77 for ; Mon, 28 Oct 2002 16:50:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9T0o1x3052873 for ; Mon, 28 Oct 2002 16:50:01 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9T0o15G052872; Mon, 28 Oct 2002 16:50:01 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C89137B401 for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/44582: usr.bin/bin/Makefile issues Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 44582 >Category: bin >Synopsis: usr.bin/bin/Makefile issues >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Oct 28 16:50:01 PST 2002 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message