Skip to content
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

{devel}[GCCcore/10.2.0] Bazel v3.7.2, flatbuffers v1.12.0, flatbuffers-python v1.12 w/ Python 3.8.6 #12148

Merged
merged 3 commits into from
Feb 13, 2021
Merged
Show file tree
Hide file tree
Changes from 2 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
20 changes: 20 additions & 0 deletions easybuild/easyconfigs/b/Bazel/Bazel-3.7.1_fix-protobuf-env.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
diff --git a/third_party/protobuf/3.13.0.patch b/third_party/protobuf/3.13.0.patch
index bde8684b82..3336ef4024 100644
--- a/third_party/protobuf/3.13.0.patch
+++ b/third_party/protobuf/3.13.0.patch
@@ -38,3 +38,15 @@ index cfdb28e2e..3705fdbe3 100644
+ "@io_bazel//third_party:gson",
],
)
+diff --git a/protobuf.bzl b/protobuf.bzl
+index 050eafc54..12d3edb94 100644
+--- a/protobuf.bzl
++++ b/protobuf.bzl
+@@ -352,6 +352,7 @@ def _internal_gen_well_known_protos_java_impl(ctx):
+ inputs = descriptors,
+ outputs = [srcjar],
+ arguments = [args],
++ use_default_shell_env = True,
+ )
+
+ return [
38 changes: 38 additions & 0 deletions easybuild/easyconfigs/b/Bazel/Bazel-3.7.2-GCCcore-10.2.0.eb
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name = 'Bazel'
version = '3.7.2'

homepage = 'https://bazel.io/'
description = """Bazel is a build tool that builds code quickly and reliably.
It is used to build the majority of Google's software."""

toolchain = {'name': 'GCCcore', 'version': '10.2.0'}

source_urls = ['https://github.com/bazelbuild/bazel/releases/download/%(version)s']
sources = ['%(namelower)s-%(version)s-dist.zip']
patches = [
'%(name)s-3.4.1-fix-grpc-protoc.patch',
'Bazel-3.7.1_fix-protobuf-env.patch',
]
checksums = [
'de255bb42163a915312df9f4b86e5b874b46d9e8d4b72604b5123c3a845ed9b1', # bazel-3.7.2-dist.zip
'f87ad8ad6922fd9c974381ea22b7b0e6502ccad5e532145f179b80d5599e24ac', # Bazel-3.4.1-fix-grpc-protoc.patch
'8706ecc99b658e0a96c38dc2c23e44da35059b85f308602aac76a6d6680376e7', # Bazel-3.7.1_fix-protobuf-env.patch
]

builddependencies = [
('binutils', '2.35'),
('Python', '3.8.6'),
('Zip', '3.0'),
]
dependencies = [('Java', '11', '', True)]

runtest = True
testopts = ' '.join([
'--',
'//examples/cpp:hello-success_test',
'//examples/py/...',
'//examples/py_native:test',
'//examples/shell/...',
])

moduleclass = 'devel'
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
easyblock = 'PythonPackage'

name = 'flatbuffers-python'
version = '1.12'

homepage = 'https://github.com/google/flatbuffers/'
description = """Python Flatbuffers runtime library."""

toolchain = {'name': 'GCCcore', 'version': '10.2.0'}

source_urls = ['https://pypi.python.org/packages/source/f/flatbuffers']
sources = [{'download_filename': 'flatbuffers-%(version)s.tar.gz', 'filename': SOURCE_TAR_GZ}]
checksums = ['63bb9a722d5e373701913e226135b28a6f6ac200d5cc7b4d919fa38d73b44610']

dependencies = [
('binutils', '2.35'),
('Python', '3.8.6'),
]

download_dep_fail = True
use_pip = True
sanity_pip_check = True

preinstallopts = 'VERSION=%(version)s '
options = {'modulename': 'flatbuffers'}

moduleclass = 'devel'
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
easyblock = 'CMakeNinja'

name = 'flatbuffers'
version = '1.12.0'

homepage = 'https://github.com/google/flatbuffers/'
description = """FlatBuffers: Memory Efficient Serialization Library"""

toolchain = {'name': 'GCCcore', 'version': '10.2.0'}
toolchainopts = {'pic': True}

source_urls = ['https://github.com/google/flatbuffers/archive/v%(version)s/']
sources = [SOURCE_TAR_GZ]
patches = [
'flatbuffers-1.12.0_replace-usage-of-memset.patch',
'flatbuffers-1.12.0_silence-str-op-false-positive.patch',
]
checksums = [
'62f2223fb9181d1d6338451375628975775f7522185266cd5296571ac152bc45',
# flatbuffers-1.12.0_replace-usage-of-memset.patch
'094a98b5a7debbc2c60c2b235942c79e505ec76f9281f87c95d15e9ad8a97c52',
# flatbuffers-1.12.0_silence-str-op-false-positive.patch
'4a9a18abc776407f3f97e02c40f349cfb24fe7ddb41df952271d894777a31c88',
]

builddependencies = [
('binutils', '2.35'),
('CMake', '3.18.4'),
('Ninja', '1.10.1'),
('Python', '3.8.6'),
]

configopts = '-DFLATBUFFERS_ENABLE_PCH=ON '

sanity_check_paths = {
'files': ['include/flatbuffers/flatbuffers.h', 'bin/flatc', 'lib/libflatbuffers.a'],
'dirs': ['lib/cmake'],
}

# exts_defaultclass = 'PythonPackage'
#
# exts_list = [
# (name, version, {
# 'source_urls': [PYPI_SOURCE],
# 'sources': {
# 'filename': '%(name)s-python-%(version)s.tar.gz',
# 'download_filename': '%(name)s-%(version_major_minor)s.tar.gz'
# },
# 'checksums': ['63bb9a722d5e373701913e226135b28a6f6ac200d5cc7b4d919fa38d73b44610'],
# 'download_dep_fail': True,
# 'use_pip': True,
# 'sanity_pip_check': False, # Doesn't work yet when Python is only a build dep
# 'preinstallopts': 'VERSION=%(version)s ',
# }),
# ]

moduleclass = 'devel'
Loading