[packages/SysVinit] Rel 2. dropped %pretrans for the 2013 wtmpx -> wtmp switch

arekm arekm at pld-linux.org
Tue Oct 13 00:56:07 CEST 2026


commit 2987252cb4218ae594d937c96aad3b2f07f8baf5
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Oct 13 00:54:58 2026 +0200

    Rel 2. dropped %pretrans for the 2013 wtmpx -> wtmp switch
    
    A sh %pretrans needs /bin/sh in the rpmdb already, so installing into
    an empty root failed.

 SysVinit.spec | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)
---
diff --git a/SysVinit.spec b/SysVinit.spec
index e201075..0865361 100644
--- a/SysVinit.spec
+++ b/SysVinit.spec
@@ -13,7 +13,7 @@ Summary(tr.UTF-8):	System V başlatma programı
 Summary(uk.UTF-8):	Програми, що керують базовими системними процесами
 Name:		SysVinit
 Version:	3.18
-Release:	1
+Release:	2
 License:	GPL v2+
 Group:		Base
 Source0:	https://codeberg.org/thejessesmith/sysvinit/releases/download/%{version}/sysvinit-%{version}.tar.xz
@@ -195,18 +195,6 @@ cp %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/man5
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-# not in trigger because wtmpx is %%ghost, and %%ghost-ed files
-# are removed when they'are uninstalled
-%pretrans
-if [ -e /var/log/wtmpx ]; then
-	# wtmp always takes precedence, it's safe to remove wtmpx
-	if [ -s /var/log/wtmp ]; then
-		%{__rm} -f /var/log/wtmpx
-	else
-		%{__mv} -f /var/log/wtmpx /var/log/wtmp
-	fi
-fi
-
 %pre
 %groupadd -g 22 utmp
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/SysVinit.git/commitdiff/2987252cb4218ae594d937c96aad3b2f07f8baf5



More information about the pld-cvs-commit mailing list