Skip to contentSkip to conversation

gnome.bbclass change broke lots of package dependencies

RFC In review Ihar Hrachyshka 5 participants 12 messages May 25, 2009 – May 30, 2009

lore
Share & tools
lore
#0 lore raw

Hello to all!

Today I was working on bringing qt4-embedded toolchain to OE and found the following problem with the last change (4c275b5c0350ed1dbd94bfcdd9ce8786ad11b8a1) for gnome.bbclass. Here is the problematic code snippet I'd like to discuss:

@@ -17,6 +17,9 @@ inherit autotools gtk-icon-cache pkgconfig gconf mime

AUTOTOOLS_STAGE_PKGCONFIG = "1"

+PACKAGES =+ "${PN}-scrollkeeper-leftovers" +FILES_${PN}-scrollkeeper-leftovers = "${localstatedir}/lib/scrollkeeper" +
gnome_stage_includes() {
autotools_stage_includes
}

As we can see, there is now ${PN}-scrollkeeper-leftovers package for every recipe that inherited gnome.bbclass. And this -leftovers package is in the current dependency chains (at least for qt4-embedded-dev package).

At the first place, I'd like to get some explanation on the reason for pushing the change in the tree. Git log is somehow ambiguous so I can't understand the reason for doing the commit.

If it's really needed then we should resolve the following problems:
1) this new package (leftovers) is not generated for empty packages resulting in broken dependency chains (as for gnome-vfs that is somehow needed by qt4-embedded-dev);
2) this new package (leftovers) is not generated for *every* recipe that was built *before* the change was made.

As for the 1st problem, I suggest adding ALLOW_EMPTY = "1" to gnome.bbclass (it works for my current setup, and if you will approve the change then I'll send the patch immediately).
As for the 2nd problem, there is a big question what should we do. Revision bumping for every recipe that inherits gnome.bbclass is not an elegant thing (though it will really push the change for all the users). Maybe there is another, better way to handle such tasks. If you know it please provide me with the info.

Thanks for help in advance,
Ihar Hrachyshka

#1 lore raw
Quoted 11 lines · Ihar Hrachyshka
(quoted diff) +3 -0
@@ -17,6 +17,9 @@ inherit autotools gtk-icon-cache pkgconfig gconf mime
 
 AUTOTOOLS_STAGE_PKGCONFIG = "1"
 
+PACKAGES =+ "${PN}-scrollkeeper-leftovers"
+FILES_${PN}-scrollkeeper-leftovers = "${localstatedir}/lib/scrollkeeper"
+
 gnome_stage_includes() {
        autotools_stage_includes
 }
Quoted 4 lines

As we can see, there is now ${PN}-scrollkeeper-leftovers package for every recipe that inherited gnome.bbclass. And this -leftovers package is in the current dependency chains (at least for qt4-embedded-dev package).

Where is your dependency on -scrollkeeper-leftovers coming from? Nothing in the patch that you quoted looks like it ought to be causing that.

That said, the patch does look a bit bizarre: as a general rule we don't package things from ${localstatedir} since lots of targets have that as a ramdisk. It isn't obvious to me what this is going to achieve.

Quoted 3 lines

As for the 1st problem, I suggest adding ALLOW_EMPTY = "1" to gnome.bbclass (it works for my current setup, and if you will approve the change then I'll send the patch immediately).

No, this would be a poor solution since it will cause a mass of empty (and hence useless) packages to be generated. It would be better to identify the place where the dependency on this package is generated, and suppress that at its source if the package is empty.

Quoted 5 lines

As for the 2nd problem, there is a big question what should we do. Revision bumping for every recipe that inherits gnome.bbclass is not an elegant thing (though it will really push the change for all the users). Maybe there is another, better way to handle such tasks. If you know it please provide me with the info.

The right answer to this probably depends on the answer to what the patch was trying to accomplish in the first place. It's possible that no rebuild is actually necessary for already-deployed packages if this is intended to deal with some fringe case that only occurs on particular targets or under rare circumstances.

p.

#2 lore raw

PATCH 1/1 gnome.bbclass: remove unneeded scrollkeeper stuff from gnome packages.

Scrollkeeper generates its XML database for every package when installing it. The problem is that while building it sees only specific package scrollkeeper stuff so we get wrong scrollkeeper xml file generated for every gnome.bbclass package. Including the file into every gnome package results in package contents conflicts.

This patch removes a quick hack made by Koen with previous commit.

---
 classes/gnome.bbclass |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
classes/gnome.bbclass +5 -3
index d2ca739..da88884 100644
@@ -17,9 +17,11 @@ inherit autotools gtk-icon-cache pkgconfig gconf mime
 
 AUTOTOOLS_STAGE_PKGCONFIG = "1"
 
-PACKAGES =+ "${PN}-scrollkeeper-leftovers"
-FILES_${PN}-scrollkeeper-leftovers = "${localstatedir}/lib/scrollkeeper"
-
 gnome_stage_includes() {
 	autotools_stage_includes
 }
+
+do_install_append() {
+	rm -rf ${D}${localstatedir}/lib/scrollkeeper/*
+}
+
Signature · 1 line
1.6.3.1
#3 lore raw

Re: [PATCH] gnome.bbclass: remove unneeded scrollkeeper stuff from gnome packages.

Quoted 7 lines · Ihar Hrachyshka

Scrollkeeper generates its XML database for every package when installing it. The problem is that while building it sees only specific package scrollkeeper stuff so we get wrong scrollkeeper xml file generated for every gnome.bbclass package. Including the file into every gnome package results in package contents conflicts.

classes/gnome.bbclass +0 -1
-PACKAGES =+ "${PN}-scrollkeeper-leftovers"

classes/gnome.bbclass inherit autotools gtk-icon-cache pkgconfig gconf mime · line 27

Quoted 10 lines
classes/gnome.bbclass +5 -2
-FILES_${PN}-scrollkeeper-leftovers = "${localstatedir}/lib/scrollkeeper"
-
 gnome_stage_includes() {
 	autotools_stage_includes
 }
+
+do_install_append() {
+	rm -rf ${D}${localstatedir}/lib/scrollkeeper/*
+}
+

That change looks pretty reasonable to me, though maybe you want to delete ${localstatedir}/lib/scrollkeeper itself (and its parents, if they're empty) as well as the contents of the directory.

In the longer term I guess we should figure out a general-purpose solution to all this scrollkeeper stuff. I see that some packages are configuring themselves --disable-scrollkeeper, others seem to be patching the scrollkeeper bits out of their configure scripts and yet others (notably empathy) have, effectively, a local copy of the bits you've just removed from gnome.bbclass.

p.

#4 lore raw

Re: [PATCH] gnome.bbclass: remove unneeded scrollkeeper stuff from gnome packages.

Quoted 23 lines · Phil Blundell
Quoted 7 lines · Ihar Hrachyshka

Scrollkeeper generates its XML database for every package when installing it. The problem is that while building it sees only specific package scrollkeeper stuff so we get wrong scrollkeeper xml file generated for every gnome.bbclass package. Including the file into every gnome package results in package contents conflicts.

classes/gnome.bbclass +0 -1
-PACKAGES =+ "${PN}-scrollkeeper-leftovers"

classes/gnome.bbclass inherit autotools gtk-icon-cache pkgconfig gconf mime · line 27

Quoted 10 lines
classes/gnome.bbclass +5 -2
-FILES_${PN}-scrollkeeper-leftovers = "${localstatedir}/lib/scrollkeeper"
-
 gnome_stage_includes() {
 	autotools_stage_includes
 }
+
+do_install_append() {
+	rm -rf ${D}${localstatedir}/lib/scrollkeeper/*
+}
+

That change looks pretty reasonable to me, though maybe you want to delete ${localstatedir}/lib/scrollkeeper itself (and its parents, if they're empty) as well as the contents of the directory.

Quoted 6 lines

In the longer term I guess we should figure out a general-purpose solution to all this scrollkeeper stuff. I see that some packages are configuring themselves --disable-scrollkeeper, others seem to be patching the scrollkeeper bits out of their configure scripts and yet others (notably empathy) have, effectively, a local copy of the bits you've just removed from gnome.bbclass.

Do you want more changes still? I don't see a SOB line, so... Thanks.

Signature · 1 line
Tom Rini
#5 lore raw

Re: [PATCH] gnome.bbclass: remove unneeded scrollkeeper stuff from gnome packages.

Quoted 24 lines · Tom Rini
Quoted 23 lines · Phil Blundell
Quoted 7 lines · Ihar Hrachyshka

Scrollkeeper generates its XML database for every package when installing it. The problem is that while building it sees only specific package scrollkeeper stuff so we get wrong scrollkeeper xml file generated for every gnome.bbclass package. Including the file into every gnome package results in package contents conflicts.

classes/gnome.bbclass +0 -1
-PACKAGES =+ "${PN}-scrollkeeper-leftovers"

classes/gnome.bbclass inherit autotools gtk-icon-cache pkgconfig gconf mime · line 27

Quoted 10 lines
classes/gnome.bbclass +5 -2
-FILES_${PN}-scrollkeeper-leftovers = "${localstatedir}/lib/scrollkeeper"
-
 gnome_stage_includes() {
 	autotools_stage_includes
 }
+
+do_install_append() {
+	rm -rf ${D}${localstatedir}/lib/scrollkeeper/*
+}
+

That change looks pretty reasonable to me, though maybe you want to delete ${localstatedir}/lib/scrollkeeper itself (and its parents, if they're empty) as well as the contents of the directory.

Quoted 8 lines
Quoted 6 lines

In the longer term I guess we should figure out a general-purpose solution to all this scrollkeeper stuff. I see that some packages are configuring themselves --disable-scrollkeeper, others seem to be patching the scrollkeeper bits out of their configure scripts and yet others (notably empathy) have, effectively, a local copy of the bits you've just removed from gnome.bbclass.

Do you want more changes still? I don't see a SOB line, so... Thanks.

Er, Acked-by line.

Signature · 1 line
Tom Rini
#6 lore raw

Re: [PATCH] gnome.bbclass: remove unneeded scrollkeeper stuff from gnome packages.

In reply to Tom Rini
Quoted 24 lines · Tom Rini
Quoted 23 lines · Phil Blundell
Quoted 12 lines · Ihar Hrachyshka

Scrollkeeper generates its XML database for every package when installing it. The problem is that while building it sees only specific package scrollkeeper stuff so we get wrong scrollkeeper xml file generated for every gnome.bbclass package. Including the file into every gnome package results in package contents conflicts.

classes/gnome.bbclass +0 -3
-PACKAGES =+ "${PN}-scrollkeeper-leftovers"
-FILES_${PN}-scrollkeeper-leftovers = "${localstatedir}/lib/scrollkeeper"
-

 gnome_stage_includes() {
    autotools_stage_includes
 }

classes/gnome.bbclass inherit autotools gtk-icon-cache pkgconfig gconf mime · line 27

Quoted 5 lines
classes/gnome.bbclass +5 -0
+
+do_install_append() {
+   rm -rf ${D}${localstatedir}/lib/scrollkeeper/*
+}
+

That change looks pretty reasonable to me, though maybe you want to delete ${localstatedir}/lib/scrollkeeper itself (and its parents, if they're empty) as well as the contents of the directory.

Quoted 8 lines
Quoted 6 lines

In the longer term I guess we should figure out a general-purpose solution to all this scrollkeeper stuff.  I see that some packages are configuring themselves --disable-scrollkeeper, others seem to be patching the scrollkeeper bits out of their configure scripts and yet others (notably empathy) have, effectively, a local copy of the bits you've just removed from gnome.bbclass.

Do you want more changes still?  I don't see a SOB line, so...  Thanks.

Should I resend the patch with SOB included?

Quoted 9 lines

--
Tom Rini

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#7 lore raw

Re: [PATCH] gnome.bbclass: remove unneeded scrollkeeper stuff from gnome packages.

Quoted 32 lines · Ihar Hrachyshka
Quoted 31 lines · Tom Rini
Quoted 29 lines · Phil Blundell
Quoted 12 lines · Ihar Hrachyshka

Scrollkeeper generates its XML database for every package when installing it. The problem is that while building it sees only specific package scrollkeeper stuff so we get wrong scrollkeeper xml file generated for every gnome.bbclass package. Including the file into every gnome package results in package contents conflicts.

classes/gnome.bbclass +0 -3
-PACKAGES =+ "${PN}-scrollkeeper-leftovers"
-FILES_${PN}-scrollkeeper-leftovers = "${localstatedir}/lib/scrollkeeper"
-

 gnome_stage_includes() {
    autotools_stage_includes
 }

classes/gnome.bbclass inherit autotools gtk-icon-cache pkgconfig gconf mime · line 27

Quoted 5 lines
classes/gnome.bbclass +5 -0
+
+do_install_append() {
+   rm -rf ${D}${localstatedir}/lib/scrollkeeper/*
+}
+

That change looks pretty reasonable to me, though maybe you want to delete ${localstatedir}/lib/scrollkeeper itself (and its parents, if they're empty) as well as the contents of the directory.

In the longer term I guess we should figure out a general-purpose solution to all this scrollkeeper stuff.  I see that some packages are configuring themselves --disable-scrollkeeper, others seem to be patching the scrollkeeper bits out of their configure scripts and yet others (notably empathy) have, effectively, a local copy of the bits you've just removed from gnome.bbclass.

Quoted 3 lines
Quoted 1 line

Do you want more changes still?  I don't see a SOB line, so...  Thanks.

Should I resend the patch with SOB included?

Your submission was done correctly, sorry. Asking Phil if he has anymore requests, or if this is OK to be pushed now.

Signature · 1 line
Tom Rini
#8 lore raw

Re: [PATCH] gnome.bbclass: remove unneeded scrollkeeper stuff from gnome packages.

In reply to Tom Rini
Quoted 24 lines · Tom Rini
Quoted 23 lines · Phil Blundell
Quoted 7 lines · Ihar Hrachyshka

Scrollkeeper generates its XML database for every package when installing it. The problem is that while building it sees only specific package scrollkeeper stuff so we get wrong scrollkeeper xml file generated for every gnome.bbclass package. Including the file into every gnome package results in package contents conflicts.

classes/gnome.bbclass +0 -1
-PACKAGES =+ "${PN}-scrollkeeper-leftovers"

classes/gnome.bbclass inherit autotools gtk-icon-cache pkgconfig gconf mime · line 27

Quoted 10 lines
classes/gnome.bbclass +5 -2
-FILES_${PN}-scrollkeeper-leftovers = "${localstatedir}/lib/scrollkeeper"
-
 gnome_stage_includes() {
 	autotools_stage_includes
 }
+
+do_install_append() {
+	rm -rf ${D}${localstatedir}/lib/scrollkeeper/*
+}
+

That change looks pretty reasonable to me, though maybe you want to delete ${localstatedir}/lib/scrollkeeper itself (and its parents, if they're empty) as well as the contents of the directory.

Quoted 8 lines
Quoted 6 lines

In the longer term I guess we should figure out a general-purpose solution to all this scrollkeeper stuff. I see that some packages are configuring themselves --disable-scrollkeeper, others seem to be patching the scrollkeeper bits out of their configure scripts and yet others (notably empathy) have, effectively, a local copy of the bits you've just removed from gnome.bbclass.

Do you want more changes still? I don't see a SOB line, so... Thanks.

I think it's fine to go in as it is. We can always enhance it later.

p.

Acked-by
#9 lore raw

Re: [PATCH] gnome.bbclass: remove unneeded scrollkeeper stuff from gnome packages.

Quoted 32 lines · Phil Blundell
Quoted 31 lines · Tom Rini
Quoted 29 lines · Phil Blundell
Quoted 7 lines · Ihar Hrachyshka

Scrollkeeper generates its XML database for every package when installing it. The problem is that while building it sees only specific package scrollkeeper stuff so we get wrong scrollkeeper xml file generated for every gnome.bbclass package. Including the file into every gnome package results in package contents conflicts.

classes/gnome.bbclass +0 -1
-PACKAGES =+ "${PN}-scrollkeeper-leftovers"

classes/gnome.bbclass inherit autotools gtk-icon-cache pkgconfig gconf mime · line 27

Quoted 10 lines
classes/gnome.bbclass +5 -2
-FILES_${PN}-scrollkeeper-leftovers = "${localstatedir}/lib/scrollkeeper"
-
 gnome_stage_includes() {
 	autotools_stage_includes
 }
+
+do_install_append() {
+	rm -rf ${D}${localstatedir}/lib/scrollkeeper/*
+}
+

That change looks pretty reasonable to me, though maybe you want to delete ${localstatedir}/lib/scrollkeeper itself (and its parents, if they're empty) as well as the contents of the directory.

In the longer term I guess we should figure out a general-purpose solution to all this scrollkeeper stuff. I see that some packages are configuring themselves --disable-scrollkeeper, others seem to be patching the scrollkeeper bits out of their configure scripts and yet others (notably empathy) have, effectively, a local copy of the bits you've just removed from gnome.bbclass.

Quoted 3 lines
Quoted 1 line

Do you want more changes still? I don't see a SOB line, so... Thanks.

I think it's fine to go in as it is. We can always enhance it later.

Per Tom's request :-)

p.

#10 lore raw

Re: [PATCH] gnome.bbclass: remove unneeded scrollkeeper stuff from gnome packages.

In reply to Ihar Hrachyshka

Any chance we can get it in tree? This dependency bug is rather annoying.

Quoted 36 lines · Ihar Hrachyshka

Scrollkeeper generates its XML database for every package when installing it. The problem is that while building it sees only specific package scrollkeeper stuff so we get wrong scrollkeeper xml file generated for every gnome.bbclass package. Including the file into every gnome package results in package contents conflicts.

This patch removes a quick hack made by Koen with previous commit.

---
 classes/gnome.bbclass |    8 +++++---

 1 files changed, 5 insertions(+), 3 deletions(-)
classes/gnome.bbclass +0 -0
index d2ca739..da88884 100644
@@ -17,9 +17,11 @@ inherit autotools gtk-icon-cache pkgconfig gconf mime
 

 AUTOTOOLS_STAGE_PKGCONFIG = "1"

classes/gnome.bbclass +0 -3
-PACKAGES =+ "${PN}-scrollkeeper-leftovers"
-FILES_${PN}-scrollkeeper-leftovers = "${localstatedir}/lib/scrollkeeper"
-

 gnome_stage_includes() {
       autotools_stage_includes
 }

classes/gnome.bbclass +5 -1
+
+do_install_append() {
+       rm -rf ${D}${localstatedir}/lib/scrollkeeper/*
+}
+
--

1.6.3.1

#11 lore raw
In reply to Phil Blundell
Quoted 20 lines · Phil Blundell
Quoted 11 lines · Ihar Hrachyshka
(quoted diff) +2 -0
@@ -17,6 +17,9 @@ inherit autotools gtk-icon-cache pkgconfig gconf mime
 
 AUTOTOOLS_STAGE_PKGCONFIG = "1"
 
+PACKAGES =+ "${PN}-scrollkeeper-leftovers"
+FILES_${PN}-scrollkeeper-leftovers =

"${localstatedir}/lib/scrollkeeper" +
gnome_stage_includes() {
autotools_stage_includes
}

Quoted 4 lines

As we can see, there is now ${PN}-scrollkeeper-leftovers package for every recipe that inherited gnome.bbclass. And this -leftovers package is in the current dependency chains (at least for qt4-embedded-dev package).

Where is your dependency on -scrollkeeper-leftovers coming from? Nothing in the patch that you quoted looks like it ought to be causing that.

Quoted 3 lines

That said, the patch does look a bit bizarre: as a general rule we don't package things from ${localstatedir} since lots of targets have that as a ramdisk. It isn't obvious to me what this is going to achieve.

I can confirm the dependency part of this report. It's causing build failures for me: see bug 5123. I've traced this to strange dependancies on pango-scrollkeeper-leftovers from most of pango packages.

Signature · 2 lines
With best wishes
Dmitry