summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrien Vergé <adrienverge@gmail.com>2018-09-24 16:19:09 +0200
committerNick Vatamaniuc <nickva@users.noreply.github.com>2018-09-27 14:09:45 -0400
commitfbb5588e2d023eb1bcf97cf9e44d483de2b2a62d (patch)
tree5ffe24f750846c9d2ddc3d75649a837a71104b73
parent60107992135bc65f69ab8528825a13d36d77b4c9 (diff)
downloadcouchdb-fbb5588e2d023eb1bcf97cf9e44d483de2b2a62d.tar.gz
Explicit Python version in scripts
Recent Linux distributions start defaulting to Python 3, and require ambiguous scripts to be more explicit. For example building for Fedora 30 (not released yet) fails with: ERROR: ambiguous python shebang in /opt/couchdb/bin/couchup: #!/usr/bin/env python. Change it to python3 (or python2) explicitly. So this commit changes the four Python scripts to use `python2`. Note: They seem to be Python-3-compatible, but I couldn't be sure. If you know they are, please tell me, I'll change it to `python3`.
-rwxr-xr-xbuild-aux/logfile-uploader.py2
-rwxr-xr-xdev/run2
-rwxr-xr-xrel/overlay/bin/couchup2
-rwxr-xr-xtest/javascript/run2
4 files changed, 4 insertions, 4 deletions
diff --git a/build-aux/logfile-uploader.py b/build-aux/logfile-uploader.py
index c84a96a97..a1ff7e4a7 100755
--- a/build-aux/logfile-uploader.py
+++ b/build-aux/logfile-uploader.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
diff --git a/dev/run b/dev/run
index a5d8fde8c..d105140b7 100755
--- a/dev/run
+++ b/dev/run
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
diff --git a/rel/overlay/bin/couchup b/rel/overlay/bin/couchup
index 2d0105107..6532170aa 100755
--- a/rel/overlay/bin/couchup
+++ b/rel/overlay/bin/couchup
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
diff --git a/test/javascript/run b/test/javascript/run
index a3b3ab704..11f9faee2 100755
--- a/test/javascript/run
+++ b/test/javascript/run
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of