Skip to contentSkip to conversation

config.json: Add lib32-matchbox-terminal to multilib images

PATCH In review Khem Raj 4 participants 18 messages Nov 22, 2023 – Nov 24, 2023

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 config.json: Add lib32-matchbox-terminal to multilib images

This avoids an issue when a package that pulls in gtk4 into core-image-sato but not into multilib pieces results in different gschema compiled files as reported in [1]

[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=15291

---
 config.json | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
config.json +2 -2
index c5fca45..e95a292 100644
@@ -900,7 +900,7 @@
                     "MULTILIBS = 'multilib:lib32'",
                     "DEFAULTTUNE:virtclass-multilib-lib32 = 'x86'",
                     "RPM_PREFER_ELF_ARCH = '1'",
-                    "IMAGE_INSTALL:append = ' lib32-connman-gnome pango-module-basic-fc lib32-pango-module-basic-fc'"
+                    "IMAGE_INSTALL:append = ' lib32-connman-gnome lib32-matchbox-terminal pango-module-basic-fc lib32-pango-module-basic-fc'"
                 ]
             },
             "step4" : {
@@ -915,7 +915,7 @@
                     "MULTILIBS = 'multilib:lib32'",
                     "DEFAULTTUNE:virtclass-multilib-lib32 = 'x86'",
                     "RPM_PREFER_ELF_ARCH = '1'",
-                    "IMAGE_INSTALL:append = ' lib32-connman-gnome pango-module-basic-fc lib32-pango-module-basic-fc'"
+                    "IMAGE_INSTALL:append = ' lib32-connman-gnome lib32-matchbox-terminal pango-module-basic-fc lib32-pango-module-basic-fc'"
                 ]
             },
             "step5" : {
Signature · 1 line
2.43.0
#1 lore raw

Is this working around a failure on the autobuilder? How does matchbox-terminal pull in gtk4?

Ross

Quoted 47 lines · Khem Raj via lists.yoctoproject.org

This avoids an issue when a package that pulls in gtk4 into core-image-sato but not into multilib pieces results in different gschema compiled files as reported in [1]

[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=15291

---
config.json | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
config.json +2 -2
index c5fca45..e95a292 100644
@@ -900,7 +900,7 @@
                    "MULTILIBS = 'multilib:lib32'",
                    "DEFAULTTUNE:virtclass-multilib-lib32 = 'x86'",
                    "RPM_PREFER_ELF_ARCH = '1'",
-                    "IMAGE_INSTALL:append = ' lib32-connman-gnome pango-module-basic-fc lib32-pango-module-basic-fc'"
+                    "IMAGE_INSTALL:append = ' lib32-connman-gnome lib32-matchbox-terminal pango-module-basic-fc lib32-pango-module-basic-fc'"
                ]
            },
            "step4" : {
@@ -915,7 +915,7 @@
                    "MULTILIBS = 'multilib:lib32'",
                    "DEFAULTTUNE:virtclass-multilib-lib32 = 'x86'",
                    "RPM_PREFER_ELF_ARCH = '1'",
-                    "IMAGE_INSTALL:append = ' lib32-connman-gnome pango-module-basic-fc lib32-pango-module-basic-fc'"
+                    "IMAGE_INSTALL:append = ' lib32-connman-gnome lib32-matchbox-terminal pango-module-basic-fc lib32-pango-module-basic-fc'"
                ]
            },
            "step5" : {
Signature · 10 lines
2.43.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#61728): https://lists.yoctoproject.org/g/yocto/message/61728
Mute This Topic: https://lists.yoctoproject.org/mt/102741765/6875888
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
#2 lore raw

matchbox-terminal depends on vte, and latest vte enables gtk4 support.

Also, I do not understand how the fix works. How does installing additional packages into an image resolve a conflict between two packages installing different files into the same location?

Alex

Quoted 55 lines · Ross Burton

Is this working around a failure on the autobuilder? How does matchbox-terminal pull in gtk4?

Ross

Quoted 36 lines · Khem Raj via lists.yoctoproject.org

This avoids an issue when a package that pulls in gtk4 into core-image-sato but not into multilib pieces results in different gschema compiled files as reported in [1]

[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=15291

---
config.json | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
config.json +2 -3
index c5fca45..e95a292 100644
@@ -900,7 +900,7 @@
                    "MULTILIBS = 'multilib:lib32'",
                    "DEFAULTTUNE:virtclass-multilib-lib32 = 'x86'",
                    "RPM_PREFER_ELF_ARCH = '1'",
-                    "IMAGE_INSTALL:append = ' lib32-connman-gnome pango-module-basic-fc lib32-pango-module-basic-fc'"
+                    "IMAGE_INSTALL:append = ' lib32-connman-gnome lib32-matchbox-terminal pango-module-basic-fc lib32-pango-module-basic-fc'"
                ]
            },
            "step4" : {
@@ -915,7 +915,7 @@
                    "MULTILIBS = 'multilib:lib32'",
                    "DEFAULTTUNE:virtclass-multilib-lib32 = 'x86'",
                    "RPM_PREFER_ELF_ARCH = '1'",
-                    "IMAGE_INSTALL:append = ' lib32-connman-gnome pango-module-basic-fc lib32-pango-module-basic-fc'"
+                    "IMAGE_INSTALL:append = ' lib32-connman-gnome lib32-matchbox-terminal pango-module-basic-fc lib32-pango-module-basic-fc'"
                ]
            },
            "step5" : {
--
Quoted 5 lines

2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#61738): https://lists.yoctoproject.org/g/yocto/message/61738
Mute This Topic: https://lists.yoctoproject.org/mt/102741765/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/leave/6691550/1686489/412949215/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw
Quoted 2 lines · Alexander Kanavin

matchbox-terminal depends on vte, and latest vte enables gtk4 support.

Are you sure?

https://git.yoctoproject.org/poky/tree/meta/recipes-support/vte/vte_0.72.2.bb#n14

Quoted 3 lines

Also, I do not understand how the fix works. How does installing additional packages into an image resolve a conflict between two packages installing different files into the same location?

The problem is that the ipkg rootfs generation works “interestingly” and appears to create two parallel rootfs (one for normal one for multilib) and then splats them together.

The schemas are installed in /usr/share but if you have different sets of libraries in /usr/lib and /usr/lib32 then the compiled schemas are different.

This feels like an issue which has existed for a long time, so how has it only just been noticed? Did something change?

Ross

#4 lore raw
Quoted 8 lines · Ross Burton
Quoted 2 lines · Alexander Kanavin

matchbox-terminal depends on vte, and latest vte enables gtk4 support.

Are you sure?

https://git.yoctoproject.org/poky/tree/meta/recipes-support/vte/vte_0.72.2.bb#n14

Latest, as in latest submitted version update (to 0.74). Various people are trying to make it pass the AB, first Markus, now Khem. It has gained gtk4 support and it is enabled.

Quoted 5 lines

The problem is that the ipkg rootfs generation works “interestingly” and appears to create two parallel rootfs (one for normal one for multilib) and then splats them together.

The schemas are installed in /usr/share but if you have different sets of libraries in /usr/lib and /usr/lib32 then the compiled schemas are different.

This feels like an issue which has existed for a long time, so how has it only just been noticed? Did something change?

The conflicting schemas come from gtk4 and I guess until now there was no multilib scenario where it would get pulled in?

Alex

#5 lore raw
Quoted 7 lines · Alexander Kanavin
Quoted 5 lines · Ross Burton
Quoted 2 lines · Alexander Kanavin

matchbox-terminal depends on vte, and latest vte enables gtk4 support.

Quoted 7 lines
Quoted 3 lines

Are you sure?

https://git.yoctoproject.org/poky/tree/meta/recipes-support/vte/vte_0.72.2.bb#n14

Latest, as in latest submitted version update (to 0.74). Various people are trying to make it pass the AB, first Markus, now Khem. It has gained gtk4 support and it is enabled.

Ah.

Surely it shouldn’t be shipping the gtk3 and gtk4 libraries in a single package?

Ross

#6 lore raw

Re: [yocto] [yocto-autobuilder-helper][PATCH] how can a missing file be a WARNING and the build 'succeed'?

I am trying to append to linux-imx.
If I deliberately put a wrong filename in the src_uri append it warns me and carries on with no effect or worry. Anything I put in the do_configure:append() or prepend() is just totally and utterly ignored.

author
#7 lore raw

Re: [yocto] [yocto-autobuilder-helper][PATCH] how can a missing file be a WARNING and the build 'succeed'?

maybe your bbappend is not matching in name to recipe or maybe something else, typos etc. Showing exact code can help a bit more in understanding what might be going on.

Quoted 6 lines · Dave Hitchman

I am trying to append to linux-imx.
If I deliberately put a wrong filename in the src_uri append it warns me and carries on with no effect or worry. Anything I put in the do_configure:append() or prepend() is just totally and utterly ignored.

#8 lore raw

Re: [yocto] [yocto-autobuilder-helper][PATCH] how can a missing file be a WARNING and the build 'succeed'?

The name matches for sure, it seems to be a question of exact spacing or similar... its just crazy that it doesnt even error and stop when it doesnt understand things
________________________________
From: Khem Raj <[email protected]>
Sent: 23 November 2023 17:44
To: Dave Hitchman <[email protected]>
Cc: Alexander Kanavin <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: [yocto] [yocto-autobuilder-helper][PATCH] how can a missing file be a WARNING and the build 'succeed'?

maybe your bbappend is not matching in name to recipe or maybe something else, typos etc. Showing exact code can help a bit more in understanding what might be going on.

Quoted 6 lines · Dave Hitchman

I am trying to append to linux-imx.
If I deliberately put a wrong filename in the src_uri append it warns me and carries on with no effect or worry. Anything I put in the do_configure:append() or prepend() is just totally and utterly ignored.

#9 lore raw

Re: [yocto] [yocto-autobuilder-helper][PATCH] how can a missing file be a WARNING and the build 'succeed'?

In reply to Khem Raj

But to be fair... 'Files' has decided to stop working properly as well on this machine, I mean, do an ll on a directory and find 5 sub directories while 'Files' claims 2, then if you close ALL the 'Files' windows it finally learns to look at the disk. Just said to a colleague I think I will give up and become a monk
________________________________
From: Khem Raj <[email protected]>
Sent: 23 November 2023 17:44
To: Dave Hitchman <[email protected]>
Cc: Alexander Kanavin <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: [yocto] [yocto-autobuilder-helper][PATCH] how can a missing file be a WARNING and the build 'succeed'?

maybe your bbappend is not matching in name to recipe or maybe something else, typos etc. Showing exact code can help a bit more in understanding what might be going on.

Quoted 6 lines · Dave Hitchman

I am trying to append to linux-imx.
If I deliberately put a wrong filename in the src_uri append it warns me and carries on with no effect or worry. Anything I put in the do_configure:append() or prepend() is just totally and utterly ignored.

#10 lore raw

Re: [yocto] [yocto-autobuilder-helper][PATCH] how can a missing file be a WARNING and the build 'succeed'?

In reply to Khem Raj

Is there some rule I dont know about that says each line of the contents of a prepend HAVE to be indented with a single tab? It appears that might be some way to solving the issue? Which only leaves the next problem - I want to copy files that are in the same directory as the bbappend, now the suggestion I have seen is ${WORKDIR} but it doesnt appear if I print it out that this is the directory I expect.
________________________________
From: Khem Raj <[email protected]>
Sent: 23 November 2023 17:44
To: Dave Hitchman <[email protected]>
Cc: Alexander Kanavin <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: [yocto] [yocto-autobuilder-helper][PATCH] how can a missing file be a WARNING and the build 'succeed'?

maybe your bbappend is not matching in name to recipe or maybe something else, typos etc. Showing exact code can help a bit more in understanding what might be going on.

Quoted 6 lines · Dave Hitchman

I am trying to append to linux-imx.
If I deliberately put a wrong filename in the src_uri append it warns me and carries on with no effect or worry. Anything I put in the do_configure:append() or prepend() is just totally and utterly ignored.

author
#11 lore raw
In reply to Ross Burton
Quoted 9 lines · Ross Burton
Quoted 2 lines · Alexander Kanavin

matchbox-terminal depends on vte, and latest vte enables gtk4 support.

Are you sure?

https://git.yoctoproject.org/poky/tree/meta/recipes-support/vte/vte_0.72.2.bb#n14

Quoted 7 lines
Quoted 3 lines

Also, I do not understand how the fix works. How does installing additional packages into an image resolve a conflict between two packages installing different files into the same location?

The problem is that the ipkg rootfs generation works “interestingly” and appears to create two parallel rootfs (one for normal one for multilib) and then splats them together.

The schemas are installed in /usr/share but if you have different sets of libraries in /usr/lib and /usr/lib32 then the compiled schemas are different.

Does not depend on content of /usr/lib or /usr/lib32, depending upon whats getting into given rootfs, the schemas pulled are different and hence the compiled gschema is
different which is them being overlayed into combined rootfs finally. A good solution would be to create. common /usr/share directory between two rootfs'es and let it be
populated with given dependencies, that way it will generate correct superset.

Quoted 4 lines

This feels like an issue which has existed for a long time, so how has it only just been noticed? Did something change?

Ross

author
#12 lore raw
In reply to Ross Burton
Quoted 2 lines · Ross Burton

Is this working around a failure on the autobuilder? How does matchbox-terminal pull in gtk4?

yes
it pulls in lib32-vte which pulls in lib32-gtk4

Quoted 50 lines

Ross

Quoted 47 lines · Khem Raj via lists.yoctoproject.org

This avoids an issue when a package that pulls in gtk4 into core-image-sato but not into multilib pieces results in different gschema compiled files as reported in [1]

[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=15291

---
config.json | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
config.json +2 -3
index c5fca45..e95a292 100644
@@ -900,7 +900,7 @@
                    "MULTILIBS = 'multilib:lib32'",
                    "DEFAULTTUNE:virtclass-multilib-lib32 = 'x86'",
                    "RPM_PREFER_ELF_ARCH = '1'",
-                    "IMAGE_INSTALL:append = ' lib32-connman-gnome pango-module-basic-fc lib32-pango-module-basic-fc'"
+                    "IMAGE_INSTALL:append = ' lib32-connman-gnome lib32-matchbox-terminal pango-module-basic-fc lib32-pango-module-basic-fc'"
                ]
            },
            "step4" : {
@@ -915,7 +915,7 @@
                    "MULTILIBS = 'multilib:lib32'",
                    "DEFAULTTUNE:virtclass-multilib-lib32 = 'x86'",
                    "RPM_PREFER_ELF_ARCH = '1'",
-                    "IMAGE_INSTALL:append = ' lib32-connman-gnome pango-module-basic-fc lib32-pango-module-basic-fc'"
+                    "IMAGE_INSTALL:append = ' lib32-connman-gnome lib32-matchbox-terminal pango-module-basic-fc lib32-pango-module-basic-fc'"
                ]
            },
            "step5" : {
--

2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#61728): https://lists.yoctoproject.org/g/yocto/message/61728
Mute This Topic: https://lists.yoctoproject.org/mt/102741765/6875888
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#13 lore raw
Quoted 2 lines · Khem Raj

it pulls in lib32-vte which pulls in lib32-gtk4

So the trigger is bad packaging, as surely the vte recipe should split the libraries up so that installing a gtk*3* based terminal doesn’t pull in gtk4 for no reason.

Ross

author
#14 lore raw
Quoted 8 lines · Ross Burton
Quoted 2 lines · Khem Raj

it pulls in lib32-vte which pulls in lib32-gtk4

So the trigger is bad packaging, as surely the vte recipe should split the libraries up so that installing a gtk*3* based terminal doesn’t pull in gtk4 for no reason.

New vte enables both gtk3 and gtk4 support I don’t think it’s bad packaging. Multiple versions of gtk can live together in a rootfs without conflict

Quoted 1 line

Ross

#15 lore raw
Quoted 6 lines · Khem Raj

So the trigger is bad packaging, as surely the vte recipe should split the libraries up so that installing a gtk*3* based terminal doesn’t pull in gtk4 for no reason.

New vte enables both gtk3 and gtk4 support I don’t think it’s bad packaging. Multiple versions of gtk can live together in a rootfs without conflict

Sure they _can_ but it’s a terrible idea to pull in both if they’re not needed.

Ross

author
#16 lore raw
Quoted 7 lines · Ross Burton
Quoted 4 lines · Khem Raj

So the trigger is bad packaging, as surely the vte recipe should split

the libraries up so that installing a gtk*3* based terminal doesn’t pull in gtk4 for no reason.

Quoted 1 line
Quoted 6 lines
Quoted 1 line

New vte enables both gtk3 and gtk4 support I don’t think it’s bad

packaging. Multiple versions of gtk can live together in a rootfs without conflict

Sure they _can_ but it’s a terrible idea to pull in both if they’re not needed.

Ok so do we think should gtk4 be a distro feature which conflicts with gtk3 ?

Quoted 2 lines

Ross

#17 lore raw
Quoted 5 lines · Khem Raj
Quoted 1 line

New vte enables both gtk3 and gtk4 support I don’t think it’s bad packaging. Multiple versions of gtk can live together in a rootfs without conflict

Sure they _can_ but it’s a terrible idea to pull in both if they’re not needed.

Ok so do we think should gtk4 be a distro feature which conflicts with gtk3 ?

Definitely not.

Ross