diff options
| -rw-r--r-- | meta/recipes-support/boost/boost/0001-Don-t-skip-install-targets-if-there-s-build-no-in-ur.patch | 82 | ||||
| -rw-r--r-- | meta/recipes-support/boost/boost_1.78.0.bb | 1 |
2 files changed, 83 insertions, 0 deletions
diff --git a/meta/recipes-support/boost/boost/0001-Don-t-skip-install-targets-if-there-s-build-no-in-ur.patch b/meta/recipes-support/boost/boost/0001-Don-t-skip-install-targets-if-there-s-build-no-in-ur.patch new file mode 100644 index 0000000000..df8b285700 --- /dev/null +++ b/meta/recipes-support/boost/boost/0001-Don-t-skip-install-targets-if-there-s-build-no-in-ur.patch | |||
| @@ -0,0 +1,82 @@ | |||
| 1 | From 78fd284a42caabe8815cb0870b46e5567872e75b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Dmitry <grisumbras@gmail.com> | ||
| 3 | Date: Sat, 11 Dec 2021 16:58:23 +0300 | ||
| 4 | Subject: [PATCH] Don't skip install targets if there's <build>no in ureqs | ||
| 5 | (#113) | ||
| 6 | |||
| 7 | --- | ||
| 8 | src/tools/stage.jam | 4 ++++ | ||
| 9 | test/install_build_no.py | 26 ++++++++++++++++++++++++++ | ||
| 10 | test/test_all.py | 1 + | ||
| 11 | 3 files changed, 31 insertions(+) | ||
| 12 | create mode 100755 test/install_build_no.py | ||
| 13 | |||
| 14 | Fixes install of boost fiber shared libraries which are missing in 1.78.0 | ||
| 15 | but working in 1.79.0. Only kirkstone affected by this. | ||
| 16 | |||
| 17 | Upstream-Status: Backport | ||
| 18 | |||
| 19 | Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de> | ||
| 20 | |||
| 21 | diff --git a/tools/build/src/tools/stage.jam b/tools/build/src/tools/stage.jam | ||
| 22 | index c5f02e3ba..325129dc8 100644 | ||
| 23 | --- a/tools/build/src/tools/stage.jam | ||
| 24 | +++ b/tools/build/src/tools/stage.jam | ||
| 25 | @@ -478,6 +478,10 @@ class install-target-class : basic-target | ||
| 26 | return [ sequence.unique $(result2) ] ; | ||
| 27 | } | ||
| 28 | |||
| 29 | + rule skip-from-usage-requirements ( ) | ||
| 30 | + { | ||
| 31 | + } | ||
| 32 | + | ||
| 33 | # Returns true iff 'type' is subtype of some element of 'types-to-include'. | ||
| 34 | # | ||
| 35 | local rule include-type ( type : types-to-include * ) | ||
| 36 | diff --git a/tools/build/test/install_build_no.py b/tools/build/test/install_build_no.py | ||
| 37 | new file mode 100755 | ||
| 38 | index 000000000..0ccf3c5cc | ||
| 39 | --- /dev/null | ||
| 40 | +++ b/tools/build/test/install_build_no.py | ||
| 41 | @@ -0,0 +1,26 @@ | ||
| 42 | +#!/usr/bin/python | ||
| 43 | + | ||
| 44 | +# Copyright 2021 Dmitry Arkhipov (grisumbras@gmail.com) | ||
| 45 | +# Distributed under the Boost Software License, Version 1.0. | ||
| 46 | +# (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt) | ||
| 47 | + | ||
| 48 | +# Check that <build>no in usage-requirements of dependencies does not affect | ||
| 49 | +# install rule, i.e. a skipped installed target does not affect insallation of | ||
| 50 | +# other targets. | ||
| 51 | + | ||
| 52 | +import BoostBuild | ||
| 53 | + | ||
| 54 | +t = BoostBuild.Tester() | ||
| 55 | + | ||
| 56 | +t.write("a.cpp", "int main() {}\n") | ||
| 57 | + | ||
| 58 | +t.write("jamroot.jam", """ | ||
| 59 | +make x : : maker : <build>no ; | ||
| 60 | +exe a : a.cpp ; | ||
| 61 | +install install : x a ; | ||
| 62 | +""") | ||
| 63 | + | ||
| 64 | +t.run_build_system() | ||
| 65 | +t.expect_addition("install/a.exe") | ||
| 66 | + | ||
| 67 | +t.cleanup() | ||
| 68 | diff --git a/tools/build/test/test_all.py b/tools/build/test/test_all.py | ||
| 69 | index b7ef5ad70..9ed729d01 100644 | ||
| 70 | --- a/tools/build/test/test_all.py | ||
| 71 | +++ b/tools/build/test/test_all.py | ||
| 72 | @@ -250,6 +250,7 @@ tests = ["abs_workdir", | ||
| 73 | "inherit_toolset", | ||
| 74 | "inherited_dependency", | ||
| 75 | "inline", | ||
| 76 | + "install_build_no", | ||
| 77 | "libjpeg", | ||
| 78 | "liblzma", | ||
| 79 | "libpng", | ||
| 80 | -- | ||
| 81 | 2.20.1 | ||
| 82 | |||
diff --git a/meta/recipes-support/boost/boost_1.78.0.bb b/meta/recipes-support/boost/boost_1.78.0.bb index 58be9dcf12..08364a4c3c 100644 --- a/meta/recipes-support/boost/boost_1.78.0.bb +++ b/meta/recipes-support/boost/boost_1.78.0.bb | |||
| @@ -7,4 +7,5 @@ SRC_URI += "file://boost-CVE-2012-2677.patch \ | |||
| 7 | file://0001-dont-setup-compiler-flags-m32-m64.patch \ | 7 | file://0001-dont-setup-compiler-flags-m32-m64.patch \ |
| 8 | file://de657e01635306085488290ea83de541ec393f8b.patch \ | 8 | file://de657e01635306085488290ea83de541ec393f8b.patch \ |
| 9 | file://0001-futex-fix-build-on-32-bit-architectures-using-64-bit.patch \ | 9 | file://0001-futex-fix-build-on-32-bit-architectures-using-64-bit.patch \ |
| 10 | file://0001-Don-t-skip-install-targets-if-there-s-build-no-in-ur.patch \ | ||
| 10 | " | 11 | " |
