From 08b585224a74cb5da8caa01d5ec6461a0eff9d2de7acb8f58f8073f5b678098b Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 14 Jun 2023 02:33:38 +0000 Subject: [PATCH] use an even better matching strategy OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=515 --- util-linux.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util-linux.spec b/util-linux.spec index ddc3446..b8d30df 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -524,7 +524,7 @@ bash ./util-linux-login_defs-check.sh # # WARNING: Never edit following line without doing all suggested in the echo below! UTIL_LINUX_KNOWN_SYSTEMD_DEPS='./login-utils/lslogins.c ./misc-utils/findmnt.c ./misc-utils/logger.c ./misc-utils/lsblk-properties.c ./misc-utils/uuidd.c ' -UTIL_LINUX_FOUND_SYSTEMD_DEPS=$(grep -rl 'HAVE_LIB\(SYSTEMD\|UDEV\)' . | grep '\.c$' | LC_ALL=C sort | tr '\n' ' ') +UTIL_LINUX_FOUND_SYSTEMD_DEPS=$(find . -type f -name "*.c" -exec grep -l '#.*if.*HAVE_LIB\(SYSTEMD\|\UDEV\)' '{}' '+' | LC_ALL=C sort | tr '\n' ' ') if test "$UTIL_LINUX_KNOWN_SYSTEMD_DEPS" != "$UTIL_LINUX_FOUND_SYSTEMD_DEPS" ; then echo "List of utilities depending on systemd have changed. Please check the new util-linux-systemd file list, file removal and update of Conflicts for safe update!