From: Gary Thomas <gary@mlbassoc.com>
To: Otavio Salvador <otavio@ossystems.com.br>
Cc: "meta-freescale@yoctoproject.org" <meta-freescale@yoctoproject.org>
Subject: Re: [PATCH] imx-gpu-viv: Avoid duplicate values in PROVIDES
Date: Wed, 17 Jun 2015 09:21:11 -0600 [thread overview]
Message-ID: <55819067.80200@mlbassoc.com> (raw)
In-Reply-To: <CAP9ODKpJVRmyG1JppOey1ZJ6ZgjDyMN0g3Nc3GZ80Xu-yhNpFA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2311 bytes --]
On 2015-06-17 09:14, Otavio Salvador wrote:
> Hello Gary,
>
> On Wed, Jun 17, 2015 at 12:01 PM, Gary Thomas <samoht.yrag@gmail.com> wrote:
>> On 2015-06-17 08:56, Fabio Estevam wrote:
>>>
>>> On Wed, Jun 17, 2015 at 11:46 AM, Gary Thomas <gary@mlbassoc.com> wrote:
>>>
>>>> I'm still confused - it applies just fine for me:
>>>>
>>>> gthomas@Zeus:/tmp$ git clone git://git.yoctoproject.org/meta-fsl-arm
>>>> Cloning into 'meta-fsl-arm'...
>>>> remote: Counting objects: 10025, done.
>>>> remote: Compressing objects: 100% (3426/3426), done.
>>>> remote: Total 10025 (delta 6192), reused 10014 (delta 6181)
>>>> Receiving objects: 100% (10025/10025), 37.81 MiB | 1.39 MiB/s, done.
>>>> Resolving deltas: 100% (6192/6192), done.
>>>> Checking connectivity... done.
>>>> gthomas@Zeus:/tmp$ cd meta-fsl-arm
>>>> gthomas@Zeus:/tmp/meta-fsl-arm$ git am
>>>> </tmp/0001-imx-gpu-viv-Avoid-duplicate-values-in-PROVIDES.patch
>>>> Applying: imx-gpu-viv: Avoid duplicate values in PROVIDES
>>>>
>>>> What am I doing differently from you?
>>>
>>>
>>> I think you missed to change the branch to master.
>>
>>
>> The checkout defaults to master:
>>
>> gthomas@Zeus:/tmp/meta-fsl-arm$ git branch -a
>> * master
>> remotes/origin/1.4_M3
>> remotes/origin/1.4_M5
>> remotes/origin/HEAD -> origin/master
>> remotes/origin/daisy
>> remotes/origin/danny
>> remotes/origin/danny-next
>> remotes/origin/denzil
>> remotes/origin/dizzy
>> remotes/origin/dizzy-next
>> remotes/origin/dora
>> remotes/origin/dora-next
>> remotes/origin/dylan
>> remotes/origin/dylan-next
>> remotes/origin/fido
>> remotes/origin/master
>> remotes/origin/master-next
>>
>>> Your patch also fails for me when I try to apply it.
>>
>>
>> There's something strange going on here... Is your tree the
>> same as mine (I checked it out directly - I don't use the BSP
>> setup scripts/repo)
>> git://git.yoctoproject.org/meta-fsl-arm
>
> The patchfile might have been corrupted; please attach the file for me to try.
>
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
[-- Attachment #2: 0001-imx-gpu-viv-Avoid-duplicate-values-in-PROVIDES.patch --]
[-- Type: text/x-patch, Size: 2244 bytes --]
From 1c5df3ffd3463dcd653f6eb6d21e0547cd980e19 Mon Sep 17 00:00:00 2001
From: Gary Thomas <gary@mlbassoc.com>
Date: Tue, 16 Jun 2015 07:08:51 -0600
Subject: [PATCH] imx-gpu-viv: Avoid duplicate values in PROVIDES
Additional packages are added to the PROVIDES variable, depending on
the type of processor being supported, e.g. i.MX6Q, i.MX6SX, etc.
The old way this was being set could add multiple versions of the
same package to the PROVIDES variable which in turn can cause confusion
with sstate, e.g. a number of i.MX6 machines use :mx6q:mx6dl in their
overrides whereas others might only have :mx6q. With the previous
setting of PROVIDES, this package would not be sharable via sstate
between such machines.
This patch changes the process so that these extra packages are only
added once, improving the [re]usability of sstate.
Signed-off-by: Gary Thomas <gary@mlbassoc.com>
---
recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc b/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc
index ea19292..4b6e030 100644
--- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc
+++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc
@@ -11,10 +11,11 @@ DEPENDS += "${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxdamag
base_contains('DISTRO_FEATURES', 'wayland', 'wayland', \
'', d), d)}"
-PROVIDES += "virtual/wayland-egl virtual/libgal-x11 virtual/egl virtual/libopenvg virtual/libg2d"
-PROVIDES_append_mx6q = " virtual/libgl virtual/libgles1 virtual/libgles2"
-PROVIDES_append_mx6dl = " virtual/libgl virtual/libgles1 virtual/libgles2"
-PROVIDES_append_mx6sx = " virtual/libgl virtual/libgles1 virtual/libgles2"
+EXTRA_PROVIDES = ""
+EXTRA_PROVIDES_mx6q = " virtual/libgl virtual/libgles1 virtual/libgles2"
+EXTRA_PROVIDES_mx6dl = " virtual/libgl virtual/libgles1 virtual/libgles2"
+EXTRA_PROVIDES_mx6sx = " virtual/libgl virtual/libgles1 virtual/libgles2"
+PROVIDES += "virtual/wayland-egl virtual/libgal-x11 virtual/egl virtual/libopenvg virtual/libg2d ${EXTRA_PROVIDES}"
PE = "1"
--
1.9.1
next prev parent reply other threads:[~2015-06-17 15:20 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-16 13:18 [PATCH] imx-gpu-viv: Avoid duplicate values in PROVIDES Gary Thomas
2015-06-17 14:06 ` Otavio Salvador
2015-06-17 14:25 ` Gary Thomas
2015-06-17 14:31 ` Otavio Salvador
2015-06-17 14:46 ` Gary Thomas
2015-06-17 14:56 ` Fabio Estevam
2015-06-17 15:01 ` Gary Thomas
2015-06-17 15:11 ` Fabio Estevam
2015-06-17 15:22 ` Gary Thomas
2015-06-17 15:12 ` Nikolay Dimitrov
2015-06-17 15:14 ` Otavio Salvador
2015-06-17 15:21 ` Gary Thomas [this message]
2015-06-17 15:24 ` Fabio Estevam
2015-06-17 15:28 ` Gary Thomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55819067.80200@mlbassoc.com \
--to=gary@mlbassoc.com \
--cc=meta-freescale@yoctoproject.org \
--cc=otavio@ossystems.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.