git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #42164 from Ma27/bump-osquery

osquery: 3.2.2 -> 3.2.8

commit22f818dcf3e9825f18b5191f8de3cecf36dabed7 authoradisbladis <adisbladis@gmail.com> dateMon 18 Jun 2018, 23:27 (8 years ago) parent934650ea6d2cd5
2 files changed+19−14
pkgs/tools/system/osquery/default.nix+4−4 pkgs/tools/system/osquery/misc.patch+15−10
pkgs/tools/system/osquery/default.nix+4−4
@@ -12,15 +12,15 @@ let
1212 thirdparty = fetchFromGitHub {
1313 owner = "osquery";
1414 repo = "third-party";
15− rev = "4ef099c31a1165c5e7e3a699f9e4b3eb68c3c3d9";
16− sha256 = "1vm0prw4dix0m51vkw9z0vwfd8698gqjw499q8h604hs1rvn6132";
15+ rev = "32e01462fbea75d3b1904693f937dfd62eaced15";
16+ sha256 = "0va24gmgk43a1lyjs63q9qrhvpv8gmqjzpjr5595vhr16idv8wyf";
1717 };
1818
1919in
2020
2121stdenv.mkDerivation rec {
2222 name = "osquery-${version}";
23− version = "3.2.2";
23+ version = "3.2.8";
2424
2525 # this is what `osquery --help` will show as the version.
2626 OSQUERY_BUILD_VERSION = version;
@@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
3030 owner = "facebook";
3131 repo = "osquery";
3232 rev = version;
33− sha256 = "0qwj4cy6m25sqwb0irqfqinipx50l4imnz1gqxx147vzfwb52jlq";
33+ sha256 = "1py5jizl7z1f9xzpg7pylbdnawvvifiyv9gpjwiim8ilgkmpaiv4";
3434 };
3535
3636 patches = [ ./misc.patch ];
pkgs/tools/system/osquery/misc.patch+15−10
@@ -1,8 +1,8 @@
11diff --git a/CMakeLists.txt b/CMakeLists.txt
2−index b8eb5a16..319d81dc 100644
2+index 71921740..156ea6dc 100644
33--- a/CMakeLists.txt
44+++ b/CMakeLists.txt
5−@@ -447,12 +447,6 @@ elseif(CLANG AND DEPS AND NOT FREEBSD)
5+@@ -456,12 +456,6 @@ elseif(CLANG AND DEPS AND NOT FREEBSD)
66 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -flto=thin")
77 endif()
88
@@ -15,7 +15,7 @@ index b8eb5a16..319d81dc 100644
1515 # Make sure deps were built before compiling (else show warning).
1616 execute_process(
1717 COMMAND "${CMAKE_SOURCE_DIR}/tools/provision.sh" check "${CMAKE_BINARY_DIR}"
18−@@ -518,6 +512,8 @@ endif()
18+@@ -528,6 +522,8 @@ endif()
1919
2020 if(APPLE)
2121 LOG_PLATFORM("OS X")
@@ -24,7 +24,7 @@ index b8eb5a16..319d81dc 100644
2424 elseif(OSQUERY_BUILD_PLATFORM STREQUAL "debian")
2525 LOG_PLATFORM("Debian")
2626 elseif(OSQUERY_BUILD_PLATFORM STREQUAL "ubuntu")
27−@@ -567,7 +563,6 @@ if(POSIX AND DEPS)
27+@@ -577,7 +573,6 @@ if(POSIX AND DEPS)
2828 endif()
2929 endif()
3030
@@ -32,7 +32,7 @@ index b8eb5a16..319d81dc 100644
3232 include_directories("${CMAKE_SOURCE_DIR}/include")
3333 include_directories("${CMAKE_SOURCE_DIR}")
3434
35−@@ -655,18 +650,6 @@ if(FREEBSD OR "${HAVE_TR1_TUPLE}" STREQUAL "")
35+@@ -668,18 +663,6 @@ if(FREEBSD OR "${HAVE_TR1_TUPLE}" STREQUAL "")
3636 add_definitions(-DGTEST_USE_OWN_TR1_TUPLE=0)
3737 endif()
3838
@@ -52,7 +52,7 @@ index b8eb5a16..319d81dc 100644
5252 add_subdirectory("${CMAKE_SOURCE_DIR}/third-party/linenoise-ng")
5353 endif()
5454diff --git a/osquery/CMakeLists.txt b/osquery/CMakeLists.txt
55−index 1c8201ee..a89e6821 100644
55+index c8cbac4e..a4382420 100644
5656--- a/osquery/CMakeLists.txt
5757+++ b/osquery/CMakeLists.txt
5858@@ -35,8 +35,6 @@ if(CLANG AND POSIX)
@@ -64,7 +64,7 @@ index 1c8201ee..a89e6821 100644
6464 -Wno-unused-parameter
6565 -Wno-gnu-case-range
6666 -Weffc++
67−@@ -61,14 +59,7 @@ endif()
67+@@ -65,14 +63,7 @@ endif()
6868
6969 # Construct a set of all object files, starting with third-party and all
7070 # of the osquery core objects (sources from ADD_CORE_LIBRARY macros).
@@ -80,7 +80,7 @@ index 1c8201ee..a89e6821 100644
8080
8181 # Add subdirectories
8282 add_subdirectory(config)
83−@@ -147,10 +138,11 @@ if(APPLE OR LINUX)
83+@@ -153,10 +144,11 @@ if(APPLE OR LINUX)
8484 ADD_OSQUERY_LINK_ADDITIONAL("rocksdb_lite")
8585 elseif(FREEBSD)
8686 ADD_OSQUERY_LINK_CORE("icuuc")
@@ -93,15 +93,20 @@ index 1c8201ee..a89e6821 100644
9393 if(POSIX)
9494 ADD_OSQUERY_LINK_CORE("boost_system")
9595 ADD_OSQUERY_LINK_CORE("boost_filesystem")
96−@@ -168,6 +160,8 @@ endif()
96+@@ -174,10 +166,10 @@ endif()
9797 ADD_OSQUERY_LINK_CORE("glog${WO_KEY}")
9898
9999 if(POSIX)
100+- # Hashing methods in core use libcrypto.
101+- ADD_OSQUERY_LINK_CORE("crypto")
102+-
100103+ ADD_OSQUERY_LINK_ADDITIONAL("benchmark")
101104+ ADD_OSQUERY_LINK_ADDITIONAL("snappy")
102105 ADD_OSQUERY_LINK_ADDITIONAL("ssl")
103− ADD_OSQUERY_LINK_ADDITIONAL("crypto")
106++ ADD_OSQUERY_LINK_ADDITIONAL("crypto")
104107 ADD_OSQUERY_LINK_ADDITIONAL("libpthread")
108+ ADD_OSQUERY_LINK_ADDITIONAL("magic")
109+ endif()
105110diff --git a/osquery/extensions/CMakeLists.txt b/osquery/extensions/CMakeLists.txt
106111index 52f3bf80..066ed1c0 100644
107112--- a/osquery/extensions/CMakeLists.txt