public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/icecream] rawhide: fix scriptlet errors when /etc/selinux/config is missing
@ 2026-07-29 11:52 Michal Schmidt
0 siblings, 0 replies; only message in thread
From: Michal Schmidt @ 2026-07-29 11:52 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/icecream
Branch : rawhide
Commit : eaf8335c135046d684dfad2d9e7842ca542c7077
Author : Michal Schmidt <mschmidt@redhat.com>
Date : 2026-07-29T10:18:50+02:00
Stats : +8/-6 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/icecream/c/eaf8335c135046d684dfad2d9e7842ca542c7077?branch=rawhide
Log:
fix scriptlet errors when /etc/selinux/config is missing
---
diff --git a/icecream.spec b/icecream.spec
index cf90e54..434836f 100644
--- a/icecream.spec
+++ b/icecream.spec
@@ -162,12 +162,14 @@ if [ -s /etc/selinux/config ]; then \
fi;
%define relabel() \
-. %{_sysconfdir}/selinux/config; \
-FILE_CONTEXT=%{_sysconfdir}/selinux/%1/contexts/files/file_contexts; \
-selinuxenabled; \
-if [ $? == 0 -a "${SELINUXTYPE}" == %1 -a -f ${FILE_CONTEXT}.%{name} ]; then \
- fixfiles -C ${FILE_CONTEXT}.%{name} restore; \
- rm -f ${FILE_CONTEXT}.%name; \
+if [ -s /etc/selinux/config ]; then \
+ . %{_sysconfdir}/selinux/config; \
+ FILE_CONTEXT=%{_sysconfdir}/selinux/%1/contexts/files/file_contexts; \
+ selinuxenabled; \
+ if [ $? == 0 -a "${SELINUXTYPE}" == %1 -a -f ${FILE_CONTEXT}.%{name} ]; then \
+ fixfiles -C ${FILE_CONTEXT}.%{name} restore; \
+ rm -f ${FILE_CONTEXT}.%name; \
+ fi \
fi;
install -m0644 -D fedora/icecream.sysusers.conf %{buildroot}%{_sysusersdir}/icecream.conf
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-29 11:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-29 11:52 [rpms/icecream] rawhide: fix scriptlet errors when /etc/selinux/config is missing Michal Schmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox