Skip to content

Packaging problem in 0.17.3: wrong path subsitued in ray_control #284

@ycollet

Description

@ycollet

An absolute path in found to the build root is found in an installed file:

+ /usr/lib/rpm/check-buildroot
/home/ycollette/rpmbuild/BUILD/raysession-0.17.3-build/BUILDROOT/usr/share/bash-completion/completions/ray_control
Found '/home/ycollette/rpmbuild/BUILD/raysession-0.17.3-build/BUILDROOT' in installed files; aborting

The content of the file .../usr/share/bash-completion/completions/ray_control:

#!/usr/bin/env bash

PY_FILE=/home/ycollette/rpmbuild/BUILD/raysession-0.17.3-build/BUILDROOT/usr/share/raysession/src/completion

ray_complete() {
    IFS=$'\n'
    COMPREPLY=($(compgen -W "$(python3 "$PY_FILE" "${COMP_WORDS[@]}")" -- "${COMP_WORDS[COMP_CWORD]}"))
    unset IFS
}

complete -F ray_complete ray_control

The PY_FILE path should be:

PY_FILE=/usr/share/raysession/src/completion

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions