summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-06-10 03:16:03 +0100
committerSam James <sam@gentoo.org>2022-06-10 03:27:01 +0100
commit1ca73aff9416bdaf4960ad351a54f723a1083fcd (patch)
tree9cf6e370485379403a95a485179d13f349d35aeb /dev-ruby/facter
parentdev-db/percona-xtrabackup: fix build with GCC 12 (diff)
downloadgentoo-1ca73aff9416bdaf4960ad351a54f723a1083fcd.tar.gz
gentoo-1ca73aff9416bdaf4960ad351a54f723a1083fcd.tar.bz2
gentoo-1ca73aff9416bdaf4960ad351a54f723a1083fcd.zip
dev-ruby/facter: fix build with GCC 12
Closes: https://bugs.gentoo.org/840116 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-ruby/facter')
-rw-r--r--dev-ruby/facter/facter-3.14.23.ebuild1
-rw-r--r--dev-ruby/facter/files/facter-3.14.23-gcc12.patch10
2 files changed, 11 insertions, 0 deletions
diff --git a/dev-ruby/facter/facter-3.14.23.ebuild b/dev-ruby/facter/facter-3.14.23.ebuild
index a8b3fb88f65b..0eeddc26c2f1 100644
--- a/dev-ruby/facter/facter-3.14.23.ebuild
+++ b/dev-ruby/facter/facter-3.14.23.ebuild
@@ -46,6 +46,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-3.14.6-fix-static-libcpp-hocon.patch
# be explicit about the version of rspec we test with
"${FILESDIR}"/${PN}-3.14.8-explicit-rspec-2.patch
+ "${FILESDIR}"/${PN}-3.14.23-gcc12.patch
)
pkg_setup() {
diff --git a/dev-ruby/facter/files/facter-3.14.23-gcc12.patch b/dev-ruby/facter/files/facter-3.14.23-gcc12.patch
new file mode 100644
index 000000000000..671b085a15b5
--- /dev/null
+++ b/dev-ruby/facter/files/facter-3.14.23-gcc12.patch
@@ -0,0 +1,10 @@
+https://bugs.gentoo.org/840116
+--- a/lib/src/facts/glib/load_average_resolver.cc
++++ b/lib/src/facts/glib/load_average_resolver.cc
+@@ -1,5 +1,6 @@
+ #include <internal/facts/glib/load_average_resolver.hpp>
+ #include <leatherman/logging/logging.hpp>
++#include <array>
+ #include <cstdlib>
+
+ #ifdef __sun