mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-23 18:10:39 +00:00
Fedora 42 merged /usr/sbin into /usr/bin [1]. As part of that change the rpm macro %_sbindir was redefined from /usr/sbin to /usr/bin. As a result RPM build on Fedora 42 fails: install.sh places some files into /usr/sbin, while rpmbuild looks for them in /usr/bin. We could resolve this either by following the change and moving the files to /usr/bin as well, or fixing the spec to place the files in /usr/sbin. The former is more difficult: - what about Debian/Ubuntu? - what about older RPM-based distributions (like all RHEL distributions)? - what about scripts that hard-code /usr/sbin/<scylla utility>? So we pick the latter, and redefine %_sbindir to /usr/sbin. Since that directory still exists (as a symlink), installation on systems with merged /usr/bin and /usr/sbin will work. We'll have to address the problem later (likely by installing to either /usr/bin or /usr/sbin depending on context), but for now, this is a simple solution that works everywhere. [1] https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin Closes scylladb/scylladb#24101