[packages/chkconfig] unbreak systemd-sysv-install symlink; rel 2

atler atler at pld-linux.org
Thu Oct 19 16:14:43 CEST 2023


commit ed2a8554186beeba96a2ae9dc3ef82c70b7e834a
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Oct 19 16:13:26 2023 +0200

    unbreak systemd-sysv-install symlink; rel 2

 chkconfig-split-usr.patch | 6 ++++--
 chkconfig.spec            | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/chkconfig.spec b/chkconfig.spec
index daef8af..af7821b 100644
--- a/chkconfig.spec
+++ b/chkconfig.spec
@@ -10,7 +10,7 @@ Summary(tr.UTF-8):	Sistem servis bilgilerini sorgular ve yeniler
 Summary(uk.UTF-8):	Системна утиліта для керування ієрархією /etc/rc.d
 Name:		chkconfig
 Version:	1.25
-Release:	1
+Release:	2
 Epoch:		2
 License:	GPL v2
 Group:		Applications/System
diff --git a/chkconfig-split-usr.patch b/chkconfig-split-usr.patch
index b4fb5cd..fd94dfd 100644
--- a/chkconfig-split-usr.patch
+++ b/chkconfig-split-usr.patch
@@ -1,11 +1,13 @@
 --- chkconfig-1.25/Makefile.orig	2023-10-07 21:02:30.061494548 +0200
 +++ chkconfig-1.25/Makefile	2023-10-07 21:06:10.476967121 +0200
-@@ -59,7 +59,7 @@ install:
+@@ -59,8 +59,8 @@ install:
  	[ -d $(DESTDIR)/$(ALTDATADIR) ] || mkdir -p -m 755 $(DESTDIR)/$(ALTDATADIR)
  	[ -d $(DESTDIR)/$(SYSTEMDUTILDIR) ] || mkdir -p -m 755 $(DESTDIR)/$(SYSTEMDUTILDIR)
  
 -	install -m 755 $(PROG) $(DESTDIR)/$(SBINDIR)/$(PROG)
+-	ln -s ../../..$(SBINDIR)/$(PROG) $(DESTDIR)/$(SYSTEMDUTILDIR)/systemd-sysv-install
 +	install -m 755 $(PROG) $(DESTDIR)/$(BINDIR)/$(PROG)
- 	ln -s ../../..$(SBINDIR)/$(PROG) $(DESTDIR)/$(SYSTEMDUTILDIR)/systemd-sysv-install
++	ln -s $(shell realpath -m --relative-to="$(SYSTEMDUTILDIR)" "$(BINDIR)")/$(PROG) $(DESTDIR)/$(SYSTEMDUTILDIR)/systemd-sysv-install
  
  	install -m 755 ntsysv $(DESTDIR)/$(SBINDIR)/ntsysv
+	install -m 755 alternatives $(DESTDIR)/$(SBINDIR)/alternatives
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/chkconfig.git/commitdiff/ed2a8554186beeba96a2ae9dc3ef82c70b7e834a



More information about the pld-cvs-commit mailing list