Boost logo

Boost Testing :

Subject: Re: [Boost-testing] how to create a patch_boost?
From: Ben Pope (benpope81_at_[hidden])
Date: 2014-11-18 22:03:24


On Wednesday, November 19, 2014 10:50 AM, Aparna Kumta wrote:
> I need to modify some boost sources before running my regression test.
> In http://beta.boost.org/development/running_regression_tests.html
> I see that I need to create patch_boost script.
>
>
> Can someone give me an example of what patch_boost might contain?
> For example, if in boost/archive/detail/register_archive.hpp, I need to replace
> #ifdef __SUNPRO_CC
> to
> #if defined(__SUNPRO_CC) && (__SUNPRO_CC < 0x5130)
>
> What would patch_boost need to look like?
>
> I have have several files I need to patch, but I'm not sure how to do that.

I've never tried it, but I assume you can make your changes and then:
diff file1 file2 > ../my_changes.diff

and then in the patch_boost
patch -p0 -i ../my_changes.diff

Something like that.

Ben


Boost-testing list run by mbergal at meta-comm.com