--- bazel-3.4.1.orig/debian/changelog
+++ bazel-3.4.1/debian/changelog
@@ -0,0 +1,17 @@
+bazel (3.4.1-1) unstable; urgency=medium
+
+  * version number update by debtransform
+
+ -- debtransform <build@opensuse.org>  Thu, 06 May 2021 21:06:04 +0000
+
+bazel (3.4.1) unstable; urgency=medium
+
+  * Package for 3.4.1 on Ubuntu and Raspbian
+
+ -- Kan Li <likan999@users.noreply.github.com>  Sat, 6 Feb 2021 15:22:50 -0800
+
+bazel (3.1.0) unstable; urgency=medium
+
+  * Initial release
+
+ -- Michal Rostecki <mrostecki@opensuse.org>  Mon, 27 Apr 2020 19:31:41 +0200
--- bazel-3.4.1.orig/debian/control
+++ bazel-3.4.1/debian/control
@@ -0,0 +1,19 @@
+Source: bazel
+Section: devel
+Priority: optional
+Maintainer: Kan Li <likan999@users.noreply.github.com>
+Build-Depends: debhelper-compat (= 11), g++, libprotobuf-dev, libprotobuf-java, libprotoc-dev, openjdk-11-jdk, pkg-config, protobuf-compiler, protobuf-compiler-grpc, python3, unzip, zip
+Standards-Version: 4.3.0
+Rules-Requires-Root: no
+Homepage: https://bazel.build/
+Vcs-Git: git://github.com/bazelbuild/bazel.git
+
+Package: bazel
+Architecture: any
+Depends: openjdk-11-jre
+Description: Tool to automate software builds and tests
+ Supported build tasks include running compilers and linkers to produce
+ executable programs and libraries, and assembling deployable packages
+ for Android, iOS and other target environments. Bazel is similar to
+ other tools like Make, Ant, Gradle, Buck, Pants and Maven.
+
--- bazel-3.4.1.orig/debian/rules
+++ bazel-3.4.1/debian/rules
@@ -0,0 +1,31 @@
+#!/usr/bin/make -f
+export DH_VERBOSE = 1
+
+export EXTRA_BAZEL_ARGS = --host_javabase=@local_jdk//:jdk
+
+%:
+	dh $@
+
+override_dh_strip:
+
+override_dh_auto_build:
+	./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
+
+override_dh_auto_install:
+	install -Dm0755 output/bazel debian/bazel/usr/bin/bazel
+	install -Dm0644 output/bazel-complete.bash debian/bazel/usr/share/bash-completion/completions/bazel
+
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -f bazel-*
+	rm -f output
+
+override_dh_installdocs:
+	mv third_party/netty/NOTICE.txt third_party/netty/NOTICE-netty.txt
+	dh_installdocs
--- bazel-3.4.1.orig/src/main/java/com/google/devtools/build/lib/bazel/rules/python/BazelPythonSemantics.java
+++ bazel-3.4.1/src/main/java/com/google/devtools/build/lib/bazel/rules/python/BazelPythonSemantics.java
@@ -247,7 +247,7 @@
         PathFragment shExecutable = ShToolchain.getPathOrError(ruleContext);
         // TODO(#8685): Remove this special-case handling as part of making the proper shebang a
         // property of the Python toolchain configuration.
-        String pythonExecutableName = OS.getCurrent() == OS.OPENBSD ? "python3" : "python";
+        String pythonExecutableName = "python3";
         // NOTE: keep the following line intact to support nix builds
         String pythonShebang = "#!/usr/bin/env " + pythonExecutableName;
         ruleContext.registerAction(
