Date: Mon, 28 Oct 2002 16:40:03 -0800 (PST) From: Jon Disnard <jon.disnard@ca.com> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/44582: usr.bin/bin/Makefile issues Message-ID: <200210290040.g9T0e3xH010251@www.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210290040.g9T0e3xH010251>