All of lore.kernel.org
 help / color / mirror / Atom feed
* [Yocto] How to add the same recipe twice?
@ 2014-06-09 18:26 Kevyn-Alexandre Paré
  2014-06-10 14:21 ` Paul Eggleton
  2014-06-10 16:03 ` [oe] " Paul Eggleton
  0 siblings, 2 replies; 4+ messages in thread
From: Kevyn-Alexandre Paré @ 2014-06-09 18:26 UTC (permalink / raw)
  To: openembedded-devel

Hi,

Here what I want to do:
- Have 2 different psplash in my image.

Here what I have done:
- Copy and rename the psplash recipe to psplash-desktop and modify
couple of things.


Here the warning I'm having:
WARNING: The recipe psplash-desktop is trying to install files into a
shared area when those files already exist. Those files and their
manifest location are:
   /home/knight/SVN/rogue/3rdParty/Yocto/trunk/starting_point/yocto_build/src/build/tmp/sysroots/overo/pkgdata/runtime/psplash-default
   Matched in manifest-overo-psplash.packagedata
manifest-overo-psplash-second.packagedata
   /home/knight/SVN/rogue/3rdParty/Yocto/trunk/starting_point/yocto_build/src/build/tmp/sysroots/overo/pkgdata/runtime/psplash-default.packaged
   Matched in manifest-overo-psplash.packagedata
   /home/knight/SVN/rogue/3rdParty/Yocto/trunk/starting_point/yocto_build/src/build/tmp/sysroots/overo/pkgdata/runtime-reverse/psplash-default
   Matched in manifest-overo-psplash.packagedata
manifest-overo-psplash-second.packagedata
Please verify which package should provide the above files.
WARNING: The recipe psplash-desktop is trying to install files into a
shared area when those files already exist. Those files and their
manifest location are:
   /home/knight/SVN/rogue/3rdParty/Yocto/trunk/starting_point/yocto_build/src/build/tmp/deploy/rpm/armv7a_vfp_neon/psplash-default-0.1+git0+afd4e228c6-r15.armv7a_vfp_neon.rpm
   Matched in manifest-armv7a-vfp-neon-psplash.package_write_rpm
Please verify which package should provide the above files.

Here the error:
http://pastebin.com/t2gYs3WT

Here the diff of my psplash recipe compare to psplash original:
http://pastebin.com/8TrQRFkQ

In the chat sgw_ recommended my to use:...
sgw_> kapare, now that I better understand, you want to mv your binary
in the do_install_append(), and keep the update-alternative code and
FILES_${PN} bin, but use the renamed binary in the
ALTERNATIVE_LINK_NAME, but you also need ALTNATIVE_TARGET[psplash] =
${bindir}/psplash-default

There is something that I'm missing...

Any idea what?

BR,

-KA


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

* Re: [Yocto] How to add the same recipe twice?
  2014-06-09 18:26 [Yocto] How to add the same recipe twice? Kevyn-Alexandre Paré
@ 2014-06-10 14:21 ` Paul Eggleton
  2014-06-10 16:03 ` [oe] " Paul Eggleton
  1 sibling, 0 replies; 4+ messages in thread
From: Paul Eggleton @ 2014-06-10 14:21 UTC (permalink / raw)
  To: Kevyn-Alexandre Paré; +Cc: openembedded-devel

Hi Kevyn-Alexandre,

On Monday 09 June 2014 14:26:53 Kevyn-Alexandre Paré wrote:
> Here what I want to do:
> - Have 2 different psplash in my image.
> 
> Here what I have done:
> - Copy and rename the psplash recipe to psplash-desktop and modify
> couple of things.
> 
> 
> Here the warning I'm having:
> WARNING: The recipe psplash-desktop is trying to install files into a
> shared area when those files already exist. Those files and their
> manifest location are:
>   
> /home/knight/SVN/rogue/3rdParty/Yocto/trunk/starting_point/yocto_build/src/
> build/tmp/sysroots/overo/pkgdata/runtime/psplash-default Matched in
> manifest-overo-psplash.packagedata
> manifest-overo-psplash-second.packagedata
>   
> /home/knight/SVN/rogue/3rdParty/Yocto/trunk/starting_point/yocto_build/src/
> build/tmp/sysroots/overo/pkgdata/runtime/psplash-default.packaged Matched in
> manifest-overo-psplash.packagedata
>   
> /home/knight/SVN/rogue/3rdParty/Yocto/trunk/starting_point/yocto_build/src/
> build/tmp/sysroots/overo/pkgdata/runtime-reverse/psplash-default Matched in
> manifest-overo-psplash.packagedata
> manifest-overo-psplash-second.packagedata
> Please verify which package should provide the above files.
> WARNING: The recipe psplash-desktop is trying to install files into a
> shared area when those files already exist. Those files and their
> manifest location are:
>   
> /home/knight/SVN/rogue/3rdParty/Yocto/trunk/starting_point/yocto_build/src/
> build/tmp/deploy/rpm/armv7a_vfp_neon/psplash-default-0.1+git0+afd4e228c6-r15
> .armv7a_vfp_neon.rpm Matched in
> manifest-armv7a-vfp-neon-psplash.package_write_rpm
> Please verify which package should provide the above files.
> 
> Here the error:
> http://pastebin.com/t2gYs3WT
> 
> Here the diff of my psplash recipe compare to psplash original:
> http://pastebin.com/8TrQRFkQ
> 
> In the chat sgw_ recommended my to use:...
> sgw_> kapare, now that I better understand, you want to mv your binary
> in the do_install_append(), and keep the update-alternative code and
> FILES_${PN} bin, but use the renamed binary in the
> ALTERNATIVE_LINK_NAME, but you also need ALTNATIVE_TARGET[psplash] =
> ${bindir}/psplash-default

FYI, our psplash recipe has built-in handling for multiple splash images, so 
you don't need to add multiple recipes to use this. You just need a 
psplash_git.bbappend in your own layer which does something like this:

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SPLASH_IMAGES = "file://splash-file-one.h;outsuffix=one \
                          file://splash-file-two.h;outsuffix=two"

This will automatically create psplash-<outsuffix> packages for each splash 
image entry (i.e. psplash-one and psplash-two in this case), and set up 
update-alternatives alternatives for each one.

(I realise we don't have this documented anywhere, I've added a todo list item 
for me to document it.)

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

* Re: [oe] How to add the same recipe twice?
  2014-06-09 18:26 [Yocto] How to add the same recipe twice? Kevyn-Alexandre Paré
  2014-06-10 14:21 ` Paul Eggleton
@ 2014-06-10 16:03 ` Paul Eggleton
  2014-06-10 17:32   ` Kevyn-Alexandre Paré
  1 sibling, 1 reply; 4+ messages in thread
From: Paul Eggleton @ 2014-06-10 16:03 UTC (permalink / raw)
  To: yocto

Hi Kevyn-Alexandre,

On Monday 09 June 2014 14:26:53 Kevyn-Alexandre Paré wrote:
> Here what I want to do:
> - Have 2 different psplash in my image.
> 
> Here what I have done:
> - Copy and rename the psplash recipe to psplash-desktop and modify
> couple of things.
> 
> 
> Here the warning I'm having:
> WARNING: The recipe psplash-desktop is trying to install files into a
> shared area when those files already exist. Those files and their
> manifest location are:
>   
> /home/knight/SVN/rogue/3rdParty/Yocto/trunk/starting_point/yocto_build/src/
> build/tmp/sysroots/overo/pkgdata/runtime/psplash-default Matched in
> manifest-overo-psplash.packagedata
> manifest-overo-psplash-second.packagedata
>   
> /home/knight/SVN/rogue/3rdParty/Yocto/trunk/starting_point/yocto_build/src/
> build/tmp/sysroots/overo/pkgdata/runtime/psplash-default.packaged Matched in
> manifest-overo-psplash.packagedata
>   
> /home/knight/SVN/rogue/3rdParty/Yocto/trunk/starting_point/yocto_build/src/
> build/tmp/sysroots/overo/pkgdata/runtime-reverse/psplash-default Matched in
> manifest-overo-psplash.packagedata
> manifest-overo-psplash-second.packagedata
> Please verify which package should provide the above files.
> WARNING: The recipe psplash-desktop is trying to install files into a
> shared area when those files already exist. Those files and their
> manifest location are:
>   
> /home/knight/SVN/rogue/3rdParty/Yocto/trunk/starting_point/yocto_build/src/
> build/tmp/deploy/rpm/armv7a_vfp_neon/psplash-default-0.1+git0+afd4e228c6-r15
> .armv7a_vfp_neon.rpm Matched in
> manifest-armv7a-vfp-neon-psplash.package_write_rpm
> Please verify which package should provide the above files.
> 
> Here the error:
> http://pastebin.com/t2gYs3WT
> 
> Here the diff of my psplash recipe compare to psplash original:
> http://pastebin.com/8TrQRFkQ
> 
> In the chat sgw_ recommended my to use:...
> sgw_> kapare, now that I better understand, you want to mv your binary
> in the do_install_append(), and keep the update-alternative code and
> FILES_${PN} bin, but use the renamed binary in the
> ALTERNATIVE_LINK_NAME, but you also need ALTNATIVE_TARGET[psplash] =
> ${bindir}/psplash-default

FYI, our psplash recipe has built-in handling for multiple splash images, so 
you don't need to add multiple recipes to use this. You just need a 
psplash_git.bbappend in your own layer which does something like this:

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SPLASH_IMAGES = "file://splash-file-one.h;outsuffix=one \
                          file://splash-file-two.h;outsuffix=two"

This will automatically create psplash-<outsuffix> packages for each splash 
image entry (i.e. psplash-one and psplash-two in this case), and set up 
update-alternatives alternatives for each one.

(I realise we don't have this documented anywhere, I've added a todo list item 
for me to document it.)

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

* Re: [oe] How to add the same recipe twice?
  2014-06-10 16:03 ` [oe] " Paul Eggleton
@ 2014-06-10 17:32   ` Kevyn-Alexandre Paré
  0 siblings, 0 replies; 4+ messages in thread
From: Kevyn-Alexandre Paré @ 2014-06-10 17:32 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: Yocto discussion list

Hi Paul,

>
> FYI, our psplash recipe has built-in handling for multiple splash images, so
> you don't need to add multiple recipes to use this. You just need a
> psplash_git.bbappend in your own layer which does something like this:
>

Notice after sending my email....

> FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
> SPLASH_IMAGES = "file://splash-file-one.h;outsuffix=one \
>                           file://splash-file-two.h;outsuffix=two"
>
> This will automatically create psplash-<outsuffix> packages for each splash
> image entry (i.e. psplash-one and psplash-two in this case), and set up
> update-alternatives alternatives for each one.
>
> (I realise we don't have this documented anywhere, I've added a todo list item
> for me to document it.)

AAAA thank you very much for the detail explanation! I didn't
understand properly the outsuffix option and change/remove it without
success. You should simply add in the main recipe something like
that?:

# To have multiple psplash append with:
# FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
# SPLASH_IMAGES = "file://splash-file-one.h;outsuffix=one \
#                           file://splash-file-two.h;outsuffix=two"

Will try your solution

thx,

-KA


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

end of thread, other threads:[~2014-06-10 17:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-09 18:26 [Yocto] How to add the same recipe twice? Kevyn-Alexandre Paré
2014-06-10 14:21 ` Paul Eggleton
2014-06-10 16:03 ` [oe] " Paul Eggleton
2014-06-10 17:32   ` Kevyn-Alexandre Paré

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.