Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37408351
en ru br
Репозитории ALT

Группа :: Разработка/Прочее
Пакет: golang

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: 0001-avoid-requires-libselinux-utils.patch
Скачать


From 105a34732fdfcc49aa5b6e1cd9a7b123aecbc81c Mon Sep 17 00:00:00 2001
From: Alexey Shabalin <shaba@altlinux.org>
Date: Sat, 2 May 2020 16:09:04 +0300
Subject: [PATCH] avoid requires libselinux-utils
---
 src/make.bash | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/go/src/make.bash b/go/src/make.bash
index 880a0f4..db93a93 100755
--- a/src/make.bash
+++ b/src/make.bash
@@ -104,9 +104,10 @@ fi
 # Test for bad SELinux.
 # On Fedora 16 the selinux filesystem is mounted at /sys/fs/selinux,
 # so loop through the possible selinux mount points.
+SELINUX_ENABLED=/usr/sbin/selinuxenabled
 for se_mount in /selinux /sys/fs/selinux
 do
-	if [ -d $se_mount -a -f $se_mount/booleans/allow_execstack -a -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
+	if [ -d $se_mount -a -f $se_mount/booleans/allow_execstack -a -x $SELINUX_ENABLED ] && $SELINUX_ENABLED; then
 		if ! cat $se_mount/booleans/allow_execstack | grep -c '^1 1$' >> /dev/null ; then
 			echo "WARNING: the default SELinux policy on, at least, Fedora 12 breaks "
 			echo "Go. You can enable the features that Go needs via the following "
--
libgit2 0.28.4
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin