···1+From: Jack Baldry <jack.baldry@grafana.com>
2+Date: Tue, 15 Nov 2022 15:40:31 -0400
3+Subject: [PATCH] Remove circular definition of AUDIT_FILTER_EXCLUDE
4+5+https://github.com/osquery/osquery/issues/6551
6+7+Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
8+---
9+ libraries/cmake/source/libaudit/src/lib/libaudit.h | 1 -
10+ 1 file changed, 1 deletion(-)
11+12+diff --git a/libraries/cmake/source/libaudit/src/lib/libaudit.h b/libraries/cmake/source/libaudit/src/libaudit.h
13+--- a/libraries/cmake/source/libaudit/src/lib/libaudit.h
14++++ b/libraries/cmake/source/libaudit/src/lib/libaudit.h
15+@@ -260,7 +260,6 @@ extern "C" {
16+ #define AUDIT_KEY_SEPARATOR 0x01
17+18+ /* These are used in filter control */
19+-#define AUDIT_FILTER_EXCLUDE AUDIT_FILTER_TYPE
20+ #define AUDIT_FILTER_MASK 0x07 /* Mask to get actual filter */
21+ #define AUDIT_FILTER_UNSET 0x80 /* This value means filter is unset */
22+23+--
24+2.38.1
25+
+37
pkgs/tools/system/osquery/Remove-git-reset.patch
···0000000000000000000000000000000000000
···1+From: Jack Baldry <jack.baldry@grafana.com>
2+Date: Tue, 15 Nov 2022 13:48:07 -0400
3+Subject: [PATCH] Remove git reset
4+5+This is not required for nixpkgs builds because we are not working in
6+the source repository and therefore do not need to be careful about
7+updating submodule content.
8+9+Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
10+---
11+ libraries/cmake/source/modules/utils.cmake | 11 -----------
12+ 1 file changed, 11 deletions(-)
13+14+diff --git a/libraries/cmake/source/modules/utils.cmake b/libraries/cmake/source/modules/utils.cmake
15+--- a/libraries/cmake/source/modules/utils.cmake
16++++ b/libraries/cmake/source/modules/utils.cmake
17+@@ -102,17 +102,6 @@ function(patchSubmoduleSourceCode library_name patches_dir source_dir apply_to_d
18+ file(COPY "${source_dir}" DESTINATION "${parent_dir}")
19+ endif()
20+21+- # We need to restore the source code to its original state, pre patch
22+- execute_process(
23+- COMMAND "${GIT_EXECUTABLE}" reset --hard HEAD
24+- RESULT_VARIABLE process_exit_code
25+- WORKING_DIRECTORY "${source_dir}"
26+- )
27+-
28+- if(NOT ${process_exit_code} EQUAL 0)
29+- message(FATAL_ERROR "Failed to git reset the following submodule: \"${source_dir}\"")
30+- endif()
31+-
32+ set(patchSubmoduleSourceCode_Patched TRUE PARENT_SCOPE)
33+ endfunction()
34+35+--
36+2.38.1
37+
···1+From: Jack Baldry <jack.baldry@grafana.com>
2+Date: Tue, 15 Nov 2022 14:34:33 -0400
3+Subject: [PATCH] Use locale.h instead of removed xlocale.h header
4+5+https://sourceware.org/glibc/wiki/Release/2.26#Removal_of_.27xlocale.h.27
6+7+Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
8+---
9+ libraries/cmake/source/augeas/gnulib/generated/linux/x86_64/lib/locale.h | 4 ++--
10+ 1 file changed, 2 insertions(+), 2 deletions(-)
11+12+diff --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
13+--- a/libraries/cmake/source/augeas/gnulib/generated/linux/x86_64/lib/locale.h
14++++ b/libraries/cmake/source/augeas/gnulib/generated/linux/x86_64/lib/locale.h
15+@@ -48,9 +48,9 @@
16+ /* NetBSD 5.0 mis-defines NULL. */
17+ #include <stddef.h>
18+19+-/* Mac OS X 10.5 defines the locale_t type in <xlocale.h>. */
20++/* Mac OS X 10.5 defines the locale_t type in <locale.h>. */
21+ #if 1
22+-# include <xlocale.h>
23++# include <locale.h>
24+ #endif
25+26+ /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
27+--
28+2.38.1
29+