public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: "Guðni Már Gilbert" <gudni.m.g@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: "Guðni Már Gilbert" <gudni.m.g@gmail.com>
Subject: [PATCH] bluez5: drop modifications to Python shebangs
Date: Tue, 16 Jul 2024 16:00:37 +0000	[thread overview]
Message-ID: <20240716160037.3764-1-gudni.m.g@gmail.com> (raw)

All the test scripts are by now Python 3 compatible
and the shebangs are consistently set to #!/usr/bin/env python3
since BlueZ 5.73

See:
https://github.com/bluez/bluez/commit/d31f04aa928ae8fb7a4fc5b0876dd17ea65d4513

The source code was inspected to confirm there are no more
shebangs which reference 'python' (Python 2)

Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
---
 meta/recipes-connectivity/bluez5/bluez5.inc | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc
index 55aea1f3c7..65dad45130 100644
--- a/meta/recipes-connectivity/bluez5/bluez5.inc
+++ b/meta/recipes-connectivity/bluez5/bluez5.inc
@@ -111,10 +111,6 @@ do_install:append() {
 		install -m 755 ${B}/$f ${D}/${bindir}
 	done
 
-	# Patch python tools to use Python 3; they should be source compatible, but
-	# still refer to Python 2 in the shebang
-	sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${libdir}/bluez/test/*
-
 	# Fix the /etc/bluetooth directory permissions when systemd is disabled
 	if ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'false', 'true', d)}; then
 		chmod 0755 ${D}${sysconfdir}/bluetooth
-- 
2.34.1



                 reply	other threads:[~2024-07-16 16:01 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=20240716160037.3764-1-gudni.m.g@gmail.com \
    --to=gudni.m.g@gmail.com \
    --cc=openembedded-core@lists.openembedded.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