mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 00:49:33 +02:00
glib: move to Python 3
Drop python-pygobject and python-dbus dependencies, because nothing in ptests depends on them, and it creates a circular dependency chain. (From OE-Core rev: 95840a416afd50dc6140367570f045c5128c94f4) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f5d36b1c56
commit
2e5367ee16
@@ -26,7 +26,7 @@ PACKAGES += "${PN}-codegen ${PN}-utils"
|
|||||||
|
|
||||||
LEAD_SONAME = "libglib-2.0.*"
|
LEAD_SONAME = "libglib-2.0.*"
|
||||||
|
|
||||||
inherit autotools gettext gtk-doc pkgconfig ptest-gnome upstream-version-is-even bash-completion gio-module-cache
|
inherit autotools gettext gtk-doc pkgconfig ptest-gnome upstream-version-is-even bash-completion gio-module-cache python3native
|
||||||
|
|
||||||
S = "${WORKDIR}/glib-${PV}"
|
S = "${WORKDIR}/glib-${PV}"
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ EXTRA_OECONF_class-native = "${CORECONF} --disable-selinux"
|
|||||||
EXTRA_OECONF_append_libc-uclibc = " --with-libiconv=gnu"
|
EXTRA_OECONF_append_libc-uclibc = " --with-libiconv=gnu"
|
||||||
|
|
||||||
do_configure_prepend() {
|
do_configure_prepend() {
|
||||||
sed -i -e '1s,#!.*,#!${USRBINPATH}/env python,' ${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in
|
sed -i -e '1s,#!.*,#!${USRBINPATH}/env python3,' ${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES_${PN} = "${libdir}/lib*${SOLIBS} \
|
FILES_${PN} = "${libdir}/lib*${SOLIBS} \
|
||||||
@@ -73,7 +73,7 @@ USE_NLS = "yes"
|
|||||||
|
|
||||||
do_install_append () {
|
do_install_append () {
|
||||||
if [ -f ${D}${bindir}/gtester-report ]; then
|
if [ -f ${D}${bindir}/gtester-report ]; then
|
||||||
sed ${D}${bindir}/gtester-report -i -e '1s|^#!.*|#!/usr/bin/env python|'
|
sed ${D}${bindir}/gtester-report -i -e '1s|^#!.*|#!/usr/bin/env python3|'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove some unpackaged files
|
# Remove some unpackaged files
|
||||||
@@ -109,8 +109,6 @@ RDEPENDS_${PN}-ptest += "\
|
|||||||
tzdata-asia \
|
tzdata-asia \
|
||||||
tzdata-europe \
|
tzdata-europe \
|
||||||
tzdata-posix \
|
tzdata-posix \
|
||||||
python-pygobject \
|
|
||||||
python-dbus \
|
|
||||||
shared-mime-info \
|
shared-mime-info \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user