From b86ebe4d2d739de13c8bdfff2299e185bca2deb4dcb02f52ce3d80e35404ceba Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 10 Jul 2023 14:36:03 +0000 Subject: [PATCH] Accepting request 1097974 from home:favogt:wtmpdb - No longer provide last and lastb on Tumbleweed. last is provided by wtmpdb and lastb is no longer supported. OBS-URL: https://build.opensuse.org/request/show/1097974 OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=518 --- util-linux.changes | 6 ++++++ util-linux.spec | 23 +++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/util-linux.changes b/util-linux.changes index 8a09d66..25034af 100644 --- a/util-linux.changes +++ b/util-linux.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jul 10 13:29:25 UTC 2023 - Fabian Vogt + +- No longer provide last and lastb on Tumbleweed. last is provided by + wtmpdb and lastb is no longer supported. + ------------------------------------------------------------------- Fri Jun 23 07:35:02 UTC 2023 - Fabian Vogt diff --git a/util-linux.spec b/util-linux.spec index 50780aa..25aa3cd 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -954,8 +954,17 @@ rmdir --ignore-fail-on-non-empty /run/run >/dev/null 2>&1 || : %core %{_bindir}/ipcs %core %{_bindir}/irqtop %core %{_bindir}/isosize + +%if 0%{?suse_version} >= 1699 +# last provided by wtmpdb, btmp support dropped +%exclude %{_bindir}/last +%exclude %{_bindir}/lastb +%else %core %{_bindir}/last %core %{_bindir}/lastb +%endif +# 0%{?suse_version} >= 1699 + %core %{_bindir}/line %core %{_bindir}/look @@ -1052,6 +1061,12 @@ rmdir --ignore-fail-on-non-empty /run/run >/dev/null 2>&1 || : %exclude %{_datadir}/bash-completion/completions/uuidd +# wtmpdb +%if 0%{?suse_version} >= 1699 +%exclude %{_datadir}/bash-completion/completions/last +%exclude %{_datadir}/bash-completion/completions/lastb +%endif + # tty-tools package %exclude %{_datadir}/bash-completion/completions/wall %exclude %{_datadir}/bash-completion/completions/write @@ -1143,8 +1158,16 @@ rmdir --ignore-fail-on-non-empty /run/run >/dev/null 2>&1 || : %core %{_mandir}/man1/hexdump.1.gz %core %{_mandir}/man1/ipcrm.1.gz %core %{_mandir}/man1/ipcs.1.gz + +%if 0%{?suse_version} >= 1699 +%exclude %{_mandir}/man1/last.1.gz +%exclude %{_mandir}/man1/lastb.1.gz +%else %core %{_mandir}/man1/last.1.gz %core %{_mandir}/man1/lastb.1.gz +%endif +# 0%{?suse_version} >= 1699 + %core %{_mandir}/man1/line.1.gz %core %{_mandir}/man1/login.1.gz %core %{_mandir}/man1/look.1.gz