summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glib-2.0
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-28 23:28:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-02 15:44:10 +0100
commitbb6ddc3691ab04162ec5fd69a2d5e7876713fd15 (patch)
tree76e376b01253c3aace1a98a5021bcaad3c92e861 /meta/recipes-core/glib-2.0
parentfcc456ee4b8f619134abb4649db53c638074082c (diff)
downloadpoky-bb6ddc3691ab04162ec5fd69a2d5e7876713fd15.tar.gz
Convert to new override syntax
This is the result of automated script conversion: scripts/contrib/convert-overrides.py <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glib-2.0')
-rw-r--r--meta/recipes-core/glib-2.0/glib-2.0_2.68.3.bb2
-rw-r--r--meta/recipes-core/glib-2.0/glib.inc52
2 files changed, 27 insertions, 27 deletions
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.68.3.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.68.3.bb
index cbce6eae61..c71dc81202 100644
--- a/meta/recipes-core/glib-2.0/glib-2.0_2.68.3.bb
+++ b/meta/recipes-core/glib-2.0/glib-2.0_2.68.3.bb
@@ -20,7 +20,7 @@ SRC_URI = "${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \
20 file://time-test.patch \ 20 file://time-test.patch \
21 file://0001-correctly-use-3-parameters-for-close_range.patch \ 21 file://0001-correctly-use-3-parameters-for-close_range.patch \
22 " 22 "
23SRC_URI_append_class-native = " file://relocate-modules.patch" 23SRC_URI:append:class-native = " file://relocate-modules.patch"
24 24
25SRC_URI[sha256sum] = "e7e1a3c20c026109c45c9ec4a31d8dcebc22e86c69486993e565817d64be3138" 25SRC_URI[sha256sum] = "e7e1a3c20c026109c45c9ec4a31d8dcebc22e86c69486993e565817d64be3138"
26 26
diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc
index 71777bc459..4859d28097 100644
--- a/meta/recipes-core/glib-2.0/glib.inc
+++ b/meta/recipes-core/glib-2.0/glib.inc
@@ -30,7 +30,7 @@ LEAD_SONAME = "libglib-2.0.*"
30 30
31inherit meson gettext gtk-doc pkgconfig ptest-gnome upstream-version-is-even bash-completion gio-module-cache manpages 31inherit meson gettext gtk-doc pkgconfig ptest-gnome upstream-version-is-even bash-completion gio-module-cache manpages
32 32
33DEPENDS_append_class-target = "${@' gtk-doc' if d.getVar('GTKDOC_ENABLED') == 'True' else ''}" 33DEPENDS:append:class-target = "${@' gtk-doc' if d.getVar('GTKDOC_ENABLED') == 'True' else ''}"
34 34
35GTKDOC_MESON_OPTION = "gtk_doc" 35GTKDOC_MESON_OPTION = "gtk_doc"
36 36
@@ -48,55 +48,55 @@ PACKAGECONFIG[tests] = "-Dinstalled_tests=true,-Dinstalled_tests=false,dbus"
48 48
49EXTRA_OEMESON = "-Ddtrace=false -Dfam=false -Dsystemtap=false -Dselinux=disabled" 49EXTRA_OEMESON = "-Ddtrace=false -Dfam=false -Dsystemtap=false -Dselinux=disabled"
50 50
51do_configure_prepend() { 51do_configure:prepend() {
52 sed -i -e '1s,#!.*,#!${USRBINPATH}/env python3,' ${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in 52 sed -i -e '1s,#!.*,#!${USRBINPATH}/env python3,' ${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in
53} 53}
54 54
55FILES_${PN} = "${libdir}/lib*${SOLIBS} \ 55FILES:${PN} = "${libdir}/lib*${SOLIBS} \
56 ${libdir}/gio \ 56 ${libdir}/gio \
57 ${libexecdir}/*gio-querymodules \ 57 ${libexecdir}/*gio-querymodules \
58 ${datadir}/glib-2.0/schemas" 58 ${datadir}/glib-2.0/schemas"
59 59
60FILES_${PN}-utils += "${bindir}/glib-genmarshal \ 60FILES:${PN}-utils += "${bindir}/glib-genmarshal \
61 ${bindir}/glib-gettextize \ 61 ${bindir}/glib-gettextize \
62 ${bindir}/glib-mkenums \ 62 ${bindir}/glib-mkenums \
63 ${bindir}/glib-compile-resources" 63 ${bindir}/glib-compile-resources"
64 64
65FILES_${PN}-dev += "${libdir}/glib-2.0/include \ 65FILES:${PN}-dev += "${libdir}/glib-2.0/include \
66 ${libdir}/gio/modules/lib*${SOLIBSDEV} \ 66 ${libdir}/gio/modules/lib*${SOLIBSDEV} \
67 ${libdir}/gio/modules/*.la \ 67 ${libdir}/gio/modules/*.la \
68 ${datadir}/glib-2.0/gettext/po/Makefile.in.in \ 68 ${datadir}/glib-2.0/gettext/po/Makefile.in.in \
69 ${datadir}/glib-2.0/schemas/gschema.dtd \ 69 ${datadir}/glib-2.0/schemas/gschema.dtd \
70 ${datadir}/glib-2.0/valgrind/glib.supp \ 70 ${datadir}/glib-2.0/valgrind/glib.supp \
71 ${datadir}/gettext/its" 71 ${datadir}/gettext/its"
72FILES_${PN}-dbg += "${datadir}/glib-2.0/gdb ${datadir}/gdb" 72FILES:${PN}-dbg += "${datadir}/glib-2.0/gdb ${datadir}/gdb"
73FILES_${PN}-codegen = "${datadir}/glib-2.0/codegen/*.py \ 73FILES:${PN}-codegen = "${datadir}/glib-2.0/codegen/*.py \
74 ${bindir}/gdbus-codegen" 74 ${bindir}/gdbus-codegen"
75FILES_${PN}-utils = "${bindir}/*" 75FILES:${PN}-utils = "${bindir}/*"
76 76
77SHAREDMIMEDEP = "shared-mime-info" 77SHAREDMIMEDEP = "shared-mime-info"
78SHAREDMIMEDEP_class-native = "" 78SHAREDMIMEDEP:class-native = ""
79# When cross compiling for Windows we don't want to include this 79# When cross compiling for Windows we don't want to include this
80SHAREDMIMEDEP_mingw32 = "" 80SHAREDMIMEDEP:mingw32 = ""
81 81
82RRECOMMENDS_${PN} += "${SHAREDMIMEDEP}" 82RRECOMMENDS:${PN} += "${SHAREDMIMEDEP}"
83 83
84ARM_INSTRUCTION_SET_armv4 = "arm" 84ARM_INSTRUCTION_SET:armv4 = "arm"
85ARM_INSTRUCTION_SET_armv5 = "arm" 85ARM_INSTRUCTION_SET:armv5 = "arm"
86# Valgrind runtime detection works using hand-written assembly, which 86# Valgrind runtime detection works using hand-written assembly, which
87# doesn't support mips16e 87# doesn't support mips16e
88CPPFLAGS_append_class-target_mips16e = " -DNVALGRIND=1" 88CPPFLAGS:append:class-target:mips16e = " -DNVALGRIND=1"
89 89
90# GLib generally requires gettext to be present so for USE_NLS to yes. For 90# GLib generally requires gettext to be present so for USE_NLS to yes. For
91# native builds as i18n is disabled globally we have to add a gettext-native dependency. 91# native builds as i18n is disabled globally we have to add a gettext-native dependency.
92USE_NLS_class-target = "yes" 92USE_NLS:class-target = "yes"
93USE_NLS_class-nativesdk = "yes" 93USE_NLS:class-nativesdk = "yes"
94DEPENDS_append_class-native = " gettext-native" 94DEPENDS:append:class-native = " gettext-native"
95 95
96EXEEXT = "" 96EXEEXT = ""
97EXEEXT_mingw32 = ".exe" 97EXEEXT:mingw32 = ".exe"
98 98
99do_install_append () { 99do_install:append () {
100 if [ -f ${D}${bindir}/gtester-report ]; then 100 if [ -f ${D}${bindir}/gtester-report ]; then
101 sed ${D}${bindir}/gtester-report -i -e '1s|^#!.*|#!/usr/bin/env python3|' 101 sed ${D}${bindir}/gtester-report -i -e '1s|^#!.*|#!/usr/bin/env python3|'
102 fi 102 fi
@@ -118,7 +118,7 @@ do_install_append () {
118 mkdir -p ${D}${libdir}/gio/modules 118 mkdir -p ${D}${libdir}/gio/modules
119} 119}
120 120
121do_install_append_class-target () { 121do_install:append:class-target () {
122 # Tests are only installed on targets, not native builds. Separating this out 122 # Tests are only installed on targets, not native builds. Separating this out
123 # keeps glib-2.0-native from depending on DISTRO_FEATURES 123 # keeps glib-2.0-native from depending on DISTRO_FEATURES
124 if [ -f ${D}${datadir}/installed-tests/glib/gdbus-serialization.test ]; then 124 if [ -f ${D}${datadir}/installed-tests/glib/gdbus-serialization.test ]; then
@@ -134,18 +134,18 @@ do_install_append_class-target () {
134} 134}
135 135
136# As we do not build python3 for windows, makes no sense to ship the script that's using it 136# As we do not build python3 for windows, makes no sense to ship the script that's using it
137do_install_append_mingw32() { 137do_install:append:mingw32() {
138 rm -f ${D}${bindir}/gtester-report 138 rm -f ${D}${bindir}/gtester-report
139} 139}
140 140
141CODEGEN_PYTHON_RDEPENDS = "python3 python3-distutils python3-xml" 141CODEGEN_PYTHON_RDEPENDS = "python3 python3-distutils python3-xml"
142CODEGEN_PYTHON_RDEPENDS_mingw32 = "" 142CODEGEN_PYTHON_RDEPENDS:mingw32 = ""
143 143
144RDEPENDS_${PN}-codegen += "${CODEGEN_PYTHON_RDEPENDS}" 144RDEPENDS:${PN}-codegen += "${CODEGEN_PYTHON_RDEPENDS}"
145 145
146RDEPENDS_${PN}-ptest += "${PN}-utils" 146RDEPENDS:${PN}-ptest += "${PN}-utils"
147 147
148RDEPENDS_${PN}-ptest += "\ 148RDEPENDS:${PN}-ptest += "\
149 coreutils \ 149 coreutils \
150 libgcc \ 150 libgcc \
151 dbus \ 151 dbus \
@@ -170,7 +170,7 @@ RDEPENDS_${PN}-ptest += "\
170 ${PN}-codegen \ 170 ${PN}-codegen \
171 " 171 "
172 172
173RDEPENDS_${PN}-ptest_append_libc-glibc = "\ 173RDEPENDS:${PN}-ptest:append:libc-glibc = "\
174 glibc-gconv-utf-16 \ 174 glibc-gconv-utf-16 \
175 glibc-charmap-utf-8 \ 175 glibc-charmap-utf-8 \
176 glibc-gconv-cp1255 \ 176 glibc-gconv-cp1255 \