On 10/09/2021 21:37:29+0200, Alexandre Belloni wrote:
> Hello,
> 
> On 08/09/2021 19:46:41+0200, tobias.kaufm...@wusto.de wrote:
> > From: Tobias Kaufmann <tobias.ka.kaufm...@bmw.de>
> > 
> > If a package-name contains characters which are used
> > in regular expressions (e.g. libstdc++) this might
> > break the regexp compilation.
> > 
> > To solve this issue the package names are escaped before using
> > them in the regular expression
> > 
> 
> I believe this is the cause of:
> https://autobuilder.yoctoproject.org/typhoon/#/builders/79/builds/2528/steps/14/logs/stdio
> can you check?
> 

Sorry, to make it easier for you, the error is:

ERROR: core-image-minimal-1.0-r0 do_rootfs: Cannot get the installed packages 
list. Command 
'/home/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-1565688/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/dpkg-query
 
--admindir=/home/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-1565688/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs/var/lib/dpkg
 -W -f=Package: ${Package}
Architecture: ${PackageArch}
Version: ${Version}
File: ${Package}_${Version}_${Architecture}.deb
Depends: ${Depends}
Recommends: ${Recommends}
Provides: ${Provides}
' returned 2:
dpkg-query: error: parsing file 
'/home/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-1565688/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs/var/lib/dpkg/status'
 near line 1060:
 invalid package name in 'Package' field: character '\' not allowed (only 
letters, digits and characters '-+._')


> > Signed-off-by: Tobias Kaufmann <tobias.ka.kaufm...@bmw.de>
> > ---
> >  meta/lib/oe/package_manager/deb/__init__.py | 5 +++--
> >  meta/lib/oe/package_manager/ipk/__init__.py | 5 +++--
> >  2 files changed, 6 insertions(+), 4 deletions(-)
> > 
> > diff --git a/meta/lib/oe/package_manager/deb/__init__.py 
> > b/meta/lib/oe/package_manager/deb/__init__.py
> > index 9f112ae25b..4d5921044a 100644
> > --- a/meta/lib/oe/package_manager/deb/__init__.py
> > +++ b/meta/lib/oe/package_manager/deb/__init__.py
> > @@ -208,8 +208,9 @@ class DpkgPM(OpkgDpkgPM):
> >  
> >                      status = sf.read()
> >                      for pkg in packages:
> > -                        status = re.sub(r"Package: 
> > %s\n((?:[^\n]+\n)*?)Status: (.*)(?:unpacked|installed)" % pkg,
> > -                                        r"Package: %s\n\1Status: \2%s" % 
> > (pkg, status_tag),
> > +                        _pkg = re.escape(pkg)
> > +                        status = re.sub(r"Package: 
> > %s\n((?:[^\n]+\n)*?)Status: (.*)(?:unpacked|installed)" % _pkg,
> > +                                        r"Package: %s\n\1Status: \2%s" % 
> > (_pkg, status_tag),
> >                                          status)
> >  
> >                      tmp_sf.write(status)
> > diff --git a/meta/lib/oe/package_manager/ipk/__init__.py 
> > b/meta/lib/oe/package_manager/ipk/__init__.py
> > index 4cd3963111..503a4f5181 100644
> > --- a/meta/lib/oe/package_manager/ipk/__init__.py
> > +++ b/meta/lib/oe/package_manager/ipk/__init__.py
> > @@ -207,8 +207,9 @@ class OpkgPM(OpkgDpkgPM):
> >  
> >                      status = sf.read()
> >                      for pkg in packages:
> > -                        status = re.sub(r"Package: 
> > %s\n((?:[^\n]+\n)*?)Status: (.*)(?:unpacked|installed)" % pkg,
> > -                                        r"Package: %s\n\1Status: \2%s" % 
> > (pkg, status_tag),
> > +                        _pkg = re.escape(pkg)
> > +                        status = re.sub(r"Package: 
> > %s\n((?:[^\n]+\n)*?)Status: (.*)(?:unpacked|installed)" % _pkg,
> > +                                        r"Package: %s\n\1Status: \2%s" % 
> > (_pkg, status_tag),
> >                                          status)
> >  
> >                      tmp_sf.write(status)
> > -- 
> > 2.33.0
> > 
> 
> > 
> > 
> > 
> 
> 
> -- 
> Alexandre Belloni, co-owner and COO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#155934): 
https://lists.openembedded.org/g/openembedded-core/message/155934
Mute This Topic: https://lists.openembedded.org/mt/85465297/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to