From 7e5cc583abbec9df30180f9204415552a751420f Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Mon, 11 Nov 2024 09:43:59 +0200 Subject: [PATCH] packaging: Specify /run as a runstatedir MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /var/run is _deprecated_ (= legacy), let's use just /run. /usr/lib/systemd/system/frr.service:20: PIDFile= references a path below legacy directory /var/run/, updating /var/run/frr/watchfrr.pid → /run/frr/watchfrr.pid; please update the unit file accordingly. Signed-off-by: Donatas Abraitis --- debian/rules | 1 + redhat/frr.spec.in | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 74573c9a0e5d..d706a0cd2519 100755 --- a/debian/rules +++ b/debian/rules @@ -47,6 +47,7 @@ export PYTHON=python3 override_dh_auto_configure: $(shell dpkg-buildflags --export=sh); \ dh_auto_configure -- \ + --runstatedir=/run \ --sbindir=/usr/lib/frr \ --with-vtysh-pager=/usr/bin/pager \ --libdir=/usr/lib/$(DEB_HOST_MULTIARCH)/frr \ diff --git a/redhat/frr.spec.in b/redhat/frr.spec.in index 1ba8f043b255..f9d12354b61c 100644 --- a/redhat/frr.spec.in +++ b/redhat/frr.spec.in @@ -45,7 +45,7 @@ %define frr_tools %{zeb_src}/tools %if 0%{!?_runstatedir:1} -%define _runstatedir %{_localstatedir}/run +%define _runstatedir /run %endif ############################################################################