Merge "Improve python-tools-install.sh alpine compat"
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Thu, 3 Sep 2020 17:16:43 +0000 (17:16 +0000)
committerGerrit Code Review <gerrit@linuxfoundation.org>
Thu, 3 Sep 2020 17:16:43 +0000 (17:16 +0000)
releasenotes/notes/mktemp-busybox-compat-6fc10440960db8c4.yaml [new file with mode: 0644]
shell/python-tools-install.sh

diff --git a/releasenotes/notes/mktemp-busybox-compat-6fc10440960db8c4.yaml b/releasenotes/notes/mktemp-busybox-compat-6fc10440960db8c4.yaml
new file mode 100644 (file)
index 0000000..91bd93a
--- /dev/null
@@ -0,0 +1,6 @@
+---
+fixes:
+  - |
+    Improve alpine compatibility by changing the mktemp call in
+    python-tools-install.sh to be compatible with both GNU mktemp as well as
+    BusyBox mktemp (which is used in alpine).
index d5a8f05..bf1cf8e 100644 (file)
@@ -15,7 +15,7 @@ set -eufo pipefail
 # This script will typically be called during pre-build & post-build.
 # Create the user venv during pre-build.
 if [[ ! -f /tmp/pre-build-complete ]]; then
-    requirements_file=$(mktemp /tmp/requirements-XXXX.txt)
+    requirements_file=$(mktemp /tmp/requirements-XXXXXX)
 
     # Note: To test lftools master branch change the lftools configuration below in
     #       the requirements file from "lftools[openstack]~=#.##.#" to