]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
bluez5: drop modifications to Python shebangs
authorGuðni Már Gilbert <gudni.m.g@gmail.com>
Tue, 16 Jul 2024 16:00:37 +0000 (16:00 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Jul 2024 16:21:01 +0000 (17:21 +0100)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/bluez5/bluez5.inc

index 55aea1f3c7995ce9b50d195907fca1c4c03708a7..65dad451300b74756a0956bb4c2d404a7a12030c 100644 (file)
@@ -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