add patch to fix build error
This commit is contained in:
parent
635936bc7e
commit
6aaba6593a
30
0001-drop-python-shebang-opts.patch
Normal file
30
0001-drop-python-shebang-opts.patch
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
From e38283748f9a05da409ffbdac3f623d100aa2818 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Todd Zullinger <tmz@pobox.com>
|
||||||
|
Date: Sun, 9 Dec 2018 14:11:33 -0500
|
||||||
|
Subject: [PATCH] drop python shebang opts
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
Fedora's RPM build scripts add the executable path and the '-s' option
|
||||||
|
to the shebang, which breaks the script¹. We'll add the '-Ru' options
|
||||||
|
via the %py2_shbang_opts while building.
|
||||||
|
|
||||||
|
¹ https://bugzilla.redhat.com/1335203
|
||||||
|
---
|
||||||
|
linkchecker | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/linkchecker b/linkchecker
|
||||||
|
index 9b5be4a0..b7c3949e 100755
|
||||||
|
--- a/linkchecker
|
||||||
|
+++ b/linkchecker
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/usr/bin/python -Ru
|
||||||
|
+#!/usr/bin/python
|
||||||
|
# -*- coding: iso-8859-1 -*-
|
||||||
|
# Copyright (C) 2000-2014 Bastian Kleineidam
|
||||||
|
#
|
||||||
|
--
|
||||||
|
2.20.0.rc2
|
||||||
|
|
||||||
@ -7,6 +7,7 @@ Summary: Check HTML documents for broken links
|
|||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: https://linkcheck.github.io/linkchecker/
|
URL: https://linkcheck.github.io/linkchecker/
|
||||||
Source0: https://github.com/cjmayo/linkchecker/archive/%{commit}.tar.gz
|
Source0: https://github.com/cjmayo/linkchecker/archive/%{commit}.tar.gz
|
||||||
|
Patch0000: 0001-drop-python-shebang-opts.patch
|
||||||
BuildRequires: gcc gettext python3-devel python3-setuptools
|
BuildRequires: gcc gettext python3-devel python3-setuptools
|
||||||
BuildRequires: python3dist(dnspython) python3dist(future) python3dist(pyxdg)
|
BuildRequires: python3dist(dnspython) python3dist(future) python3dist(pyxdg)
|
||||||
BuildRequires: python3dist(requests) >= 2.4
|
BuildRequires: python3dist(requests) >= 2.4
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user