Project

General

Profile

Bug #2572

bldenv.sh missing PATH for bash shell

Added by Piotr Jasiukajtis over 7 years ago. Updated over 7 years ago.

Status:
Feedback
Priority:
Low
Assignee:
-
Category:
tools - gate/build tools
Start date:
2012-03-31
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

$ ksh93 ./bldenv.sh -d ./illumos.sh 
Build type   is  DEBUG
RELEASE      is 
VERSION      is il_r13643_120323_01-onbld
RELEASE_DATE is March 2012

The top-level 'setup' target is available to build headers and tools.

Using /bin/bash as shell.

$ echo $PATH
/usr/bin:/usr/sbin:/sbin:/opt/SUNWspro/bin:/usr/gnu/bin

Before exec $SHELL all variables are exported correctly.

exec "$SHELL" ${@:+-c "$@"}


Related issues

Related to illumos gate - Bug #2573: dmake install in usr/src/pkg: 'validate_pkg: not found'New2012-03-31

Actions

History

#1

Updated by Rich Lowe over 7 years ago

  • Status changed from New to Feedback

This is because your shell configuration is re-setting your $PATH when it starts, and clobbering the path bldenv has set for you. Nothing with bldenv.

Consider hacks like:

if [[ -z $CODEMGR_WS ]]; then
   ... do your PATH manipulation ...
fi

in your shell configuration, or setting it in .profile rather than .bashrc, or whatever. There's nothing bldenv can do for you.

Also available in: Atom PDF