Attention is currently required from: Arne Schwabe.
Hello Arne Schwabe,
I'd like you to do a code review.
Please visit
https://gerrit.openvpn.net/c/openvpn/+/2331?usp=email
to review the following change.
Change subject: Add buildbot configuration script
......................................................................
Add buildbot configuration script
This will allow us to more easily adapt buildbot
behavior by branch without having to encode all
the information in the buildbot configuration
itself. This tries to add some of the advantages
of a system like GHA which already has per-branch
information, without moving completely to it.
Change-Id: I01458ac46a5948fccec4afa9fc358a36e67055b5
Signed-off-by: Frank Lichtenheld <[email protected]>
---
A .buildbot/buildbot_props.sh
1 file changed, 43 insertions(+), 0 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/31/2331/1
diff --git a/.buildbot/buildbot_props.sh b/.buildbot/buildbot_props.sh
new file mode 100755
index 0000000..95ac642
--- /dev/null
+++ b/.buildbot/buildbot_props.sh
@@ -0,0 +1,43 @@
+# This script encodes some defaults for various operating systems
+# so that we can store them in git per-branch instead of having to
+# maintain them in the buildbot configuration for all possible
+# branches.
+
+set -eux
+
+# Defaults
+enable_werror="--enable-werror"
+enable_werror_cmake="-DUSE_WERROR=ON"
+default_configure_opts=
+branch_pkg_config_path=
+
+uname_kernel=$(uname -s)
+# We do not support -Werror builds on NetBSD since they
+# have not been very good about updating the compiler in
+# the past
+if [ "$uname_kernel" = "NetBSD" ]; then
+ enable_werror="--disable-werror"
+ enable_werror_cmake="-DUSE_WERROR=OFF"
+fi
+# On macOS we have different versions of OpenSSL and mbedTLS available
+# So choose here a version appropriate for this branch.
+if [ "$uname_kernel" = "Darwin" ]; then
+ openssl_major=4
+ mbedtls_major=4
+
branch_pkg_config_path="/opt/homebrew/opt/openssl@${openssl_major}/lib/pkgconfig:/opt/homebrew/opt/mbedtls@${mbedtls_major}/lib/pkgconfig"
+fi
+# Enable systemd support on Linux by default
+if [ "$uname_kernel" = "Linux" ]; then
+ default_configure_opts="--enable-systemd"
+fi
+
+echo "branch_config_opts=$enable_werror $default_configure_opts"
+echo "branch_config_opts_cmake=$enable_werror_cmake"
+if [ -n "${PKG_CONFIG_PATH:-}" ]; then
+ if [ -n "branch_pkg_config_path" ]; then
+ branch_pkg_config_path="$branch_pkg_config_path:$PKG_CONFIG_PATH"
+ else
+ branch_pkg_config_path="$PKG_CONFIG_PATH"
+ fi
+fi
+echo "branch_pkg_config_path=$branch_pkg_config_path"
--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2331?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I01458ac46a5948fccec4afa9fc358a36e67055b5
Gerrit-Change-Number: 2331
Gerrit-PatchSet: 1
Gerrit-Owner: Frank Lichtenheld <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel