mirror of
https://git.yoctoproject.org/poky
synced 2026-03-16 04:09:39 +01:00
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>
This commit is contained in:
committed by
Steve Sakoman
parent
dffb6c2442
commit
ec334b13a7
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user