Skip to contentSkip to conversation

systemd: fix DeprecationWarning about regexps

PATCH New Martin Jansa 1 participant 1 message Feb 20, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 systemd: fix DeprecationWarning about regexps

* fixes:
oe-core/meta/classes/package.bbclass:1342: DeprecationWarning: invalid escape sequence \.

---
 meta/recipes-core/systemd/systemd_250.3.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/systemd/systemd_250.3.bb +1 -1
index 0fe5fb7976..9121333f56 100644
@@ -352,7 +352,7 @@ do_install() {
 
 python populate_packages:prepend (){
     systemdlibdir = d.getVar("rootlibdir")
-    do_split_packages(d, systemdlibdir, '^lib(.*)\.so\.*', 'lib%s', 'Systemd %s library', extra_depends='', allow_links=True)
+    do_split_packages(d, systemdlibdir, r'^lib(.*)\.so\.*', 'lib%s', 'Systemd %s library', extra_depends='', allow_links=True)
 }
 PACKAGES_DYNAMIC += "^lib(udev|systemd|nss).*"
 
Signature · 1 line
2.35.1