Skip to content
This repository was archived by the owner on Jan 31, 2022. It is now read-only.
This repository was archived by the owner on Jan 31, 2022. It is now read-only.

Problems doing make rpm in reg_utils #38

@vetens

Description

@vetens

Brief summary of issue

NSFD error when trying to make rpm reg_utils

Types of issue

  • Bug report (report an issue with the code)
  • Feature request (request for change which adds functionality)

Expected Behavior

make rpm should run uninterrupted

Current 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)

  1. environment variables: export ELOG_PATH=<repo directory>/elogs; export BUILD_HOME=<repo directory>; export PETA_STAGE=/data/bigdisk/sw/peta-stage/;
  2. enter python virtual environment: source <repo directory>/venv/cc7/py2.7/bin/activate
  3. cd <repo directory>/reg_utils/
  4. 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 for usr. Looks like I'm either missing an environment variable not talked about in the readme or you can insert something like mkdir $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

  • Version used:
  • Shell used: bash

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions