Subject: toolchain/21988: after a kernel version bump, build.sh update builds do not work due to hardcoded path names
To: None <gnats-bugs@gnats.netbsd.org>
From: None <agc@netbsd.org>
List: netbsd-bugs
Date: 06/25/2003 13:51:49
>Number:         21988
>Category:       toolchain
>Synopsis:       after a kernel version bump, build.sh update builds do not work due to hardcoded path names
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 25 13:52:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Alistair Crooks
>Release:        1.6U, 20030624
>Organization:
Wasabi Systems
>Environment:
NetBSD dmz0.crowthorne.some-ISP-somewhere 1.6U NetBSD 1.6U (SYS) #154: Tue Jun 24 13:56:47 BST 2003  agc@sys1.crowthorne.some-ISP-somewhere:/usr/obj/i386/usr/src/sys/arch/i386/compile/SYS i386

>Description:
I have one source tree from which I do builds for 5 different architectures.

I set object dirs and release dirs on the command line, but have MAKEOBJDIRPREFIX set in the environment.
I do not set the tools directory, but leave it to the default:

/usr/obj/i386/usr/src/tools/tools.NetBSD-1.6T-i386

After a kernel version bump, I can no longer use build.sh to update
the existing objects, since there are hardcoded pathnames, such as

/usr/obj/i386/usr/src/tools/tools.NetBSD-1.6T-i386/bin/i386--netbsdelf-gcc

in files under the following object dirs:

/usr/obj/i386/usr/src/tools/groff
/usr/obj/i386/usr/src/tools/toolchain
/usr/obj/i386/usr/src/tools/texinfo

s/i386/<arch-du-jour>/g

This PR has been opened so that I don't forget about it (it's been this
way since the new build.sh framework was added, but I've just been deleting
the above directories every time the kernel version was bumped.)


>How-To-Repeat:
Wait for a kernel version bump, then attempt to build.sh -u with a default setting for
the tools directory.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: