Skip to content

protobuf-c: update to 1.5.2; use protobuf #28447

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion databases/postgis3/Portfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

Check warning on line 1 in databases/postgis3/Portfile

View workflow job for this annotation

GitHub Actions / macos-14

port lint pg16-postgis3: Warning: Unnecessary platforms line as darwin is the default

Check warning on line 1 in databases/postgis3/Portfile

View workflow job for this annotation

GitHub Actions / macos-14

port lint pg15-postgis3: Warning: Unnecessary platforms line as darwin is the default

Check warning on line 1 in databases/postgis3/Portfile

View workflow job for this annotation

GitHub Actions / macos-14

port lint pg14-postgis3: Warning: Unnecessary platforms line as darwin is the default

Check warning on line 1 in databases/postgis3/Portfile

View workflow job for this annotation

GitHub Actions / macos-14

port lint pg13-postgis3: Warning: Unnecessary platforms line as darwin is the default

Check warning on line 1 in databases/postgis3/Portfile

View workflow job for this annotation

GitHub Actions / macos-14

port lint pg12-postgis3: Warning: Unnecessary platforms line as darwin is the default

Check warning on line 1 in databases/postgis3/Portfile

View workflow job for this annotation

GitHub Actions / macos-13

port lint pg16-postgis3: Warning: Unnecessary platforms line as darwin is the default

Check warning on line 1 in databases/postgis3/Portfile

View workflow job for this annotation

GitHub Actions / macos-13

port lint pg15-postgis3: Warning: Unnecessary platforms line as darwin is the default

Check warning on line 1 in databases/postgis3/Portfile

View workflow job for this annotation

GitHub Actions / macos-13

port lint pg14-postgis3: Warning: Unnecessary platforms line as darwin is the default

Check warning on line 1 in databases/postgis3/Portfile

View workflow job for this annotation

GitHub Actions / macos-13

port lint pg13-postgis3: Warning: Unnecessary platforms line as darwin is the default

Check warning on line 1 in databases/postgis3/Portfile

View workflow job for this annotation

GitHub Actions / macos-13

port lint pg12-postgis3: Warning: Unnecessary platforms line as darwin is the default

Check warning on line 1 in databases/postgis3/Portfile

View workflow job for this annotation

GitHub Actions / macos-15

port lint pg16-postgis3: Warning: Unnecessary platforms line as darwin is the default

Check warning on line 1 in databases/postgis3/Portfile

View workflow job for this annotation

GitHub Actions / macos-15

port lint pg15-postgis3: Warning: Unnecessary platforms line as darwin is the default

Check warning on line 1 in databases/postgis3/Portfile

View workflow job for this annotation

GitHub Actions / macos-15

port lint pg14-postgis3: Warning: Unnecessary platforms line as darwin is the default

Check warning on line 1 in databases/postgis3/Portfile

View workflow job for this annotation

GitHub Actions / macos-15

port lint pg13-postgis3: Warning: Unnecessary platforms line as darwin is the default

Check warning on line 1 in databases/postgis3/Portfile

View workflow job for this annotation

GitHub Actions / macos-15

port lint pg12-postgis3: Warning: Unnecessary platforms line as darwin is the default

PortSystem 1.0

Expand All @@ -6,7 +6,7 @@
categories databases gis
license GPL-2+
version 3.5.2
revision 0
revision 1
maintainers {yahoo.com:n_larsson @nilason} {vince @Veence} openmaintainer

description PostGIS is the spatial extension to the\
Expand Down
15 changes: 7 additions & 8 deletions devel/protobuf-c/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ PortSystem 1.0
PortGroup compiler_blacklist_versions 1.0
PortGroup github 1.0

github.setup protobuf-c protobuf-c 1.4.1 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision 2
github.setup protobuf-c protobuf-c 1.5.2 v
github.tarball_from releases
revision 0

checksums sha256 db25f31b88dc8b314c49f3759af505c041658e3efc970cf3f49abaa9f9bc768e \
rmd160 a8caaf94112abfefd733ed065a102621347b64f1 \
size 134612
checksums sha256 e2c86271873a79c92b58fef7ebf8de1aa0df4738347a8bd5d4e65a80a16d0d24 \
rmd160 7a24dec822f4753232c09c4367655cefb8d6ade6 \
size 532447

categories devel
license BSD
Expand All @@ -33,7 +32,7 @@ depends_build-append \
port:pkgconfig

depends_lib-append \
port:protobuf3-cpp
port:protobuf

compiler.cxx_standard 2014

Expand Down
125 changes: 125 additions & 0 deletions devel/protobuf/Portfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup compiler_blacklist_versions 1.0
PortGroup github 1.0
PortGroup cmake 1.1
PortGroup legacysupport 1.1

# clock_gettime needed for abseil
# https://github.com/macports/macports-ports/pull/19905#issuecomment-1680281240
legacysupport.newest_darwin_requires_legacy 15

name protobuf
github.setup protocolbuffers protobuf 30.2 v
git.branch v${version}
revision 0

dist_subdir ${name}/${version}

categories devel
maintainers nomaintainer
license BSD

description Encode data in an efficient yet extensible format.
long_description \
Google Protocol Buffers are a flexible, efficient, \
automated mechanism for serializing structured data -- \
think XML, but smaller, faster, and simpler. You \
define how you want your data to be structured once, \
then you can use special generated source code to \
easily write and read your structured data to and from \
a variety of data streams and using a variety of \
languages. You can even update your data structure \
without breaking deployed programs that are compiled \
against the "old" format. You specify how you want \
the information you're serializing to be structured by \
defining protocol buffer message types in .proto \
files. Each protocol buffer message is a small \
logical record of information, containing a series of \
name-value pairs.
homepage https://protobuf.dev

checksums rmd160 ef4d5bfc28aaec952d4300296016fd0ce8db3e66 \
sha256 fb06709acc393cc36f87c251bb28a5500a2e12936d4346099f2c6240f6c7a941 \
size 9506934

github.tarball_from releases
distname protobuf-${version}
worksrcdir protobuf-${version}

# Upstream adds zlib include - which is ${prefix}/include - before search path
# of 3rd-party components, like gtest, gmock, etc. That causes the external
# versions of those to be pulled in, and the build fails.
# So don't let the project cmake add zlib; already added (last) by base.
patchfiles-append cmake-zlib-include.diff

compiler.cxx_standard 2017
compiler.thread_local_storage yes
# error: constexpr constructor never produces a constant expression [-Winvalid-constexpr]
compiler.blacklist {clang < 900}

if { [string match *clang* ${configure.compiler}] } {
# Quiet deprecation warnings
configure.cxxflags-append \
-Wno-deprecated-declarations \
-Wno-error=unknown-warning-option \
-Wno-unknown-warning-option
}

# Clear optflags; controlled by project, via cmake build type
configure.optflags

if {[variant_isset debug]} {
cmake.build_type Debug
} else {
cmake.build_type RelWithDebInfo
}

depends_lib-append \
port:abseil \
port:zlib

configure.args-append \
-DBUILD_SHARED_LIBS:BOOL=ON \
-Dprotobuf_ABSL_PROVIDER=package \
-Dprotobuf_BUILD_LIBPROTOC:BOOL=ON \
-Dprotobuf_BUILD_PROTOC_BINARIES:BOOL=ON \
-Dprotobuf_BUILD_TESTS:BOOL=OFF

post-destroot {
set docdir ${destroot}${prefix}/share/doc/${name}

xinstall -d -m 755 ${docdir}

foreach f {CONTRIBUTING.md CONTRIBUTORS.txt LICENSE README.md SECURITY.md editors examples} {
file copy ${worksrcpath}/${f} ${docdir}
}
}

proc port_test_ver_check {p_name p_ver p_rev} {
if { [catch {set port_ver_info [lindex [registry_active ${p_name}] 0]}] } {
error "Tests require that ${p_name} be active; install, then re-run tests"
} else {
set test_ver ${p_ver}_${p_rev}
set port_ver [lindex ${port_ver_info} 1]_[lindex ${port_ver_info} 2]
ui_info "port_test_ver_check: ${p_name}: test_ver: ${test_ver}; port_ver: ${port_ver}"

if { [vercmp ${port_ver} ${test_ver}] != 0 } {
error "Tests require installed version of ${p_name} to match port; update, then re-run tests"
}
}
}

variant tests description {Build with tests enabled} {
pre-configure {
port_test_ver_check ${subport} ${version} ${revision}
}

configure.args-replace \
-Dprotobuf_BUILD_TESTS:BOOL=OFF \
-Dprotobuf_BUILD_TESTS:BOOL=ON

test.run yes
test.target check
}
10 changes: 10 additions & 0 deletions devel/protobuf/files/cmake-zlib-include.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- CMakeLists.txt.orig 2025-05-07 15:35:24
+++ CMakeLists.txt 2025-05-07 15:46:49
@@ -259,7 +259,6 @@
endif (MSVC)

include_directories(
- ${ZLIB_INCLUDE_DIRECTORIES}
${protobuf_BINARY_DIR}
# Support #include-ing other top-level directories, i.e. upb_generator.
${protobuf_SOURCE_DIR}
3 changes: 3 additions & 0 deletions finance/litecoin/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ long_description Litecoin is a peer-to-peer Internet currency that enables in

license MIT

# If/when this port is ever fixed, this can be removed
known_fail yes

homepage https://litecoin.org
master_sites https://download.litecoin.org/litecoin-${version}/src/

Expand Down
5 changes: 4 additions & 1 deletion gis/mapserver/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PortGroup cmake 1.1

name mapserver
version 8.0.2
revision 1
revision 2
maintainers hbaspecto.com:jea {yahoo.com:n_larsson @nilason} openmaintainer
categories gis
license permissive
Expand All @@ -14,6 +14,9 @@ description mapserver
long_description MapServer is an Open Source platform for publishing spatial \
data and interactive mapping applications to the web.

# If/when this port is ever fixed, this can be removed
known_fail yes

homepage https://mapserver.org
master_sites https://download.osgeo.org/mapserver

Expand Down
2 changes: 1 addition & 1 deletion gnome/libshumate/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PortGroup meson 1.0

name libshumate
version 1.2.2
revision 0
revision 1

categories gnome gis x11
license LGPL-2.1+
Expand Down
3 changes: 3 additions & 0 deletions math/caffe/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ revision 27
categories math science
maintainers nomaintainer

# If/when this port is ever fixed, this can be removed
known_fail yes

description a fast framework for deep learning
long_description {*}${description}

Expand Down
16 changes: 8 additions & 8 deletions math/shogun-devel/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,32 @@ PortGroup cmake 1.0
name shogun-devel
version 4.0.0
set branch [join [lrange [split ${version} .] 0 1] .]
revision 23
revision 24

categories math science
platforms darwin
license GPL-3
maintainers nomaintainer

conflicts shogun

maintainers nomaintainer
# If/when this port is ever fixed, this can be removed
known_fail yes

description The machine learning toolbox's focus is on large scale \
kernel methods

long_description ${description} and especially on Support Vector Machines \
(SVM). It provides a generic SVM object interfacing to \
several different SVM implementations, among them the \
state of the art OCAS, LibSVM, SVMLight, SVMLin and GPDT.

homepage http://shogun-toolbox.org
master_sites ${homepage}/archives/shogun/releases/${branch}/sources/

master_sites ${homepage}/archives/shogun/releases/${branch}/sources/
use_bzip2 yes

distname shogun-${version}

checksums rmd160 b6f63baeee7040ada85feb33374010a525384104 \
sha256 ab39d3cc27fc1ddf6128f6e3fc60217e73a843b51c20f5d3ceb69e6565a43695
sha256 ab39d3cc27fc1ddf6128f6e3fc60217e73a843b51c20f5d3ceb69e6565a43695 \
size 4627339

universal_variant no

Expand Down
4 changes: 2 additions & 2 deletions net/kismet/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PortGroup legacysupport 1.1

name kismet
version 2023-07-R1
revision 0
revision 1
checksums rmd160 c39c4f28b01238718e3e7bdc495808e1a1027dce \
sha256 f08548e26ca65fa1e567b1debbea1ca4d0e7206bddb96a4f639c90171873e8f7 \
size 11144120
Expand Down Expand Up @@ -49,7 +49,7 @@ depends_lib-append \
path:lib/libssl.dylib:openssl \
port:pcre \
port:protobuf-c \
port:protobuf3-cpp
port:protobuf

patchfiles-append patch-capture_osx_corewlan_wifi-Makefile.diff
patchfiles-append binary_function.patch
Expand Down
2 changes: 1 addition & 1 deletion net/knot-resolver/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ legacysupport.newest_darwin_requires_legacy 15

name knot-resolver
version 6.0.12
revision 0
revision 1
categories net
license GPL-3+
maintainers {mps @Schamschula} openmaintainer
Expand Down
2 changes: 1 addition & 1 deletion net/knot/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ legacysupport.newest_darwin_requires_legacy 15

name knot
version 3.4.6
revision 0
revision 1
categories net
license GPL-3+
maintainers {mps @Schamschula} openmaintainer
Expand Down
3 changes: 3 additions & 0 deletions net/ola/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ long_description The Open Lighting Architecture (OLA) provides a plugin \
which abstract away the underlying DMX over IP protocol \
or DMX interface.

# If/when this port is ever fixed, this can be removed
known_fail yes

homepage http://www.openlighting.org/ola/

checksums rmd160 f7435b1386e5ad0962cf7d62138ba95d0cda0058 \
Expand Down
2 changes: 1 addition & 1 deletion security/yara/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ legacysupport.newest_darwin_requires_legacy 10
github.setup VirusTotal yara 4.5.2 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision 0
revision 1

categories security
license GPL-2+
Expand Down
2 changes: 1 addition & 1 deletion sysutils/netdata/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ subport ${name}-dashboard {

name netdata-dashboard
version 3.0.4
revision 0
revision 1

description Static assets for the Netdata Agent dashboard.
long_description {*}${description}
Expand Down