[gnome-build-meta/abderrahim/bst2: 16/16] vm/spice-vdagent.bst: add patch to stop installing /var/run




commit 076b181e877ef91250540eaee1467e349520d4c0
Author: Abderrahim Kitouni <abderrahim kitouni codethink co uk>
Date:   Mon Aug 1 23:00:24 2022 +0200

    vm/spice-vdagent.bst: add patch to stop installing /var/run

 elements/vm/spice-vdagent.bst                      |  8 +++++
 ...-use-runstatedir-and-only-install-when-us.patch | 34 ++++++++++++++++++++++
 2 files changed, 42 insertions(+)
---
diff --git a/elements/vm/spice-vdagent.bst b/elements/vm/spice-vdagent.bst
index 17f149c4b..8f3fd98e4 100644
--- a/elements/vm/spice-vdagent.bst
+++ b/elements/vm/spice-vdagent.bst
@@ -3,6 +3,8 @@ kind: autotools
 sources:
 - kind: tar
   url: spice:releases/spice-vdagent-0.22.1.tar.bz2
+- kind: patch
+  path: files/spice-vdagent/0001-Makefile.am-use-runstatedir-and-only-install-when-us.patch
 
 build-depends:
 - freedesktop-sdk.bst:public-stacks/buildsystem-autotools.bst
@@ -24,3 +26,9 @@ variables:
   conf-local: >-
     --with-session-info=systemd
     --with-init-script=systemd
+
+# force autogen
+config:
+  configure-commands:
+    (<):
+    - rm configure
diff --git a/files/spice-vdagent/0001-Makefile.am-use-runstatedir-and-only-install-when-us.patch 
b/files/spice-vdagent/0001-Makefile.am-use-runstatedir-and-only-install-when-us.patch
new file mode 100644
index 000000000..3b37f687d
--- /dev/null
+++ b/files/spice-vdagent/0001-Makefile.am-use-runstatedir-and-only-install-when-us.patch
@@ -0,0 +1,34 @@
+From bded9e9ee2d591609dca18fa127afe8af1d15592 Mon Sep 17 00:00:00 2001
+From: Abderrahim Kitouni <abderrahim kitouni codethink co uk>
+Date: Sat, 30 Jul 2022 15:17:14 +0200
+Subject: [PATCH] Makefile.am: use runstatedir, and only install when using
+ redhat init
+
+When using systemd, we already have tempfiles.d
+---
+ Makefile.am | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 9c30bae..bd4006c 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -153,12 +153,12 @@ gdmautostart_DATA = $(top_srcdir)/data/spice-vdagent.desktop
+ gdmautostart2dir = $(datadir)/gdm/autostart/LoginWindow
+ gdmautostart2_DATA = $(top_srcdir)/data/spice-vdagent.desktop
+ 
+-install-data-local:
+-      $(mkdir_p) $(DESTDIR)$(localstatedir)/run/spice-vdagentd
+-
+ if INIT_SCRIPT_RED_HAT
+ initdir = $(sysconfdir)/rc.d/init.d
+ init_SCRIPTS = $(top_srcdir)/data/spice-vdagentd
++
++install-data-local:
++      $(mkdir_p) $(DESTDIR)$(runstatedir)/spice-vdagentd
+ endif
+ 
+ if INIT_SCRIPT_SYSTEMD
+-- 
+2.30.2
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]