Skip to content

Commit

Permalink
bluez5: drop modifications to Python shebangs
Browse files Browse the repository at this point in the history
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:
bluez/bluez@d31f04a

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

(From OE-Core rev: f841d8c2ca61145ece3f5a38ef1d0b7222f87d9d)

Signed-off-by: Guðni Már Gilbert <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
  • Loading branch information
gudnimg authored and rpurdie committed Jul 18, 2024
1 parent 8ed64d0 commit a3fd158
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions meta/recipes-connectivity/bluez5/bluez5.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a3fd158

Please sign in to comment.