From: Zbigniew Jędrzejewski-Szmek Date: Tue, 3 Jul 2018 13:40:53 +0000 (+0200) Subject: rpm: emit warning when macro with typo is used X-Git-Tag: v240~1003 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be9bf171bbf764997551f8a9b3c2aba5c6a875d3;p=thirdparty%2Fsystemd.git rpm: emit warning when macro with typo is used Follow-up for a6bb550458. Suggested by @ignatenkobrain. $ rpmbuild --eval %_environmentdir /usr/lib/environment.d $ rpmbuild --eval %_environmnentdir warning: Use %_environmentdir instead /usr/lib/environment.d --- diff --git a/src/core/macros.systemd.in b/src/core/macros.systemd.in index abbb42b22f4..fe7ca26a345 100644 --- a/src/core/macros.systemd.in +++ b/src/core/macros.systemd.in @@ -28,7 +28,7 @@ # Because we had one release with a typo... # This is temporary (Remove after systemd 240 is released) -%_environmnentdir %_environmentdir +%_environmnentdir %{warn:Use %%_environmentdir instead}%_environmentdir %systemd_requires \ Requires(post): systemd \