List Info

Thread: build-request.jam from-command-line too aggressive?




build-request.jam from-command-line too aggressive?
country flaguser name
Austria
2007-08-17 06:03:36
When trying to pass a target to bjam that has a '/' in its
name, and one of it 
path components happen to be incident to a feature, as e.g.
in:

bjam doc/html

boost build complains with:

X:/projects/boost/trunk/tools/build/v2/buildfeature.jam:238
: in 
feature.implied-feature from module feature
error: "doc" is not a value of an implicit
feature
X:/projects/boost/trunk/tools/build/v2/buildproperty.jam:27
7: in validate1 from 
module property
X:/projects/boost/trunk/tools/build/v2/buildproperty.jam:29
0: in 
property.validate from module property
X:/projects/boost/trunk/tools/build/v2/buildbuild-request.j
am:185: in 
convert-command-line-element from module build-request
X:/projects/boost/trunk/tools/build/v2/buildbuild-request.j
am:143: in 
build-request.from-command-line from module build-request
X:/projects/boost/trunk/tools/build/v2build-system.jam:267:
in load from module 
build-system
X:projectsboosttrunktoolsbuildv2/kernelmodules.jam:26
1: in import from 
module modules
X:projectsboosttrunktoolsbuildv2/kernel/bootstrap.jam:
132: in boost-build 
from module

This is odd because

1) The error message is misleading since the html (not the
doc) is causing the
    error. Despite doc is being reported. (Try doc/doc
instead.)

2) It is cryptic why e.g. "install html/images"
should be allowed while "install
   doc/html" will generate an error.

Suggested resolution:

Generally try _first_ to apply
"convert-command-line-element", and everything
that is failing this, pass on to targets.

However this will also require a change of
"property.validate" so it will not
automatically trigger an EXIT.

What do you think?

Roland aka speedsnail
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )