From dcc78cc2f143425258046ea2faf8a726002744e6 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 15 Nov 2018 16:33:54 +0000 Subject: [PATCH] build-sys: Fix uid check when we don't have /usr/bin/cbindgen Make this match the other case. Closes: #1676 Approved by: cgwalters --- Makefile-rpm-ostree.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile-rpm-ostree.am b/Makefile-rpm-ostree.am index 15a9f7da..3bf3f50f 100644 --- a/Makefile-rpm-ostree.am +++ b/Makefile-rpm-ostree.am @@ -93,7 +93,7 @@ if !HAVE_EXTERNAL_CBINDGEN rpmostree-bindgen: bindgen/Cargo.toml bindgen/src/main.rs cd $(top_srcdir)/bindgen && \ export CARGO_TARGET_DIR=@abs_top_builddir@/bindgen-target && \ - if test -d "$${CARGO_TARGET_DIR}" && [ "$$(stat -c '%u' ${target_subdir})" != "$$(id -u)" ]; then echo "mismatched uids on build"; exit 1; fi && \ + if test -d "$${CARGO_TARGET_DIR}" && [ "$$(stat -c '%u' $${CARGO_TARGET_DIR})" != "$$(id -u)" ]; then echo "mismatched uids on build"; exit 1; fi && \ $(cargo_build) && \ ln -sf $${CARGO_TARGET_DIR}/debug/rpmostree-bindgen $(abs_top_builddir)/rpmostree-bindgen endif