public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/hwinfo] epel10: Fix build when %_sbindir != /usr/sbin
Date: Fri, 04 Sep 2026 15:54:18 GMT [thread overview]
Message-ID: <178853725852.1.5782355317714938894.rpms-hwinfo-f8ed7bf4e3dd@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/hwinfo
Branch : epel10
Commit : f8ed7bf4e3ddf56badd489afb4fcde9278821473
Author : Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Date : 2025-04-24T14:02:29+02:00
Stats : +5/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/hwinfo/c/f8ed7bf4e3ddf56badd489afb4fcde9278821473?branch=epel10
Log:
Fix build when %_sbindir != /usr/sbin
... (rhbz#2340622)
---
diff --git a/hwinfo.spec b/hwinfo.spec
index 8bb82fa..a0fcaba 100644
--- a/hwinfo.spec
+++ b/hwinfo.spec
@@ -20,7 +20,7 @@ BuildRequires: libuuid-devel
BuildRequires: gcc
BuildRequires: flex
BuildRequires: perl-interpreter
-BuildRequires: make
+BuildRequires: make
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
Obsoletes: %{name} < 22.2-1
@@ -64,6 +64,10 @@ make %{make_flags}
%ldconfig_scriptlets libs
+%if "%{_sbindir}" == "%{_bindir}"
+# Makefile hardcodes sbin paths. Fix the install locations here.
+mv %{buildroot}/usr/sbin %{buildroot}%{_sbindir}
+%endif
%files
%{_sbindir}/check_hd
reply other threads:[~2026-09-04 15:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178853725852.1.5782355317714938894.rpms-hwinfo-f8ed7bf4e3dd@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox