diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-14 15:49:50 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-16 15:35:07 +0000 |
commit | cd4b8a8553f9d551af27941910cf4d3405ecb7b0 (patch) | |
tree | 4f2c58eca95fd5ea9a4538a66a4875fd9d947b0d /meta/recipes-gnome/gtk+ | |
parent | 1ee53881eea3a7ca4d4f6a5ca9c4c6e6488d2348 (diff) | |
download | poky-cd4b8a8553f9d551af27941910cf4d3405ecb7b0.tar.gz |
meta: Fix Deprecated warnings from regexs
Fix handling of escape characters in regexs and hence fix python
Deprecation warnings which will be problematic in python 3.8.
Note that some show up as:
"""
meta/classes/package.bbclass:1293: DeprecationWarning: invalid escape sequence \.
"""
where the problem isn't on 1293 in package.bbclass but in some _prepend to a
package.bbclass function in a different file like mesa.inc, often from
do_package_split() calls.
(From OE-Core rev: 4b1c0c7d5525fc4cea9e0f02ec54e92a6fbc6199)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-gnome/gtk+')
-rw-r--r-- | meta/recipes-gnome/gtk+/gtk+3.inc | 4 | ||||
-rw-r--r-- | meta/recipes-gnome/gtk+/gtk+_2.24.32.bb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/meta/recipes-gnome/gtk+/gtk+3.inc b/meta/recipes-gnome/gtk+/gtk+3.inc index 519a9840f4..1b0829de07 100644 --- a/meta/recipes-gnome/gtk+/gtk+3.inc +++ b/meta/recipes-gnome/gtk+/gtk+3.inc | |||
@@ -123,11 +123,11 @@ python populate_packages_prepend () { | |||
123 | immodules_root = os.path.join(gtk_libdir, 'immodules') | 123 | immodules_root = os.path.join(gtk_libdir, 'immodules') |
124 | printmodules_root = os.path.join(gtk_libdir, 'printbackends'); | 124 | printmodules_root = os.path.join(gtk_libdir, 'printbackends'); |
125 | 125 | ||
126 | immodules = do_split_packages(d, immodules_root, '^im-(.*)\.so$', 'gtk3-immodule-%s', 'GTK input module for %s') | 126 | immodules = do_split_packages(d, immodules_root, r'^im-(.*)\.so$', 'gtk3-immodule-%s', 'GTK input module for %s') |
127 | if immodules: | 127 | if immodules: |
128 | d.setVar("GTKIMMODULES_PACKAGES", " ".join(immodules)) | 128 | d.setVar("GTKIMMODULES_PACKAGES", " ".join(immodules)) |
129 | 129 | ||
130 | do_split_packages(d, printmodules_root, '^libprintbackend-(.*)\.so$', 'gtk3-printbackend-%s', 'GTK printbackend module for %s') | 130 | do_split_packages(d, printmodules_root, r'^libprintbackend-(.*)\.so$', 'gtk3-printbackend-%s', 'GTK printbackend module for %s') |
131 | 131 | ||
132 | if (d.getVar('DEBIAN_NAMES')): | 132 | if (d.getVar('DEBIAN_NAMES')): |
133 | d.setVar(d.expand('PKG_${PN}'), '${MLPREFIX}libgtk-3.0') | 133 | d.setVar(d.expand('PKG_${PN}'), '${MLPREFIX}libgtk-3.0') |
diff --git a/meta/recipes-gnome/gtk+/gtk+_2.24.32.bb b/meta/recipes-gnome/gtk+/gtk+_2.24.32.bb index 89fca736b2..682d31e49e 100644 --- a/meta/recipes-gnome/gtk+/gtk+_2.24.32.bb +++ b/meta/recipes-gnome/gtk+/gtk+_2.24.32.bb | |||
@@ -27,8 +27,8 @@ python populate_packages_prepend () { | |||
27 | immodules_root = os.path.join(gtk_libdir, 'immodules') | 27 | immodules_root = os.path.join(gtk_libdir, 'immodules') |
28 | printmodules_root = os.path.join(gtk_libdir, 'printbackends'); | 28 | printmodules_root = os.path.join(gtk_libdir, 'printbackends'); |
29 | 29 | ||
30 | d.setVar('GTKIMMODULES_PACKAGES', ' '.join(do_split_packages(d, immodules_root, '^im-(.*)\.so$', 'gtk-immodule-%s', 'GTK input module for %s'))) | 30 | d.setVar('GTKIMMODULES_PACKAGES', ' '.join(do_split_packages(d, immodules_root, r'^im-(.*)\.so$', 'gtk-immodule-%s', 'GTK input module for %s'))) |
31 | do_split_packages(d, printmodules_root, '^libprintbackend-(.*)\.so$', 'gtk-printbackend-%s', 'GTK printbackend module for %s') | 31 | do_split_packages(d, printmodules_root, r'^libprintbackend-(.*)\.so$', 'gtk-printbackend-%s', 'GTK printbackend module for %s') |
32 | 32 | ||
33 | if (d.getVar('DEBIAN_NAMES')): | 33 | if (d.getVar('DEBIAN_NAMES')): |
34 | d.setVar(d.expand('PKG_${PN}'), '${MLPREFIX}libgtk-2.0') | 34 | d.setVar(d.expand('PKG_${PN}'), '${MLPREFIX}libgtk-2.0') |