This commit is contained in:
2025-08-28 15:09:54 +02:00
parent 97b20f2751
commit 1005ef4e90
14 changed files with 290 additions and 28 deletions

View File

@@ -1,7 +1,7 @@
# $FreeBSD: head/net/libyang/Makefile 507372 2019-07-26 20:46:53Z gerald $
PORTNAME= libyang
PORTVERSION= 2.0.194
PORTVERSION= 2.1.128
DISTVERSIONPREFIX= v
#DISTVERSIONSUFFIX= -r4
CATEGORIES= net

View File

@@ -1,3 +1,3 @@
TIMESTAMP = 1663937671
SHA256 (CESNET-libyang-v2.0.194_GH0.tar.gz) = 94898ee391c238dcd29ff21092e5dcab4e17b9623e88862a55b72fc6168846f8
SIZE (CESNET-libyang-v2.0.194_GH0.tar.gz) = 1150705
TIMESTAMP = 1756384882
SHA256 (CESNET-libyang-v2.1.128_GH0.tar.gz) = 19a5fe2742ccd68cc90bd7b28736d518ebea4241e798fa49a01b5e6f8a79928e
SIZE (CESNET-libyang-v2.1.128_GH0.tar.gz) = 1262102

View File

@@ -1,15 +1,9 @@
--- ./CMakeLists.txt.orig 2022-09-23 14:54:58.761570000 +0200
+++ ./CMakeLists.txt 2022-09-23 14:55:42.829418000 +0200
@@ -62,12 +62,12 @@
set(LIBYANG_MAJOR_VERSION 2)
set(LIBYANG_MINOR_VERSION 0)
set(LIBYANG_MICRO_VERSION 194)
-set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION})
+set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION})
# set version of the library
--- ./CMakeLists.txt.orig 2023-10-11 09:55:04.000000000 +0200
+++ ./CMakeLists.txt 2025-08-28 14:42:36.295074000 +0200
@@ -67,7 +67,7 @@
set(LIBYANG_MAJOR_SOVERSION 2)
set(LIBYANG_MINOR_SOVERSION 20)
set(LIBYANG_MICRO_SOVERSION 15)
set(LIBYANG_MINOR_SOVERSION 41)
set(LIBYANG_MICRO_SOVERSION 0)
-set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MINOR_SOVERSION}.${LIBYANG_MICRO_SOVERSION})
+set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION})
set(LIBYANG_SOVERSION ${LIBYANG_MAJOR_SOVERSION})

View File

@@ -1,11 +0,0 @@
--- ./CMakeModules/UseCompat.cmake.orig 2022-05-06 08:57:14.000000000 +0200
+++ ./CMakeModules/UseCompat.cmake 2022-09-23 14:54:58.764665000 +0200
@@ -49,7 +49,7 @@
include(CheckStructHasMember)
check_struct_has_member("struct tm" tm_gmtoff time.h HAVE_TM_GMTOFF)
- check_symbol_exists(timezone time.h HAVE_TIME_H_TIMEZONE)
+# check_symbol_exists(timezone time.h HAVE_TIME_H_TIMEZONE)
check_symbol_exists(realpath "stdlib.h" HAVE_REALPATH)
check_symbol_exists(localtime_r "time.h" HAVE_LOCALTIME_R)

View File

@@ -3,14 +3,14 @@ bin/yangre
include/libyang/config.h
include/libyang/context.h
include/libyang/dict.h
include/libyang/hash_table.h
include/libyang/in.h
include/libyang/libyang.h
include/libyang/log.h
include/libyang/metadata.h
include/libyang/out.h
include/libyang/parser_data.h
include/libyang/parser_schema.h
include/libyang/plugins_exts_compile.h
include/libyang/plugins_exts_print.h
include/libyang/plugins_exts.h
include/libyang/plugins_types.h
include/libyang/plugins.h
@@ -27,4 +27,15 @@ lib/libyang.so.2
lib/pkgconfig/libyang.pc
man/man1/yanglint.1.gz
man/man1/yangre.1.gz
share/yang/modules/libyang/ietf-datastores@2018-02-14.yang
share/yang/modules/libyang/ietf-inet-types@2013-07-15.yang
share/yang/modules/libyang/ietf-yang-library@2019-01-04.yang
share/yang/modules/libyang/ietf-yang-metadata@2016-08-05.yang
share/yang/modules/libyang/ietf-yang-schema-mount@2019-01-14.yang
share/yang/modules/libyang/ietf-yang-structure-ext@2020-06-17.yang
share/yang/modules/libyang/ietf-yang-types@2013-07-15.yang
share/yang/modules/libyang/yang@2022-06-16.yang
@dir include/libyang
@dir share/yang/modules/libyang
@dir share/yang/modules
@dir share/yang

27
devel/protobuf-c/Makefile Normal file
View File

@@ -0,0 +1,27 @@
# Created by: Aaron Hurt <ahurt@anbcs.com>
# $FreeBSD: head/devel/protobuf-c/Makefile 487272 2018-12-12 01:35:33Z gerald $
PORTNAME= protobuf-c
PORTVERSION= 1.5.1
DISTVERSIONPREFIX= v
CATEGORIES= devel
MAINTAINER= truckman@FreeBSD.org
COMMENT= Code generator and libraries to use Protocol Buffers from pure C
LIB_DEPENDS= libprotobuf.so:devel/protobuf
USES= autoreconf compiler:c++11-lang gmake
GNU_CONFIGURE= yes
USE_GITHUB= yes
USE_LDCONFIG= yes
CONFIGURE_ARGS+= --with-pkgconfigdir=${PREFIX}/lib/pkgconfig
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
ALL_TARGET= all
INSTALL_TARGET= install-strip
.include <bsd.port.mk>

View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1756383064
SHA256 (protobuf-c-protobuf-c-v1.5.1_GH0.tar.gz) = f3046f94ef6f85cf4311f6c4c51e2095c381ce7bb7fd4f90ea8d9cd99fca3c04
SIZE (protobuf-c-protobuf-c-v1.5.1_GH0.tar.gz) = 137938

View File

@@ -0,0 +1,5 @@
This package provides a code generator and runtime libraries to use
Protocol Buffers from pure C (not C++).
It uses a modified version of protoc called protoc-c.
WWW: https://github.com/protobuf-c/protobuf-c

View File

@@ -0,0 +1,13 @@
bin/protoc-c
bin/protoc-gen-c
include/google/protobuf-c/protobuf-c.h
include/protobuf-c/protobuf-c.h
include/protobuf-c/protobuf-c.proto
lib/libprotobuf-c.a
lib/libprotobuf-c.la
lib/libprotobuf-c.so
lib/libprotobuf-c.so.1
lib/pkgconfig/libprotobuf-c.pc
@dir include/google/protobuf-c
@dir include/google
@dir include/protobuf-c

42
devel/protobuf/Makefile Normal file
View File

@@ -0,0 +1,42 @@
# Created by: vanilla
# $FreeBSD: head/devel/protobuf/Makefile 497411 2019-03-31 13:41:02Z sunpoet $
PORTNAME= protobuf
PORTVERSION= 3.21.12
CATEGORIES= devel
MASTER_SITES= https://github.com/protocolbuffers/protobuf/releases/download/v${PORTVERSION:R:E}.${PORTVERSION:E}/
DISTVERSIONPREFIX= cpp-
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Data interchange format library
BROKEN_sparc64= fails to compile: no atomic ops available
#GH_ACCOUNT= protocolbuffers
#USE_GITHUB= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USES= autoreconf libtool compiler:c++11-lang gmake pkgconfig
CFLAGS+= -D_THREAD_SAFE -DGOOGLE_PROTOBUF_NO_RTTI -I${WRKSRC}/src
CONFIGURE_ENV= CC_FOR_BUILD="${CC}"
CONFIGURE_ENV+= CFLAGS_FOR_BUILD="${CFLAGS}"
CONFIGURE_ENV+= CPPFLAGS_FOR_BUILD="${CPPFLAGS}"
CONFIGURE_ENV+= CXX_FOR_BUILD="${CXX}"
CONFIGURE_ENV+= CXXFLAGS_FOR_BUILD="${CXXFLAGS}"
CONFIGURE_ENV+= LDFLAGS_FOR_BUILD="${LDFLAGS}"
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
TEST_ARGS= ${MAKE_ARGS} ${_MAKE_JOBS}
TEST_TARGET= check
USE_CXXSTD= c++11
USE_LDCONFIG= yes
post-patch:
@${REINPLACE_CMD} -e 's|^check-local:|disabled-&|' ${WRKSRC}/Makefile.am
@${REINPLACE_CMD} -Ee '/gtest|mock/ s|[^ ]*lib(.*)\.la|-l\1|' ${WRKSRC}/src/Makefile.am
.include <bsd.port.mk>

3
devel/protobuf/distinfo Normal file
View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1685100153
SHA256 (protobuf-cpp-3.21.12.tar.gz) = 4eab9b524aa5913c6fffb20b2a8abf5ef7f95a80bc0701f3a6dbb4c607f73460
SIZE (protobuf-cpp-3.21.12.tar.gz) = 4842303

View File

@@ -0,0 +1,13 @@
Obtained from: https://cgit.freebsd.org/ports/commit/?id=c212fb9fcceacf49ac4f236c7944aaec5d3cfa57
--- src/google/protobuf/arena_impl.h.orig 2022-09-29 19:05:00 UTC
+++ src/google/protobuf/arena_impl.h
@@ -640,7 +640,7 @@ class PROTOBUF_EXPORT ThreadSafeArena {
#ifdef _MSC_VER
#pragma warning(disable : 4324)
#endif
- struct alignas(kCacheAlignment) CacheAlignedLifecycleIdGenerator {
+ struct alignas(alignof(std::atomic<LifecycleIdAtomic>)) CacheAlignedLifecycleIdGenerator {
std::atomic<LifecycleIdAtomic> id;
};
static CacheAlignedLifecycleIdGenerator lifecycle_id_generator_;

5
devel/protobuf/pkg-descr Normal file
View File

@@ -0,0 +1,5 @@
Protocol Buffers are a way of encoding structured data in an efficient yet
extensible format. Google uses Protocol Buffers for almost all of its internal
RPC protocols and file formats.
WWW: https://github.com/protocolbuffers/protobuf

157
devel/protobuf/pkg-plist Normal file
View File

@@ -0,0 +1,157 @@
bin/protoc
include/google/protobuf/any.h
include/google/protobuf/any.pb.h
include/google/protobuf/any.proto
include/google/protobuf/api.pb.h
include/google/protobuf/api.proto
include/google/protobuf/arena_impl.h
include/google/protobuf/arena.h
include/google/protobuf/arenastring.h
include/google/protobuf/arenaz_sampler.h
include/google/protobuf/compiler/code_generator.h
include/google/protobuf/compiler/command_line_interface.h
include/google/protobuf/compiler/cpp/cpp_generator.h
include/google/protobuf/compiler/cpp/file.h
include/google/protobuf/compiler/cpp/generator.h
include/google/protobuf/compiler/cpp/helpers.h
include/google/protobuf/compiler/cpp/names.h
include/google/protobuf/compiler/csharp/csharp_doc_comment.h
include/google/protobuf/compiler/csharp/csharp_generator.h
include/google/protobuf/compiler/csharp/csharp_names.h
include/google/protobuf/compiler/csharp/csharp_options.h
include/google/protobuf/compiler/importer.h
include/google/protobuf/compiler/java/generator.h
include/google/protobuf/compiler/java/java_generator.h
include/google/protobuf/compiler/java/kotlin_generator.h
include/google/protobuf/compiler/java/names.h
include/google/protobuf/compiler/objectivec/objectivec_generator.h
include/google/protobuf/compiler/objectivec/objectivec_helpers.h
include/google/protobuf/compiler/parser.h
include/google/protobuf/compiler/php/php_generator.h
include/google/protobuf/compiler/plugin.h
include/google/protobuf/compiler/plugin.pb.h
include/google/protobuf/compiler/plugin.proto
include/google/protobuf/compiler/python/generator.h
include/google/protobuf/compiler/python/pyi_generator.h
include/google/protobuf/compiler/python/python_generator.h
include/google/protobuf/compiler/ruby/ruby_generator.h
include/google/protobuf/descriptor_database.h
include/google/protobuf/descriptor.h
include/google/protobuf/descriptor.pb.h
include/google/protobuf/descriptor.proto
include/google/protobuf/duration.pb.h
include/google/protobuf/duration.proto
include/google/protobuf/dynamic_message.h
include/google/protobuf/empty.pb.h
include/google/protobuf/empty.proto
include/google/protobuf/endian.h
include/google/protobuf/explicitly_constructed.h
include/google/protobuf/extension_set_inl.h
include/google/protobuf/extension_set.h
include/google/protobuf/field_access_listener.h
include/google/protobuf/field_mask.pb.h
include/google/protobuf/field_mask.proto
include/google/protobuf/generated_enum_reflection.h
include/google/protobuf/generated_enum_util.h
include/google/protobuf/generated_message_bases.h
include/google/protobuf/generated_message_reflection.h
include/google/protobuf/generated_message_tctable_decl.h
include/google/protobuf/generated_message_tctable_impl.h
include/google/protobuf/generated_message_util.h
include/google/protobuf/has_bits.h
include/google/protobuf/implicit_weak_message.h
include/google/protobuf/inlined_string_field.h
include/google/protobuf/io/coded_stream.h
include/google/protobuf/io/gzip_stream.h
include/google/protobuf/io/io_win32.h
include/google/protobuf/io/printer.h
include/google/protobuf/io/strtod.h
include/google/protobuf/io/tokenizer.h
include/google/protobuf/io/zero_copy_stream_impl_lite.h
include/google/protobuf/io/zero_copy_stream_impl.h
include/google/protobuf/io/zero_copy_stream.h
include/google/protobuf/map_entry_lite.h
include/google/protobuf/map_entry.h
include/google/protobuf/map_field_inl.h
include/google/protobuf/map_field_lite.h
include/google/protobuf/map_field.h
include/google/protobuf/map_type_handler.h
include/google/protobuf/map.h
include/google/protobuf/message_lite.h
include/google/protobuf/message.h
include/google/protobuf/metadata_lite.h
include/google/protobuf/metadata.h
include/google/protobuf/parse_context.h
include/google/protobuf/port_def.inc
include/google/protobuf/port_undef.inc
include/google/protobuf/port.h
include/google/protobuf/reflection_internal.h
include/google/protobuf/reflection_ops.h
include/google/protobuf/reflection.h
include/google/protobuf/repeated_field.h
include/google/protobuf/repeated_ptr_field.h
include/google/protobuf/service.h
include/google/protobuf/source_context.pb.h
include/google/protobuf/source_context.proto
include/google/protobuf/struct.pb.h
include/google/protobuf/struct.proto
include/google/protobuf/stubs/bytestream.h
include/google/protobuf/stubs/callback.h
include/google/protobuf/stubs/casts.h
include/google/protobuf/stubs/common.h
include/google/protobuf/stubs/hash.h
include/google/protobuf/stubs/logging.h
include/google/protobuf/stubs/macros.h
include/google/protobuf/stubs/map_util.h
include/google/protobuf/stubs/mutex.h
include/google/protobuf/stubs/once.h
include/google/protobuf/stubs/platform_macros.h
include/google/protobuf/stubs/port.h
include/google/protobuf/stubs/status.h
include/google/protobuf/stubs/stl_util.h
include/google/protobuf/stubs/stringpiece.h
include/google/protobuf/stubs/strutil.h
include/google/protobuf/stubs/template_util.h
include/google/protobuf/text_format.h
include/google/protobuf/timestamp.pb.h
include/google/protobuf/timestamp.proto
include/google/protobuf/type.pb.h
include/google/protobuf/type.proto
include/google/protobuf/unknown_field_set.h
include/google/protobuf/util/delimited_message_util.h
include/google/protobuf/util/field_comparator.h
include/google/protobuf/util/field_mask_util.h
include/google/protobuf/util/json_util.h
include/google/protobuf/util/message_differencer.h
include/google/protobuf/util/time_util.h
include/google/protobuf/util/type_resolver_util.h
include/google/protobuf/util/type_resolver.h
include/google/protobuf/wire_format_lite.h
include/google/protobuf/wire_format.h
include/google/protobuf/wrappers.pb.h
include/google/protobuf/wrappers.proto
lib/libprotobuf-lite.a
lib/libprotobuf-lite.so
lib/libprotobuf-lite.so.32
lib/libprotobuf.a
lib/libprotobuf.so
lib/libprotobuf.so.32
lib/libprotoc.a
lib/libprotoc.so
lib/libprotoc.so.32
lib/pkgconfig/protobuf-lite.pc
lib/pkgconfig/protobuf.pc
@dir include/google/protobuf/compiler/cpp
@dir include/google/protobuf/compiler/csharp
@dir include/google/protobuf/compiler/java
@dir include/google/protobuf/compiler/objectivec
@dir include/google/protobuf/compiler/php
@dir include/google/protobuf/compiler/python
@dir include/google/protobuf/compiler/ruby
@dir include/google/protobuf/compiler
@dir include/google/protobuf/io
@dir include/google/protobuf/stubs
@dir include/google/protobuf/util
@dir include/google/protobuf
@dir include/google
@dir lib/pkgconfig