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

Build Directions #8

Open
wmszeliga opened this issue Sep 1, 2017 · 2 comments
Open

Build Directions #8

wmszeliga opened this issue Sep 1, 2017 · 2 comments

Comments

@wmszeliga
Copy link

In following the directions for modifying the Python roll, I encounter the following error message in step 2 after successfully completing step 1.

[python]$ sudo make download
Makefile:75 Rolls.mk: No such file or directory
make: *** No rule to make target 'Rolls.mk'. Stop.

What is the proper build tree topology (where should base be relative to python) and what environment variables should I have set? I am attempting these steps on a functioning Rocks 6.2 frontend as sudo.

The directions I have for modifying the Python roll are as follows:

  1. Make and update the rocks-devel rpm Process (on your frontend) (5 minutes)
    git clone https://github.com/rocksclusters/base.git
    cd base
    git checkout ROCKS_6_2_UPDATES
    cd src/devel
    make rpm
    cd ../..
    make createlocalrepo
    yum update -c yum.conf rocks-devel

  2. Verify that you can remake the python roll (15 minutes)
    git clone https://github.com/rocksclusters/python.git
    cd python
    make download
    make roll
    make createlocalrepo
    yum -c yum.conf check-update

(you should see only the a usersguide update (this is because the rocks version number went from 6.2 -> 6.2.1 in the rocks-devel rpm)

  1. Update python3.
    cd src/python-3
    download the tar.gz file of the version you really want.
    edit version.mk to reflect the updated version. (make sure there is no trailing space on the VERSION = line)
    (optionally) edit Makefile to reflect the any configure changes you would want to make when building
    make rpm <-- creates the updated opt-python-3 rpm

When your rpm builds without error, you complete remake the roll or simply "reroll" it.
cd ../.. (top level of the python roll directory)
make reroll

You can then create a localrepo (As above) and check for the update. Assuming all of that works, you should add the roll to your cluster

rocks add roll python*iso clean=y
cd /export/rocks/install
rocks create distro
yum clean all
yum update

Once you've added the roll to your distribution, you can reinstall nodes OR ask them to update.
rocks run host compute "yum clean all; yum -y update"

@ppapadopoulos
Copy link
Contributor

ppapadopoulos commented Sep 1, 2017 via email

@wmszeliga
Copy link
Author

Thanks!
It also seems to be imperative that this be done as root, not just sudo.

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

No branches or pull requests

2 participants