Package: open-infrastructure-compute-tools
Version: 20221223-3
Tags: patch
User: [email protected]
Usertags: dep17p1

Hi,

open-infrastructure-compute-tools is involved in the /usr-move, because
it contains systemd units installed in an aliased location. Ideally,
we'd like to move them to /usr to finalize the /usr-merge via DEP17.
Unfortunately, it also moved those units from
open-infrastructure-container-tools to open-infrastructure-compute-tools
and therefore dumat flags a risk for file loss. I've looked into this
risk and we are in the fortunate situation where the move between
packages happens in a bullseye -> bookworm upgrade and the move from /
to /usr shall happen in a bookworm -> trixie upgrade. The loss of units
can only happen in a skip-upgrade from bullseye to trixie. Therefore, I
propose just moving the units in trixie and unstable and calling this
done. I'm attaching a patch for your convenience. If you happen to
backport this package to bookworm, this patch must be dropped in the
backport or users will experience file loss. I am also monitoring
backports, so if that happens, I'll raise an rc-bug against the
backported package.

Helmut
--- open-infrastructure-compute-tools-20221223.orig/Makefile
+++ open-infrastructure-compute-tools-20221223/Makefile
@@ -142,8 +142,8 @@
 	ln -sf stop $(DESTDIR)/usr/libexec/$(PROGRAM)/t
 	ln -sf update $(DESTDIR)/usr/libexec/$(PROGRAM)/u
 
-	mkdir -p $(DESTDIR)/lib/systemd/system
-	cp -r share/systemd/* $(DESTDIR)/lib/systemd/system
+	mkdir -p $(DESTDIR)/usr/lib/systemd/system
+	cp -r share/systemd/* $(DESTDIR)/usr/lib/systemd/system
 
 	mkdir -p $(DESTDIR)/var/log/$(SOFTWARE)
 

Reply via email to