···11-From: Jack Baldry <jack.baldry@grafana.com>
22-Date: Tue, 15 Nov 2022 14:34:33 -0400
33-Subject: [PATCH] Use locale.h instead of removed xlocale.h header
44-55-https://sourceware.org/glibc/wiki/Release/2.26#Removal_of_.27xlocale.h.27
66-77-Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
88----
99- libraries/cmake/source/augeas/gnulib/generated/linux/x86_64/lib/locale.h | 4 ++--
1010- 1 file changed, 2 insertions(+), 2 deletions(-)
1111-11+diff --git a/libraries/cmake/source/augeas/gnulib/generated/linux/aarch64/lib/locale.h b/libraries/cmake/source/augeas/gnulib/generated/linux/aarch64/lib/locale.h
22+index 4f9baece2..afe947956 100644
33+--- a/libraries/cmake/source/augeas/gnulib/generated/linux/aarch64/lib/locale.h
44++++ b/libraries/cmake/source/augeas/gnulib/generated/linux/aarch64/lib/locale.h
55+@@ -48,9 +48,9 @@
66+ /* NetBSD 5.0 mis-defines NULL. */
77+ #include <stddef.h>
88+99+-/* Mac OS X 10.5 defines the locale_t type in <xlocale.h>. */
1010++/* Mac OS X 10.5 defines the locale_t type in <locale.h>. */
1111+ #if 1
1212+-# include <xlocale.h>
1313++# include <locale.h>
1414+ #endif
1515+1616+ /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
1217diff --git a/libraries/cmake/source/augeas/gnulib/generated/linux/x86_64/lib/locale.h b/libraries/cmake/source/augeas/gnulib/generated/linux/x86_64/lib/locale.h
1818+index 4f9baece2..afe947956 100644
1319--- a/libraries/cmake/source/augeas/gnulib/generated/linux/x86_64/lib/locale.h
1420+++ b/libraries/cmake/source/augeas/gnulib/generated/linux/x86_64/lib/locale.h
1521@@ -48,9 +48,9 @@
···2430 #endif
25312632 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
2727---
2828-2.38.1
2929-
+10
pkgs/tools/system/osquery/default.nix
···11{ lib
22, cmake
33, fetchFromGitHub
44+, fetchpatch
45, git
56, llvmPackages
67, nixosTests
···3233 ./Remove-circular-definition-of-AUDIT_FILTER_EXCLUDE.patch
3334 # For current state of compilation against glibc in the clangWithLLVM toolchain, refer to the upstream issue in https://github.com/osquery/osquery/issues/7823.
3435 ./Remove-system-controls-table.patch
3636+3737+ # osquery uses a vendored boost library that still relies on old standard types (e.g. `std::unary_function`)
3838+ # which have been removed as of C++17. The patch is already checked in upstream, but there have been no
3939+ # releases yet. Can likely be removed with versions > 5.10.2.
4040+ (fetchpatch {
4141+ name = "fix-build-on-clang-16.patch";
4242+ url = "https://github.com/osquery/osquery/commit/222991a15b4ae0a0fb919e4965603616536e1b0a.patch";
4343+ hash = "sha256-PdzEoeR1LXVri1Cd+7KMhKmDC8yZhAx3f1+9tjLJKyo=";
4444+ })
3545 ];
36463747