Package: bazel-bootstrap / 4.2.3+ds-11

Metadata

Package Version Patches format
bazel-bootstrap 4.2.3+ds-11 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
mock_repos.patch | (download)

mock_repos/bazel_skydoc/BUILD | 1 1 + 0 - 0 !
mock_repos/bazel_skydoc/WORKSPACE | 1 1 + 0 - 0 !
mock_repos/bazel_skydoc/setup.bzl | 18 18 + 0 - 0 !
mock_repos/bazel_skydoc/stardoc/BUILD | 1 1 + 0 - 0 !
mock_repos/bazel_skydoc/stardoc/html_tables_stardoc.bzl | 18 18 + 0 - 0 !
mock_repos/bazel_skydoc/stardoc/stardoc.bzl | 18 18 + 0 - 0 !
mock_repos/bazel_skylib/BUILD | 1 1 + 0 - 0 !
mock_repos/bazel_skylib/WORKSPACE | 1 1 + 0 - 0 !
mock_repos/bazel_skylib/bzl_library.bzl | 18 18 + 0 - 0 !
mock_repos/platforms/BUILD | 15 15 + 0 - 0 !
mock_repos/platforms/WORKSPACE | 1 1 + 0 - 0 !
mock_repos/platforms/cpu/BUILD | 76 76 + 0 - 0 !
mock_repos/platforms/os/BUILD | 78 78 + 0 - 0 !
mock_repos/remote_java_tools_linux/BUILD | 7 7 + 0 - 0 !
mock_repos/remote_java_tools_linux/WORKSPACE | 1 1 + 0 - 0 !
mock_repos/rules_cc/WORKSPACE | 1 1 + 0 - 0 !
mock_repos/rules_cc/cc/BUILD | 1 1 + 0 - 0 !
mock_repos/rules_cc/cc/defs.bzl | 36 36 + 0 - 0 !
mock_repos/rules_java/WORKSPACE | 1 1 + 0 - 0 !
mock_repos/rules_java/java/BUILD | 1 1 + 0 - 0 !
mock_repos/rules_java/java/defs.bzl | 39 39 + 0 - 0 !
mock_repos/rules_pkg/BUILD | 1 1 + 0 - 0 !
mock_repos/rules_pkg/WORKSPACE | 1 1 + 0 - 0 !
mock_repos/rules_pkg/deps.bzl | 18 18 + 0 - 0 !
mock_repos/rules_pkg/pkg.bzl | 18 18 + 0 - 0 !
mock_repos/rules_proto/WORKSPACE | 1 1 + 0 - 0 !
mock_repos/rules_proto/proto/BUILD | 1 1 + 0 - 0 !
mock_repos/rules_proto/proto/defs.bzl | 27 27 + 0 - 0 !
mock_repos/rules_proto/proto/private/BUILD | 1 1 + 0 - 0 !
mock_repos/rules_proto/proto/private/native.bzl | 24 24 + 0 - 0 !
30 files changed, 426 insertions(+)

 create mock repositories to prevent packaging binary archives
 Workaround created for Debian by upstream to prevent packaging archive files
 in Debian "source." This recreates only the portions of those .zip and .tar.gz
 files that are required for building Bazel on Debian.
remove_javac.patch | (download)

src/java_tools/buildjar/java/com/google/devtools/build/buildjar/BUILD | 2 0 + 2 - 0 !
src/java_tools/buildjar/java/com/google/devtools/build/buildjar/javac/plugins/BUILD | 4 0 + 4 - 0 !
src/java_tools/buildjar/java/com/google/devtools/build/buildjar/javac/statistics/BUILD | 1 0 + 1 - 0 !
3 files changed, 7 deletions(-)

 remove references to javac
 The Debian build uses the local javac.
remove_license_deps.patch | (download)

src/main/java/com/google/devtools/build/lib/runtime/commands/license/BUILD | 9 3 + 6 - 0 !
third_party/jarjar/BUILD | 1 0 + 1 - 0 !
third_party/zlib/BUILD | 2 1 + 1 - 0 !
3 files changed, 4 insertions(+), 8 deletions(-)

 remove license dependencies
 For third-party software that is not bundled in the Debian source tarball.
WORKSPACE.patch | (download)

WORKSPACE | 44 0 + 44 - 0 !
1 file changed, 44 deletions(-)

 debian-specific fixes in workspace file
 Bazel needs to download some dependencies just to properly parse the
 WORKSPACE file. We comment some load statements so that it wont download
 the things we dont need for building Bazel binary. Also, remove @io_bazel
 reference that was causing ccache failures.
package_before_making_self extracting.patch | (download)

compile.sh | 12 7 + 5 - 0 !
src/package-bazel.sh | 4 4 + 0 - 0 !
2 files changed, 11 insertions(+), 5 deletions(-)

 install into proper debian packaging directory
env_python3.patch | (download)

src/main/java/com/google/devtools/build/lib/bazel/rules/python/BazelPythonSemantics.java | 4 2 + 2 - 0 !
src/test/py/bazel/launcher_test.py | 4 2 + 2 - 0 !
tools/j2objc/j2objc_header_map.py | 2 1 + 1 - 0 !
tools/j2objc/j2objc_wrapper.py | 16 8 + 8 - 0 !
tools/objc/j2objc_dead_code_pruner.py | 16 7 + 9 - 0 !
5 files changed, 20 insertions(+), 22 deletions(-)

 update source code for python 3
 Python 2 reached End-of-Life in January 2020. This patch completely
 removes Python 2 support per release team guidance.
add trust_install_base option.patch | (download)

src/main/cpp/blaze.cc | 65 56 + 9 - 0 !
src/main/cpp/startup_options.cc | 8 7 + 1 - 0 !
src/main/cpp/startup_options.h | 9 9 + 0 - 0 !
3 files changed, 72 insertions(+), 10 deletions(-)

 add --trust_install_base option
 This will allow Bazel client to run individually without the appended
 zip archive, which is a requirement for Debian installation.
allow install base symlinks.patch | (download)

src/main/java/com/google/devtools/build/lib/exec/BinTools.java | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 accept symlinks in install base
fix privacy issues.patch | (download)

site/_includes/footer.html | 4 2 + 2 - 0 !
site/_includes/head.html | 6 1 + 5 - 0 !
site/_layouts/documentation.html | 3 0 + 3 - 0 !
3 files changed, 3 insertions(+), 10 deletions(-)

 correct privacy issues flagged by lintian
build bash_completion.patch | (download)

scripts/BUILD | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 build bash completion file
rename daemonize.patch | (download)

src/main/tools/BUILD | 2 1 + 1 - 0 !
src/main/tools/daemonize.c | 210 0 + 210 - 0 !
src/main/tools/daemonize.cc | 210 210 + 0 - 0 !
3 files changed, 211 insertions(+), 211 deletions(-)

 rename daemonize.c to daemonize.cc
 The .c extension was preventing it from receiving build hardening flags.
change sysmtem rc file location.patch | (download)

src/main/cpp/BUILD | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 change system rc file location
 Prevent config file conflicts with user Bazel installations.
remove android rules.patch | (download)

scripts/bootstrap/compile.sh | 2 1 + 1 - 0 !
src/main/java/com/google/devtools/build/lib/bazel/BUILD | 2 0 + 2 - 0 !
src/main/java/com/google/devtools/build/lib/bazel/Bazel.java | 1 0 + 1 - 0 !
src/main/java/com/google/devtools/build/lib/bazel/BazelRepositoryModule.java | 6 0 + 6 - 0 !
src/main/java/com/google/devtools/build/lib/bazel/rules/BUILD | 2 0 + 2 - 0 !
src/main/java/com/google/devtools/build/lib/bazel/rules/BazelRuleClassProvider.java | 136 0 + 136 - 0 !
6 files changed, 1 insertion(+), 148 deletions(-)

 remove android rules
 Temporary fix for unavailability of Android packages in Debian Testing
enable debian junit4.patch | (download)

third_party/BUILD | 3 2 + 1 - 0 !
tools/distributions/debian/debian_java.BUILD | 9 9 + 0 - 0 !
2 files changed, 11 insertions(+), 1 deletion(-)

 enable junit4 use in debian builds
support mips64el and riscv64.patch | (download)

mock_repos/platforms/cpu/BUILD | 10 10 + 0 - 0 !
1 file changed, 10 insertions(+)

 support mips64el and riscv64 architectures
add_toolchain_support_for_mips64.patch | (download)

scripts/bootstrap/bootstrap.sh | 2 1 + 1 - 0 !
src/conditions/BUILD | 6 6 + 0 - 0 !
src/conditions/BUILD.tools | 6 6 + 0 - 0 !
src/java_tools/buildjar/BUILD | 6 3 + 3 - 0 !
src/main/java/com/google/devtools/build/lib/analysis/config/AutoCpuConverter.java | 4 4 + 0 - 0 !
src/main/java/com/google/devtools/build/lib/bazel/repository/LocalConfigPlatformFunction.java | 2 2 + 0 - 0 !
src/main/java/com/google/devtools/build/lib/util/CPU.java | 1 1 + 0 - 0 !
third_party/BUILD | 6 6 + 0 - 0 !
tools/cpp/BUILD.tools | 29 29 + 0 - 0 !
tools/cpp/lib_cc_configure.bzl | 2 2 + 0 - 0 !
tools/jdk/BUILD | 2 2 + 0 - 0 !
tools/platforms/BUILD | 7 7 + 0 - 0 !
tools/platforms/BUILD.tools | 7 7 + 0 - 0 !
13 files changed, 76 insertions(+), 4 deletions(-)

 add toolchain support for the mips64el architecture
increase_heap_size_for_javac.patch | (download)

tools/build_rules/java_rules_skylark.bzl | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 increase heap size for javac
add_toolchain_support_for_riscv64.patch | (download)

src/conditions/BUILD | 6 6 + 0 - 0 !
src/conditions/BUILD.tools | 6 6 + 0 - 0 !
src/main/java/com/google/devtools/build/lib/analysis/config/AutoCpuConverter.java | 4 4 + 0 - 0 !
src/main/java/com/google/devtools/build/lib/bazel/repository/LocalConfigPlatformFunction.java | 2 2 + 0 - 0 !
src/main/java/com/google/devtools/build/lib/util/CPU.java | 1 1 + 0 - 0 !
third_party/BUILD | 6 6 + 0 - 0 !
tools/cpp/BUILD.tools | 29 29 + 0 - 0 !
tools/cpp/lib_cc_configure.bzl | 2 2 + 0 - 0 !
tools/jdk/BUILD | 2 2 + 0 - 0 !
tools/platforms/BUILD | 7 7 + 0 - 0 !
tools/platforms/BUILD.tools | 7 7 + 0 - 0 !
11 files changed, 72 insertions(+)

 add toolchain support for the riscv64 architecture
 Based on the mips64el toolchain patch by Yun Peng
add_verbose_for_java_compilation.patch | (download)

scripts/bootstrap/compile.sh | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 add verbose flag to prevent javac build timeouts
verbose bash completion generation.patch | (download)

scripts/generate_bash_completion.sh | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 add verbose debug info to bash completion creation
 Also increase timeout to prevent failures on slow build machines.
add_include_for_limits.patch | (download)

third_party/ijar/mapped_file_unix.cc | 3 2 + 1 - 0 !
third_party/ijar/zlib_client.h | 3 3 + 0 - 0 !
2 files changed, 5 insertions(+), 1 deletion(-)

 add include for <limits> to allow correct build of ijar binaries
 Also add include for <stdexcept> to allow proper builds on non-amd64 systems
fix_bashisms.patch | (download)

combine_distfiles_to_tar.sh | 2 1 + 1 - 0 !
scripts/docs/jekyll_build.sh.tpl | 2 1 + 1 - 0 !
src/tools/xcode/stdredirect/run_tests.sh | 2 1 + 1 - 0 !
3 files changed, 3 insertions(+), 3 deletions(-)

 fix bashisms
 First file fixed from upstream, second and third files fixed in Debian because
 they were eliminated upstream in tags 6.0.0-pre.20220310.1 and 5.0.0.
fix_longlines.patch | (download)

CHANGELOG.md | 14 13 + 1 - 0 !
site/docs/build-javascript.md | 7 6 + 1 - 0 !
site/docs/test-encyclopedia.html | 10 9 + 1 - 0 !
third_party/aws-sdk-auth-lite/LICENSE.txt | 191 150 + 41 - 0 !
4 files changed, 178 insertions(+), 44 deletions(-)

 fix long lines
 CHANGELONG.md -- Forwarded upstream at below URL
 build-javascript -- Removed in Bazel v6
 test-encyclopedia.html -- Removed in Bazel v6
 LICENSE.txt -- Removed in Bazel v6
debian_rxjava.patch | (download)

third_party/BUILD | 6 4 + 2 - 0 !
tools/distributions/debian/debian_java.BUILD | 13 13 + 0 - 0 !
2 files changed, 17 insertions(+), 2 deletions(-)

 patch to use debian "reactive_streams" and "rxjava3"
remove_skylib.patch | (download)

src/conditions/BUILD | 22 1 + 21 - 0 !
1 file changed, 1 insertion(+), 21 deletions(-)

 patch to remove dependency on "bazel_skylib"
 Currently causing build failures in bazel-bootstrap. Full bazel package will
 depend on bazel-skylib package, avoiding build failures.
allow_builds_using_bazel_source.patch | (download)

tools/distributions/debian/debian_java.BUILD | 8 4 + 4 - 0 !
1 file changed, 4 insertions(+), 4 deletions(-)

 allow external software to build using bazel source code
 Use "@io_bazel//" instead of "//" to reference Bazel packages
openjdk 17_add opens.patch | (download)

scripts/bootstrap/compile.sh | 2 2 + 0 - 0 !
src/main/cpp/blaze.cc | 12 5 + 7 - 0 !
2 files changed, 7 insertions(+), 7 deletions(-)

 add required `--add-opens` server jvm args with non-embedded jdk
 Since the Bazel server requires JDK 11 or higher to run, the
 `--add-opens` server JVM arg for `java.lang` can now be added
 unconditionally, which ensures support with JDK 17+.
 Also removes the additional opens for `java.nio`, which was only needed
 to silence a protobuf warning that has since been fixed upstream.
 .
 Olek Wojnar modified upstream commit for Debian.
JDK 13_fix.patch | (download)

src/java_tools/buildjar/java/com/google/devtools/build/buildjar/VanillaJavaBuilder.java | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 jdk 13 introduced a source compatibility issue
 Quote from the Java release notes:
 The addition of newFileSystem(Path, Map<String, ?>) creates a source (but not
 binary) compatibility issue for code that has been using the existing 2-arg
 newFileSystem(Path, ClassLoader) and specifying the class loader as null. [...]
 To avoid the ambiguous reference, this code needs to be modified to cast the
 second parameter to java.lang.ClassLoader.
fix_JDK 16_test_failures.patch | (download)

src/test/shell/bazel/bazel_java_tools_test.sh | 2 1 + 1 - 0 !
tools/jdk/java_toolchain_default.bzl.java_tools | 4 2 + 2 - 0 !
2 files changed, 3 insertions(+), 3 deletions(-)

 rename "useparalleloldgc" to enable jdk 16+ builds
 Builds with the local toolchain fail when it is using OpenJDK 16, because
 UseParallelOldGC option was deprecated in JEP 366 and then subsequently
 removed in https://hg.openjdk.java.net/jdk/jdk/rev/62a003539b0c.
grpc absl_synchronization.patch | (download)

tools/distributions/debian/debian_cc.BUILD | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 modified patch from ubuntu to fix grpc-related ftbfs
 Thanks to Gianfranco Costamagna for the original patch:
 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1027112#23
 Patch slimmed down by Olek to only add the one missing linker flag.
exclude_build_data.patch | (download)

src/java_tools/singlejar/java/com/google/devtools/build/singlejar/SingleJar.java | 2 1 + 1 - 0 !
src/tools/singlejar/options.h | 2 1 + 1 - 0 !
2 files changed, 2 insertions(+), 2 deletions(-)

 remove internal timestamps to ensure reproducible builds
fix install_base_key generation.patch | (download)

src/BUILD | 5 1 + 4 - 0 !
1 file changed, 1 insertion(+), 4 deletions(-)

 fix non-reproducible generation of the install_base_key file
 The checksum does not properly include these files. This will hopefully be
 fixed in future versions of Bazel.
javax.annotations.patch | (download)

tools/distributions/debian/debian_java.BUILD | 6 3 + 3 - 0 !
1 file changed, 3 insertions(+), 3 deletions(-)

 fix for javax.annotations
 Switch to geronimo-annotation-1.3-spec. Do not require libtomcat9-java.
Bug-Debian: https://bugs.debian.org/1035995
handle_synthetic_method_parameters_entries_that_dont_have_names.patch | (download)

third_party/ijar/classfile.cc | 5 3 + 2 - 0 !
1 file changed, 3 insertions(+), 2 deletions(-)

 handle synthetic method parameters entries that don't have names
 > If the value of the name_index item is zero, then this parameters element indicates a formal parameter with no name.
 https://docs.oracle.com/javase/specs/jvms/se20/html/jvms-4.html#jvms-4.7.24
add_toolchain_support_for_loongarch64.patch | (download)

mock_repos/platforms/cpu/BUILD | 5 5 + 0 - 0 !
src/conditions/BUILD | 9 9 + 0 - 0 !
src/conditions/BUILD.tools | 9 9 + 0 - 0 !
src/main/java/com/google/devtools/build/lib/analysis/config/AutoCpuConverter.java | 4 4 + 0 - 0 !
src/main/java/com/google/devtools/build/lib/bazel/repository/LocalConfigPlatformFunction.java | 2 2 + 0 - 0 !
src/main/java/com/google/devtools/build/lib/util/CPU.java | 1 1 + 0 - 0 !
third_party/BUILD | 6 6 + 0 - 0 !
tools/cpp/BUILD.tools | 29 29 + 0 - 0 !
tools/cpp/lib_cc_configure.bzl | 2 2 + 0 - 0 !
tools/jdk/BUILD | 2 2 + 0 - 0 !
tools/platforms/BUILD | 7 7 + 0 - 0 !
tools/platforms/BUILD.tools | 7 7 + 0 - 0 !
12 files changed, 83 insertions(+)

 add toolchain support for the loongarch64 architecture
debian_commons_io.patch | (download)

third_party/BUILD | 6 4 + 2 - 0 !
tools/distributions/debian/debian_java.BUILD | 24 18 + 6 - 0 !
2 files changed, 22 insertions(+), 8 deletions(-)

 enable commons_codec and commons_io in debian builds