HomeFreeBSD

rpm: Fix `make rpm` on Debian/Ubuntu

Description

rpm: Fix make rpm on Debian/Ubuntu

The recent patch to change the bash completion install location based
on the Distribution, ignored that it should still be possible to
create RPMs on Debian derived systems. Additionally make deb itself
creates RPMs and converts them via alien.

This patch adds the bashcompletiondir variable to the rpm defines and
uses this for the location, where to get the bash completion file.

It still changes the location on Debian/Ubuntu systems in the final
packages from /etc/bash_completion.d to
/usr/share/bash-completion/completions

Fixes: e69ade32e116e72d03068c03799924c3f1a15c95

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Closes #15355
Closes #15365

Details

Provenance
siv0 <github@nomore.at>Authored on Oct 6 2023, 4:53 PM
GitHub <noreply@github.com>Committed on Oct 6 2023, 4:53 PM
Parents
rG54b1b1d893cf: import: require force when cachefile hostid doesn't match on-disk
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG74ed1ae08a16: rpm: Fix `make rpm` on Debian/Ubuntu (authored by siv0 <github@nomore.at>).Oct 6 2023, 4:53 PM