SHA256
1
0
forked from pool/tcsh
Dr. Werner Fink 2015-01-30 13:16:56 +00:00 committed by Git OBS Bridge
parent 1c6ef5d8be
commit 9ff6e6ec17
2 changed files with 33 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jan 30 13:15:39 UTC 2015 - werner@suse.de
- Enable tcsh checks but be aware that this can not be done in parallel
- Backup tcsh-6.15.00-blanks.dif away before update a working copy
-------------------------------------------------------------------
Thu Jan 15 14:18:41 UTC 2015 - tchvatal@suse.com

View File

@ -37,7 +37,9 @@ Patch8: tcsh-6.18.01-metakey.patch
# PATCH-FIX-SUSE add history file locking (bsc#901076)
Patch9: tcsh-6.18.00-history-file-locking.patch
Patch10: tcsh-6.18.01-history-merge.dif
BuildRequires: autoconf
BuildRequires: ncurses-devel
BuildRequires: screen
Requires: gawk
Requires: textutils
Recommends: tcsh-lang = %{version}
@ -118,8 +120,31 @@ correction, a history mechanism, job control, and a C-like syntax.
make %{?_smp_mflags}
%check
# requires a working terminal on stdin
#make check %{?_smp_mflags}
SCREENDIR=$(mktemp -d ${PWD}/screen.XXXXXXXXXX) || exit 1
SCREENRC=${SCREENDIR}/tcsh
TMPDIR=$(mktemp -d /tmp/tcsh.XXXXXXXXXX) || exit 1
export SCREENRC SCREENDIR TMPDIR
exec 0< /dev/null
SCREENLOG=${SCREENDIR}/log
cat > $SCREENRC<<-EOF
deflogin off
logfile $SCREENLOG
logfile flush 1
logtstamp off
log on
setsid on
scrollback 0
silence on
utf8 on
EOF
> $SCREENLOG
tail -q -s 0.5 -f $SCREENLOG & pid=$!
env -i HOME=$HOME TERM=$TERM TMPDIR=$TMPDIR \
SCREENRC=$SCREENRC SCREENDIR=$SCREENDIR \
screen -L -D -m make check
sleep 1
kill -TERM $pid
rm -rf $SCREENDIR $TMPDIR
%install
for nls in nls/*.cat ; do