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
An absolute path in found to the build root is found in an installed file:
The content of the file .../usr/share/bash-completion/completions/ray_control:
The PY_FILE path should be: