fix building with SIGHUP ignored (e.g. in koji)

This commit is contained in:
Miroslav Lichvar 2014-12-11 15:58:37 +01:00
parent e4c8041409
commit fd7b978ee2
2 changed files with 22 additions and 0 deletions

19
slang-sighuptest.patch Normal file
View File

@ -0,0 +1,19 @@
diff -up slang-2.3.0/src/test/signal.sl.sighuptest slang-2.3.0/src/test/signal.sl
--- slang-2.3.0/src/test/signal.sl.sighuptest 2014-09-18 05:02:24.000000000 +0200
+++ slang-2.3.0/src/test/signal.sl 2014-12-11 15:57:36.857955195 +0100
@@ -9,6 +9,7 @@ private define handle_hup (sig)
Signal = sig;
}
+#iffalse
private define test_signal (sig, func, old_func)
{
variable old;
@@ -23,6 +24,7 @@ test_signal (SIGHUP, SIG_APP, &handle_hu
test_signal (SIGHUP, SIG_DFL, SIG_DFL);
test_signal (SIGHUP, SIG_IGN, SIG_DFL);
test_signal (SIGHUP, &handle_hup, SIG_IGN);
+#endif
private define test_signal (sig, func)
{

View File

@ -13,6 +13,8 @@ Group: System Environment/Libraries
Source: http://www.jedsoft.org/releases/%{name}/%{name}-%{version}.tar.bz2
# fix file permissions
Patch1: slang-2.2.4-perms.patch
# disable test that fails with SIGHUP ignored (e.g. in koji)
Patch2: slang-sighuptest.patch
URL: http://www.jedsoft.org/slang/
BuildRequires: libpng-devel pcre-devel zlib-devel
%{?with_oniguruma:BuildRequires: oniguruma-devel}
@ -64,6 +66,7 @@ language.
%prep
%setup -q
%patch1 -p1 -b .perms
%patch2 -p1 -b .sighuptest
head -n -1800 < changes.txt > changes.txt_ && tail -n 1800 < changes.txt | \
iconv -f iso8859-1 -t utf8 >> changes.txt_ && \