libevent/python3-shebang.patch
2019-05-28 09:11:09 +00:00

30 lines
1.1 KiB
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

From 293f2e5274ff62edcc1d49ba5439af3d986dfe3b Mon Sep 17 00:00:00 2001
From: Michal Rostecki <mrostecki@suse.com>
Date: Tue, 12 Jun 2018 16:41:36 +0200
Subject: [PATCH] Use python3 instead of env as an interpreter
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
For the rpm runtime dependency detection to work, the shebang
`#!/usr/bin/env python3` needs to be patched into
´#!/usr/bin/python3`, otherwise the package dependency generator
merely adds a dependency on /usr/bin/env rather than the actual
interpreter /usr/bin/python3.
[ddiss@suse.de: python2 -> python3]
---
event_rpcgen.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: libevent-2.1.10-stable/event_rpcgen.py
===================================================================
--- libevent-2.1.10-stable.orig/event_rpcgen.py
+++ libevent-2.1.10-stable/event_rpcgen.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
#
# Copyright (c) 2005-2007 Niels Provos <provos@citi.umich.edu>
# Copyright (c) 2007-2012 Niels Provos and Nick Mathewson