From: "Mike Gilbert" <floppym@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/meson/, dev-util/meson/files/
Date: Fri, 27 Aug 2021 17:06:41 +0000 (UTC) [thread overview]
Message-ID: <1630083907.c7c6ead31a2d6047ef2d3dd3fb60182f1456124f.floppym@gentoo> (raw)
commit: c7c6ead31a2d6047ef2d3dd3fb60182f1456124f
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 27 17:05:07 2021 +0000
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Fri Aug 27 17:05:07 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7c6ead3
dev-util/meson: accept floating point values for load-average
Closes: https://bugs.gentoo.org/810655
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
...on-mcompile-treat-load-average-as-a-float.patch | 28 ++++++++++++++++++++++
...{meson-0.58.2.ebuild => meson-0.58.2-r1.ebuild} | 4 ++++
...{meson-0.59.1.ebuild => meson-0.59.1-r1.ebuild} | 4 ++++
3 files changed, 36 insertions(+)
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 00000000000..9effb382be2
--- /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
+
diff --git a/dev-util/meson/meson-0.58.2.ebuild b/dev-util/meson/meson-0.58.2-r1.ebuild
similarity index 97%
rename from dev-util/meson/meson-0.58.2.ebuild
rename to dev-util/meson/meson-0.58.2-r1.ebuild
index 3056c22a3bd..0b7b12ebfbb 100644
--- a/dev-util/meson/meson-0.58.2.ebuild
+++ b/dev-util/meson/meson-0.58.2-r1.ebuild
@@ -33,6 +33,10 @@ DEPEND="
)
"
+PATCHES=(
+ "${FILESDIR}/meson-mcompile-treat-load-average-as-a-float.patch"
+)
+
python_prepare_all() {
local disable_unittests=(
# ASAN and sandbox both want control over LD_PRELOAD
diff --git a/dev-util/meson/meson-0.59.1.ebuild b/dev-util/meson/meson-0.59.1-r1.ebuild
similarity index 97%
rename from dev-util/meson/meson-0.59.1.ebuild
rename to dev-util/meson/meson-0.59.1-r1.ebuild
index e2a175666ca..5d637ceeedd 100644
--- a/dev-util/meson/meson-0.59.1.ebuild
+++ b/dev-util/meson/meson-0.59.1-r1.ebuild
@@ -33,6 +33,10 @@ DEPEND="
)
"
+PATCHES=(
+ "${FILESDIR}/meson-mcompile-treat-load-average-as-a-float.patch"
+)
+
python_prepare_all() {
local disable_unittests=(
# ASAN and sandbox both want control over LD_PRELOAD
next reply other threads:[~2021-08-27 17:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-27 17:06 Mike Gilbert [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-01-13 16:24 [gentoo-commits] repo/gentoo:master commit in: dev-util/meson/, dev-util/meson/files/ Fabian Groffen
2023-12-03 1:09 Sam James
2022-07-14 0:40 Mike Gilbert
2022-03-28 5:44 Sam James
2021-12-27 3:41 Mike Gilbert
2020-07-04 23:45 Mike Gilbert
2020-06-19 18:38 Fabian Groffen
2020-05-24 16:46 Mike Gilbert
2019-08-22 15:52 William Hubbs
2018-10-07 2:27 Mike Gilbert
2018-10-07 0:26 Mike Gilbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1630083907.c7c6ead31a2d6047ef2d3dd3fb60182f1456124f.floppym@gentoo \
--to=floppym@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox