Improve python-tools-install.sh alpine compat 25/65325/1
authorEric Ball <eball@linuxfoundation.org>
Thu, 3 Sep 2020 00:29:32 +0000 (17:29 -0700)
committerEric Ball <eball@linuxfoundation.org>
Thu, 3 Sep 2020 00:29:32 +0000 (17:29 -0700)
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).

Change-Id: I7123d8928415c163ec26540c42fa0a96108b84e4
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
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 adcca1c..578923c 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