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
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Oct 7 2023, 4:08 PM
Parents
rG33d7c2d165c2: import: require force when cachefile hostid doesn't match on-disk
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG3755cde22a33: rpm: Fix `make rpm` on Debian/Ubuntu (authored by siv0 <github@nomore.at>).Oct 7 2023, 4:08 PM