Date: Wed, 18 Feb 2026 09:45:04 +0000 From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 66b4edd4af54 - main - databases/greptimedb: Unbundle protobuf Message-ID: <69958a20.1e5fd.2c3365@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=66b4edd4af54b6c99c30c69640f7b4cbeb4cc8f2 commit 66b4edd4af54b6c99c30c69640f7b4cbeb4cc8f2 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2026-02-18 09:43:31 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2026-02-18 09:45:02 +0000 databases/greptimedb: Unbundle protobuf PR: 293208 Requested by: Robert Clausecker <fuz@FreeBSD.org> --- databases/greptimedb/Makefile | 1 + ...h-cargo-crates_protobuf-src-1.1.0+21.5_build.rs | 47 ++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/databases/greptimedb/Makefile b/databases/greptimedb/Makefile index bda3ceb7b63b..3480d790618d 100644 --- a/databases/greptimedb/Makefile +++ b/databases/greptimedb/Makefile @@ -1,6 +1,7 @@ PORTNAME= greptimedb DISTVERSIONPREFIX= v DISTVERSION= 1.0.0-rc.1-nightly-20260216 +PORTREVISION= 1 CATEGORIES= databases MAINTAINER= yuri@FreeBSD.org diff --git a/databases/greptimedb/files/patch-cargo-crates_protobuf-src-1.1.0+21.5_build.rs b/databases/greptimedb/files/patch-cargo-crates_protobuf-src-1.1.0+21.5_build.rs new file mode 100644 index 000000000000..8d72cb10a527 --- /dev/null +++ b/databases/greptimedb/files/patch-cargo-crates_protobuf-src-1.1.0+21.5_build.rs @@ -0,0 +1,47 @@ +--- cargo-crates/protobuf-src-1.1.0+21.5/build.rs.orig 2026-02-18 01:45:33 UTC ++++ cargo-crates/protobuf-src-1.1.0+21.5/build.rs +@@ -1,38 +1,9 @@ +-// Copyright Materialize, Inc. All rights reserved. +-// +-// Licensed under the Apache License, Version 2.0 (the "License"); +-// you may not use this file except in compliance with the License. +-// You may obtain a copy of the License in the LICENSE file at the +-// root of this repository, or online at +-// +-// http://www.apache.org/licenses/LICENSE-2.0 +-// +-// Unless required by applicable law or agreed to in writing, software +-// distributed under the License is distributed on an "AS IS" BASIS, +-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-// See the License for the specific language governing permissions and +-// limitations under the License. +- ++// FreeBSD: Use system protobuf instead of building from source + use std::env; +-use std::error::Error; +-use std::fs; +-use std::path::PathBuf; + +-fn main() -> Result<(), Box<dyn Error>> { +- let out_dir = PathBuf::from(env::var("OUT_DIR")?); +- let install_dir = out_dir.join("install"); +- fs::create_dir_all(&install_dir)?; +- +- autotools::Config::new("protobuf") +- .disable("maintainer-mode", None) +- .out_dir(&install_dir) +- .build(); +- +- // Move the build directory out of the installation directory. +- let _ = fs::remove_dir_all(out_dir.join("build")); +- fs::rename(install_dir.join("build"), out_dir.join("build"))?; +- +- println!("cargo:rustc-env=INSTALL_DIR={}", install_dir.display()); +- println!("cargo:CXXBRIDGE_DIR0={}/include", install_dir.display()); +- Ok(()) ++fn main() { ++ let prefix = env::var("LOCALBASE").unwrap_or_else(|_| "/usr/local".to_string()); ++ println!("cargo:rustc-env=INSTALL_DIR={}", prefix); ++ println!("cargo:CXXBRIDGE_DIR0={}/include", prefix); ++ println!("cargo:rerun-if-env-changed=LOCALBASE"); + }home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69958a20.1e5fd.2c3365>
