Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] libcroco: dont package /usr/bin/croco-0.6-config
@ 2014-07-04 10:54 Ming Liu
  2014-07-04 11:03 ` Burton, Ross
  0 siblings, 1 reply; 3+ messages in thread
From: Ming Liu @ 2014-07-04 10:54 UTC (permalink / raw)
  To: openembedded-core

It's build time specific and should not be packaged, otherwise, it will
introduce conflicts among multilib build.

Signed-off-by: Ming Liu <ming.liu@windriver.com>
---
 meta/recipes-support/libcroco/libcroco_0.6.8.bb | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/meta/recipes-support/libcroco/libcroco_0.6.8.bb b/meta/recipes-support/libcroco/libcroco_0.6.8.bb
index 7d04265..a926a1c 100644
--- a/meta/recipes-support/libcroco/libcroco_0.6.8.bb
+++ b/meta/recipes-support/libcroco/libcroco_0.6.8.bb
@@ -19,3 +19,14 @@ GNOME_COMPRESS_TYPE = "xz"
 
 SRC_URI[archive.md5sum] = "767e73c4174f75b99695d4530fd9bb80"
 SRC_URI[archive.sha256sum] = "ea6e1b858c55219cefd7109756bff5bc1a774ba7a55f7d3ccd734d6b871b8570"
+
+#
+# Don't package croco-0.6-config, it's build time specific.
+# Otherwise, it would cause conflicts among multilib install. 
+#
+PACKAGE_PREPROCESS_FUNCS += "croco_package_preprocess"
+croco_package_preprocess () {
+	if [ -f ${PKGD}/${bindir}/croco-0.6-config ]; then
+		rm -f ${PKGD}/${bindir}/croco-0.6-config
+	fi
+}
-- 
1.8.4.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] libcroco: dont package /usr/bin/croco-0.6-config
  2014-07-04 10:54 [PATCH 1/2] libcroco: dont package /usr/bin/croco-0.6-config Ming Liu
@ 2014-07-04 11:03 ` Burton, Ross
  2014-07-04 11:08   ` Ming Liu
  0 siblings, 1 reply; 3+ messages in thread
From: Burton, Ross @ 2014-07-04 11:03 UTC (permalink / raw)
  To: Ming Liu; +Cc: OE-core

On 4 July 2014 11:54, Ming Liu <ming.liu@windriver.com> wrote:
> +PACKAGE_PREPROCESS_FUNCS += "croco_package_preprocess"
> +croco_package_preprocess () {
> +       if [ -f ${PKGD}/${bindir}/croco-0.6-config ]; then
> +               rm -f ${PKGD}/${bindir}/croco-0.6-config
> +       fi
> +}

Erm, this is wrong.

So croco-config is broken because the recipe doesn't inherit
binconfig, to fix the paths and install the binary into libcroco-dev,
where it belongs.  By not installing it into the package, you've
broken anything that wants to build using croco-config inside a
Yocto-generated image, such as the Build Appliance.

Considering that the only recipe to depend on libcroco is librsvg, and
that uses pkg-config instead of croco-config, then this recipe should
also inherit binconfig-disabled to turn the config script into a "exit
1" no-op.

Ross


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] libcroco: dont package /usr/bin/croco-0.6-config
  2014-07-04 11:03 ` Burton, Ross
@ 2014-07-04 11:08   ` Ming Liu
  0 siblings, 0 replies; 3+ messages in thread
From: Ming Liu @ 2014-07-04 11:08 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

On 07/04/2014 07:03 PM, Burton, Ross wrote:
> On 4 July 2014 11:54, Ming Liu <ming.liu@windriver.com> wrote:
>> +PACKAGE_PREPROCESS_FUNCS += "croco_package_preprocess"
>> +croco_package_preprocess () {
>> +       if [ -f ${PKGD}/${bindir}/croco-0.6-config ]; then
>> +               rm -f ${PKGD}/${bindir}/croco-0.6-config
>> +       fi
>> +}
> Erm, this is wrong.
>
> So croco-config is broken because the recipe doesn't inherit
> binconfig, to fix the paths and install the binary into libcroco-dev,
> where it belongs.  By not installing it into the package, you've
> broken anything that wants to build using croco-config inside a
> Yocto-generated image, such as the Build Appliance.
>
> Considering that the only recipe to depend on libcroco is librsvg, and
> that uses pkg-config instead of croco-config, then this recipe should
> also inherit binconfig-disabled to turn the config script into a "exit
> 1" no-op.
Yes, you are right! Thanks to correct me, I will send a V2 soon.

the best,
thank you
>
> Ross
>
>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-04 11:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-04 10:54 [PATCH 1/2] libcroco: dont package /usr/bin/croco-0.6-config Ming Liu
2014-07-04 11:03 ` Burton, Ross
2014-07-04 11:08   ` Ming Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox