Whamcloud - gitweb
EX-1135 lipe: add support to build against centos8
authorGu Zheng <gzheng@ddn.com>
Fri, 8 May 2020 07:16:42 +0000 (03:16 -0400)
committerJohn L. Hammond <jhammond@whamcloud.com>
Tue, 4 May 2021 14:48:04 +0000 (14:48 +0000)
commit9e2944b0357f4636aef364524554116a66237f11
tree80832582141e4031aea184e2670c8fd8e4b689af
parent6e8b70af59d5fc923fbdf1172e350480d94c862c
EX-1135 lipe: add support to build against centos8

There's a huge difference between centOS8 and centOS 7 series, especailly
the strict distinction between python2 and python3, and related python
rpms or pypi packages are the same condition.
Following changes are introduced to add support to build against centOS8:
1. the python platform is strict to python2(python2.7)
2. use 'pip2' instead of 'pip' for pypi
3. improve dependency package list (rpm and pypi module), make it can
be acceptable to centOS7.x and centOS8.x
4. fix code sytle issues to make pylint/pep8 on centOS8 happy
5. set encoding via environ "PYTHONIOENCODING" if sys.setdefaultencoding
is gone (python2.7 on centOS8)
6. improve the lipe.spec to support "make rpms" against centOS8

Change-Id: Id172e2a6aa29f382c4d12ff0d2e748e8b0cde444
Signed-off-by: Gu Zheng <gzheng@ddn.com>
Reviewed-on: https://review.whamcloud.com/43483
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Minh Diep <mdiep@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-by: Gaurang Tapase <gtapase@ddn.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
47 files changed:
contrib/lbuild/lbuild
lipe/Makefile.am
lipe/configure.ac
lipe/gen_lipe_test
lipe/ldsync
lipe/lipe.spec.in
lipe/lipe_build
lipe/lipe_copytool_manager
lipe/lipe_expression_tests
lipe/lipe_find
lipe/lipe_hsm_check
lipe/lipe_install
lipe/lipe_install_build_deps
lipe/lipe_launch
lipe/lipe_run_action
lipe/lipe_test
lipe/lipe_test_console
lipe/lipe_test_copytool
lipe/lipe_test_launch
lipe/lipe_test_scheduler
lipe/lipe_virt
lipe/loris_backup
lipe/loris_crontab
lipe/loris_test
lipe/lpcc
lipe/lpcc_cleanup
lipe/lpcc_test
lipe/pybuild/Makefile.am
lipe/pybuild/gen_lipe_test.py
lipe/pybuild/lipe_build.py
lipe/pybuild/lipe_expression_tests.py
lipe/pylipe/Makefile.am
lipe/pylipe/ldsync.py
lipe/pylipe/lipe.py
lipe/pylipe/lipe_flist_handle.py
lipe/pylipe/lipe_install.py
lipe/pylipe/lipe_launch.py
lipe/pyloris/loris_backup.py
lipe/pyloris/loris_test.py
lipe/pylpcc/lpcc.py
lipe/pylpcc/lpcc_cleanup.py
lipe/pylpcc/lpcc_test.py
lipe/pyltest_import_check
lipe/pylustre/cmd_general.py
lipe/pylustre/hsm_check.py
lipe/pylustre/install_common.py
lipe/src/Makefile.am