public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kevin Kofler <Kevin@tigcc.ticalc.org>
To: git-commits@fedoraproject.org
Subject: [rpms/kdevelop-python] f43: ensure the installed Python 3 scripts have #!/usr/bin/env python3
Date: Sat, 04 Jul 2026 11:13:22 GMT	[thread overview]
Message-ID: <178316360252.1.564170736117496129.rpms-kdevelop-python-f44065a3ee9b@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/kdevelop-python
Branch : f43
Commit : f44065a3ee9bf70b7596db20468d0a6f16092808
Author : Kevin Kofler <Kevin@tigcc.ticalc.org>
Date   : 2014-09-27T03:09:39+02:00
Stats  : +174/-2 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/kdevelop-python/c/f44065a3ee9bf70b7596db20468d0a6f16092808?branch=f43

Log:
ensure the installed Python 3 scripts have #!/usr/bin/env python3

---
diff --git a/kdev-python-1.7.0-py3-shebang.patch b/kdev-python-1.7.0-py3-shebang.patch
new file mode 100644
index 0000000..b2680dd
--- /dev/null
+++ b/kdev-python-1.7.0-py3-shebang.patch
@@ -0,0 +1,162 @@
+diff -ur kdev-python-1.7.0-py3/documentation_files/__builtin_constants__.py kdev-python-1.7.0-py3-shebang/documentation_files/__builtin_constants__.py
+--- kdev-python-1.7.0-py3/documentation_files/__builtin_constants__.py	2014-08-30 16:49:01.000000000 +0200
++++ kdev-python-1.7.0-py3-shebang/documentation_files/__builtin_constants__.py	2014-09-27 02:53:00.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python2.7
++#!/usr/bin/env python3
+ # -*- coding: utf-8 -*-
+ """
+ Built-in Constants
+diff -ur kdev-python-1.7.0-py3/documentation_files/__builtin__.py kdev-python-1.7.0-py3-shebang/documentation_files/__builtin__.py
+--- kdev-python-1.7.0-py3/documentation_files/__builtin__.py	2014-08-30 16:49:01.000000000 +0200
++++ kdev-python-1.7.0-py3-shebang/documentation_files/__builtin__.py	2014-09-27 02:53:00.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python2.7
++#!/usr/bin/env python3
+ # -*- coding: utf-8 -*-
+ """
+ Built-in Functions
+diff -ur kdev-python-1.7.0-py3/documentation_files/__builtin_types__.py kdev-python-1.7.0-py3-shebang/documentation_files/__builtin_types__.py
+--- kdev-python-1.7.0-py3/documentation_files/__builtin_types__.py	2014-08-30 16:49:01.000000000 +0200
++++ kdev-python-1.7.0-py3-shebang/documentation_files/__builtin_types__.py	2014-09-27 02:53:00.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python2.7
++#!/usr/bin/env python3
+ # -*- coding: utf-8 -*-
+ """
+ .. *************
+diff -ur kdev-python-1.7.0-py3/documentation_files/errno.py kdev-python-1.7.0-py3-shebang/documentation_files/errno.py
+--- kdev-python-1.7.0-py3/documentation_files/errno.py	2014-08-30 16:49:01.000000000 +0200
++++ kdev-python-1.7.0-py3-shebang/documentation_files/errno.py	2014-09-27 02:53:00.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python2.7
++#!/usr/bin/env python3
+ # -*- coding: utf-8 -*-
+ """:synopsis: Standard errno system symbols.
+ 
+diff -ur kdev-python-1.7.0-py3/documentation_files/exceptions.py kdev-python-1.7.0-py3-shebang/documentation_files/exceptions.py
+--- kdev-python-1.7.0-py3/documentation_files/exceptions.py	2014-08-30 16:49:01.000000000 +0200
++++ kdev-python-1.7.0-py3-shebang/documentation_files/exceptions.py	2014-09-27 02:53:00.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python2.7
++#!/usr/bin/env python3
+ # -*- coding: utf-8 -*-
+ """:synopsis: Standard exception classes.
+ 
+diff -ur kdev-python-1.7.0-py3/documentation_files/future_builtins.py kdev-python-1.7.0-py3-shebang/documentation_files/future_builtins.py
+--- kdev-python-1.7.0-py3/documentation_files/future_builtins.py	2014-08-30 16:49:01.000000000 +0200
++++ kdev-python-1.7.0-py3-shebang/documentation_files/future_builtins.py	2014-09-27 02:53:00.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python2.7
++#!/usr/bin/env python3
+ # -*- coding: utf-8 -*-
+ """"""
+ def ascii(object):
+diff -ur kdev-python-1.7.0-py3/documentation_files/__future__.py kdev-python-1.7.0-py3-shebang/documentation_files/__future__.py
+--- kdev-python-1.7.0-py3/documentation_files/__future__.py	2014-08-30 16:49:01.000000000 +0200
++++ kdev-python-1.7.0-py3-shebang/documentation_files/__future__.py	2014-09-27 02:53:00.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python2.7
++#!/usr/bin/env python3
+ # -*- coding: utf-8 -*-
+ """:synopsis: Future statement definitions
+ 
+diff -ur kdev-python-1.7.0-py3/documentation_files/gc.py kdev-python-1.7.0-py3-shebang/documentation_files/gc.py
+--- kdev-python-1.7.0-py3/documentation_files/gc.py	2014-08-30 16:49:01.000000000 +0200
++++ kdev-python-1.7.0-py3-shebang/documentation_files/gc.py	2014-09-27 02:53:00.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python2.7
++#!/usr/bin/env python3
+ # -*- coding: utf-8 -*-
+ """:synopsis: Interface to the cycle-detecting garbage collector.
+ """
+diff -ur kdev-python-1.7.0-py3/documentation_files/imp.py kdev-python-1.7.0-py3-shebang/documentation_files/imp.py
+--- kdev-python-1.7.0-py3/documentation_files/imp.py	2014-08-30 16:49:01.000000000 +0200
++++ kdev-python-1.7.0-py3-shebang/documentation_files/imp.py	2014-09-27 02:53:00.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python2.7
++#!/usr/bin/env python3
+ # -*- coding: utf-8 -*-
+ """:synopsis: Access the implementation of the import statement.
+ 
+diff -ur kdev-python-1.7.0-py3/documentation_files/io.py kdev-python-1.7.0-py3-shebang/documentation_files/io.py
+--- kdev-python-1.7.0-py3/documentation_files/io.py	2014-08-30 16:49:01.000000000 +0200
++++ kdev-python-1.7.0-py3-shebang/documentation_files/io.py	2014-09-27 02:53:00.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python2.7
++#!/usr/bin/env python3
+ # -*- coding: utf-8 -*-
+ """:synopsis: Core tools for working with streams.
+ """
+diff -ur kdev-python-1.7.0-py3/documentation_files/marshal.py kdev-python-1.7.0-py3-shebang/documentation_files/marshal.py
+--- kdev-python-1.7.0-py3/documentation_files/marshal.py	2014-08-30 16:49:01.000000000 +0200
++++ kdev-python-1.7.0-py3-shebang/documentation_files/marshal.py	2014-09-27 02:53:00.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python2.7
++#!/usr/bin/env python3
+ # -*- coding: utf-8 -*-
+ """:synopsis: Convert Python objects to streams of bytes and back (with different
+ constraints).
+diff -ur kdev-python-1.7.0-py3/documentation_files/posix.py kdev-python-1.7.0-py3-shebang/documentation_files/posix.py
+--- kdev-python-1.7.0-py3/documentation_files/posix.py	2014-08-30 16:49:01.000000000 +0200
++++ kdev-python-1.7.0-py3-shebang/documentation_files/posix.py	2014-09-27 02:53:00.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python2.7
++#!/usr/bin/env python3
+ # -*- coding: utf-8 -*-
+ """:platform: Unix
+ :synopsis: The most common POSIX system calls (normally used via module os).
+diff -ur kdev-python-1.7.0-py3/documentation_files/pwd.py kdev-python-1.7.0-py3-shebang/documentation_files/pwd.py
+--- kdev-python-1.7.0-py3/documentation_files/pwd.py	2014-08-30 16:49:01.000000000 +0200
++++ kdev-python-1.7.0-py3-shebang/documentation_files/pwd.py	2014-09-27 02:53:00.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python2.7
++#!/usr/bin/env python3
+ # -*- coding: utf-8 -*-
+ """:platform: Unix
+ :synopsis: The password database (getpwnam() and friends).
+diff -ur kdev-python-1.7.0-py3/documentation_files/signal.py kdev-python-1.7.0-py3-shebang/documentation_files/signal.py
+--- kdev-python-1.7.0-py3/documentation_files/signal.py	2014-08-30 16:49:01.000000000 +0200
++++ kdev-python-1.7.0-py3-shebang/documentation_files/signal.py	2014-09-27 02:53:00.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python2.7
++#!/usr/bin/env python3
+ # -*- coding: utf-8 -*-
+ """:synopsis: Set handlers for asynchronous events.
+ 
+diff -ur kdev-python-1.7.0-py3/documentation_files/sys.py kdev-python-1.7.0-py3-shebang/documentation_files/sys.py
+--- kdev-python-1.7.0-py3/documentation_files/sys.py	2014-08-30 16:49:01.000000000 +0200
++++ kdev-python-1.7.0-py3-shebang/documentation_files/sys.py	2014-09-27 02:53:00.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python2.7
++#!/usr/bin/env python3
+ # -*- coding: utf-8 -*-
+ """:synopsis: Access system-specific parameters and functions.
+ 
+diff -ur kdev-python-1.7.0-py3/documentation_files/thread.py kdev-python-1.7.0-py3-shebang/documentation_files/thread.py
+--- kdev-python-1.7.0-py3/documentation_files/thread.py	2014-08-30 16:49:01.000000000 +0200
++++ kdev-python-1.7.0-py3-shebang/documentation_files/thread.py	2014-09-27 02:53:00.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python2.7
++#!/usr/bin/env python3
+ # -*- coding: utf-8 -*-
+ """:synopsis: Create multiple threads of control within one interpreter.
+ 
+diff -ur kdev-python-1.7.0-py3/documentation_files/zipimport.py kdev-python-1.7.0-py3-shebang/documentation_files/zipimport.py
+--- kdev-python-1.7.0-py3/documentation_files/zipimport.py	2014-08-30 16:49:01.000000000 +0200
++++ kdev-python-1.7.0-py3-shebang/documentation_files/zipimport.py	2014-09-27 02:53:00.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python2.7
++#!/usr/bin/env python3
+ # -*- coding: utf-8 -*-
+ """:synopsis: support for importing Python modules from ZIP archives.
+ """
+diff -ur kdev-python-1.7.0-py3/documentation_src/introspection/introspect.py kdev-python-1.7.0-py3-shebang/documentation_src/introspection/introspect.py
+--- kdev-python-1.7.0-py3/documentation_src/introspection/introspect.py	2014-08-30 16:49:01.000000000 +0200
++++ kdev-python-1.7.0-py3-shebang/documentation_src/introspection/introspect.py	2014-09-27 02:47:35.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ # -*- Coding:utf-8 -*-
+ 
+ # Copyright 2013 by Sven Brauch <svenbrauch@googlemail.com>

diff --git a/kdevelop-python.spec b/kdevelop-python.spec
index aca710b..5b3ec07 100644
--- a/kdevelop-python.spec
+++ b/kdevelop-python.spec
@@ -7,6 +7,9 @@ License:    GPLv2
 %global kdevelop_version %(echo %{version} | sed -e 's/^1\./4./g')
 Source0:    http://download.kde.org/stable/kdevelop/%{kdevelop_version}/src/kdev-python-%{version}%{?py3_suffix}.tar.xz
 
+# ensure the installed Python 3 scripts have #!/usr/bin/env python3
+Patch0:     kdev-python-1.7.0-py3-shebang.patch
+
 Summary:    Python 3 Plugin for KDevelop
 URL:        https://www.kdevelop.org/
 
@@ -26,6 +29,8 @@ Python 3 language support for the KDevelop Integrated Development Environment.
 
 %prep
 %setup -qn kdev-python-%{version}%{?py3_suffix}
+# don't use backups because CMakeLists.txt installs the whole directory
+%patch0 -p1
 
 %build
 mkdir -p %{_target_platform}
@@ -35,7 +40,11 @@ popd
 make %{?_smp_mflags} -C %{_target_platform} 
 
 %install
-make install/fast DESTDIR=${RPM_BUILD_ROOT} -C %{_target_platform}
+make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
+
+# don't ship this Python 2 script, it is only used to generate the
+# documentation_files, it is not needed at runtime
+rm -f %{buildroot}%{_kde4_appsdir}/kdevpythonsupport/documentation_files/PyKDE4/parse_xml.py
 
 %post -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
@@ -53,9 +62,10 @@ make install/fast DESTDIR=${RPM_BUILD_ROOT} -C %{_target_platform}
 %{_kde4_appsdir}/kdevpythonsupport
 
 %changelog
-* Fri Sep 26 2014 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.7.0-1.py3
+* Sat Sep 26 2014 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.7.0-1.py3
 - update to 1.7.0-py3 (#1146723)
 - specfile cleanups
+- ensure the installed Python 3 scripts have #!/usr/bin/env python3
 
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

                 reply	other threads:[~2026-07-04 11:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178316360252.1.564170736117496129.rpms-kdevelop-python-f44065a3ee9b@fedoraproject.org \
    --to=kevin@tigcc.ticalc.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox