Search code examples
boostbuilddebianpatch

Apply patch for boost installation


I have installed Boost lib ver 1.72 successfully (on Debian 10), but now realized there is a known issue (that i have already faced) and there is a patch.

Searched a lot but didn't find a guide on how to apply/install/build this patch. Do I have to rebuild the whole lib? How to apply the patch?


Solution

  • In the patch, you can see the path it applies to: boost/coroutine/asymmetric_coroutine.hpp

    From the directory containing the boost directory (where the path starts) you want to run:

    patch -p1 < /path/to/file.patch
    

    and then rebuild the library.