commit bazel0.29 for openSUSE:Leap:15.2
Hello community, here is the log from the commit of package bazel0.29 for openSUSE:Leap:15.2 checked in at 2020-01-30 15:47:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/bazel0.29 (Old) and /work/SRC/openSUSE:Leap:15.2/.bazel0.29.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "bazel0.29" Thu Jan 30 15:47:03 2020 rev:1 rq:767962 version:0.29.1 Changes: -------- New Changes file: --- /dev/null 2019-12-19 10:12:34.003146842 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.bazel0.29.new.26092/bazel0.29.changes 2020-01-30 15:47:11.109295598 +0100 @@ -0,0 +1,33 @@ +------------------------------------------------------------------- +Mon Dec 2 16:31:26 UTC 2019 - Klaus Kämpf <kkaempf@suse.com> + +- Add patch which fixes build on s390x architecture: + * 0002-fix-build-for-s390x.patch + +- s390x: build with Java 11, adapt Java stack/heap + +------------------------------------------------------------------- +Mon Dec 2 11:17:18 UTC 2019 - Klaus Kämpf <kkaempf@suse.com> + +- add _constraints to fix build on s390x + +------------------------------------------------------------------- +Wed Nov 27 09:06:58 UTC 2019 - Dirk Mueller <dmueller@suse.com> + +- revert aarch64 build workarounds, underlying problem has been fixed (bsc#1138529) + +------------------------------------------------------------------- +Tue Oct 15 14:44:54 UTC 2019 - Michał Rostecki <mrostecki@opensuse.org> + +- Add patch which fixes build on ppc64le architecture: + * 0001-fix-build-for-Power.patch + +------------------------------------------------------------------- +Tue Oct 15 11:17:15 UTC 2019 - Michał Rostecki <mrostecki@opensuse.org> + +- Fix collision between grpc's gettid and glibc's gettid + +------------------------------------------------------------------- +Wed Sep 11 16:42:29 UTC 2019 - Michał Rostecki <mrostecki@opensuse.org> + +- Initial release New: ---- 0001-fix-build-for-Power.patch 0002-fix-build-for-s390x.patch _constraints bazel-0.29.1-dist.zip bazel-0.29.1-dist.zip.sig bazel0.29.changes bazel0.29.spec ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ bazel0.29.spec ++++++ # # spec file for package bazel0.29 # # Copyright (c) 2019 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define bashcompdir %(pkg-config --variable=completionsdir bash-completion 2>/dev/null) %define shortname bazel %define shortver 0.29 #Workaround for s390x (Java 1.8 runs out of memory) %ifarch s390x %if 0%{?suse_version} > 1500 %define openjdktouse java-12-openjdk-devel %else %define openjdktouse java-11-openjdk-devel %endif %else %define openjdktouse java-1_8_0-openjdk-devel %endif Name: bazel%{shortver} Version: 0.29.1 Release: 0 Summary: Tool for the automation of building and testing of software License: Apache-2.0 Group: Development/Tools/Building URL: http://bazel.io/ Source0: https://github.com/bazelbuild/bazel/releases/download/%{version}/%{shortname}-%{version}-dist.zip Source1: https://github.com/bazelbuild/bazel/releases/download/%{version}/%{shortname}-%{version}-dist.zip.sig Patch1: 0001-fix-build-for-Power.patch Patch2: 0002-fix-build-for-s390x.patch BuildRequires: gcc-c++ BuildRequires: java-1_8_0-openjdk-devel BuildRequires: pkgconfig BuildRequires: python3 BuildRequires: unzip BuildRequires: zip BuildRequires: pkgconfig(bash-completion) BuildRequires: pkgconfig(zlib) Requires(post): update-alternatives Requires(postun): update-alternatives Requires: %{openjdktouse} Provides: bazel = %{version} ExcludeArch: %ix86 %description Tool for the automation of building and testing of software. It supports Java, C++ and Go as programing languages. It also has a support for Android and iOS as mobile operating systems. %prep %setup -q -c %patch1 -p1 %patch2 -p1 # Remove executable permissions chmod 0644 AUTHORS CHANGELOG.md CONTRIBUTORS LICENSE # Use Python 3 find . -type f \( -name "*.py" -o -name "*.txt" \) -exec sed -i 's|#!.*python.*|#!/usr/bin/python3|' "{}" + find . -type f -name "*.java" -exec sed -i 's|#!/usr/bin/env python|#!/usr/bin/python3|' "{}" + # Fix collision between grpc's gettid and glibc's gettid find third_party/grpc -type f -name "*.cc" -exec sed -i -e 's|gettid(|my_gettid(|g' {} + %build %ifarch aarch64 %arm export BAZEL_JAVAC_OPTS="-J-Xmx2g -J-Xms200m" %endif %ifarch s390x export BAZEL_JAVAC_OPTS="-J-Xmx4g -J-Xms1g" %endif CC=gcc CXX=g++ EXTRA_BAZEL_ARGS="--host_javabase=@local_jdk//:jdk" ./compile.sh ./scripts/generate_bash_completion.sh \ --bazel=output/bazel \ --output=output/bazel-complete.bash \ --prepend=scripts/bazel-complete-header.bash \ --prepend=scripts/bazel-complete-template.bash ./output/bazel shutdown %install export NO_BRP_STRIP_DEBUG=true export NO_DEBUGINFO_STRIP_DEBUG=true %define __debug_install_post %{nil} : >debugfiles.list : >debugsources.list : >debugsourcefiles.list install -Dm0755 output/bazel %{buildroot}%{_bindir}/bazel%{shortver} install -Dm0644 output/bazel-complete.bash %{buildroot}%{_datadir}/%{name}/bazel-complete.bash # update-alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives ln -sf %{_sysconfdir}/alternatives/bazel %{buildroot}%{_bindir}/bazel mkdir -p %{buildroot}%{_datadir}/bash-completion/completions ln -sf %{_sysconfdir}/alternatives/bazel-complete.bash %{buildroot}%{_datadir}/bash-completion/completions/bazel %post update-alternatives \ --install %{_bindir}/bazel bazel %{_bindir}/bazel%{shortver} 29 \ --slave %{_datadir}/bash-completion/completions/bazel \ bazel-complete.bash \ %{_datadir}/%{name}/bazel-complete.bash %postun if [ $1 -eq 0 ] ; then update-alternatives --remove bazel %{_bindir}/bazel%{shortver} fi %files %doc AUTHORS CHANGELOG.md CONTRIBUTORS %license LICENSE %{_bindir}/bazel %{_bindir}/bazel%{shortver} %{_datadir}/bash-completion/completions/bazel %dir %{_datadir}/%{name} %{_datadir}/%{name}/bazel-complete.bash %ghost %{_sysconfdir}/alternatives/bazel %ghost %{_sysconfdir}/alternatives/bazel-complete.bash %changelog ++++++ 0001-fix-build-for-Power.patch ++++++ From 837c9625207a997f3c1226d1299a2a53980fbe9b Mon Sep 17 00:00:00 2001 From: Christy Norman <christy@linux.vnet.ibm.com> Date: Fri, 27 Sep 2019 07:29:15 -0700 Subject: [PATCH 1/2] fix build for Power The zip -d flag will error if it doesn't find that extension. This is a fix for Power, but doesn't fix the default case. Signed-off-by: Christy Norman <christy@linux.vnet.ibm.com> Closes #9346. PiperOrigin-RevId: 271566240 --- src/conditions/BUILD | 6 ++++++ third_party/BUILD | 1 + 2 files changed, 7 insertions(+) diff --git a/src/conditions/BUILD b/src/conditions/BUILD index 2b28e28057..faa41a439d 100644 --- a/src/conditions/BUILD +++ b/src/conditions/BUILD @@ -10,6 +10,12 @@ filegroup( visibility = ["//src:__pkg__"], ) +config_setting( + name = "linux_ppc", + values = {"cpu": "ppc"}, + visibility = ["//visibility:public"], +) + config_setting( name = "linux_x86_64", values = {"cpu": "k8"}, diff --git a/third_party/BUILD b/third_party/BUILD index 159006d741..b2c0163d61 100644 --- a/third_party/BUILD +++ b/third_party/BUILD @@ -526,6 +526,7 @@ UNNECESSARY_DYNAMIC_LIBRARIES = select({ # The .so file is an x86 one, so we can just remove it if the CPU is not x86 "//src/conditions:arm": "*.so *.jnilib *.dll", "//src/conditions:linux_aarch64": "*.so *.jnilib *.dll", + "//src/conditions:linux_ppc": "*.so *.jnilib *.dll", # Play it safe -- better have a big binary than a slow binary # zip -d does require an argument. Supply something bogus. "//conditions:default": "*.bogusextension", -- 2.23.0 ++++++ 0002-fix-build-for-s390x.patch ++++++ diff -ruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs ../orig-bazel/src/conditions/BUILD ./src/conditions/BUILD --- ../orig-bazel/src/conditions/BUILD 2019-12-02 17:29:24.692172896 +0100 +++ ./src/conditions/BUILD 2019-12-02 17:29:55.476790588 +0100 @@ -11,6 +11,12 @@ ) config_setting( + name = "linux_s390x", + values = {"cpu": "s390x"}, + visibility = ["//visibility:public"], +) + +config_setting( name = "linux_ppc", values = {"cpu": "ppc"}, visibility = ["//visibility:public"], diff -ruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs ../orig-bazel/third_party/BUILD ./third_party/BUILD --- ../orig-bazel/third_party/BUILD 2019-12-02 17:29:31.784315198 +0100 +++ ./third_party/BUILD 2019-12-02 17:30:15.361189561 +0100 @@ -527,6 +527,7 @@ "//src/conditions:arm": "*.so *.jnilib *.dll", "//src/conditions:linux_aarch64": "*.so *.jnilib *.dll", "//src/conditions:linux_ppc": "*.so *.jnilib *.dll", + "//src/conditions:linux_s390x": "*.so *.jnilib *.dll", # Play it safe -- better have a big binary than a slow binary # zip -d does require an argument. Supply something bogus. "//conditions:default": "*.bogusextension", ++++++ _constraints ++++++ <constraints> <hardware> <physicalmemory> <size unit="M">8000</size> </physicalmemory> </hardware> </constraints>
participants (1)
-
root