Bug #9609 BUILD/compile-pentium-debug-max --just-configure does not work anymore
Submitted: 4 Apr 2005 12:57 Modified: 4 Apr 2005 19:43
Reporter: Ingo Strüwing Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.0.3, 5.1 OS:Linux (Linux/x86)
Assigned to: CPU Architecture:Any

[4 Apr 2005 12:57] Ingo Strüwing
Description:
BUILD/compile-pentium-debug-max --just-configure
fails with error: configure: error: unrecognized option: --just-configure

The offending change in BUILD/compile-pentium-debug-max is in 
ChangeSet 1.1700.188.1 2005/02/05 16:05:46 monty@mysql.com

- . "$path/SETUP.sh"
+ . "$path/SETUP.sh" $@ --with-debug=full

Some shells ignore arguments when sourcing a file. All others replace the
argument list temporarily. 'shift's do not have any effect on the "real"
argument list. Hence, the '--just-configure' argument is still in place
when "$path/FINISH.sh" is sourced.

How to repeat:
Clone a current 5.0 or 5.1 tree.
Execute: BUILD/compile-pentium-debug-max --just-configure

Suggested fix:
The correct way to do what Monty wanted, is the following (in my opinion):

set -- "$@" --with-debug=full
. "$path/SETUP.sh"
[4 Apr 2005 19:43] Jim Winstead
This is a duplicate of Bug #8648.