Hi Vadim,

On Sun, May 01, 2011 at 10:53:44AM -0400, Vadym Chepkov wrote:
> Hi,
> 
> recent addition of vcenter external plugin generates dependency on exotic 
> perl(VMware::VIRuntime) package, majority won't use.

The dependency is automatically generated by find-requires on RH
distributions. Whether the package is exotic or not, depends on
what you run. One could brand exotic just about any stonith
plugin.

> I propose to create a separate subpackage, cluster-glue-extras, for all 
> optional components

That is a wrong place to fix this issue. We should not create an
extra package just because find-requires (actually perl.req)
cannot be told not to create a dependency on a module.

Thanks,

Dejan

> # HG changeset patch
> # User Vadym Chepkov <[email protected]>
> # Date 1304261276 14400
> # Node ID f8122aff3cef64089d611682f1b77a7695102757
> # Parent  b3ab6686445b5267a18a37d1a1404170693306db
> Low: adding cluster-glue-extras subpackage
> 
> Adding cluster-glue-extras subpackage for optional components
> 
> diff --git a/cluster-glue-fedora.spec b/cluster-glue-fedora.spec
> --- a/cluster-glue-fedora.spec
> +++ b/cluster-glue-fedora.spec
> @@ -139,6 +139,7 @@
> %{_libdir}/stonith/plugins/stonith2/*.so
> %{_libdir}/stonith/plugins/stonith2/*.py*
> %exclude %{_libdir}/stonith/plugins/external/ssh
> +%exclude %{_libdir}/stonith/plugins/external/vcenter
> %exclude %{_libdir}/stonith/plugins/stonith2/null.so
> %exclude %{_libdir}/stonith/plugins/stonith2/ssh.so
> %{_libdir}/stonith/plugins/xen0-ha-dom0-stonith-helper
> @@ -214,11 +215,23 @@
> %{_includedir}/pils
> %{_datadir}/%{name}/lrmtest
> %{_libdir}/heartbeat/plugins/test/test.so
> -%{_libdir}/stonith/plugins/external/ssh
> -%{_libdir}/stonith/plugins/stonith2/null.so
> -%{_libdir}/stonith/plugins/stonith2/ssh.so
> %doc AUTHORS
> %doc COPYING
> %doc COPYING.LIB
> 
> +%package -n cluster-glue-extras
> +Summary:     Additional cluster-glue components
> +Group:               Application/System
> +Requires:    cluster-glue-libs = %{version}-%{release}
> +
> +%description -n cluster-glue-extras
> +cluster-glue-extras includes optional components of cluster-glue framework
> +
> +%files -n cluster-glue-extras
> +%defattr(-,root,root)
> +%{_libdir}/stonith/plugins/external/ssh
> +%{_libdir}/stonith/plugins/external/vcenter
> +%{_libdir}/stonith/plugins/stonith2/null.so
> +%{_libdir}/stonith/plugins/stonith2/ssh.so
> +
> %changelog
> 
> Cheers,
> Vadym
> 
> 
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to