From: Dan Nicholson Date: Fri, 18 Jun 2021 18:35:41 +0000 (-0600) Subject: Don't fail build when systemd unit path not defined X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~3^2~9^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d9ef76a598ca66fba04b4a1de87e20ebf41ebcf2;p=ostree.git Don't fail build when systemd unit path not defined In configure the systemd unit path is optional, but in the code it's assumed to be defined. Add an `#ifdef` that throws an error when it's not defined like the handling of `HAVE_LIBMOUNT` below it. --- diff --git a/src/libostree/ostree-impl-system-generator.c b/src/libostree/ostree-impl-system-generator.c index 73da882d..b5a7cde2 100644 --- a/src/libostree/ostree-impl-system-generator.c +++ b/src/libostree/ostree-impl-system-generator.c @@ -120,6 +120,7 @@ require_internal_units (const char *normal_dir, const char *late_dir, GError **error) { +#ifdef SYSTEM_DATA_UNIT_PATH GCancellable *cancellable = NULL; glnx_autofd int normal_dir_dfd = -1; @@ -137,6 +138,9 @@ require_internal_units (const char *normal_dir, return glnx_throw_errno_prefix (error, "symlinkat"); return TRUE; +#else + return glnx_throw (error, "Not implemented"); +#endif } /* Generate var.mount */