diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-08-31 08:59:54 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-08-31 08:59:54 +0100 |
commit | 3b08f674e3f771b49370edb144dab0958c8cf721 (patch) | |
tree | 3673eb62859b2343bc70589f2f9d670c2eee5cc8 /dev-util/meson/files | |
parent | b1c81de4fadbd00897700a7321f03b390d952b2e (diff) |
gentoo resync : 31.08.2021
Diffstat (limited to 'dev-util/meson/files')
-rw-r--r-- | dev-util/meson/files/meson-mcompile-treat-load-average-as-a-float.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-util/meson/files/meson-mcompile-treat-load-average-as-a-float.patch b/dev-util/meson/files/meson-mcompile-treat-load-average-as-a-float.patch new file mode 100644 index 000000000000..9effb382be22 --- /dev/null +++ b/dev-util/meson/files/meson-mcompile-treat-load-average-as-a-float.patch @@ -0,0 +1,28 @@ +From bb07c850c77e2bd07e1261547bc6b1e6b024f31d Mon Sep 17 00:00:00 2001 +From: Mike Gilbert <floppym@gentoo.org> +Date: Fri, 27 Aug 2021 10:17:14 -0400 +Subject: [PATCH] mcompile: treat load-average as a float + +`ninja -l` accepts a double. We should do the same. + +Bug: https://bugs.gentoo.org/810655 +--- + mesonbuild/mcompile.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/mesonbuild/mcompile.py b/mesonbuild/mcompile.py +index bb7ecae9b..e20485c76 100644 +--- a/mesonbuild/mcompile.py ++++ b/mesonbuild/mcompile.py +@@ -305,7 +305,7 @@ def add_arguments(parser: 'argparse.ArgumentParser') -> None: + '-l', '--load-average', + action='store', + default=0, +- type=int, ++ type=float, + help='The system load average to try to maintain (if supported).' + ) + parser.add_argument( +-- +2.33.0 + |