[Pacemaker] [PATCH] Medium: build: require Python 2.4 or later
Dejan Muhamedagic
dejanmm at fastmail.fm
Mon Feb 15 04:17:43 EST 2010
Applied too.
Cheers,
Dejan
P.S. If necessary, we could add some compatibility layer for
older pythons. Actually, in the very beginning, old popen was
used, then replaced because of the ugly "will be obsoleted"
warning messages :-/
On Mon, Feb 15, 2010 at 08:43:35AM -0000, Florian Haas wrote:
> # HG changeset patch
> # User Florian Haas <florian.haas at linbit.com>
> # Date 1266223410 -3600
> # Branch stable-1.0
> # Node ID 89861ff287d1b1f626b5795b3da3fbdae373f7c7
> # Parent 439fd4efe28a870acff433eda0cf702853bcbfae
> Medium: build: require Python 2.4 or later
>
> The CRM shell uses the Python Subprocess API, introduced in Python
> 2.4. This means that the shell is unusable on legacy platforms that
> support only Python 2.3, such as RHEL 4. Fix the RPM specs
> accordingly.
>
> diff -r 439fd4efe28a -r 89861ff287d1 pacemaker.spec
> --- a/pacemaker.spec Mon Feb 15 09:26:26 2010 +0100
> +++ b/pacemaker.spec Mon Feb 15 09:43:30 2010 +0100
> @@ -38,7 +38,8 @@
> BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
> AutoReqProv: on
> Requires(pre): cluster-glue
> -Requires: resource-agents python
> +Requires: resource-agents
> +Requires: python >= 2.4
> Conflicts: heartbeat < 2.99
>
> %if 0%{?fedora} || 0%{?centos} > 4 || 0%{?rhel} > 4
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
More information about the Pacemaker
mailing list