* [PATCH V3 0/1] gconf: fix multilib conflict - org.gnome.GConf.service
@ 2014-10-22 7:09 Chong Lu
2014-10-22 7:09 ` [PATCH V3 1/1] " Chong Lu
0 siblings, 1 reply; 10+ messages in thread
From: Chong Lu @ 2014-10-22 7:09 UTC (permalink / raw)
To: openembedded-core
Change since v2:
split out org.gnome.GConf.service and libraries to libgconf package.
The following changes since commit 924da20c6f2f183fa7e930e4c3c6b14c090acbe5:
build-appliance-image: Update to dizzy head revision (2014-10-18 16:16:38 +0200)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib chonglu/gconf
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=chonglu/gconf
Chong Lu (1):
gconf: fix multilib conflict - org.gnome.GConf.service
meta/recipes-gnome/gnome/gconf_3.2.6.bb | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
--
1.9.1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH V3 1/1] gconf: fix multilib conflict - org.gnome.GConf.service
2014-10-22 7:09 [PATCH V3 0/1] gconf: fix multilib conflict - org.gnome.GConf.service Chong Lu
@ 2014-10-22 7:09 ` Chong Lu
2014-10-22 10:07 ` Burton, Ross
2014-10-24 6:10 ` Koen Kooi
0 siblings, 2 replies; 10+ messages in thread
From: Chong Lu @ 2014-10-22 7:09 UTC (permalink / raw)
To: openembedded-core
The gconfd-2 will be called in org.gnome.GConf.service file and the path of
gconfd-2 is ${libexecdir}, this will get following error when multilib exported
in the sdk:
error: file /usr/share/dbus-1/services/org.gnome.GConf.service from install
of gconf-3.2.6-r0.0.lib32_x86 conflicts with file from package
gconf-3.2.6-r0.0.x86_64
Move org.gnome.GConf.service to ${libdir}, then the conflict was fixed.
Add split out the client libraries into a separate package.
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
---
meta/recipes-gnome/gnome/gconf_3.2.6.bb | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-gnome/gnome/gconf_3.2.6.bb b/meta/recipes-gnome/gnome/gconf_3.2.6.bb
index 17fdafa..bbb13b2 100644
--- a/meta/recipes-gnome/gnome/gconf_3.2.6.bb
+++ b/meta/recipes-gnome/gnome/gconf_3.2.6.bb
@@ -19,6 +19,8 @@ SRC_URI[archive.sha256sum] = "1912b91803ab09a5eed34d364bf09fe3a2a9c96751fde03a4e
S = "${WORKDIR}/GConf-${PV}"
+PACKAGES =+ "libgconf"
+
EXTRA_OECONF = "--enable-shared --disable-static --enable-debug=yes \
--disable-introspection --disable-orbit --with-openldap=no --disable-gtk"
@@ -37,6 +39,8 @@ do_install_append() {
# this stuff is unusable
rm -f ${D}${libdir}/GConf/*/*.*a
rm -f ${D}${libdir}/gio/*/*.*a
+
+ mv ${D}${datadir}/dbus-1 ${D}${libdir}/
}
do_install_append_class-native() {
@@ -47,13 +51,15 @@ do_install_append_class-native() {
# disable dbus-x11 when x11 isn't in DISTRO_FEATURES
RDEPENDS_${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'dbus-x11', '', d)}"
RDEPENDS_${PN}_class-native = ""
+RDEPENDS_${PN} += "libgconf"
FILES_${PN} += "${libdir}/GConf/* \
- ${libdir}/gio/*/*.so \
${datadir}/polkit* \
- ${datadir}/dbus-1/services/*.service \
${datadir}/dbus-1/system-services/*.service \
"
+FILES_libgconf = "${libdir}/lib*${SOLIBS} ${libdir}/gio/modules/*.so \
+ ${libdir}/dbus-1/services/*.service"
+
FILES_${PN}-dbg += "${libdir}/*/*/.debug"
FILES_${PN}-dev += "${datadir}/sgml/gconf/gconf-1.0.dtd"
--
1.9.1
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [PATCH V3 1/1] gconf: fix multilib conflict - org.gnome.GConf.service
2014-10-22 7:09 ` [PATCH V3 1/1] " Chong Lu
@ 2014-10-22 10:07 ` Burton, Ross
2014-10-22 10:58 ` Mark Hatle
2014-10-24 2:26 ` Chong Lu
2014-10-24 6:10 ` Koen Kooi
1 sibling, 2 replies; 10+ messages in thread
From: Burton, Ross @ 2014-10-22 10:07 UTC (permalink / raw)
To: Chong Lu; +Cc: OE-core
On 22 October 2014 08:09, Chong Lu <Chong.Lu@windriver.com> wrote:
> The gconfd-2 will be called in org.gnome.GConf.service file and the path of
> gconfd-2 is ${libexecdir}, this will get following error when multilib exported
> in the sdk:
> error: file /usr/share/dbus-1/services/org.gnome.GConf.service from install
> of gconf-3.2.6-r0.0.lib32_x86 conflicts with file from package
> gconf-3.2.6-r0.0.x86_64
I'm clearly not understanding how our multilib implementation works,
but you don't need many copies of the main gconf package, just one in
the preferred configuration. What is causing multiple copies of gconf
to be installed?
Ross
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH V3 1/1] gconf: fix multilib conflict - org.gnome.GConf.service
2014-10-22 10:07 ` Burton, Ross
@ 2014-10-22 10:58 ` Mark Hatle
2014-10-22 11:04 ` Burton, Ross
2014-10-24 2:26 ` Chong Lu
1 sibling, 1 reply; 10+ messages in thread
From: Mark Hatle @ 2014-10-22 10:58 UTC (permalink / raw)
To: openembedded-core
On 10/22/14, 6:07 PM, Burton, Ross wrote:
> On 22 October 2014 08:09, Chong Lu <Chong.Lu@windriver.com> wrote:
>> The gconfd-2 will be called in org.gnome.GConf.service file and the path of
>> gconfd-2 is ${libexecdir}, this will get following error when multilib exported
>> in the sdk:
>> error: file /usr/share/dbus-1/services/org.gnome.GConf.service from install
>> of gconf-3.2.6-r0.0.lib32_x86 conflicts with file from package
>> gconf-3.2.6-r0.0.x86_64
>
> I'm clearly not understanding how our multilib implementation works,
> but you don't need many copies of the main gconf package, just one in
> the preferred configuration. What is causing multiple copies of gconf
> to be installed?
Installing both the lib32 and "regular" version of gconf attempts to install the
file "/usr/share/dbus-1/services/org.gnome.GConf.service" twice. (This is
normally acceptable, as long as the -contents- of the file are identical.) For
whatever reason the contents are different, and the usual way to fix this is to
provide a unique file that both versions can include.
This way only one version will be installed, but yet the other service elements
will be properly duplicated.
I'd like a bit more information in the commit message indicating what the
conflict actually was between both files (since I believe the service file is
textual so a diff is easy to include).
--Mark
> Ross
>
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH V3 1/1] gconf: fix multilib conflict - org.gnome.GConf.service
2014-10-22 10:58 ` Mark Hatle
@ 2014-10-22 11:04 ` Burton, Ross
0 siblings, 0 replies; 10+ messages in thread
From: Burton, Ross @ 2014-10-22 11:04 UTC (permalink / raw)
To: Mark Hatle; +Cc: OE-core
On 22 October 2014 11:58, Mark Hatle <mark.hatle@windriver.com> wrote:
> Installing both the lib32 and "regular" version of gconf attempts to install
> the file "/usr/share/dbus-1/services/org.gnome.GConf.service" twice. (This
> is normally acceptable, as long as the -contents- of the file are
> identical.) For whatever reason the contents are different, and the usual
> way to fix this is to provide a unique file that both versions can include.
>
> This way only one version will be installed, but yet the other service
> elements will be properly duplicated.
>
> I'd like a bit more information in the commit message indicating what the
> conflict actually was between both files (since I believe the service file
> is textual so a diff is easy to include).
This patch moves the org.gnome.GConf.service file into ${libdir} as
that file contains a reference to ${libexecdir} which is different on
multilib builds (and a good reason why libexecdir shouldn't depend on
libdir), so the files are not identical.
My question is why are we installing two copies of the GConf daemon,
can't we just install this package once?
Ross
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH V3 1/1] gconf: fix multilib conflict - org.gnome.GConf.service
2014-10-22 10:07 ` Burton, Ross
2014-10-22 10:58 ` Mark Hatle
@ 2014-10-24 2:26 ` Chong Lu
2014-10-26 20:58 ` Burton, Ross
1 sibling, 1 reply; 10+ messages in thread
From: Chong Lu @ 2014-10-24 2:26 UTC (permalink / raw)
To: Burton, Ross; +Cc: OE-core
On 10/22/2014 06:07 PM, Burton, Ross wrote:
> On 22 October 2014 08:09, Chong Lu <Chong.Lu@windriver.com> wrote:
>> The gconfd-2 will be called in org.gnome.GConf.service file and the path of
>> gconfd-2 is ${libexecdir}, this will get following error when multilib exported
>> in the sdk:
>> error: file /usr/share/dbus-1/services/org.gnome.GConf.service from install
>> of gconf-3.2.6-r0.0.lib32_x86 conflicts with file from package
>> gconf-3.2.6-r0.0.x86_64
> I'm clearly not understanding how our multilib implementation works,
> but you don't need many copies of the main gconf package, just one in
> the preferred configuration. What is causing multiple copies of gconf
> to be installed?
>
> Ross
>
Hi Ross,
I configured following in local.conf:
MACHINE = "qemux86-64"
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
IMAGE_INSTALL = "gconf lib32-gconf"
So multiple copies of gconf to be installed.
Best Regards
Chong
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH V3 1/1] gconf: fix multilib conflict - org.gnome.GConf.service
2014-10-22 7:09 ` [PATCH V3 1/1] " Chong Lu
2014-10-22 10:07 ` Burton, Ross
@ 2014-10-24 6:10 ` Koen Kooi
2014-10-24 6:16 ` Chong Lu
1 sibling, 1 reply; 10+ messages in thread
From: Koen Kooi @ 2014-10-24 6:10 UTC (permalink / raw)
To: Chong Lu; +Cc: openembedded-core
> Op 22 okt. 2014, om 09:09 heeft Chong Lu <Chong.Lu@windriver.com> het volgende geschreven:
>
> The gconfd-2 will be called in org.gnome.GConf.service file and the path of
> gconfd-2 is ${libexecdir}, this will get following error when multilib exported
> in the sdk:
> error: file /usr/share/dbus-1/services/org.gnome.GConf.service from install
> of gconf-3.2.6-r0.0.lib32_x86 conflicts with file from package
> gconf-3.2.6-r0.0.x86_64
>
> Move org.gnome.GConf.service to ${libdir}, then the conflict was fixed.
And I suspect its dbus service won't work anymore after moving the files. How have you tested this change?
> Add split out the client libraries into a separate package.
>
> Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
> ---
> meta/recipes-gnome/gnome/gconf_3.2.6.bb | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-gnome/gnome/gconf_3.2.6.bb b/meta/recipes-gnome/gnome/gconf_3.2.6.bb
> index 17fdafa..bbb13b2 100644
> --- a/meta/recipes-gnome/gnome/gconf_3.2.6.bb
> +++ b/meta/recipes-gnome/gnome/gconf_3.2.6.bb
> @@ -19,6 +19,8 @@ SRC_URI[archive.sha256sum] = "1912b91803ab09a5eed34d364bf09fe3a2a9c96751fde03a4e
>
> S = "${WORKDIR}/GConf-${PV}"
>
> +PACKAGES =+ "libgconf"
> +
> EXTRA_OECONF = "--enable-shared --disable-static --enable-debug=yes \
> --disable-introspection --disable-orbit --with-openldap=no --disable-gtk"
>
> @@ -37,6 +39,8 @@ do_install_append() {
> # this stuff is unusable
> rm -f ${D}${libdir}/GConf/*/*.*a
> rm -f ${D}${libdir}/gio/*/*.*a
> +
> + mv ${D}${datadir}/dbus-1 ${D}${libdir}/
> }
>
> do_install_append_class-native() {
> @@ -47,13 +51,15 @@ do_install_append_class-native() {
> # disable dbus-x11 when x11 isn't in DISTRO_FEATURES
> RDEPENDS_${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'dbus-x11', '', d)}"
> RDEPENDS_${PN}_class-native = ""
> +RDEPENDS_${PN} += "libgconf"
>
> FILES_${PN} += "${libdir}/GConf/* \
> - ${libdir}/gio/*/*.so \
> ${datadir}/polkit* \
> - ${datadir}/dbus-1/services/*.service \
> ${datadir}/dbus-1/system-services/*.service \
> "
> +FILES_libgconf = "${libdir}/lib*${SOLIBS} ${libdir}/gio/modules/*.so \
> + ${libdir}/dbus-1/services/*.service"
> +
> FILES_${PN}-dbg += "${libdir}/*/*/.debug"
> FILES_${PN}-dev += "${datadir}/sgml/gconf/gconf-1.0.dtd"
>
> --
> 1.9.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH V3 1/1] gconf: fix multilib conflict - org.gnome.GConf.service
2014-10-24 6:10 ` Koen Kooi
@ 2014-10-24 6:16 ` Chong Lu
2014-10-24 7:01 ` Anders Darander
0 siblings, 1 reply; 10+ messages in thread
From: Chong Lu @ 2014-10-24 6:16 UTC (permalink / raw)
To: Koen Kooi; +Cc: openembedded-core
On 10/24/2014 02:10 PM, Koen Kooi wrote:
>> Op 22 okt. 2014, om 09:09 heeft Chong Lu <Chong.Lu@windriver.com> het volgende geschreven:
>>
>> The gconfd-2 will be called in org.gnome.GConf.service file and the path of
>> gconfd-2 is ${libexecdir}, this will get following error when multilib exported
>> in the sdk:
>> error: file /usr/share/dbus-1/services/org.gnome.GConf.service from install
>> of gconf-3.2.6-r0.0.lib32_x86 conflicts with file from package
>> gconf-3.2.6-r0.0.x86_64
>>
>> Move org.gnome.GConf.service to ${libdir}, then the conflict was fixed.
> And I suspect its dbus service won't work anymore after moving the files. How have you tested this change?
I just focus on the conflicts, not to test dbus service.
Or do you have any suggestion to fix this conflicts?
Best Regards
Chong
>
>> Add split out the client libraries into a separate package.
>>
>> Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
>> ---
>> meta/recipes-gnome/gnome/gconf_3.2.6.bb | 10 ++++++++--
>> 1 file changed, 8 insertions(+), 2 deletions(-)
>>
>> diff --git a/meta/recipes-gnome/gnome/gconf_3.2.6.bb b/meta/recipes-gnome/gnome/gconf_3.2.6.bb
>> index 17fdafa..bbb13b2 100644
>> --- a/meta/recipes-gnome/gnome/gconf_3.2.6.bb
>> +++ b/meta/recipes-gnome/gnome/gconf_3.2.6.bb
>> @@ -19,6 +19,8 @@ SRC_URI[archive.sha256sum] = "1912b91803ab09a5eed34d364bf09fe3a2a9c96751fde03a4e
>>
>> S = "${WORKDIR}/GConf-${PV}"
>>
>> +PACKAGES =+ "libgconf"
>> +
>> EXTRA_OECONF = "--enable-shared --disable-static --enable-debug=yes \
>> --disable-introspection --disable-orbit --with-openldap=no --disable-gtk"
>>
>> @@ -37,6 +39,8 @@ do_install_append() {
>> # this stuff is unusable
>> rm -f ${D}${libdir}/GConf/*/*.*a
>> rm -f ${D}${libdir}/gio/*/*.*a
>> +
>> + mv ${D}${datadir}/dbus-1 ${D}${libdir}/
>> }
>>
>> do_install_append_class-native() {
>> @@ -47,13 +51,15 @@ do_install_append_class-native() {
>> # disable dbus-x11 when x11 isn't in DISTRO_FEATURES
>> RDEPENDS_${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'dbus-x11', '', d)}"
>> RDEPENDS_${PN}_class-native = ""
>> +RDEPENDS_${PN} += "libgconf"
>>
>> FILES_${PN} += "${libdir}/GConf/* \
>> - ${libdir}/gio/*/*.so \
>> ${datadir}/polkit* \
>> - ${datadir}/dbus-1/services/*.service \
>> ${datadir}/dbus-1/system-services/*.service \
>> "
>> +FILES_libgconf = "${libdir}/lib*${SOLIBS} ${libdir}/gio/modules/*.so \
>> + ${libdir}/dbus-1/services/*.service"
>> +
>> FILES_${PN}-dbg += "${libdir}/*/*/.debug"
>> FILES_${PN}-dev += "${datadir}/sgml/gconf/gconf-1.0.dtd"
>>
>> --
>> 1.9.1
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [PATCH V3 1/1] gconf: fix multilib conflict - org.gnome.GConf.service
2014-10-24 6:16 ` Chong Lu
@ 2014-10-24 7:01 ` Anders Darander
0 siblings, 0 replies; 10+ messages in thread
From: Anders Darander @ 2014-10-24 7:01 UTC (permalink / raw)
To: Chong Lu; +Cc: Koen Kooi, openembedded-core@lists.openembedded.org
* Chong Lu <Chong.Lu@windriver.com> [141024 08:17]:
> On 10/24/2014 02:10 PM, Koen Kooi wrote:
> >> Op 22 okt. 2014, om 09:09 heeft Chong Lu <Chong.Lu@windriver.com> het volgende geschreven:
> >> The gconfd-2 will be called in org.gnome.GConf.service file and the path of
> >> gconfd-2 is ${libexecdir}, this will get following error when multilib exported
> >> in the sdk:
> >> error: file /usr/share/dbus-1/services/org.gnome.GConf.service from install
> >> of gconf-3.2.6-r0.0.lib32_x86 conflicts with file from package
> >> gconf-3.2.6-r0.0.x86_64
> >> Move org.gnome.GConf.service to ${libdir}, then the conflict was fixed.
> > And I suspect its dbus service won't work anymore after moving the files. How have you tested this change?
> I just focus on the conflicts, not to test dbus service.
> Or do you have any suggestion to fix this conflicts?
Well, if you move a file to a new location, everyone assumes that you
have verified that the file still will be found by the application that
needs it. Basically, that's what Koen's question was about. Have you
made any run-time tests, to verify that your patch doesn't break
anything?
Besides, there was the other remark whether or not it makes sense to
have multiple versions of gconf installed...
Cheers,
Anders
--
Anders Darander
ChargeStorm AB / eStorm AB
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-10-26 20:59 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-22 7:09 [PATCH V3 0/1] gconf: fix multilib conflict - org.gnome.GConf.service Chong Lu
2014-10-22 7:09 ` [PATCH V3 1/1] " Chong Lu
2014-10-22 10:07 ` Burton, Ross
2014-10-22 10:58 ` Mark Hatle
2014-10-22 11:04 ` Burton, Ross
2014-10-24 2:26 ` Chong Lu
2014-10-26 20:58 ` Burton, Ross
2014-10-24 6:10 ` Koen Kooi
2014-10-24 6:16 ` Chong Lu
2014-10-24 7:01 ` Anders Darander
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox