Merge pull request #14614 from Rmys/master

protobuf ver. bump
This commit is contained in:
Rmys
2024-07-31 12:42:06 +03:00
committed by GitHub
2 changed files with 37 additions and 17 deletions
+19 -14
View File
@@ -9,29 +9,34 @@ from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools from pisi.actionsapi import shelltools
from pisi.actionsapi import pythonmodules from pisi.actionsapi import pythonmodules
from pisi.actionsapi import cmaketools
WorkDir="%s" % get.srcDIR() WorkDir="%s" % get.srcDIR()
def setup(): def setup():
# create a folder for python3 build # create a folder for python3 build
shelltools.copy("python/", "python3/") # shelltools.copy("python/", "python3/")
# suppress compiler warnings # suppress compiler warnings
pisitools.cxxflags.add("-Wno-stringop-overflow -Wno-unused-function -Wno-deprecated-declarations") pisitools.cxxflags.add("-Wno-stringop-overflow -Wno-unused-function -Wno-deprecated-declarations")
shelltools.export("PTHREAD_LIBS", "-lpthread") shelltools.export("PTHREAD_LIBS", "-lpthread")
shelltools.system("./autogen.sh") # shelltools.system("./autogen.sh")
autotools.autoreconf("-vif") # autotools.autoreconf("-vif")
autotools.configure("--disable-static") cmaketools.configure("-D CMAKE_BUILD_TYPE=None \
-D CMAKE_INSTALL_PREFIX=/usr \
-D protobuf_BUILD_SHARED_LIBS=ON \
-D protobuf_USE_EXTERNAL_GTEST=ON \
-D protobuf_ABSL_PROVIDER=package")
# fix unused direct dependency analysis # fix unused direct dependency analysis
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ") # pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build(): def build():
autotools.make() cmaketools.make()
# shelltools.cd("python")
# pythonmodules.compile()
# shelltools.cd("..")
shelltools.cd("python") shelltools.cd("python")
pythonmodules.compile()
shelltools.cd("..")
shelltools.cd("python3")
pythonmodules.compile(pyVer="3") pythonmodules.compile(pyVer="3")
shelltools.cd("..") shelltools.cd("..")
@@ -46,15 +51,15 @@ def build():
# shelltools.cd("..") # shelltools.cd("..")
def install(): def install():
autotools.install() cmaketools.install()
# shelltools.cd("python")
# pythonmodules.install()
# shelltools.cd("..")
shelltools.cd("python") shelltools.cd("python")
pythonmodules.install()
shelltools.cd("..")
shelltools.cd("python3")
pythonmodules.install(pyVer="3") pythonmodules.install(pyVer="3")
shelltools.cd("..") shelltools.cd("..")
pisitools.insinto("/usr/share/vim/vimfiles/syntax/", "editors/proto.vim") pisitools.insinto("/usr/share/vim/vimfiles/syntax/", "editors/proto.vim")
pisitools.insinto("/usr/share/emacs/site-lisp/", "editors/protobuf-mode.el") pisitools.insinto("/usr/share/emacs/site-lisp/", "editors/protobuf-mode.el")
pisitools.dodoc("CHANGES.txt", "CONTRIBUTORS.txt", "LICENSE", "README.md") pisitools.dodoc("LICENSE", "CONTRIBUTORS.txt", "LICENSE", "README.md")
+18 -3
View File
@@ -13,13 +13,15 @@
<IsA>library</IsA> <IsA>library</IsA>
<Summary>Google's data interchange format</Summary> <Summary>Google's data interchange format</Summary>
<Description>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.</Description> <Description>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.</Description>
<Archive sha1sum="7aec582dff3ab784ca7d2a2c99e59c64e8866fb5" type="targz" name="protobuf-3.21.12.tar.gz">https://github.com/protocolbuffers/protobuf/archive/v3.21.12.tar.gz</Archive> <Archive sha1sum="45804be54bbc5716e99df20d0b53f5cca626977f" type="targz" name="protobuf-3.25.4.tar.gz">https://github.com/protocolbuffers/protobuf/archive/refs/tags/v3.25.4.tar.gz</Archive>
<BuildDependencies> <BuildDependencies>
<Dependency>cmake</Dependency>
<Dependency>python-wheel</Dependency> <Dependency>python-wheel</Dependency>
<Dependency>python-devel</Dependency> <Dependency>python-devel</Dependency>
<Dependency>python3-devel</Dependency> <Dependency>python3-devel</Dependency>
<Dependency>python-setuptools</Dependency> <Dependency>python-setuptools</Dependency>
<Dependency>python3-setuptools</Dependency> <Dependency>python3-setuptools</Dependency>
<Dependency>abseil-cpp-devel</Dependency>
</BuildDependencies> </BuildDependencies>
</Source> </Source>
@@ -29,6 +31,7 @@
<RuntimeDependencies> <RuntimeDependencies>
<Dependency>zlib</Dependency> <Dependency>zlib</Dependency>
<Dependency>libgcc</Dependency> <Dependency>libgcc</Dependency>
<Dependency>abseil-cpp</Dependency>
</RuntimeDependencies> </RuntimeDependencies>
<Files> <Files>
<Path fileType="doc">/usr/share/doc</Path> <Path fileType="doc">/usr/share/doc</Path>
@@ -36,6 +39,8 @@
<Path fileType="data">/usr/share/vim</Path> <Path fileType="data">/usr/share/vim</Path>
<Path fileType="data">/usr/share/emacs</Path> <Path fileType="data">/usr/share/emacs</Path>
<Path fileType="library">/usr/lib/libproto*</Path> <Path fileType="library">/usr/lib/libproto*</Path>
<Path fileType="library">/usr/lib/libutf8_range.a</Path>
<Path fileType="library">/usr/lib/libutf8_validity.a</Path>
</Files> </Files>
</Package> </Package>
@@ -44,14 +49,17 @@
<Summary>Development files for protobuf</Summary> <Summary>Development files for protobuf</Summary>
<RuntimeDependencies> <RuntimeDependencies>
<Dependency release="current">protobuf</Dependency> <Dependency release="current">protobuf</Dependency>
<Dependency>abseil-cpp-devel</Dependency>
</RuntimeDependencies> </RuntimeDependencies>
<Files> <Files>
<Path fileType="data">/usr/lib/pkgconfig</Path> <Path fileType="data">/usr/lib/pkgconfig</Path>
<Path fileType="library">/usr/lib/cmake</Path>
<Path fileType="header">/usr/include</Path>
<Path fileType="header">/usr/include/google/protobuf</Path> <Path fileType="header">/usr/include/google/protobuf</Path>
</Files> </Files>
</Package> </Package>
<Package> <!--Package>
<Name>python-protobuf</Name> <Name>python-protobuf</Name>
<Summary>Python 2 bindings for Google Protocol Buffers</Summary> <Summary>Python 2 bindings for Google Protocol Buffers</Summary>
<RuntimeDependencies> <RuntimeDependencies>
@@ -61,7 +69,7 @@
<Files> <Files>
<Path fileType="library">/usr/lib/python2*</Path> <Path fileType="library">/usr/lib/python2*</Path>
</Files> </Files>
</Package> </Package-->
<Package> <Package>
<Name>python3-protobuf</Name> <Name>python3-protobuf</Name>
@@ -77,6 +85,13 @@
</Package> </Package>
<History> <History>
<Update release="20">
<Date>2024-07-27</Date>
<Version>3.25.4</Version>
<Comment>Version bump.</Comment>
<Name>Pisi Linux Community</Name>
<Email>admin@pisilinux.org</Email>
</Update>
<Update release="19"> <Update release="19">
<Date>2023-11-04</Date> <Date>2023-11-04</Date>
<Version>3.21.12</Version> <Version>3.21.12</Version>