Opened 12 years ago

Closed 12 years ago

#4570 closed Bugs (fixed)

Boost-build project inheritance broken

Reported by: Brian Freyburger <bfreyburger@…> Owned by: Vladimir Prus
Milestone: To Be Determined Component: build
Version: Boost 1.44.0 Severity: Problem
Keywords: boost-build inheritence Cc:

Description

Sometimes, boost-build applies the inheritance of a project's attributes from it's parent's twice, clobber locally defined attributes.

Attached is the smallest example I can create, and also attached is a patch to fix the problem.

Run before patch:

$ cd foo; bjam ...found 11 targets... ...updating 7 targets... common.mkdir ../bin common.mkdir ../bin/foo common.mkdir ../bin/foo/bar common.mkdir ../bin/foo/bar/gcc-3.4 common.mkdir ../bin/foo/bar/gcc-3.4/debug gcc.compile.c ../bin/foo/bar/gcc-3.4/debug/test.o gcc.link ../bin/foo/bar/gcc-3.4/debug/test ...updated 7 targets...

Run after patch:

$ cd foo; bjam ...found 9 targets... ...updating 6 targets... common.mkdir baz common.mkdir baz/bar common.mkdir baz/bar/gcc-3.4 common.mkdir baz/bar/gcc-3.4/debug gcc.compile.c baz/bar/gcc-3.4/debug/test.o gcc.link baz/bar/gcc-3.4/debug/test ...updated 6 targets...

Attachments (2)

example.tgz (10.0 KB ) - added by Brian Freyburger <bfreyburger@…> 12 years ago.
Example of the bug.
boost-build-project-loading.patch (2.4 KB ) - added by Brian Freyburger <bfreyburger@…> 12 years ago.
patch to boost 1_44_0 to resovle the issue.

Download all attachments as: .zip

Change History (4)

by Brian Freyburger <bfreyburger@…>, 12 years ago

Attachment: example.tgz added

Example of the bug.

by Brian Freyburger <bfreyburger@…>, 12 years ago

patch to boost 1_44_0 to resovle the issue.

comment:1 by Vladimir Prus, 12 years ago

Thanks for the patch. Applied in r65165. This was actually checked in a few days ago, but Trac ignored the request to updated the ticket.

comment:2 by Vladimir Prus, 12 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.