gtk-icon-cache.bbclass: update RDEPENDS
PATCH 1/1 gtk-icon-cache.bbclass: update RDEPENDS
From: Changqing Li <[email protected]>
fix error:
+ /usr/lib/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache/var/tmp/rpm-tmp.mdYxY6: line 12: /usr/lib/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders: No such file or directory %post(adwaita-icon-theme-3.36.1-r0.0.noarch): waitpid(2961) rc 2961 status 7f00
warning: %post(adwaita-icon-theme-3.36.1-r0.0.noarch) scriptlet failed, exit status 127
when install adwaita-icon-theme, which inherit gtk-icon-cache on target, above error reported, fix by add needeed packages in RDEPENDS
--- meta/classes/gtk-icon-cache.bbclass | 2 ++ 1 file changed, 2 insertions(+)
meta/classes/gtk-icon-cache.bbclass +2 -0
@@ -4,6 +4,8 @@ DEPENDS +=" ${@['hicolor-icon-theme', '']['${BPN}' == 'hicolor-icon-theme']} gtk PACKAGE_WRITE_DEPS += "gtk+3-native gdk-pixbuf-native" +RDEPENDS_${PN} += "gdk-pixbuf gtk+3" + gtk_icon_cache_postinst() { if [ "x$D" != "x" ]; then $INTERCEPT_DIR/postinst_intercept update_gtk_icon_cache ${PKG} \
Signature · 1 line
2.17.1
Quoted 35 lines · Changqing Li
From: Changqing Li <[email protected]>
fix error:
+/usr/lib/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders--update-cache/var/tmp/rpm-tmp.mdYxY6: line 12:/usr/lib/gdk-pixbuf-2.0/gdk-pixbuf-
query-loaders: No such file or directory %post(adwaita-icon-theme-3.36.1-r0.0.noarch): waitpid(2961) rc 2961 status 7f00
warning: %post(adwaita-icon-theme-3.36.1-r0.0.noarch) scriptlet failed, exit status 127when install adwaita-icon-theme, which inherit gtk-icon-cache on target, above error reported, fix by add needeed packages in RDEPENDS
Signed-off-by Changqing Li <[email protected]>--- meta/classes/gtk-icon-cache.bbclass | 2 ++ 1 file changed, 2 insertions(+)meta/classes/gtk- renamed from meta/classes/gtk-icon-cache.bbclass +0
-0icon-cache.bbclass
index91cb4ad409..7f218ce7ae100644meta/classes/gtk-icon-cache.bbclass +0
-0@@ -4,6 +4,8 @@ DEPENDS +=" ${@['hicolor-icon-theme', '']['${BPN}' =='hicolor-icon-theme']} gtk
PACKAGE_WRITE_DEPS+= "gtk+3-native gdk-pixbuf-native"meta/classes/gtk-icon-cache.bbclass +2
-0+RDEPENDS_${PN} += "gdk-pixbuf gtk+3" + gtk_icon_cache_postinst() { if [ "x$D" != "x" ]; then $INTERCEPT_DIR/postinst_intercept update_gtk_icon_cache ${PKG}
Quoted 1 line
\
This isn't quite right since the postinst may be added to a package other than ${PN}.
You need to add the RDEPENDS to the code:
rdepends = ' ' + d.getVar('MLPREFIX', False) + "hicolor-icon-theme" d.appendVar('RDEPENDS_%s' % pkg, rdepends)
later in that class.
Cheers,
Richard
Quoted 42 lines · Richard Purdie
Quoted 35 lines · Changqing Li
From: Changqing Li <[email protected]>
fix error:
+/usr/lib/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders--update-cache/var/tmp/rpm-tmp.mdYxY6: line 12:/usr/lib/gdk-pixbuf-2.0/gdk-pixbuf-
query-loaders: No such file or directory %post(adwaita-icon-theme-3.36.1-r0.0.noarch): waitpid(2961) rc 2961 status 7f00
warning: %post(adwaita-icon-theme-3.36.1-r0.0.noarch) scriptlet failed, exit status 127when install adwaita-icon-theme, which inherit gtk-icon-cache on target, above error reported, fix by add needeed packages in RDEPENDS
Signed-off-by Changqing Li <[email protected]>--- meta/classes/gtk-icon-cache.bbclass | 2 ++ 1 file changed, 2 insertions(+)meta/classes/gtk- renamed from meta/classes/gtk-icon-cache.bbclass +0
-0icon-cache.bbclass
index91cb4ad409..7f218ce7ae100644meta/classes/gtk-icon-cache.bbclass +0
-0@@ -4,6 +4,8 @@ DEPENDS +=" ${@['hicolor-icon-theme', '']['${BPN}' =='hicolor-icon-theme']} gtk
PACKAGE_WRITE_DEPS+= "gtk+3-native gdk-pixbuf-native"meta/classes/gtk-icon-cache.bbclass +2
-0+RDEPENDS_${PN} += "gdk-pixbuf gtk+3" + gtk_icon_cache_postinst() { if [ "x$D" != "x" ]; then $INTERCEPT_DIR/postinst_intercept update_gtk_icon_cache ${PKG}Quoted 1 line
\
This isn't quite right since the postinst may be added to a package other than ${PN}.
You need to add the RDEPENDS to the code:
Quoted 8 lines
rdepends = ' ' +
d.getVar('MLPREFIX', False)+ "hicolor-icon-theme"d.appendVar('RDEPENDS_%s' % pkg, rdepends)later in that class.
Cheers,
Richard
Thanks, I will correct it.
Quoted 1 line
With this change now in master and dunfell there is signature issue in allarch adwaita-icon-theme now runtime depending on TUNE_PKGARCH gdk-pixbuf as shown by sstate-diff-machines.sh/bitbake-diffsigs:
bitbake-diffsigs tmp-glibc/sstate-diff/1594398219/qemu*/all-webos-linux/adwaita-icon-theme/*do_prepare_recipe_sysroot*
NOTE: Starting bitbake server...
NOTE: Started PRServer with DBfile: cache/prserv.sqlite3, IP: 127.0.0.1,
PORT: 33511, PID: 36423
Hash for dependent task gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_populate_sysroot
changed froma72aba8432699c8ce4ca1f71833ef14a89ffde0ea4063e37b9d819fdb1e407f4 to 1ad4e1bd76921b71482657f3b017184e9ade8e2a0b9f43ad64ed2dda83b1520f
Unable to find matching sigdata for openembedded-core/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_populate_sysroot with hashesa72aba8432699c8ce4ca1f71833ef14a89ffde0ea4063e37b9d819fdb1e407f4 or 1ad4e1bd76921b71482657f3b017184e9ade8e2a0b9f43ad64ed2dda83b1520f
Quoted 57 lines · Changqing Li
Quoted 40 lines · Richard Purdie
Quoted 35 lines · Changqing Li
From: Changqing Li <[email protected]>
fix error:
+/usr/lib/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders--update-cache/var/tmp/rpm-tmp.mdYxY6: line 12:/usr/lib/gdk-pixbuf-2.0/gdk-pixbuf-
query-loaders: No such file or directory %post(adwaita-icon-theme-3.36.1-r0.0.noarch): waitpid(2961) rc 2961 status 7f00
warning: %post(adwaita-icon-theme-3.36.1-r0.0.noarch) scriptlet failed, exit status 127when install adwaita-icon-theme, which inherit gtk-icon-cache on target, above error reported, fix by add needeed packages in RDEPENDS
Signed-off-by Changqing Li <[email protected]>--- meta/classes/gtk-icon-cache.bbclass | 2 ++ 1 file changed, 2 insertions(+)meta/classes/gtk- renamed from meta/classes/gtk-icon-cache.bbclass +0
-0icon-cache.bbclass
index91cb4ad409..7f218ce7ae100644meta/classes/gtk-icon-cache.bbclass +0
-0@@ -4,6 +4,8 @@ DEPENDS +=" ${@['hicolor-icon-theme', '']['${BPN}' =='hicolor-icon-theme']} gtk
PACKAGE_WRITE_DEPS+= "gtk+3-native gdk-pixbuf-native"meta/classes/gtk-icon-cache.bbclass +2
-0+RDEPENDS_${PN} += "gdk-pixbuf gtk+3" + gtk_icon_cache_postinst() { if [ "x$D" != "x" ]; then $INTERCEPT_DIR/postinst_intercept update_gtk_icon_cache ${PKG}Quoted 1 line
\
This isn't quite right since the postinst may be added to a package other than ${PN}.
Quoted 3 lines
You need to add the RDEPENDS to the code:
rdepends = ' ' +
d.getVar('MLPREFIX', False)+"hicolor-icon-theme"
Quoted 7 lines
d.appendVar('RDEPENDS_%s' % pkg, rdepends)later in that class.
Cheers,
Richard
Thanks, I will correct it.
Quoted 1 line
Hi, Martin
Thanks for tell me the problem. Maybe I don't understand you correctly, but I don't met your problem, below is what I tried,
if I am wrong, please tell me how I can reproduce your problem, thanks.
Here is what I tried:
bitbake adwaita-icon-themewithout my patch, and then build adwaita-icon-theme with my patch, and then run below command:
bitbake-diffsigs 3.36.1-r0.do_prepare_recipe_sysroot.sigdata.608eb6ea5873c19534fddfeacee59d81fa799ce6c965217ffe76a0141885093a 3.36.1-r0.do_prepare_recipe_sysroot.sigdata.b10948f26bfd089980c9f9af928e108e9764627201dcfd9db43efc8a455b181b
NOTE: Starting bitbake server...
runtaskdeps changed:
['autoconf/autoconf_2.69.bb:do_populate_sysroot:virtual:native:/poky/meta/recipes-devtools/autoconf/autoconf_2.69.bb automake/automake_1.16.2.bb:do_populate_sysroot:virtual:native:/poky/meta/recipes-devtools/automake/automake_1.16.2.bb', +gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_populate_sysroot, 'gnome/adwaita-icon-theme_3.36.1.bb:do_fetch gnu-config/gnu-config_git.bb:do_populate_sysroot:virtual:native:/poky/meta/recipes-devtools/gnu-config/gnu-config_git.bb', +gtk+/gtk+3_3.24.21.bb:do_populate_sysroot, 'gtk+/gtk+3_3.24.21.bb:do_populate_sysroot:virtual:native:/poky/meta/recipes-gnome/gtk+/gtk+3_3.24.21.bb hicolor-icon-theme/hicolor-icon-theme_0.17.bb:do_populate_sysroot librsvg/librsvg_2.40.20.bb:do_populate_sysroot:virtual:native:/poky/meta/recipes-gnome/librsvg/librsvg_2.40.20.bb libtool/libtool-native_2.4.6.bb:do_populate_sysroot pkgconfig/pkgconfig_git.bb:do_populate_sysroot:virtual:native:/poky/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb pseudo/pseudo_git.bb:do_populate_sysroot:virtual:native:/poky/meta/recipes-devtools/pseudo/pseudo_git.bb'] Number of task dependencies changed
Dependency on task gtk+/gtk+3_3.24.21.bb:do_populate_sysroot was added with hash 60018dc07fa11c46226232c0923871b65f88f51a0b7665045f779a1111c1e1dd
Dependency on task gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_populate_sysroot was added with hash 17cd8a1fe76fa0b342dc50b8e2d71d8d88eec93d0367ae48629ae66f41eca11f
Quoted 72 lines · Martin Jansa
With this change now in master and dunfell there is signature issue in allarch adwaita-icon-theme now runtime depending on
TUNE_PKGARCHgdk-pixbuf as shown by sstate-diff-machines.sh/bitbake-diffsigs <http://sstate-diff-machines.sh/bitbake-diffsigs>:bitbake-diffsigs tmp-glibc/sstate-diff/1594398219/qemu*/all-webos-linux/adwaita-icon-theme/*do_prepare_recipe_sysroot*
NOTE: Starting bitbake server...
NOTE: Started PRServer with DBfile: cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 33511, PID: 36423
Hash for dependent task gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_populate_sysroot changed froma72aba8432699c8ce4ca1f71833ef14a89ffde0ea4063e37b9d819fdb1e407f4to1ad4e1bd76921b71482657f3b017184e9ade8e2a0b9f43ad64ed2dda83b1520fUnable to find matching sigdata for openembedded-core/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_populate_sysroot with hashesa72aba8432699c8ce4ca1f71833ef14a89ffde0ea4063e37b9d819fdb1e407f4or1ad4e1bd76921b71482657f3b017184e9ade8e2a0b9f43ad64ed2dda83b1520fOn Wed, Jul 1, 2020 at 3:39 AM Changqing Li <[email protected] <mailto:[email protected]>> wrote:
On 6/30/20 6:01 PM, Richard Purdie wrote: > On Tue, 2020-06-30 at 17:49 +0800, Changqing Li wrote: >> From: Changqing Li <[email protected] <mailto:[email protected]>> >> >> fix error: >> + /usr/lib/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache >> /var/tmp/rpm-tmp.mdYxY6: line 12: /usr/lib/gdk-pixbuf-2.0/gdk-pixbuf- >> query-loaders: No such file or directory >> %post(adwaita-icon-theme-3.36.1-r0.0.noarch): waitpid(2961) rc 2961 >> status 7f00 >> warning: %post(adwaita-icon-theme-3.36.1-r0.0.noarch) scriptlet >> failed, exit status 127 >> >> when install adwaita-icon-theme, which inherit gtk-icon-cache >> on target, above error reported, fix by add needeed packages >> in RDEPENDS >> >> Signed-off-by: Changqing Li <[email protected] <mailto:[email protected]>> >> --- >> meta/classes/gtk-icon-cache.bbclass | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/meta/classes/gtk-icon-cache.bbclass b/meta/classes/gtk- >> icon-cache.bbclass >> index 91cb4ad409..7f218ce7ae 100644 >> --- a/meta/classes/gtk-icon-cache.bbclass >> +++ b/meta/classes/gtk-icon-cache.bbclass >> @@ -4,6 +4,8 @@ DEPENDS +=" ${@['hicolor-icon-theme', '']['${BPN}' == >> 'hicolor-icon-theme']} gtk >> >> PACKAGE_WRITE_DEPS += "gtk+3-native gdk-pixbuf-native" >> >> +RDEPENDS_${PN} += "gdk-pixbuf gtk+3" >> + >> gtk_icon_cache_postinst() { >> if [ "x$D" != "x" ]; then >> $INTERCEPT_DIR/postinst_intercept update_gtk_icon_cache ${PKG} >> \ > This isn't quite right since the postinst may be added to a package > other than ${PN}. > > You need to add the RDEPENDS to the code: > > rdepends = ' ' + d.getVar('MLPREFIX', False) + "hicolor-icon-theme" > d.appendVar('RDEPENDS_%s' % pkg, rdepends) > > later in that class. > > Cheers, > > Richard Thanks, I will correct it. >
Quoted 7 lines · Changqing Li
Hi, Martin
Thanks for tell me the problem. Maybe I don't understand you correctly, but I don't met your problem, below is what I tried,
if I am wrong, please tell me how I can reproduce your problem, thanks.
since gtk+3 or perhaps even gdk-pixbuf is not allarch package being added as runtime dependency here would mean that any package thats inheriting this class and allarch class will have the issue Martin is seeing, one way to fix is to call it abi safe using SIGGEN_EXCLUDERECIPES_ABISAFE but since its a class, I dont think you can easily call that out in layer.conf.
Quoted 92 lines
Here is what I tried:
bitbake adwaita-icon-themewithout my patch, and then build adwaita-icon-theme with my patch, and then run below command:
bitbake-diffsigs 3.36.1-r0.do_prepare_recipe_sysroot.sigdata.608eb6ea5873c19534fddfeacee59d81fa799ce6c965217ffe76a0141885093a 3.36.1-r0.do_prepare_recipe_sysroot.sigdata.b10948f26bfd089980c9f9af928e108e9764627201dcfd9db43efc8a455b181b
NOTE: Starting bitbake server...
runtaskdeps changed:
['autoconf/autoconf_2.69.bb:do_populate_sysroot:virtual:native:/poky/meta/recipes-devtools/autoconf/autoconf_2.69.bb automake/automake_1.16.2.bb:do_populate_sysroot:virtual:native:/poky/meta/recipes-devtools/automake/automake_1.16.2.bb',
+gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_populate_sysroot,
'gnome/adwaita-icon-theme_3.36.1.bb:do_fetch gnu-config/gnu-config_git.bb:do_populate_sysroot:virtual:native:/poky/meta/recipes-devtools/gnu-config/gnu-config_git.bb',
+gtk+/gtk+3_3.24.21.bb:do_populate_sysroot,
'gtk+/gtk+3_3.24.21.bb:do_populate_sysroot:virtual:native:/poky/meta/recipes-gnome/gtk+/gtk+3_3.24.21.bb hicolor-icon-theme/hicolor-icon-theme_0.17.bb:do_populate_sysroot librsvg/librsvg_2.40.20.bb:do_populate_sysroot:virtual:native:/poky/meta/recipes-gnome/librsvg/librsvg_2.40.20.bb libtool/libtool-native_2.4.6.bb:do_populate_sysroot pkgconfig/pkgconfig_git.bb:do_populate_sysroot:virtual:native:/poky/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb pseudo/pseudo_git.bb:do_populate_sysroot:virtual:native:/poky/meta/recipes-devtools/pseudo/pseudo_git.bb'] Number of task dependencies changed
Dependency on task gtk+/gtk+3_3.24.21.bb:do_populate_sysroot was added with hash60018dc07fa11c46226232c0923871b65f88f51a0b7665045f779a1111c1e1dd
Dependency on task gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_populate_sysroot was added with hash17cd8a1fe76fa0b342dc50b8e2d71d8d88eec93d0367ae48629ae66f41eca11fQuoted 71 lines · Martin Jansa
With this change now in master and dunfell there is signature issue in allarch adwaita-icon-theme now runtime depending on
TUNE_PKGARCHgdk-pixbuf as shown by sstate-diff-machines.sh/bitbake-diffsigs <http://sstate-diff-machines.sh/bitbake-diffsigs>:bitbake-diffsigs tmp-glibc/sstate-diff/1594398219/qemu*/all-webos-linux/adwaita-icon-theme/*do_prepare_recipe_sysroot*
NOTE: Starting bitbake server...
NOTE: Started PRServer with DBfile: cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 33511, PID: 36423
Hash for dependent task gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_populate_sysroot changed froma72aba8432699c8ce4ca1f71833ef14a89ffde0ea4063e37b9d819fdb1e407f4to1ad4e1bd76921b71482657f3b017184e9ade8e2a0b9f43ad64ed2dda83b1520fUnable to find matching sigdata for openembedded-core/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_populate_sysroot with hashesa72aba8432699c8ce4ca1f71833ef14a89ffde0ea4063e37b9d819fdb1e407f4or1ad4e1bd76921b71482657f3b017184e9ade8e2a0b9f43ad64ed2dda83b1520fOn Wed, Jul 1, 2020 at 3:39 AM Changqing Li <[email protected] <mailto:[email protected]>> wrote:
On 6/30/20 6:01 PM, Richard Purdie wrote: > On Tue, 2020-06-30 at 17:49 +0800, Changqing Li wrote: >> From: Changqing Li <[email protected] <mailto:[email protected]>> >> >> fix error: >> + /usr/lib/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache >> /var/tmp/rpm-tmp.mdYxY6: line 12: /usr/lib/gdk-pixbuf-2.0/gdk-pixbuf- >> query-loaders: No such file or directory >> %post(adwaita-icon-theme-3.36.1-r0.0.noarch): waitpid(2961) rc 2961 >> status 7f00 >> warning: %post(adwaita-icon-theme-3.36.1-r0.0.noarch) scriptlet >> failed, exit status 127 >> >> when install adwaita-icon-theme, which inherit gtk-icon-cache >> on target, above error reported, fix by add needeed packages >> in RDEPENDS >> >> Signed-off-by: Changqing Li <[email protected] <mailto:[email protected]>> >> --- >> meta/classes/gtk-icon-cache.bbclass | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/meta/classes/gtk-icon-cache.bbclass b/meta/classes/gtk- >> icon-cache.bbclass >> index 91cb4ad409..7f218ce7ae 100644 >> --- a/meta/classes/gtk-icon-cache.bbclass >> +++ b/meta/classes/gtk-icon-cache.bbclass >> @@ -4,6 +4,8 @@ DEPENDS +=" ${@['hicolor-icon-theme', '']['${BPN}' == >> 'hicolor-icon-theme']} gtk >> >> PACKAGE_WRITE_DEPS += "gtk+3-native gdk-pixbuf-native" >> >> +RDEPENDS_${PN} += "gdk-pixbuf gtk+3" >> + >> gtk_icon_cache_postinst() { >> if [ "x$D" != "x" ]; then >> $INTERCEPT_DIR/postinst_intercept update_gtk_icon_cache ${PKG} >> \ > This isn't quite right since the postinst may be added to a package > other than ${PN}. > > You need to add the RDEPENDS to the code: > > rdepends = ' ' + d.getVar('MLPREFIX', False) + "hicolor-icon-theme" > d.appendVar('RDEPENDS_%s' % pkg, rdepends) > > later in that class. > > Cheers, > > Richard Thanks, I will correct it. >
Quoted 5 lines · Khem Raj
Quoted 2 lines · Changqing Li
Hi, Martin
Quoted 7 lines
Quoted 5 lines
Thanks for tell me the problem. Maybe I don't understand you correctly, but I don't met your problem, below is what I tried,
if I am wrong, please tell me how I can reproduce your problem, thanks.
since gtk+3 or perhaps even gdk-pixbuf is not allarch package being added as runtime dependency here would mean that any package thats inheriting this class and allarch class will have the issue Martin is seeing, one way to fix is to call it abi safe using
SIGGEN_EXCLUDERECIPES_ABISAFEbut since its a class, I dont think you can easily call that out in layer.conf.
How about add it in gtk-icon-cache.bbclass, and check the arch first, if it is allarch, then add gtk+3/pixbug into SIGGEN_EXCLUDERECIPES_ABISAFE?
Quoted 20 lines
Quoted 20 lines
Here is what I tried:
bitbake adwaita-icon-themewithout my patch, and then build adwaita-icon-theme with my patch, and then run below command:
bitbake-diffsigs 3.36.1-r0.do_prepare_recipe_sysroot.sigdata.608eb6ea5873c19534fddfeacee59d81fa799ce6c965217ffe76a0141885093a 3.36.1-r0.do_prepare_recipe_sysroot.sigdata.b10948f26bfd089980c9f9af928e108e9764627201dcfd9db43efc8a455b181b
NOTE: Starting bitbake server...
runtaskdeps changed:
['autoconf/autoconf_2.69.bb:do_populate_sysroot:virtual:native:/poky/meta/recipes-devtools/autoconf/autoconf_2.69.bb automake/automake_1.16.2.bb:do_populate_sysroot:virtual:native:/poky/meta/recipes-devtools/automake/automake_1.16.2.bb',
+gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_populate_sysroot,
'gnome/adwaita-icon-theme_3.36.1.bb:do_fetch gnu-config/gnu-config_git.bb:do_populate_sysroot:virtual:native:/poky/meta/recipes-devtools/gnu-config/gnu-config_git.bb',
+gtk+/gtk+3_3.24.21.bb:do_populate_sysroot,
'gtk+/gtk+3_3.24.21.bb:do_populate_sysroot:virtual:native:/poky/meta/recipes-gnome/gtk+/gtk+3_3.24.21.bb hicolor-icon-theme/hicolor-icon-theme_0.17.bb:do_populate_sysroot librsvg/librsvg_2.40.20.bb:do_populate_sysroot:virtual:native:/poky/meta/recipes-gnome/librsvg/librsvg_2.40.20.bb libtool/libtool-native_2.4.6.bb:do_populate_sysroot pkgconfig/pkgconfig_git.bb:do_populate_sysroot:virtual:native:/poky/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb pseudo/pseudo_git.bb:do_populate_sysroot:virtual:native:/poky/meta/recipes-devtools/pseudo/pseudo_git.bb']Number of task dependencies changed
Dependency on task gtk+/gtk+3_3.24.21.bb:do_populate_sysroot was added with hash60018dc07fa11c46226232c0923871b65f88f51a0b7665045f779a1111c1e1ddDependency on task gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_populate_sysroot was added with hash17cd8a1fe76fa0b342dc50b8e2d71d8d88eec93d0367ae48629ae66f41eca11f
Quoted 8 lines
Quoted 8 lines · Martin Jansa
Quoted 7 lines
With this change now in master and dunfell there is signature issue in allarch adwaita-icon-theme now runtime depending on
TUNE_PKGARCHgdk-pixbuf as shown by sstate-diff-machines.sh/bitbake-diffsigs <http://sstate-diff-machines.sh/bitbake-diffsigs>:bitbake-diffsigs tmp-glibc/sstate-diff/1594398219/qemu*/all-webos-linux/adwaita-icon-theme/*do_prepare_recipe_sysroot*
NOTE: Starting bitbake server...
NOTE: Started PRServer with DBfile: cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 33511, PID: 36423
Hash for dependent task gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_populate_sysroot changed froma72aba8432699c8ce4ca1f71833ef14a89ffde0ea4063e37b9d819fdb1e407f4to1ad4e1bd76921b71482657f3b017184e9ade8e2a0b9f43ad64ed2dda83b1520fUnable to find matching sigdata for openembedded-core/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_populate_sysroot with hashesa72aba8432699c8ce4ca1f71833ef14a89ffde0ea4063e37b9d819fdb1e407f4or1ad4e1bd76921b71482657f3b017184e9ade8e2a0b9f43ad64ed2dda83b1520f
Martin, Khem, I still don't know how to reproduce this error "Unable to find matching sigdata for ....", could you send how to reproduce?
Quoted 68 lines
Quoted 68 lines
Quoted 65 lines · On Wed, Jul 1, 2020 at 3:39 AM Changqing Li <[email protected]…
On 6/30/20 6:01 PM, Richard Purdie wrote:
> On Tue, 2020-06-30 at 17:49 +0800, Changqing Li wrote:
>> From: Changqing Li <[email protected] <mailto:[email protected]>>
>>
>> fix error:
>> +/usr/lib/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders--update-cache
>>/var/tmp/rpm-tmp.mdYxY6: line 12:
/usr/lib/gdk-pixbuf-2.0/gdk-pixbuf-
>> query-loaders: No such file or directory
>> %post(adwaita-icon-theme-3.36.1-r0.0.noarch): waitpid(2961) rc 2961 >> status 7f00
>> warning: %post(adwaita-icon-theme-3.36.1-r0.0.noarch) scriptlet >> failed, exit status 127
>>
>> when install adwaita-icon-theme, which inherit gtk-icon-cache >> on target, above error reported, fix by add needeed packages >> in RDEPENDS
>>
>> Signed-off-by: Changqing Li <[email protected] <mailto:[email protected]>>
>> ---
>> meta/classes/gtk-icon-cache.bbclass | 2 ++
>> 1 file changed, 2 insertions(+)
>>
>> diff --git a/meta/classes/gtk-icon-cache.bbclass b/meta/classes/gtk-
>> icon-cache.bbclass
>> index91cb4ad409..7f218ce7ae100644
>> --- a/meta/classes/gtk-icon-cache.bbclass
>> +++ b/meta/classes/gtk-icon-cache.bbclass
>> @@ -4,6 +4,8 @@ DEPENDS +=" ${@['hicolor-icon-theme', '']['${BPN}' ==
>> 'hicolor-icon-theme']} gtk
>>
>> PACKAGE_WRITE_DEPS += "gtk+3-native gdk-pixbuf-native" >>
>> +RDEPENDS_${PN} += "gdk-pixbuf gtk+3"
>> +
>> gtk_icon_cache_postinst() {
>> if [ "x$D" != "x" ]; then
>> $INTERCEPT_DIR/postinst_interceptupdate_gtk_icon_cache${PKG} >> \
> This isn't quite right since the postinst may be added to a package > other than ${PN}.
>
> You need to add the RDEPENDS to the code:
>
> rdepends = ' ' +d.getVar('MLPREFIX', False)+ "hicolor-icon-theme"
>d.appendVar('RDEPENDS_%s' % pkg, rdepends)
>
> later in that class.
>
> Cheers,
>
> Richard
Thanks, I will correct it.
>
Quoted 1 line
Martin, Khem, I still don't know how to reproduce this error "Unable
to find matching sigdata for ....", could you send how to reproduce?
"Unable to find matching sigdata for ...." part is irrelevant
The issue is this:
"Hash for dependent task gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_populate_sysroot changed from a72aba8432699c8ce4ca1f71833ef14a89ffde0ea4063e37b9d819fdb1e407f4 to 1ad4e1bd76921b71482657f3b017184e9ade8e2a0b9f43ad64ed2dda83b1520f"
and you can reproduce it when you generate the signatures for 2 MACHINEs with different TUNE_PKGARCH e.g. qemux86 and qemuarm.
Quoted 177 lines · Changqing Li
Quoted 12 lines · Khem Raj
Quoted 8 lines · Changqing Li
Hi, Martin
Thanks for tell me the problem. Maybe I don't understand you correctly, but I don't met your problem, below is what I tried,
if I am wrong, please tell me how I can reproduce your problem, thanks.
Quoted 6 lines
since gtk+3 or perhaps even gdk-pixbuf is not allarch package being added as runtime dependency here would mean that any package thats inheriting this class and allarch class will have the issue Martin is seeing, one way to fix is to call it abi safe using
SIGGEN_EXCLUDERECIPES_ABISAFEbut since its a class, I dont think you can easily call that out in layer.conf.How about add it in gtk-icon-cache.bbclass, and check the arch first, if it is allarch, then add gtk+3/pixbug into
SIGGEN_EXCLUDERECIPES_ABISAFE?Quoted 8 lines
Quoted 8 lines
Here is what I tried:
bitbake adwaita-icon-themewithout my patch, and then build adwaita-icon-theme with my patch, and then run below command:
bitbake-diffsigs
3.36.1-r0.do_prepare_recipe_sysroot.sigdata.608eb6ea5873c19534fddfeacee59d81fa799ce6c965217ffe76a0141885093a
Quoted 1 line
Quoted 1 line
3.36.1-r0.do_prepare_recipe_sysroot.sigdata.b10948f26bfd089980c9f9af928e108e9764627201dcfd9db43efc8a455b181b
Quoted 4 lines
Quoted 4 lines
NOTE: Starting bitbake server...
runtaskdeps changed:
['autoconf/autoconf_2.69.bb:do_populate_sysroot:virtual:native:/poky/meta/recipes-devtools/autoconf/ autoconf_2.69.bb
Quoted 1 line
Quoted 1 line
automake/automake_1.16.2.bb:
do_populate_sysroot:virtual:native:/poky/meta/recipes-devtools/automake/ automake_1.16.2.bb',
Quoted 3 lines
Quoted 3 lines
+gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_populate_sysroot, 'gnome/adwaita-icon-theme_3.36.1.bb:do_fetch gnu-config/gnu-config_git.bb:
do_populate_sysroot:virtual:native:/poky/meta/recipes-devtools/gnu-config/ gnu-config_git.bb',
Quoted 2 lines
Quoted 2 lines
+gtk+/gtk+3_3.24.21.bb:do_populate_sysroot,
'gtk+/gtk+3_3.24.21.bb:do_populate_sysroot:virtual:native:/poky/meta/recipes-gnome/gtk+/gtk+ 3_3.24.21.bb
Quoted 2 lines
Quoted 2 lines
hicolor-icon-theme/hicolor-icon-theme_0.17.bb:do_populate_sysroot librsvg/librsvg_2.40.20.bb:
do_populate_sysroot:virtual:native:/poky/meta/recipes-gnome/librsvg/ librsvg_2.40.20.bb
Quoted 2 lines
Quoted 2 lines
libtool/libtool-native_2.4.6.bb:do_populate_sysroot pkgconfig/pkgconfig_git.bb:
do_populate_sysroot:virtual:native:/poky/meta/recipes-devtools/pkgconfig/ pkgconfig_git.bb
Quoted 1 line
Quoted 1 line
pseudo/pseudo_git.bb:
do_populate_sysroot:virtual:native:/poky/meta/recipes-devtools/pseudo/ pseudo_git.bb']
Quoted 10 lines
Quoted 10 lines
Number of task dependencies changed
Dependency on task gtk+/gtk+3_3.24.21.bb:do_populate_sysroot was added with hash60018dc07fa11c46226232c0923871b65f88f51a0b7665045f779a1111c1e1ddDependency on task gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_populate_sysroot was added with hash17cd8a1fe76fa0b342dc50b8e2d71d8d88eec93d0367ae48629ae66f41eca11fQuoted 8 lines
Quoted 8 lines · Martin Jansa
Quoted 7 lines
With this change now in master and dunfell there is signature issue in allarch adwaita-icon-theme now runtime depending on
TUNE_PKGARCHgdk-pixbuf as shown by sstate-diff-machines.sh/bitbake-diffsigs
<http://sstate-diff-machines.sh/bitbake-diffsigs>:bitbake-diffsigs
tmp-glibc/sstate-diff/1594398219/qemu*/all-webos-linux/adwaita-icon-theme/*do_prepare_recipe_sysroot*
Quoted 10 lines
Quoted 9 lines
Quoted 9 lines
NOTE: Starting bitbake server...
NOTE: Started PRServer with DBfile: cache/prserv.sqlite3, IP:
127.0.0.1, PORT: 33511, PID: 36423
Hash for dependent task gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_populate_sysroot changed froma72aba8432699c8ce4ca1f71833ef14a89ffde0ea4063e37b9d819fdb1e407f4to1ad4e1bd76921b71482657f3b017184e9ade8e2a0b9f43ad64ed2dda83b1520f
Unable to find matching sigdata for openembedded-core/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_populate_sysrootQuoted 3 lines
Quoted 3 lines
Quoted 3 lines
with hashes
a72aba8432699c8ce4ca1f71833ef14a89ffde0ea4063e37b9d819fdb1e407f4or1ad4e1bd76921b71482657f3b017184e9ade8e2a0b9f43ad64ed2dda83b1520fMartin, Khem, I still don't know how to reproduce this error "Unable to find matching sigdata for ....", could you send how to reproduce?
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
On Wed, Jul 1, 2020 at 3:39 AM Changqing Li <[email protected] <mailto:[email protected]>>
Quoted 69 lines · wrote:
Quoted 69 lines
Quoted 66 lines · Richard Purdie
Quoted 2 lines · Changqing Li
Quoted 1 line
From: Changqing Li <[email protected]
<mailto:[email protected]>> >> >> fix error: >> + /usr/lib/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders--update-cache
Quoted 1 line
Quoted 1 line
/var/tmp/rpm-tmp.mdYxY6: line 12:/usr/lib/gdk-pixbuf-2.0/gdk-pixbuf- >> query-loaders: No such file or directory >> %post(adwaita-icon-theme-3.36.1-r0.0.noarch): waitpid(2961)rc 2961
Quoted 9 lines
Quoted 9 lines
status 7f00
warning: %post(adwaita-icon-theme-3.36.1-r0.0.noarch) scriptlet failed, exit status 127when install adwaita-icon-theme, which inherit gtk-icon-cache on target, above error reported, fix by add needeed packages in RDEPENDS
Signed-off-by Changqing Li <[email protected]<mailto:[email protected]>> >> --- >> meta/classes/gtk-icon-cache.bbclass | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/meta/classes/gtk-icon-cache.bbclass b/meta/classes/gtk- >> icon-cache.bbclass >> index 91cb4ad409..7f218ce7ae 100644 >> --- a/meta/classes/gtk-icon-cache.bbclass >> +++ b/meta/classes/gtk-icon-cache.bbclass >> @@ -4,6 +4,8 @@ DEPENDS +=" ${@['hicolor-icon-theme', '']['${BPN}' == >> 'hicolor-icon-theme']} gtk >> >> PACKAGE_WRITE_DEPS += "gtk+3-native gdk-pixbuf-native" >> >> +RDEPENDS_${PN} += "gdk-pixbuf gtk+3" >> + >> gtk_icon_cache_postinst() { >> if [ "x$D" != "x" ]; then >> $INTERCEPT_DIR/postinst_intercept update_gtk_icon_cache${PKG}
Quoted 2 lines
Quoted 1 line
\
This isn't quite right since the postinst may be added to a
package
Quoted 5 lines
other than ${PN}.
You need to add the RDEPENDS to the code:
rdepends = ' ' +
d.getVar('MLPREFIX', False)+"hicolor-icon-theme" > d.appendVar('RDEPENDS_%s' % pkg, rdepends) > > later in that class. > > Cheers, > > Richard Thanks, I will correct it. >
PATCH 1/1 layer.conf: fix adwaita-icon-theme signature change problem
From: Changqing Li <[email protected]>
allarch package adwaita-icon-theme inherit both allarch and gtk-icon-cache, since commit 31e3d34c8a9c3e8481aa837aa0bf52adf095fe62 [gtk-icon-cache.bbclass: add runtime dependency], it start depend on non-allarch packages gdk-pixbuf and gtk+3, which make it's signature changes when machine changed.
like for task do_prepare_recipe_sysroot:
"Hash for dependent task gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_populate_sysroot changed from a72aba8432699c8ce4ca1f71833ef14a89ffde0ea4063e37b9d819fdb1e407f4 to 1ad4e1bd76921b71482657f3b017184e9ade8e2a0b9f43ad64ed2dda83b1520f"
the only way to fix this is remove the task dependency. SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS not work in class, so add it in layer.conf.
Maybe we have other recipes under other layers have similar problem, we can only add one by one to its layer.conf, seems not a good idea. but add *->pixbuf will influence other packages
--- meta/conf/layer.conf | 2 ++ 1 file changed, 2 insertions(+)
meta/conf/layer.conf +2 -0
@@ -80,6 +80,8 @@ SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \ weston-init->kbd \ connman->xl2tpd \ lttng-tools->lttng-modules \ + adwaita-icon-theme->gdk-pixbuf \ + adwaita-icon-theme->gtk+3 \ " # Avoid adding bison-native to the sysroot without a specific
Signature · 1 line
2.17.1
Re: [OE-core] [PATCH] layer.conf: fix adwaita-icon-theme signature change problem
infact the error is not limited to just one theme recipe but all which inherit this class see
http://jenkins.nas-admin.org/view/OE/job/oe_world_workspace-compare-signatures/980/console
so are we forcing same kind of fix everywhere ? seems a bit of kludge to me
Quoted 45 lines · Changqing Li
From: Changqing Li <[email protected]>
allarch package adwaita-icon-theme inherit both allarch and gtk-icon-cache, since commit
31e3d34c8a9c3e8481aa837aa0bf52adf095fe62[gtk-icon-cache.bbclass: add runtime dependency], it start depend on non-allarch packages gdk-pixbuf and gtk+3, which make it's signature changes when machine changed.like for task
do_prepare_recipe_sysroot:
"Hash for dependent task gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_populate_sysroot changed froma72aba8432699c8ce4ca1f71833ef14a89ffde0ea4063e37b9d819fdb1e407f4to1ad4e1bd76921b71482657f3b017184e9ade8e2a0b9f43ad64ed2dda83b1520f"the only way to fix this is remove the task dependency.
SIGGEN_EXCLUDE_SAFE_RECIPE_DEPSnot work in class, so add it in layer.conf.Maybe we have other recipes under other layers have similar problem, we can only add one by one to its layer.conf, seems not a good idea. but add *->pixbuf will influence other packages
Signed-off-by Changqing Li <[email protected]>--- meta/conf/layer.conf | 2 ++ 1 file changed, 2 insertions(+)meta/conf/layer.conf +2
-1@@ -80,6 +80,8 @@ SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \ weston-init->kbd \ connman->xl2tpd \ lttng-tools->lttng-modules \ + adwaita-icon-theme->gdk-pixbuf \ + adwaita-icon-theme->gtk+3 \ " # Avoid adding bison-native to the sysroot without a specific --2.17.1
Re: [OE-core] [PATCH] layer.conf: fix adwaita-icon-theme signature change problem
Quoted 6 lines · Khem Raj
infact the error is not limited to just one theme recipe but all which inherit this class see
http://jenkins.nas-admin.org/view/OE/job/oe_world_workspace-compare-signatures/980/console
so are we forcing same kind of fix everywhere ? seems a bit of kludge to me
Yes, I also noticed that there are several recipes under other layer have same problem,
and that's why I say this fix maybe not a good idea. but signatures generated very early,
SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS not work if set in the gtk-icon-cache.bbclass.
Any other good idea? Thanks.
Quoted 47 lines
Quoted 44 lines · Changqing Li
From: Changqing Li <[email protected]>
allarch package adwaita-icon-theme inherit both allarch and gtk-icon-cache, since commit
31e3d34c8a9c3e8481aa837aa0bf52adf095fe62[gtk-icon-cache.bbclass: add runtime dependency], it start depend on non-allarch packages gdk-pixbuf and gtk+3, which make it's signature changes when machine changed.like for task
do_prepare_recipe_sysroot:
"Hash for dependent task gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_populate_sysroot changed froma72aba8432699c8ce4ca1f71833ef14a89ffde0ea4063e37b9d819fdb1e407f4to1ad4e1bd76921b71482657f3b017184e9ade8e2a0b9f43ad64ed2dda83b1520f"the only way to fix this is remove the task dependency.
SIGGEN_EXCLUDE_SAFE_RECIPE_DEPSnot work in class, so add it in layer.conf.Maybe we have other recipes under other layers have similar problem, we can only add one by one to its layer.conf, seems not a good idea. but add *->pixbuf will influence other packages
Signed-off-by Changqing Li <[email protected]>--- meta/conf/layer.conf | 2 ++ 1 file changed, 2 insertions(+)meta/conf/layer.conf +2
-1@@ -80,6 +80,8 @@ SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \ weston-init->kbd \ connman->xl2tpd \ lttng-tools->lttng-modules \ + adwaita-icon-theme->gdk-pixbuf \ + adwaita-icon-theme->gtk+3 \ " # Avoid adding bison-native to the sysroot without a specific --2.17.1