From 58af012f1a535ff66340fac06e0b2f2b3d71dfee5d957d676e8288112dc1ea96 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 28 Nov 2017 10:27:21 +0000 Subject: [PATCH] - Add kill-env.diff OBS-URL: https://build.opensuse.org/package/show/devel:tools/coccinelle?expand=0&rev=59 --- coccinelle.changes | 5 +++++ coccinelle.spec | 2 ++ kill-env.diff | 19 +++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 kill-env.diff diff --git a/coccinelle.changes b/coccinelle.changes index 3d9e295..54c465b 100644 --- a/coccinelle.changes +++ b/coccinelle.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Nov 28 10:25:02 UTC 2017 - jengelh@inai.de + +- Add kill-env.diff + ------------------------------------------------------------------- Tue Nov 28 01:14:03 UTC 2017 - aavindraa@gmail.com diff --git a/coccinelle.spec b/coccinelle.spec index 3be8e31..7227558 100644 --- a/coccinelle.spec +++ b/coccinelle.spec @@ -26,6 +26,7 @@ Url: http://coccinelle.lip6.fr/ #Git-Clone: git://github.com/coccinelle/coccinelle Source: http://coccinelle.lip6.fr/distrib/%name-%version.tgz +Patch1: kill-env.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf BuildRequires: automake @@ -59,6 +60,7 @@ fixing bugs in systems code. %prep %setup -q +%patch -P 1 -p1 %build autoreconf -fi diff --git a/kill-env.diff b/kill-env.diff new file mode 100644 index 0000000..4f4aac6 --- /dev/null +++ b/kill-env.diff @@ -0,0 +1,19 @@ +From: Jan Engelhardt +Date: 2017-11-28 11:24:59.025640109 +0100 + +Don't choose arbitrary python interpreters from $PATH. +(It also misleads the rpm autodep scanner.) +--- + tools/pycocci | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: coccinelle-1.0.6/tools/pycocci +=================================================================== +--- coccinelle-1.0.6.orig/tools/pycocci ++++ coccinelle-1.0.6/tools/pycocci +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python + # + # Copyright (c) 2014 Luis R. Rodriguez + # Copyright (c) 2013 Johannes Berg