Skip to content

Commit

Permalink
Merge pull request Homebrew#170079 from Homebrew/bump-riemann-client-…
Browse files Browse the repository at this point in the history
…2.2.1

riemann-client 2.2.1
  • Loading branch information
BrewTestBot authored Apr 26, 2024
2 parents 7800de8 + 5a39fd6 commit 97d144b
Showing 1 changed file with 57 additions and 10 deletions.
67 changes: 57 additions & 10 deletions Formula/r/riemann-client.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
class RiemannClient < Formula
desc "C client library for the Riemann monitoring system"
homepage "https://git.madhouse-project.org/algernon/riemann-c-client"
url "https://git.madhouse-project.org/algernon/riemann-c-client/archive/riemann-c-client-2.2.0.tar.gz"
sha256 "f690aea02a3652c9dc62372c4305d0b9e869cd8b7d9c22b964991a4bdf95d2be"
license "LGPL-3.0-or-later"
url "https://git.madhouse-project.org/algernon/riemann-c-client/archive/riemann-c-client-2.2.1.tar.gz"
sha256 "65daf32ad043ccd553a8314d1506914c2b71867d24b0e18380cb174e04861303"
license "EUPL-1.2"
head "https://git.madhouse-project.org/algernon/riemann-c-client.git", branch: "main"

bottle do
sha256 cellar: :any, arm64_sonoma: "250573eb7623272bd39a641f8425c54e25166c9d6f00536411199b3519b35d8a"
sha256 cellar: :any, arm64_ventura: "c9e0c1d3a35bfe73bc5bc680c907519f23cc10de654c6b9f1020af02133ae834"
sha256 cellar: :any, arm64_monterey: "b5b3a981e301f9b3a5ff8db896bdb2052b1125a515c7cdcb4d51fd6a2af2829a"
sha256 cellar: :any, sonoma: "952af9423fa3e8d590128d983107d5d209717f835f3c27fa9e4575fafccea41f"
sha256 cellar: :any, ventura: "27ab072b295b38bebaa72d9cc080739728104df3d1daf591bfeabf6b6f118ba4"
sha256 cellar: :any, monterey: "f4a2f5ac6aaf235950f83439d477423bdcb7f0985f9bba8cc58922a4ab59cc5f"
sha256 cellar: :any_skip_relocation, x86_64_linux: "08985d27aec02a506bf4aa2b6e59cfad8412d445cd8d91d59b67b87c017c406f"
sha256 cellar: :any, arm64_sonoma: "7854bc14bd566d2dde42dc063099cfc65f32e76b19753d707c6b2d3b9c25c7cd"
sha256 cellar: :any, arm64_ventura: "6c8e5b2f98803a91ff957f0052c2f2ba4bbc276fb4116bb244c8179b0f3ac835"
sha256 cellar: :any, arm64_monterey: "10c6ded8a26a5b556881b2dc045175c0c02fd5221c8fb79c58805f30c01c150d"
sha256 cellar: :any, sonoma: "7392770dda4b7a8a85ad01c6fff29755ebba6bf454569a452e0b179031a2ed20"
sha256 cellar: :any, ventura: "3cc09e98b21351ff7e33c35664467ffc1c2f7ddec512a3f4fed9aaa2b44b3717"
sha256 cellar: :any, monterey: "76fd317852de35fce96522105df18ef93ce9d58105f764c7d25715ebd14fadc3"
sha256 cellar: :any_skip_relocation, x86_64_linux: "5aedd6872a9056fc17d3defe1f0602b61653c0b6ebf698df90da0297be259dd4"
end

depends_on "autoconf" => :build
Expand All @@ -25,6 +25,9 @@ class RiemannClient < Formula
depends_on "openssl@3"
depends_on "protobuf-c"

# upstream build patch
patch :DATA

def install
system "autoreconf", "--force", "--install", "--verbose"
system "./configure", "--prefix=#{prefix}", "--with-tls=openssl"
Expand All @@ -37,3 +40,47 @@ def install
system "#{bin}/riemann-client", "send", "-h"
end
end

__END__
diff --git a/Makefile.am b/Makefile.am
index caf43c5..9eb8f55 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -68,7 +68,7 @@ CLEANFILES = ${proto_files}

${proto_files}: ${top_srcdir}/lib/riemann/proto/riemann.proto
${AM_V_at} ${mkinstalldirs} ${top_builddir}/lib/riemann/proto
- ${AM_V_GEN} protoc-c $^ -I${top_srcdir}/lib/riemann/proto --c_out=${top_builddir}/lib/riemann/proto
+ ${AM_V_GEN} ${PROTOC} $^ -I${top_srcdir}/lib/riemann/proto --c_out=${top_builddir}/lib/riemann/proto

if HAVE_VERSIONING
lib_libriemann_client_@TLS@_la_LDFLAGS += \
diff --git a/README.md b/README.md
index f5dcc20..f525e27 100644
--- a/README.md
+++ b/README.md
@@ -128,3 +128,7 @@ If, for some reason the build fails, one may need to regenerate the
`protobuf-c-compiler` generated headers (changes in the compiler are
known to cause issues). To do this, do a `make distclean` first, and
then start over from `configure`.
+
+If the protobuf-c compiler fails, and complains about `PROTO3` as maximum
+edition, install protobuf 26+ too, and either start over from `configure`, or
+set the `PROTOC` environment variable to `protoc`.
diff --git a/configure.ac b/configure.ac
index 8c4733c..4b48987 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,8 +35,8 @@ AC_PROG_CXX

LT_INIT([shared])

-AC_CHECK_PROG([HAS_PROTOC_C], [protoc-c], [yes])
-if test x$HAS_PROTOC_C != x"yes"; then
+AC_CHECK_PROGS([PROTOC], [protoc protoc-c])
+if test -z "${PROTOC}"; then
AC_MSG_ERROR([You need protoc-c installed and on your path to proceed. You can find it at https://github.com/protobuf-c/protobuf-c])
fi

--
2.44.0

0 comments on commit 97d144b

Please sign in to comment.