diff options
authorNiels de Vos <>2013-06-12 09:55:26 +0200
committerAnand Avati <>2013-06-13 16:29:13 -0700
commit4ec4ae08c346c3e75c013bbf0529b3d7dd9a60c0 (patch)
parentcede8eb3d0007dcd6eb8929d5031ff25be955ed6 (diff)
rpm: correct AutoRequires filtering on recent Fedora
Recent Fedora releases (F17 and newer) do not need the __requires_exclude macro for filtering automatically generated Requires for <xlator>.so files anymore. It is already sufficient to filter each <xlator>.so from the Provides. This prevents the following (harmless) warning from being printed during build: Ignoring invalid regex -P ^(?!lib).*.so.*$ BUG: 972465 Change-Id: Icc36f421d283ddb993c8f31e0dfdaa4f27135bb7 Signed-off-by: Niels de Vos <> Reviewed-on: Reviewed-by: Kaleb KEITHLEY <> Tested-by: Gluster Build System <> Reviewed-by: Anand Avati <>
1 files changed, 2 insertions, 2 deletions
diff --git a/ b/
index f795444da..ffd8071b5 100644
--- a/
+++ b/
@@ -130,8 +130,8 @@ Provides: %{name}-core = %{version}-%{release}
%global __filter_from_req %{?__filter_from_req} | %{__grep} -v -P '^(?!lib).*\.so.*$'
- # modern rpm and current Fedora
- %global __requires_exclude -P ^(?!lib).*\.so.*$
+ # modern rpm and current Fedora do not generate requires if the provides
+ # are filtered
%global __provides_exclude_from ^%{_libdir}/glusterfs/%{version}/.*$