]> git.puffer.fish Git - mirror/frr.git/commitdiff
debian: fix systemd dependency spec
authorDavid Lamparter <equinox@diac24.net>
Mon, 4 Feb 2019 18:15:54 +0000 (19:15 +0100)
committerDavid Lamparter <equinox@diac24.net>
Mon, 4 Feb 2019 18:17:07 +0000 (19:17 +0100)
cf. https://github.com/FRRouting/frr/pull/3715

Signed-off-by: David Lamparter <equinox@diac24.net>
debian/changelog
debian/frr.lintian-overrides
debian/patches/series
debian/patches/systemd-deps.patch [new file with mode: 0644]

index 1188575d7089b713bdb96dff34c70466587d43e9..3c024ecec7610b51573599eeecc9ca60340f06f5 100644 (file)
@@ -1,6 +1,7 @@
 frr (6.0.2-2) UNRELEASED; urgency=medium
 
-  * remove bogus libjson0 build-dep
+  * remove bogus libjson0 build-dep (closes: #921349)
+  * fix broken systemd dependency spec
 
  -- David Lamparter <equinox-debian@diac24.net>  Mon, 04 Feb 2019 04:51:00 +0100
 
index 4df816fa05fb51b9562bea62193b56f37a5575ce..a3e6fcdc257fbcab13687fc4b6e1ebed571b1a2a 100644 (file)
@@ -1,7 +1,3 @@
-# we're a bit special since we provide network connectivity by starting up
-# routing protocols.
-frr binary: systemd-service-file-refers-to-unusual-wantedby-target lib/systemd/system/frr.service network-online.target
-
 # function names & co.
 frr binary: spelling-error-in-binary usr/lib/*/frr/libfrr.so.0.0.0 writen written
 frr binary: spelling-error-in-binary usr/lib/*/frr/libfrrospfapiclient.so.0.0.0 writen written
index 3a90c917bdd49017c4d911c20d44976bd685f2f0..b25c135492542b254320a20e35beed0fcbad7449 100644 (file)
@@ -1,2 +1,3 @@
 0001-vtysh-fix-pager-compatibility-handling.patch
 0002-watchfrr-build-in-defaults-for-r-s-k.patch
+systemd-deps.patch
diff --git a/debian/patches/systemd-deps.patch b/debian/patches/systemd-deps.patch
new file mode 100644 (file)
index 0000000..8543fa2
--- /dev/null
@@ -0,0 +1,29 @@
+Author: David Lamparter <equinox@diac24.net>
+Subject: fix systemd install & dependencies
+Last-Update: 2019-02-04
+
+cf. https://github.com/FRRouting/frr/pull/3715
+(This does _not_ match the change currently proposed there, instead imitating
+what NetworkManager has in its service file.)
+
+diff --git a/tools/frr.service b/tools/frr.service
+index c7568593b36d..aa45f420fea3 100644
+--- a/tools/frr.service
++++ b/tools/frr.service
+@@ -1,7 +1,9 @@
+ [Unit]
+ Description=FRRouting
+ Documentation=https://frrouting.readthedocs.io/en/latest/setup.html
+-After=networking.service
++Wants=network.target
++After=network-pre.target systemd-sysctl.service
++Before=network.target
+ OnFailure=heartbeat-failed@%n.service
+ [Service]
+@@ -20,4 +22,4 @@ ExecStop=/usr/lib/frr/frrinit.sh stop
+ ExecReload=/usr/lib/frr/frrinit.sh reload
+ [Install]
+-WantedBy=network-online.target
++WantedBy=multi-user.target