Error Macro has unterminated body in yum command


I’m having the notification below when I use “yum command” in CentOS

~]$ yum search openssh
error: Macro %drupal7_find_provides_and_requires has unterminated body
Loaded plugins: fastestmirror

It happened when I add 1 line to /etc/rpm/macros.drupal7, afterthat I rollback to the original of file. However I still get this notification.

%drupal7 %{_datadir}/drupal7
%drupal7_modules %{drupal7}/modules
%drupal7_themes %{drupal7}/themes
%drupal7_libraries %{_sysconfdir}/drupal7/all/libraries

Macro to allow spec compatibility with RPM < 4.9 (no fileattrs)
%drupal7_find_provides_and_requires %{expand:
%global _use_internal_dependency_generator 0
%global __find_provides %{_prefix}/lib/rpm/drupal7.prov %{version}
%global __find_requires %{_prefix}/lib/rpm/drupal7.req

Please help me to solve and let me see the root cause. Big thanks!


Hmm, actually i have no idea about this issue i’m suspecting this issue because of corrupted xorg-x11-util-macros, did you performed below commands like

# yum clean all

after that try again

#yum search openssh

and also once do update

#yum update

still you are facing the issue try to reinstall the package xorg-x11-util-macros

#yum info xorg-x11-util-macros

#yum reinstall xorg-x11-util-macros

still if are facing the same issue while reinstalling the package do one thing download the rpm file and install, you can download rpm package from below link

Thank you so much. I do not know until now.
I will try it and report here.

1 Like