Fix python 2.7.0 detection
OBS-URL: https://build.opensuse.org/package/show/devel:tools/coccinelle?expand=0&rev=10
This commit is contained in:
parent
7c9f539b0b
commit
e67eecb600
17
cocci-pythondetect.diff
Normal file
17
cocci-pythondetect.diff
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
configure | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
Index: coccinelle-0.2.5-rc2/configure
|
||||
===================================================================
|
||||
--- coccinelle-0.2.5-rc2.orig/configure
|
||||
+++ coccinelle-0.2.5-rc2/configure
|
||||
@@ -198,7 +198,7 @@ We need 3.XX",
|
||||
if($python) {
|
||||
if(check_config(
|
||||
"python --version 2>&1 |",
|
||||
- "Python 2\.[567]\..*",
|
||||
+ qr/Python 2\.[567]\b/,
|
||||
"python is present",
|
||||
"python is missing or is not a good version."
|
||||
))
|
@ -8,6 +8,7 @@ Thu Jan 20 13:41:16 UTC 2011 - jengelh@medozas.de
|
||||
* support matching and removing some preprocessor directives
|
||||
* support for ocaml scripting
|
||||
* print rule name when a script rule crashes
|
||||
- Fix python x.y.0 detection
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 24 19:14:40 UTC 2010 - jengelh@medozas.de
|
||||
|
@ -10,6 +10,7 @@ Source: %name-%rversion.tar.xz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: ncurses-devel ocaml python-devel xz
|
||||
Patch1: cocci-cast.diff
|
||||
Patch2: cocci-pythondetect.diff
|
||||
|
||||
%description
|
||||
Coccinelle is a program matching and transformation engine which
|
||||
@ -25,7 +26,7 @@ used (by us and others) for finding and fixing bugs in systems code.
|
||||
|
||||
%prep
|
||||
%setup -qn %name-%rversion
|
||||
%patch -P 1 -p1
|
||||
%patch -P 1 -P 2 -p1
|
||||
|
||||
%build
|
||||
# not autotools configure, don't use macro
|
||||
|
Loading…
Reference in New Issue
Block a user