public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/icecream] epel10: In scriptlets split the semanage calls for robustness. (#1391871)
@ 2026-07-30 15:16 Michal Schmidt
  0 siblings, 0 replies; only message in thread
From: Michal Schmidt @ 2026-07-30 15:16 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/icecream
Branch : epel10
Commit : 1df4054e38e67269be82d919dcf0b9549cfb68dc
Author : Michal Schmidt <mschmidt@redhat.com>
Date   : 2016-11-14T14:44:58+01:00
Stats  : +13/-14 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/icecream/c/1df4054e38e67269be82d919dcf0b9549cfb68dc?branch=epel10

Log:
In scriptlets split the semanage calls for robustness. (#1391871)

---
diff --git a/icecream.spec b/icecream.spec
index 17492f0..9d3e040 100644
--- a/icecream.spec
+++ b/icecream.spec
@@ -6,7 +6,7 @@
 
 Name:     icecream
 Version:  1.1
-Release:  0.4.rc2.g%{shortcommit0}%{?dist}
+Release:  0.5.rc2.g%{shortcommit0}%{?dist}
 Summary:  Distributed compiler
 License:  GPLv2+
 URL:      https://github.com/icecc/icecream
@@ -188,14 +188,12 @@ for selinuxvariant in %{selinux_variants}; do
 done
 
 for selinuxvariant in %{selinux_variants}; do
-	{
-	echo "port -a -S ${selinuxvariant} -t iceccd_port_t -p tcp 10245"
-	echo "port -a -S ${selinuxvariant} -t icecc_scheduler_port_t -p tcp 8766"
-	echo "port -a -S ${selinuxvariant} -t icecc_scheduler_port_t -p udp 8765"
+	semanage port -a -S ${selinuxvariant} -t iceccd_port_t -p tcp 10245
+	semanage port -a -S ${selinuxvariant} -t icecc_scheduler_port_t -p tcp 8766
+	semanage port -a -S ${selinuxvariant} -t icecc_scheduler_port_t -p udp 8765
 	# tcp 8765 is taken by LIRC. icecream.te knows it.
-	# echo "port -a -S ${selinuxvariant} -t icecc_scheduler_port_t -p tcp 8765"
-	} | semanage -i - 2>/dev/null
-done
+	# semanage port -a -S ${selinuxvariant} -t icecc_scheduler_port_t -p tcp 8765
+done 2>/dev/null
 
 for selinuxvariant in %{selinux_variants}; do
 	%relabel ${selinuxvariant}
@@ -219,12 +217,10 @@ if [ $1 -eq 0 ]; then # Final removal
 		%saveFileContext ${selinuxvariant}
 	done
 	for selinuxvariant in %{selinux_variants}; do
-		{
-		echo "port -d -S ${selinuxvariant} -t iceccd_port_t -p tcp 10245"
-		echo "port -d -S ${selinuxvariant} -t icecc_scheduler_port_t -p tcp 8766"
-		echo "port -d -S ${selinuxvariant} -t icecc_scheduler_port_t -p udp 8765"
-		} | semanage -i - 2>/dev/null
-	done
+		semanage port -d -S ${selinuxvariant} -t iceccd_port_t -p tcp 10245
+		semanage port -d -S ${selinuxvariant} -t icecc_scheduler_port_t -p tcp 8766
+		semanage port -d -S ${selinuxvariant} -t icecc_scheduler_port_t -p udp 8765
+	done 2>/dev/null
 fi
 %endif
 exit 0
@@ -270,6 +266,9 @@ exit 0
 %{_libdir}/pkgconfig/icecc.pc
 
 %changelog
+* Mon Nov 14 2016 Michal Schmidt <mschmidt@redhat.com> - 1.1-0.5.rc2.ga79f70f
+- In scriptlets split the semanage calls for robustness. (#1391871)
+
 * Fri Nov 11 2016 Michal Schmidt <mschmidt@redhat.com> - 1.1-0.4.rc2.ga79f70f
 - Fix FTBFS on s390x. (#1393742)
 - Do not use #!/usr/bin/env.

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-30 15:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-30 15:16 [rpms/icecream] epel10: In scriptlets split the semanage calls for robustness. (#1391871) Michal Schmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox