From: Ernst Persson <[email protected]> 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.
Signed-off-by: Ernst Persson <[email protected]> Signed-off-by: Steve Sakoman <[email protected]> --- meta/classes/package.bbclass | 4 ++-- 1 file 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" python package_do_shlibs() { import itertools - import re, pipes + import re, shlex import subprocess exclude_shlibs = d.getVar('EXCLUDE_FROM_SHLIBS', False) @@ -1894,7 +1894,7 @@ python package_do_shlibs() { sonames = set() renames = [] ldir = os.path.dirname(file).replace(pkgdest + "/" + pkg, '') - cmd = d.getVar('OBJDUMP') + " -p " + pipes.quote(file) + " 2>/dev/null" + cmd = d.getVar('OBJDUMP') + " -p " + shlex.quote(file) + " 2>/dev/null" fd = os.popen(cmd) lines = fd.readlines() fd.close() -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#208848): https://lists.openembedded.org/g/openembedded-core/message/208848 Mute This Topic: https://lists.openembedded.org/mt/110170103/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
