Skip to content

Commit

Permalink
manticoresearch 6.3.6
Browse files Browse the repository at this point in the history
Also unbundle various libraries
  • Loading branch information
cho-m committed Sep 7, 2024
1 parent ca61452 commit 9b09a46
Showing 1 changed file with 29 additions and 11 deletions.
40 changes: 29 additions & 11 deletions Formula/m/manticoresearch.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
class Manticoresearch < Formula
desc "Open source text search engine"
homepage "https://manticoresearch.com"
url "https://github.com/manticoresoftware/manticoresearch/archive/refs/tags/6.2.12.tar.gz"
sha256 "272d9e3cc162b1fe08e98057c9cf6c2f90df0c3819037e0dafa200e5ff71cef9"
license "GPL-2.0-only" # License changes in the next release and must be removed from formula_license_mismatches
revision 1
url "https://github.com/manticoresoftware/manticoresearch/archive/refs/tags/6.3.6.tar.gz"
sha256 "d0409bde33f4fe89358ad7dbbad775e1499d4e61fed16d4fa84f9b29b89482d2"
license all_of: [
"GPL-3.0-or-later",
"BSD-2-Clause", # xxhash (our formula lacks cmake so cannot use)
"GPL-2.0-only", # wsrep resource
{ "GPL-2.0-only" => { with: "x11vnc-openssl-exception" } }, # galera resource
{ any_of: ["Unlicense", "MIT"] }, # uni-algo (our formula is too new)
]
version_scheme 1
head "https://github.com/manticoresoftware/manticoresearch.git", branch: "master"

Expand All @@ -26,36 +31,49 @@ class Manticoresearch < Formula

depends_on "boost" => :build
depends_on "cmake" => :build
depends_on "nlohmann-json" => :build
depends_on "snowball" => :build # for stemmer

# NOTE: `libpq`, `mysql-client`, `unixodbc` and `zstd` are dynamically loaded rather than linked
depends_on "cctz"
depends_on "icu4c"
depends_on "libpq"
depends_on "mysql-client@8.0"
depends_on "mysql-client"
depends_on "openssl@3"
depends_on "re2"
depends_on "unixodbc"
depends_on "zlib" # due to `mysql-client`
depends_on "zstd"

uses_from_macos "bison" => :build
uses_from_macos "flex" => :build
uses_from_macos "libxml2"
uses_from_macos "zlib"

fails_with gcc: "5"

def install

Check failure on line 54 in Formula/m/manticoresearch.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew install --verbose --formula --build-bottle manticoresearch` failed on Linux!

1588 | XXH_PUBLIC_API XXH_PUREF int XXH128_isEqual(XXH128_hash_t h1, XXH128_hash_t h2); | ^~~~~~~~~~~~~~ /tmp/manticoresearch-20240907-18813-bqrc76/cache/linux-x86_64/xxhash/include/xxhash.h:1602:1: error: conflicting specifiers in declaration of ‘XXH_INLINE_XXH128_cmp’ 1602 | XXH_PUBLIC_API XXH_PUREF int XXH128_cmp(XXH_NOESCAPE const void* h128_1, XXH_NOESCAPE const void* h128_2); | ^~~~~~~~~~~~~~ /tmp/manticoresearch-20240907-18813-bqrc76/cache/linux-x86_64/xxhash/include/xxhash.h:1619:1: error: conflicting specifiers in declaration of ‘XXH_INLINE_XXH128_canonicalFromHash’ 1619 | XXH_PUBLIC_API void XXH128_canonicalFromHash(XXH_NOESCAPE XXH128_canonical_t* dst, XXH128_hash_t hash); | ^~~~~~~~~~~~~~ /tmp/manticoresearch-20240907-18813-bqrc76/cache/linux-x86_64/xxhash/include/xxhash.h:1632:1: error: conflicting specifiers in declaration of ‘XXH_INLINE_XXH128_hashFromCanonical’ 1632 | XXH_PUBLIC_API XXH_PUREF XXH128_hash_t XXH128_hashFromCanonical(XXH_NOESCAPE const XXH128_canonical_t* src); | ^~~~~~~~~~~~~~ /tmp/manticoresearch-20240907-18813-bqrc76/cache/linux-x86_64/xxhash/include/xxhash.h:1838:1: error: conflicting specifiers in declaration of ‘XXH_INLINE_XXH128’ 1838 | XXH_PUBLIC_API XXH_PUREF XXH128_hash_t XXH128(XXH_NOESCAPE const void* data, size_t len, XXH64_hash_t seed); | ^~~~~~~~~~~~~~ /tmp/manticoresearch-20240907-18813-bqrc76/cache/linux-x86_64/xxhash/include/xxhash.h:1902:1: error: conflicting specifiers in declaration of ‘XXH_INLINE_XXH3_generateSecret’ 1902 | XXH_PUBLIC_API XXH_errorcode XXH3_generateSecret(XXH_NOESCAPE void* secretBuffer, size_t secretSize, XXH_NOESCAPE const void* customSeed, size_t customSeedSize); | ^~~~~~~~~~~~~~ /tmp/manticoresearch-20240907-18813-bqrc76/cache/linux-x86_64/xxhash/include/xxhash.h:1942:1: error: conflicting specifiers in declaration of ‘XXH_INLINE_XXH3_generateSecret_fromSeed’ 1942 | XXH_PUBLIC_API void XXH3_generateSecret_fromSeed(XXH_NOESCAPE void* secretBuffer, XXH64_hash_t seed); | ^~~~~~~~~~~~~~ /tmp/manticoresearch-20240907-18813-bqrc76/cache/linux-x86_64/xxhash/include/xxhash.h:1978:1: error: conflicting specifiers in declaration of ‘XXH_INLINE_XXH3_64bits_withSecretandSeed’ 1978 | XXH_PUBLIC_API XXH_PUREF XXH64_hash_t | ^~~~~~~~~~~~~~ /tmp/manticoresearch-20240907-18813-bqrc76/cache/linux-x86_64/xxhash/include/xxhash.h:1996:1: error: conflicting specifiers in declaration of ‘XXH_INLINE_XXH3_128bits_withSecretandSeed’ 1996 | XXH_PUBLIC_API XXH_PUREF XXH128_hash_t | ^~~~~~~~~~~~~~ /tmp/manticoresearch-20240907-18813-bqrc76/cache/linux-x86_64/xxhash/include/xxhash.h:2014:1: error: conflicting specifiers in declaration of ‘XXH_INLINE_XXH3_64bits_reset_withSecretandSeed’ 2014 | XXH_PUBLIC_API XXH_errorcode | ^~~~~~~~~~~~~~ /tmp/manticoresearch-20240907-18813-bqrc76/cache/linux-x86_64/xxhash/include/xxhash.h:2031:1: error: conflicting specifiers in declaration of ‘XXH_INLINE_XXH3_128bits_reset_withSecretandSeed’ 2031 | XXH_PUBLIC_API XXH_errorcode | ^~~~~~~~~~~~~~ /tmp/manticoresearch-20240907-18813-bqrc76/cache/linux-x86_64/xxhash/include/xxhash.h:2806:1: error: conflicting specifiers in declaration of ‘XXH_INLINE_XXH_versionNumber’ 2806 | XXH_PUBLIC_API unsigned XXH_versionNumber (void) { return XXH_VERSION_NUMBER; } | ^~~~~~~~~~~~~~ /tmp/manticoresearch-20240907-18813-bqrc76/cache/linux-x86_64/xxhash/include/xxhash.h:3053:1: error: conflicting specifiers in declaration of ‘XXH_INLINE_XXH32’ 3053 | XXH_PUBLIC_API XXH32_hash_t XXH32 (const void* input, size_t len, XXH32_hash_t seed) | ^~~~~~~~~~~~~~ /tmp/manticoresearch-20240907-18813-bqrc76/cache/linux-x86_64/xxhash/include/xxhash.h:3076:1: error: conflicting specifiers in declaration of ‘XXH_INLINE_XXH32_createState’ 3076 | XXH_PUBLIC_API XXH32_state_t* XXH32_createState(void) | ^~~~~~~~~~~~~~ /tmp/manticoresearch-20240907-18813-bqrc76/cache/linux-x86_64/xxhash/include/xxhash.h:3081:1: error: conflicting specifiers in declaration of ‘XXH_INLINE_XXH32_freeState’ 3081 | XXH_PUBLIC_API XXH_errorcode XXH32_freeState(XX
# ENV["DIAGNOSTIC"] = "1"
ENV["ICU_ROOT"] = Formula["icu4c"].opt_prefix.to_s
ENV["OPENSSL_ROOT_DIR"] = Formula["openssl"].opt_prefix.to_s
ENV["MYSQL_ROOT_DIR"] = Formula["mysql-client@8.0"].opt_prefix.to_s
ENV["MYSQL_ROOT_DIR"] = Formula["mysql-client"].opt_prefix.to_s
ENV["PostgreSQL_ROOT"] = Formula["libpq"].opt_prefix.to_s

args = %W[
-DDISTR_BUILD=homebrew
-DCMAKE_INSTALL_LOCALSTATEDIR=#{var}
-DCMAKE_INSTALL_SYSCONFDIR=#{etc}
-DRE2_LIBRARY=#{Formula["re2"].opt_lib/shared_library("libre2")}
-DWITH_RE2_FORCE_STATIC=OFF
-DWITH_ICU_FORCE_STATIC=OFF
-D_LOCALSTATEDIR=#{var}
-D_RUNSTATEDIR=#{var}/run
-D_SYSCONFDIR=#{etc}
-DWITH_STEMMER_FORCE_STATIC=OFF
-DCMAKE_REQUIRE_FIND_PACKAGE_ICU=ON
-DCMAKE_REQUIRE_FIND_PACKAGE_cctz=ON
-DCMAKE_REQUIRE_FIND_PACKAGE_nlohmann_json=ON
-DCMAKE_REQUIRE_FIND_PACKAGE_re2=ON
-DCMAKE_REQUIRE_FIND_PACKAGE_stemmer=ON
]

system "cmake", "-S", ".", "-B", "build", *std_cmake_args, *args
system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
end
Expand Down

0 comments on commit 9b09a46

Please sign in to comment.