From 68c702598e0f5f339d1a6ef568be276e55fe67ed Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 18 Aug 2020 19:55:02 +0200 Subject: [PATCH] zeek: google sucks, part 2 (fix build on ppc*-musl) --- .../zeek/patches/google-sucks-part-2.patch | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 srcpkgs/zeek/patches/google-sucks-part-2.patch diff --git a/srcpkgs/zeek/patches/google-sucks-part-2.patch b/srcpkgs/zeek/patches/google-sucks-part-2.patch new file mode 100644 index 00000000000..2af534821e8 --- /dev/null +++ b/srcpkgs/zeek/patches/google-sucks-part-2.patch @@ -0,0 +1,36 @@ +From 6a57ff6feaa2900c8a65d0563925171198f5ce64 Mon Sep 17 00:00:00 2001 +From: Daniel Kolesa +Date: Tue, 18 Aug 2020 19:52:01 +0200 +Subject: [PATCH] fix highwayhash on ppc/musl + +--- + auxil/highwayhash/highwayhash/arch_specific.cc | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git auxil/highwayhash/highwayhash/arch_specific.cc auxil/highwayhash/highwayhash/arch_specific.cc +index 82d1574..198a82f 100644 +--- auxil/highwayhash/highwayhash/arch_specific.cc ++++ auxil/highwayhash/highwayhash/arch_specific.cc +@@ -171,15 +171,18 @@ double InvariantTicksPerSecond() { + #if HH_ARCH_PPC + #if __GLIBC__ + static const double cycles_per_second = __ppc_get_timebase_freq(); ++ return cycles_per_second; + #elif __FreeBSD__ + static double cycles_per_second = 0; + size_t length = sizeof(cycles_per_second); + sysctlbyname("kern.timecounter.tc.timebase.frequency", &cycles_per_second, &length, NULL, 0); +-#endif + return cycles_per_second; + #else + return NominalClockRate(); + #endif ++#else ++ return NominalClockRate(); ++#endif + } + + } // namespace highwayhash +-- +2.28.0 +