public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] bluez5: drop modifications to Python shebangs
@ 2024-07-16 16:00 Guðni Már Gilbert
  0 siblings, 0 replies; only message in thread
From: Guðni Már Gilbert @ 2024-07-16 16:00 UTC (permalink / raw)
  To: openembedded-core; +Cc: Guðni Már Gilbert

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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-07-16 16:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-16 16:00 [PATCH] bluez5: drop modifications to Python shebangs Guðni Már Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox