diff options
| author | Ernst Persson <ernst.persson@non.se.com> | 2024-12-12 15:36:59 +0100 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-12-20 06:01:45 -0800 |
| commit | ec334b13a75c2c26a678cf47816e361a504aa922 (patch) | |
| tree | d01e2ea3fc678db2f71c65c4bd7ea4b5d6ffa397 /meta/classes | |
| parent | dffb6c2442556a16ef78133a445e81b033fe991a (diff) | |
| download | poky-ec334b13a75c2c26a678cf47816e361a504aa922.tar.gz | |
package.bbclass: Use shlex instead of deprecated pipes
The pipes library is deprecated in Python 3.11 and will be removed in
Python 3.13. pipes.quote is just an import of shlex.quote anyway.
(From OE-Core rev: d167661bceebebafb04dca3bf6a888003f46e6c9)
Signed-off-by: Ernst Persson <ernst.persson@non.se.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/package.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 07bf5eb426..e6ba79346c 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
| @@ -1850,7 +1850,7 @@ SHLIBSWORKDIR = "${PKGDESTWORK}/${MLPREFIX}shlibs2" | |||
| 1850 | 1850 | ||
| 1851 | python package_do_shlibs() { | 1851 | python package_do_shlibs() { |
| 1852 | import itertools | 1852 | import itertools |
| 1853 | import re, pipes | 1853 | import re, shlex |
| 1854 | import subprocess | 1854 | import subprocess |
| 1855 | 1855 | ||
| 1856 | exclude_shlibs = d.getVar('EXCLUDE_FROM_SHLIBS', False) | 1856 | exclude_shlibs = d.getVar('EXCLUDE_FROM_SHLIBS', False) |
| @@ -1894,7 +1894,7 @@ python package_do_shlibs() { | |||
| 1894 | sonames = set() | 1894 | sonames = set() |
| 1895 | renames = [] | 1895 | renames = [] |
| 1896 | ldir = os.path.dirname(file).replace(pkgdest + "/" + pkg, '') | 1896 | ldir = os.path.dirname(file).replace(pkgdest + "/" + pkg, '') |
| 1897 | cmd = d.getVar('OBJDUMP') + " -p " + pipes.quote(file) + " 2>/dev/null" | 1897 | cmd = d.getVar('OBJDUMP') + " -p " + shlex.quote(file) + " 2>/dev/null" |
| 1898 | fd = os.popen(cmd) | 1898 | fd = os.popen(cmd) |
| 1899 | lines = fd.readlines() | 1899 | lines = fd.readlines() |
| 1900 | fd.close() | 1900 | fd.close() |
