Subject: cd to The following selected options are not supported: prefix-cmds.
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 12/15/2005 00:29:06
I'm trying to figure out where I am getting this error when running "bmake 
clean clean-depends" in graphics/gwneview.

===> Cleaning for gwenview-1.3.1
/bin/sh: -c: line 1: syntax error near unexpected token `&&'
/bin/sh: -c: line 1: `cd ../../===> && /usr/bin/bmake show-depends-dirs'
/bin/sh: line 1: cd: ../../The: No such file or directory
/bin/sh: line 1: cd: ../../following: No such file or directory
/bin/sh: line 1: cd: ../../selected: No such file or directory
/bin/sh: line 1: cd: ../../options: No such file or directory
/bin/sh: line 1: cd: ../../are: No such file or directory
/bin/sh: line 1: cd: ../../not: No such file or directory
/bin/sh: line 1: cd: ../../supported:: No such file or directory
/bin/sh: line 1: cd: ../../prefix-cmds.: No such file or directory
....
and again
===> Cleaning for ncurses-5.5
/bin/sh: line 1: cd: /usr/pkgsrc/graphics/gwenview/../../prefix-cmds.: No 
such file or directory
/bin/sh: line 1: cd: /usr/pkgsrc/graphics/gwenview/../../supported:: No 
such file or directory
/bin/sh: line 1: cd: /usr/pkgsrc/graphics/gwenview/../../not: No such file 
or directory
/bin/sh: line 1: cd: /usr/pkgsrc/graphics/gwenview/../../are: No such file 
or directory
/bin/sh: line 1: cd: /usr/pkgsrc/graphics/gwenview/../../options: No such 
file or directory
/bin/sh: line 1: cd: /usr/pkgsrc/graphics/gwenview/../../selected: No such 
file or directory
/bin/sh: line 1: cd: /usr/pkgsrc/graphics/gwenview/../../following: No 
such file or directory
/bin/sh: line 1: cd: /usr/pkgsrc/graphics/gwenview/../../The: No such file 
or directory
/bin/sh: line 1: cd: /usr/pkgsrc/graphics/gwenview/../../===>: No such 
file or directory
===> Cleaning for fltk-1.1.6nb4

(It does not happen in the numerous other directories it cleans only those 
two.)

The message is from mk/bsd.options.mk and is in the PKG_FAIL_REASON.

Note that the error also includes "===>"

I don't know where this "prefix-cmds" is coming from yet. 
mk/defaults/options.description doesn't help me. And I didn't see used by 
any of the dependencies.

The "cd ../../===>" is from an awk function called "append_dirs". 
This awk script is stored in _RECURSE_DEPENDS_DIRS.

I can repeat this error by using the show-all-depends-dirs target.

Any ideas why the PKG_FAIL_REASON is set to this? (Where is this 
prefix-cmds?)

Why does the PKG_FAIL_REASON become a (unquoted) pkgsrc package directory 
name?

I do have a patched pkgsrc/mk but can't see anything related yet on this 
Linux system. Using exact same pkgsrc I don't see on NetBSD.

Now looking closer, I see my mk.conf has:

# 18/Oct/2004 reed -- prefix with "k" or conflicts with coreutils and 
shadow
PKG_OPTIONS.heimdal+=   prefix-cmds
# 19/Oct/2004 reed -- prefix ftp with "k"
PKG_OPTIONS.mit-krb5+=  prefix-cmds

I see that was renamed to kerberos-prefix-cmds. So I fixed my mk.conf.

Why did my PKG_FAIL_REASON not cause my pkgsrc to fail? Why did that 
become a directory that it attempted to cd to?

I could not repeat on clean pkgsrc on DragonFly (with that bogus 
PKG_OPTIONS.heimdal+=prefix-cmds). I also could not repeat on NetBSD with 
my patched pkgsrc/mk -- so maybe something related to my Linux system.

Any clues where to look would be appreciated.

  Jeremy C. Reed

  	  	 	 technical support & remote administration
 	  	 	 http://www.pugetsoundtechnology.com/