nightly and bldenv should be usable directly
I setup illumos-gate sources on OpenIndiana according to https://illumos.org/docs/developers/build/ but I get following unexpected output:
newman:~/ws/illumos-gate $ time ksh93 usr/src/tools/scripts/nightly.sh illumos.sh Usage: dirname [-frx] string
With some verbose options in the
nightly.sh script it turns out that
whence(1) is unable to find
61 # Get the absolute path of the nightly script that the user invoked. This 62 # may be a relative path, and we need to do this before changing directory. 63 nightly_path=`whence $0` 64 65 # 66 # Keep track of where we found nightly so we can invoke the matching 67 # which_scm script. If that doesn't work, don't go guessing, just rely 68 # on the $PATH settings, which will generally give us either /opt/onbld 69 # or the user's workspace. 70 # 71 WHICH_SCM=$(dirname $nightly_path)/which_scm
nightly.sh is made executable.
Updated by John Levon about 2 years ago
So to get this problem resolved we'd need to remove stdenv.sh and its surrounding
makefile infrastructure to create 'nightly' and 'bldenv', then rename the files in git
before adding the +x bit.
Given the standard env file sets MULTI_PROTO, and the other setting is no longer
relevant, AND basically nobody actually copies the created 'nightly' script instead of
'nightly', this seems fine to me.
In addition, we'd want to fix up anything that suggests a cp and chmod in the build
docs, and say we can just run the thing right out of the gate.
Updated by Electric Monk almost 2 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 5ca82e6914c4162ba9b7028b19c9d77d3eadaf17 Author: John Levon <email@example.com> Date: 2020-01-27T10:59:37.000Z 11224 nightly and bldenv should be usable directly Reviewed by: Toomas Soome <firstname.lastname@example.org> Reviewed by: Alexander Eremin <email@example.com> Reviewed by: Alexander Pyhalov <firstname.lastname@example.org> Approved by: Gordon Ross <email@example.com>