Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the rpm build for centos #10289

Merged
merged 2 commits into from Jul 14, 2016
Merged

Conversation

jdurgin
Copy link
Member

@jdurgin jdurgin commented Jul 13, 2016

jdurgin and others added 2 commits July 13, 2016 16:34
This makes rpmbuild happy.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
to work around a bug in old virtualenv

Signed-off-by: Oleh Prypin <oleh@pryp.in>
@jdurgin
Copy link
Member Author

jdurgin commented Jul 13, 2016

@BlaXpirit had to pull in your commit to make this work in addition to the googletest fix - maybe because python3-devel etc. are now installed on the machine, and weren't there before wip-cmake-py3

In case anyone else has a branch that runs into this, the error without the python 3 virtualenv workaround is:

http://gitbuilder.sepia.ceph.com/gitbuilder-ceph-rpm-centos7-amd64-basic/log.cgi?log=983603ac2b3a4925e5c0760a625fbab0c00cdcbd

 Failed to import the site module
Traceback (most recent call last):
File "/srv/autobuild-ceph/gitbuilder.git/build/install-deps-python3/lib64/python3.4/site.py", line 67, in
import os
File "/srv/autobuild-ceph/gitbuilder.git/build/install-deps-python3/lib64/python3.4/os.py", line 616, in
from _collections_abc import MutableMapping

    Error: Import No module named '_collections_abc' 

Using base prefix '/usr'
New python executable in /srv/autobuild-ceph/gitbuilder.git/build/install-deps-python3/bin/python3
Also creating executable in /srv/autobuild-ceph/gitbuilder.git/build/install-deps-python3/bin/python

    ERROR: The executable /srv/autobuild-ceph/gitbuilder.git/build/install-deps-python3/bin/python3 is not functioning 

    ERROR: It thinks sys.prefix is '/srv/autobuild-ceph/gitbuilder.git/build/src/ceph-detect-init' (should be '/srv/autobuild-ceph/gitbuilder.git/build/install-deps-python3') 

    ERROR: virtualenv is not compatible with this system or executable 

Running virtualenv with interpreter /bin/python3
./install-deps.sh: line 150: /srv/autobuild-ceph/gitbuilder.git/build/install-deps-python3/bin/activate: No such file or directory
Requirement already satisfied (use --upgrade to upgrade): setuptools>=0.8 in /srv/autobuild-ceph/gitbuilder.git/build/install-deps-python2.7/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): pip>=7.0 in /srv/autobuild-ceph/gitbuilder.git/build/install-deps-python2.7/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): wheel>=0.24 in /srv/autobuild-ceph/gitbuilder.git/build/install-deps-python2.7/lib/python2.7/site-packages
./install-deps.sh: line 156: /srv/autobuild-ceph/gitbuilder.git/build/install-deps-python3/bin/activate: No such file or directory 

@athanatos athanatos merged commit 6785393 into ceph:master Jul 14, 2016
@jdurgin jdurgin deleted the wip-googletest-centos branch July 14, 2016 14:49
@ktdreyer
Copy link
Member

@b-ranto is this going to cause problems in RH downstream builds where there is no internet access?

@b-ranto
Copy link
Contributor

b-ranto commented Jul 20, 2016

@ktdreyer Not necessarily, it just patches the pre-build phase. We might just have to ship our own version of virtualenv if the issue manifests itself in the RHEL build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants