Disable watch and who builtin as there is no working utmp anymore
OBS-URL: https://build.opensuse.org/package/show/shells/tcsh?expand=0&rev=165
This commit is contained in:
parent
63fefe6cc4
commit
a92be5a434
33
tcsh-skip-utmp-service.dif
Normal file
33
tcsh-skip-utmp-service.dif
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
---
|
||||||
|
tests/commands.at | 20 ++++++++++----------
|
||||||
|
1 file changed, 10 insertions(+), 10 deletions(-)
|
||||||
|
|
||||||
|
--- tests/commands.at
|
||||||
|
+++ tests/commands.at 2023-12-04 12:21:56.688878232 +0000
|
||||||
|
@@ -980,16 +980,16 @@ dnl
|
||||||
|
dnl log
|
||||||
|
dnl
|
||||||
|
|
||||||
|
-AT_SETUP([log])
|
||||||
|
-AT_KEYWORDS([commands])
|
||||||
|
-
|
||||||
|
-AT_DATA([log.csh],
|
||||||
|
-[[set watch=(this_user_does_not_exist)
|
||||||
|
-log
|
||||||
|
-]])
|
||||||
|
-AT_CHECK([tcsh -f log.csh])
|
||||||
|
-
|
||||||
|
-AT_CLEANUP()
|
||||||
|
+dnl AT_SETUP([log])
|
||||||
|
+dnl AT_KEYWORDS([commands])
|
||||||
|
+dnl
|
||||||
|
+dnl AT_DATA([log.csh],
|
||||||
|
+dnl [[set watch=(this_user_does_not_exist)
|
||||||
|
+dnl log
|
||||||
|
+dnl ]])
|
||||||
|
+dnl AT_CHECK([tcsh -f log.csh])
|
||||||
|
+dnl
|
||||||
|
+dnl AT_CLEANUP()
|
||||||
|
|
||||||
|
|
||||||
|
dnl
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 4 12:19:00 UTC 2023 - Dr. Werner Fink <werner@suse.de>
|
||||||
|
|
||||||
|
- Add patch tcsh-skip-utmp-service.dif
|
||||||
|
* There is currently no API avaible to replace the utmp/wtmp
|
||||||
|
based builtins watch and who of tcsh
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Oct 12 11:10:59 UTC 2023 - Dr. Werner Fink <werner@suse.de>
|
Thu Oct 12 11:10:59 UTC 2023 - Dr. Werner Fink <werner@suse.de>
|
||||||
|
|
||||||
|
28
tcsh.spec
28
tcsh.spec
@ -35,6 +35,7 @@ Patch3: tcsh-6.24.10-history-merge.dif
|
|||||||
Patch4: tcsh-6.18.03-colorls.dif
|
Patch4: tcsh-6.18.03-colorls.dif
|
||||||
Patch5: tcsh-6.17.06-dspmbyte.dif
|
Patch5: tcsh-6.17.06-dspmbyte.dif
|
||||||
Patch6: tcsh-6.18.03-catalogs.dif
|
Patch6: tcsh-6.18.03-catalogs.dif
|
||||||
|
Patch7: tcsh-skip-utmp-service.dif
|
||||||
Patch8: tcsh-6.22.02-local-dotlock.dif
|
Patch8: tcsh-6.22.02-local-dotlock.dif
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -56,14 +57,17 @@ correction, a history mechanism, job control, and a C-like syntax.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch1 -b .pipe
|
%patch -P1 -b .pipe
|
||||||
%patch2 -b .normcmd
|
%patch -P2 -b .normcmd
|
||||||
%patch3 -b .merge
|
%patch -P3 -b .merge
|
||||||
%patch4 -b .colorls
|
%patch -P4 -b .colorls
|
||||||
%patch5 -b .dspmbyte
|
%patch -P5 -b .dspmbyte
|
||||||
%patch6 -b .catalogs
|
%patch -P6 -b .catalogs
|
||||||
%patch8 -p 0 -b .dotlock
|
%if 0%{?suse_version} >= 1699
|
||||||
%patch0 -b .0
|
%patch -P7 -b .noutmp
|
||||||
|
%endif
|
||||||
|
%patch -P8 -p 0 -b .dotlock
|
||||||
|
%patch -P0 -b .0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
@ -95,10 +99,18 @@ correction, a history mechanism, job control, and a C-like syntax.
|
|||||||
}
|
}
|
||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS="%{optflags} -D_GNU_SOURCE -DBUFSIZE=8192 -pipe"
|
CFLAGS="%{optflags} -D_GNU_SOURCE -DBUFSIZE=8192 -pipe"
|
||||||
|
%if 0%{?suse_version} >= 1699
|
||||||
|
#
|
||||||
|
# There is currently no API for using systemd logind
|
||||||
|
# for watch and who tcsh builtin.
|
||||||
|
#
|
||||||
|
CFLAGS="${CFLAGS} -DHAVENOUTMP"
|
||||||
|
%endif
|
||||||
cflags -ftree-loop-linear CFLAGS
|
cflags -ftree-loop-linear CFLAGS
|
||||||
cflags -Wl,-O2 LDFLAGS
|
cflags -Wl,-O2 LDFLAGS
|
||||||
cflags -Wl,--as-needed LDFLAGS
|
cflags -Wl,--as-needed LDFLAGS
|
||||||
export CC CFLAGS LDFLAGS
|
export CC CFLAGS LDFLAGS
|
||||||
|
|
||||||
%ifarch %ix86
|
%ifarch %ix86
|
||||||
CPU=i586
|
CPU=i586
|
||||||
%else
|
%else
|
||||||
|
Loading…
Reference in New Issue
Block a user