# protobuf/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. The source tarball used by this package was created based on "git" upstream sources. The following command was used: ocgitfetch --run \ --checkout=v3.25.8 \ --deletegit \ https://github.com/protocolbuffers/protobuf.git #--------------------------------------------------------------------- 2. This part is tricky: The releases of "abseil", "protobuf", and "protobuf-c" used need to be selected so as to be compatible with each other as well as with other packages that depend on them. As of Fall 2025, we weren't able to build "protobuf" 4.25.X using ei- ther "gcc" or "clang". This might or might not have been due to a con- flict with the release of "abseil" used at the time. #--------------------------------------------------------------------- [buildtimes] 00.14 hours (or 008.50 minutes) - ThinkPad W530 i7 4x2 32GB RAM #--------------------------------------------------------------------- [settings] altpkg = yes compiler = clang exepack = yes license = See "license*.txt" in installed tree licfile = LICENSE tmpsize = 848M setpaths = abseil protobuf zlib #--------------------------------------------------------------------- [depends] abseil actools cmake gawk grep pkgconf sed zlib #--------------------------------------------------------------------- [configure] PP=$PKGDIR_PROD mkdir obj && cd obj cmake \ -DCMAKE_BUILD_TYPE=RELEASE \ -DCMAKE_INSTALL_PREFIX=$PKGDIR_PROD \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=ON \ -Dprotobuf_BUILD_TESTS=OFF \ -DCMAKE_CXX_STANDARD=17 \ -Dprotobuf_ABSL_PROVIDER=package \ -DCMAKE_PREFIX_PATH=$PP/abseil \ .. #--------------------------------------------------------------------- [build] LIBDIR=$PKGDIR_PROD/lib mkdir -p $LIBDIR cd obj smpmake && smpmake install sed -e 's@libprotoc\.so[0-9.]*@-lprotoc@' \ -e 's@libprotobuf\..so[0-9.]*@-lprotobuf@' \ -i CMakeFiles/protoc.dir/link.txt rm protoc-[0-9.]* smpmake all && smpmake install #--------------------------------------------------------------------- # Original URLs. These URLs were valid at one point, but may have died # since then. If you download newer versions of tarballs [etc.], don't # delete the original versions, as you may not be able to replace # them. [urls] url_debian = tbd url_home = tbd url_lfs = tbd url_tarball = git # See "technotes" in "cfg" file #--------------------------------------------------------------------- [history] 190529 Updated from 2.5.0 to 3.8.0 210405 Updated to 3.15.7 240715 Updated to 63def39e8 - ("git" hash) same as 3.27.2 240801 Updated to 7cc670c18 - same as 3.27.3 241015 Dropped to 9d0ec0f92 - same as 3.25.5 250819 Updated to a4cbdd3ed - same as 3.25.8