-
Notifications
You must be signed in to change notification settings - Fork 15
Problems doing make rpm in reg_utils #38
Comments
The error is not reproducible without the
|
What is meant by
Is this case 1:
Or case 2:
In case 2 (the correct case) |
I see it is not immediately apparent from the material under Building GEM Software (which is of course the problem) but you should never try to build a package or an rpm from inside a This causes (as you've seen) some issues with the make process failing to find expected filepaths. Can you try the build process again but not from inside a |
To be clear the issue here is the documentation is at fault here; not the developer (@vetens). Thanks for bringing this issue up; we will improve clarity to ensure this confusion is resolved. |
In my case, repo directory is: Tried a system-wide compile which didn't work either. Got a few more errors, |
Brief summary of issue
NSFD error when trying to make rpm reg_utils
Types of issue
Expected Behavior
make rpm should run uninterruptedCurrent Behavior
NSFD error when looking for ``reg_utils/python/reg_interface/rpm/build/bdist.linux-x86_64/rpm/BUILDROOT/reg_interface-1.1.0-1.2879f89git.centos7.python2.7.x86_64/usr/lib/python*/site-packages/reg_utils/scripts/*.py``"error: File not found by glob:"
Steps to Reproduce (for bugs)
export ELOG_PATH=<repo directory>/elogs; export BUILD_HOME=<repo directory>; export PETA_STAGE=/data/bigdisk/sw/peta-stage/
;source <repo directory>/venv/cc7/py2.7/bin/activate
cd <repo directory>/reg_utils/
make rpm
my repo directory is:
/afs/cern.ch/work/w/wvetens/private/cms-gem-daq/
error message:
error: File not found by glob: /afs/cern.ch/work/w/wvetens/private/cms-gem-daq/reg_utils/python/reg_interface/rpm/build/bdist.linux-x86_64/rpm/BUILDROOT/reg_interface-1.1.0-1.2879f89git.centos7.python2.7.x86_64/usr/lib/python*/site-packages/reg_utils/scripts/*.py
Possible Solution (for bugs)
It looks like everything up to
usr
exists. I tried creating a link to my/usr
folder, which seems to have all the needed directories, but it looks like the makefile overwrites this before looking forusr
. Looks like I'm either missing an environment variable not talked about in the readme or you can insert something likemkdir $BUILD_HOME/reg_utils/python/reg_interface/rpm/build/bdist.linux-x86_64/rpm/BUILDROOT/reg_interface-1.1.0-1.2879f89git.centos7.python2.7.x86_64/usr; ln -s /usr $BUILD_HOME/reg_utils/python/reg_interface/rpm/build/bdist.linux-x86_64/rpm/BUILDROOT/reg_interface-1.1.0-1.2879f89git.centos7.python2.7.x86_64/usr
before the step where it searches for this. I couldn't find where in the makefile to do this however, as it is rather terse.Context (for feature requests)
Your Environment
The text was updated successfully, but these errors were encountered: