29024cfdd5
Note 1) we're not supposed to be using #!/usr/bin/env python, see https://fedoraproject.org/wiki/Packaging:Guidelines?rd=Packaging/Guidelines#Shebang_lines Note 2) we're also not supposed to be using "!/usr/bin/python, see https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build#Quick_Opt-Out The previous patch (https://review.gluster.org/19767) tried to do too much in one patch, so it was abandoned. This patch does two things: 1) minor cleanup of configure(.ac) to explicitly use python2 2) change all the shebang lines to #!/usr/bin/python2 and add them where they were missing based on warnings emitted during rpmbuild. In a follow-up patch python2 will eventually be changed to python3. Before that python2-isms (e.g. print, string.join(), etc.) need to be converted to python3. Some of those can be rewritten in version agnostic python. E.g. print statements become print() with "from __future_ import print_function". The python 2to3 utility will be used for some of those. Also Aravinda has given guidance in the comments to the first patch for changes. updates: #411 Change-Id: I471730962b2526022115a1fc33629fb078b74338 Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com> |
||
---|---|---|
.. | ||
benchmarking | ||
cliutils | ||
command-completion | ||
create_new_xlator | ||
devel-tools | ||
distributed-testing | ||
firewalld | ||
FreeBSD | ||
geo-rep | ||
hook-scripts | ||
init.d | ||
LinuxRPM | ||
ocf | ||
profiler | ||
quota | ||
snap_scheduler | ||
Solaris | ||
systemd | ||
test | ||
Ubuntu | ||
who-wrote-glusterfs | ||
backend-cleanup.sh | ||
backend-xattr-sanitize.sh | ||
check_goto.pl | ||
clang-checker.sh | ||
clear_xattrs.sh | ||
control-cpu-load.sh | ||
control-mem.sh | ||
disk_usage_sync.sh | ||
failed-tests.py | ||
file_size_contri.sh | ||
gfid-to-dirname.sh | ||
git-branch-diff.py | ||
gluster-rsyslog-5.8.conf | ||
gluster-rsyslog-7.2.conf | ||
glusterd-sysconfig | ||
glusterd.vol.in | ||
glusterfs-georep-logrotate | ||
glusterfs-logrotate | ||
glusterfs-mode.el | ||
glusterfs.vim | ||
gnfs-loganalyse.py | ||
group-gluster-block | ||
group-metadata-cache | ||
group-nl-cache | ||
group-virt.example | ||
logger.conf.example | ||
Makefile.am | ||
migrate-unify-to-distribute.sh | ||
mount-shared-storage.sh | ||
peer_add_secret_pub.in | ||
post-upgrade-script-for-quota.sh | ||
pre-upgrade-script-for-quota.sh | ||
prot_filter.py | ||
rebalance.py | ||
run-gluster.tmpfiles.in | ||
specgen.scm | ||
stop-all-gluster-processes.sh | ||
stripe-merge.c | ||
volfilter.py |