NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

toolchain/56389: build.sh fails if source is cloned from git but git is not installed on the build host



>Number:         56389
>Category:       toolchain
>Synopsis:       build.sh fails if source is cloned from git but git is not installed on the build host
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 05 18:40:00 +0000 2021
>Originator:     Martin Husemann
>Release:        NetBSD 9.99.86
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD whoever-brings-the-night.aprisoft.de 9.99.86 NetBSD 9.99.86 (WHOEVER) #361: Wed Jul 7 15:16:16 CEST 2021 martin%seven-days-to-the-wolves.aprisoft.de@localhost:/work/src/sys/arch/sparc64/compile/WHOEVER sparc64
Architecture: sparc64
Machine: sparc64
>Description:

After cloning sources from git, I am trying to build on multiple clients
which do not have git installed (and no connectivity to the outside).

Example command line:

===> build.sh command:    /home/source/ab/HEAD/src/build.sh -m acorn32 -B 202109010648Z -V NETBSD_OFFICIAL_RELEASE=no -D /home/builds/ab/HEAD/acorn32/202109010648Z-dest -M /home/builds/ab/HEAD/acorn32/202109010648Z-obj -R /home/builds/ab/HEAD/acorn32/202109010648Z-rlse -T /home/builds/ab/HEAD/acorn32/202109010648Z-tools -U -X /home/source/ab/HEAD/xsrc -P -x -N0 -V TMPDIR=/tmp -V BUILD=yes -V MAKECONF=/home/builds/etc/make.conf -V MKDEBUG=yes -j16 release iso-image

This fails with:

===> Tools built to /home/builds/ab/HEAD/acorn32/202109010648Z-tools
/home/source/ab/HEAD/src/build.sh: git: not found

ERROR: Failed to get timestamp for vcs=git in '/home/source/ab/HEAD/src/'
*** BUILD ABORTED ***

Work around would be to prune .git in the top of the source dir, but that
is kinda ugly. An env var or build.sh -V override/hack would be good enough.


>How-To-Repeat:
s/a

>Fix:
n/a



Home | Main Index | Thread Index | Old Index