How can I include and use Jambase rules to my bjam/b2 build?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How can I include and use Jambase rules to my bjam/b2 build?

Boost - Build mailing list
Hi there,


at work I tried to build an old software package (Ingres DBMS 10.1) from
source over the last two weeks. It contained Jamfile and Jamrules files
in its tree structure, so I concluded that I would have to use bjam/b2
to get things going. The project's documentation wasn't specific enough
about this point as it turned out.

I had one major problem, the Jamfiles would use a lot of definitions
from the "Jambase" file, like "SubDir" a.s.o. Everytime I started the
build, I would get the error "unknown rule", as you can also see in the
question that I posted on StackOverflow:


https://stackoverflow.com/questions/52515654/how-can-i-include-the-jambase-file-to-my-build

I finally decided to give an older Jam version a try, and voila: with
ft-jam 2.5.2 the project compiles flawlessly without any further ado. Yay!

So, basically everything is fine now and I can use ft-jam for my
purposes. But I still wonder whether I could also use bjam/b2 for the
compile. What is the purpose of the internal Jambase definition ("+"
file) and the "-f" option in bjam? Is it only for bootstrapping b2
itself, or can I use it while running b2? If yes, how do I activate it?
How does a MWE look in this case?


Feel free to answer my questions on SO directly. Otherwise I'll try to
provide an explanation myself, based on the replies from this list.

Thanks a lot in advance for any clarifications and pointers to
additional documentation.


Best regards,


Dirk


_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: How can I include and use Jambase rules to my bjam/b2 build?

Boost - Build mailing list
AMDG

On 09/30/2018 11:49 PM, Dirk B├Ąchle via Boost-build wrote:

>
> at work I tried to build an old software package (Ingres DBMS 10.1) from
> source over the last two weeks. It contained Jamfile and Jamrules files
> in its tree structure, so I concluded that I would have to use bjam/b2
> to get things going. The project's documentation wasn't specific enough
> about this point as it turned out.
>
> I had one major problem, the Jamfiles would use a lot of definitions
> from the "Jambase" file, like "SubDir" a.s.o. Everytime I started the
> build, I would get the error "unknown rule", as you can also see in the
> question that I posted on StackOverflow:
>
>
> https://stackoverflow.com/questions/52515654/how-can-i-include-the-jambase-file-to-my-build
>
>
> I finally decided to give an older Jam version a try, and voila: with
> ft-jam 2.5.2 the project compiles flawlessly without any further ado. Yay!
>

b2 is not a drop-in replacement for Perforce Jam.
Using ft-jam is the correct option.

> So, basically everything is fine now and I can use ft-jam for my
> purposes. But I still wonder whether I could also use bjam/b2 for the
> compile. What is the purpose of the internal Jambase definition ("+"
> file) and the "-f" option in bjam? Is it only for bootstrapping b2
> itself, or can I use it while running b2? If yes, how do I activate it?
> How does a MWE look in this case?
>

The current Jambase is only used for bootstrapping Boost.Build.
Older versions of b2 had a copy of the original Jambase which
would be activated if the executable was named something other
than b2/bjam.  Even so, I don't recommend using it as it was
completely unmaintained.

>
> Feel free to answer my questions on SO directly. Otherwise I'll try to
> provide an explanation myself, based on the replies from this list.
>
> Thanks a lot in advance for any clarifications and pointers to
> additional documentation.
>

https://boostorg.github.io/build/manual/develop/index.html#bbv2.faq.names

In Christ,
Steven Watanabe
_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: How can I include and use Jambase rules to my bjam/b2 build?

Boost - Build mailing list
On Mon, Oct 1, 2018 at 4:37 PM Steven Watanabe via Boost-build <[hidden email]> wrote:
> AMDG
> https://boostorg.github.io/build/manual/develop/index.html#bbv2.faq.names

change
... the similarity of names because a disservice to users ...
into
... the similarity of names became a disservice to users ...
?

_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: How can I include and use Jambase rules to my bjam/b2 build?

Boost - Build mailing list
AMDG

On 10/01/2018 08:53 AM, Dominique Devienne via Boost-build wrote:

> On Mon, Oct 1, 2018 at 4:37 PM Steven Watanabe via Boost-build <
> [hidden email]> wrote:
>> https://boostorg.github.io/build/manual/develop/index.html#bbv2.faq.names
>
> change
> ... the similarity of names because a disservice to users ...
> into
> ... the similarity of names became a disservice to users ...
> ?
>

Fixed.  Thanks.

In Christ,
Steven Watanabe
_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
Reply | Threaded
Open this post in threaded view
|

Re: How can I include and use Jambase rules to my bjam/b2 build?

Boost - Build mailing list
In reply to this post by Boost - Build mailing list
Hi Steven,


thanks for your explanations. They confirm my suspicion ;).


Best regards,


Dirk


_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build