diff options
author | Adrien Vergé <adrienverge@gmail.com> | 2018-09-24 16:19:09 +0200 |
---|---|---|
committer | Nick Vatamaniuc <nickva@users.noreply.github.com> | 2018-09-27 14:09:45 -0400 |
commit | fbb5588e2d023eb1bcf97cf9e44d483de2b2a62d (patch) | |
tree | 5ffe24f750846c9d2ddc3d75649a837a71104b73 | |
parent | 60107992135bc65f69ab8528825a13d36d77b4c9 (diff) | |
download | couchdb-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-x | build-aux/logfile-uploader.py | 2 | ||||
-rwxr-xr-x | dev/run | 2 | ||||
-rwxr-xr-x | rel/overlay/bin/couchup | 2 | ||||
-rwxr-xr-x | test/javascript/run | 2 |
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 @@ -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 |