Re: [OE-core] Set the CMake BUILD_TESTING option to OFF as the default setting

2024-06-03 Thread Fabio Berton
Hi Alex,

I ran a few builds disabling CMake DBUILD_TESTING and the build time was about 
the same. I'm not sure if by building plenty of recipes we can see a difference 
in build time, since bitbake needs to build all the recipe dependencies that 
use cmake bbclass.

Looking for some recipes that use ptest, I see examples like this:

- meta/recipes-multimedia/gstreamer/gstreamer1.0_1.24.3.bb: PACKAGECONFIG ??= 
"${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
- meta/recipes-core/glib-networking/glib-networking_2.78.1.bb: PACKAGECONFIG 
??= "gnutls environment ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', 
d)}"
- meta/recipes-support/libnl/libnl_3.9.0.bb: do_compile_ptest to compile only 
when PTEST_ENABLED is enabled
- ... (and several more)
- one interesting one is meta/recipes-devtools/flex/flex_2.6.4.bb: 
${@bb.utils.contains('PTEST_ENABLED', '1', '', 'file://disable-tests.patch', d)}
they decided to apply a patch to disable tests when ptest is off

Based on this, I would say that we don't want to build tests unless ptests are 
enabled (so the argument that building tests also tests the code is moot). In 
turn, it may be sensible to use the default CMake option to disable building of 
tests.

Thanks,

Fabio

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#200240): 
https://lists.openembedded.org/g/openembedded-core/message/200240
Mute This Topic: https://lists.openembedded.org/mt/105688417/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] Set the CMake BUILD_TESTING option to OFF as the default setting

2024-04-24 Thread Fabio Berton

Hi Alex,

What should I test to measure build time, all recipes that use cmake 
from OE-Core and meta-openembedded? Is there a way to build all recipes, 
or should I find all recipes that use cmake and run bitbake ?


Regards,

Fabio Berton

On 4/23/2024 2:01 PM, Alexander Kanavin wrote:

I'm not sure I like the idea. This is going to break ptests or other
usage of CTest in cmake-based recipes that aren't under our control.
Building tests is also a test in itself even if you don't run them.
I'd say unless this adds significantly to build times we should leave
it as it is.

Alex

On Tue, 23 Apr 2024 at 14:31, Fabio Berton via lists.openembedded.org
  wrote:

I've noticed that some recipes, like json-c [1], which use the cmake bbclass, 
are generating files that aren't being used. This is because CMake sets the 
BUILD_TESTING option to ON by default. According to the CMake documentation 
[2], when CTest is included, as json-c does here [3], the module automatically 
creates a BUILD_TESTING option. This option determines whether to enable 
testing support, and it is ON by default.

In the json-c example, the tests used by the do_install_ptest task are always 
generated. Thus, ${B}/tests/ exists even when ptests are not included in 
DISTRO_FEATURES.

As the behavior of CTest/CMake to build tests by default is rather surprising, 
we are wondering whether disabling this option by default is feasible in the 
OpenEmbedded context. Recipes expecting tests to be built (e.g. because of 
ptest support) would then turn on the flag explicitly.

For example, adding this to cmake.bbclass:

OECMAKE_BUILD_TESTING ??= "false"

EXTRA_OECMAKE:append = "\\
 ${@bb.utils.contains('OECMAKE_BUILD_TESTING', 'false', 
'-DBUILD_TESTING=OFF', '', d)} \\
"

and then set the OECMAKE_BUILD_TESTING in the recipe that requires 
BUILD_TESTING=ON

Do you have any suggestions on which steps we should take to verify that this 
does not introduce any regressions?


1 
-https://git.openembedded.org/openembedded-core/tree/meta/recipes-devtools/json-c/json-c_0.17.bb?h=master

2 -https://cmake.org/cmake/help/latest/module/CTest.html

3 -https://github.com/json-c/json-c/blob/master/CMakeLists.txt#L19


Regards,

Fabio Berton





-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#198640): 
https://lists.openembedded.org/g/openembedded-core/message/198640
Mute This Topic: https://lists.openembedded.org/mt/105688417/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] Set the CMake BUILD_TESTING option to OFF as the default setting

2024-04-23 Thread Fabio Berton
I've noticed that some recipes, like json-c [1], which use the cmake 
bbclass, are generating files that aren't being used. This is because 
CMake sets the BUILD_TESTING option to ON by default. According to the 
CMake documentation [2], when CTest is included, as json-c does here 
[3], the module automatically creates a |BUILD_TESTING| option. This 
option determines whether to enable testing support, and it is ON by 
default.


In the json-c example, the tests used by the do_install_ptest task are 
always generated. Thus, ${B}/tests/ exists even when ptests are not 
included in DISTRO_FEATURES.


As the behavior of CTest/CMake to build tests by default is rather 
surprising, we are wondering whether disabling this option by default is 
feasible in the OpenEmbedded context. Recipes expecting tests to be 
built (e.g. because of ptest support) would then turn on the flag 
explicitly.


For example, adding this to cmake.bbclass:

|OECMAKE_BUILD_TESTING ??= "false" EXTRA_OECMAKE:append = "\\ 
${@bb.utils.contains('OECMAKE_BUILD_TESTING', 'false', 
'-DBUILD_TESTING=OFF', '', d)} \\ " |


and then set the OECMAKE_BUILD_TESTING in the recipe that requires 
BUILD_TESTING=ON


Do you have any suggestions on which steps we should take to verify that 
this does not introduce any regressions?



1 - 
https://git.openembedded.org/openembedded-core/tree/meta/recipes-devtools/json-c/json-c_0.17.bb?h=master


2 - https://cmake.org/cmake/help/latest/module/CTest.html

3 - https://github.com/json-c/json-c/blob/master/CMakeLists.txt#L19


Regards,

Fabio Berton

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#198621): 
https://lists.openembedded.org/g/openembedded-core/message/198621
Mute This Topic: https://lists.openembedded.org/mt/105688417/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [kirkstone][PATCH v2] shadow: backport patch to fix CVE-2023-29383

2024-03-06 Thread Fabio Berton

Hi,


The error message is caused because the 
0001-Disable-use-of-syslog-for-sysroot.patch applied to the native 
recipe disables syslog support and the native tool does not recognize 
SYSLOG_SU_ENAB.


On 3/6/2024 12:13 AM, Fabio Berton via lists.openembedded.org wrote:


Hi,

I checked on kirkstone using OE-Core with DISTRO="nodistro" and when 
running bitbake useradd-example I can see this:


configuration error - unknown item 'SYSLOG_SU_ENAB' (notify administrator)
configuration error - unknown item 'SYSLOG_SG_ENAB' (notify administrator)

in the log.do_prepare_recipe_sysroot.

The same happens without CVE-2023-29383.patch and 
0001-Overhaul-valid_field.patch patches. I didn't understand why the 
SYSLOG_SU_ENAB is not supported.


What is the correct approach here, remove SYSLOG_SU_ENAB and 
SYSLOG_SG_ENAB from login.defs_shadow-sysroot?


To use the useradd-example.bb was needed to add this change 
https://lists.openembedded.org/g/openembedded-core/topic/kirkstone_patch/104757004


Thanks

On 2/26/2024 5:14 AM, Pawan Badganchi wrote:

Hi,

Could please help here?






-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#196673): 
https://lists.openembedded.org/g/openembedded-core/message/196673
Mute This Topic: https://lists.openembedded.org/mt/98361235/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [kirkstone][PATCH v2] shadow: backport patch to fix CVE-2023-29383

2024-03-05 Thread Fabio Berton

Hi,

I checked on kirkstone using OE-Core with DISTRO="nodistro" and when 
running bitbake useradd-example I can see this:


configuration error - unknown item 'SYSLOG_SU_ENAB' (notify administrator)
configuration error - unknown item 'SYSLOG_SG_ENAB' (notify administrator)

in the log.do_prepare_recipe_sysroot.

The same happens without CVE-2023-29383.patch and 
0001-Overhaul-valid_field.patch patches. I didn't understand why the 
SYSLOG_SU_ENAB is not supported.


What is the correct approach here, remove SYSLOG_SU_ENAB and 
SYSLOG_SG_ENAB from login.defs_shadow-sysroot?


To use the useradd-example.bb was needed to add this change 
https://lists.openembedded.org/g/openembedded-core/topic/kirkstone_patch/104757004


Thanks

On 2/26/2024 5:14 AM, Pawan Badganchi wrote:

Hi,

Could please help here?




-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#196655): 
https://lists.openembedded.org/g/openembedded-core/message/196655
Mute This Topic: https://lists.openembedded.org/mt/98361235/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [kirkstone][PATCH] useradd-example: do not use unsupported clear text password

2024-03-05 Thread Fabio Berton via lists.openembedded.org
From: Chen Qi 

The clear text password support has been dropped. So let's just
use a normal ecrypted one. The password remains to be 'user3'.

Signed-off-by: Chen Qi 
Signed-off-by: Richard Purdie 
(cherry picked from commit cd8232f9c58980d95180ad320b7b0bb0fcfd9ff5)
Signed-off-by: Fabio Berton 
---
 meta-skeleton/recipes-skeleton/useradd/useradd-example.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-skeleton/recipes-skeleton/useradd/useradd-example.bb 
b/meta-skeleton/recipes-skeleton/useradd/useradd-example.bb
index 3f4c42d714..cff624e2f9 100644
--- a/meta-skeleton/recipes-skeleton/useradd/useradd-example.bb
+++ b/meta-skeleton/recipes-skeleton/useradd/useradd-example.bb
@@ -33,8 +33,8 @@ USERADD_PACKAGES = "${PN} ${PN}-user3"
 USERADD_PARAM:${PN} = "-u 1200 -d /home/user1 -r -s /bin/bash user1; -u 1201 
-d /home/user2 -r -s /bin/bash user2"

 # user3 will be managed in the useradd-example-user3 pacakge:
-# As an example, we use the -P option to set clear text password for user3
-USERADD_PARAM:${PN}-user3 = "-u 1202 -d /home/user3 -r -s /bin/bash -P 'user3' 
user3"
+# As an example, we use the -p option to set password ('user3') for user3
+USERADD_PARAM:${PN}-user3 = "-u 1202 -d /home/user3 -r -s /bin/bash -p 
'\$6\$XAWr.8nc\$bUE4pYYaVb8n6BbnBitU0zeJMtfhTpFpiOBLL9zRl4e4YQo88UU4r/1kjRzmTimCy.BvDh4xoFwVqcO.pihLa1'
 user3"

 # GROUPADD_PARAM works the same way, which you set to the options
 # you'd normally pass to the groupadd command. This will create
--
2.25.1

The information in this communication may contain confidential or legally 
privileged information. It is intended solely for the use of the individual or 
entity it addresses and others authorized to receive it. If you are not an 
intended recipient, you are hereby notified that any disclosure, copying, 
distribution or action in reliance on the contents of this information is 
strictly prohibited and may be unlawful. If you have received this 
communication by error, please notify us immediately by responding to this 
e-mail and then delete it from your system. Critical TechWorks is not liable 
for the proper and complete transmission of the information in this 
communication nor for any delay in its receipt

This e-mail is environmentally friendly, just like Critical TechWorks, which 
lives in a paper-free atmosphere. Therefore, please consider the environment 
before printing it!

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#196653): 
https://lists.openembedded.org/g/openembedded-core/message/196653
Mute This Topic: https://lists.openembedded.org/mt/104757004/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] lib/oe/package_manager: Don't ignore installation failures in install_complementary

2021-06-28 Thread Fabio Berton
When attempt_only flag is set to True all installation failures are
ignored. Disable attempt_only, that is the default in install function,
to raise error in install_complementary and to prevent do_populate_sdk
task to treat errors as warnings.

Signed-off-by: Fabio Berton 
---
 meta/lib/oe/package_manager/__init__.py | 8 +++-
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/meta/lib/oe/package_manager/__init__.py 
b/meta/lib/oe/package_manager/__init__.py
index 4d22bc0296..de5916d7d8 100644
--- a/meta/lib/oe/package_manager/__init__.py
+++ b/meta/lib/oe/package_manager/__init__.py
@@ -344,10 +344,8 @@ class PackageManager(object, metaclass=ABCMeta):
 def install_complementary(self, globs=None):
 """
 Install complementary packages based upon the list of currently 
installed
-packages e.g. locales, *-dev, *-dbg, etc. This will only attempt to 
install
-these packages, if they don't exist then no error will occur.  Note: 
every
-backend needs to call this function explicitly after the normal package
-installation
+packages e.g. locales, *-dev, *-dbg, etc. Note: every backend needs to
+call this function explicitly after the normal package installation.
 """
 if globs is None:
 globs = self.d.getVar('IMAGE_INSTALL_COMPLEMENTARY')
@@ -398,7 +396,7 @@ class PackageManager(object, metaclass=ABCMeta):
 bb.note("Installing complementary packages ... %s (skipped 
already provided packages %s)" % (
 ' '.join(install_pkgs),
 ' '.join(skip_pkgs)))
-self.install(install_pkgs, attempt_only=True)
+self.install(install_pkgs)
 except subprocess.CalledProcessError as e:
 bb.fatal("Could not compute complementary packages list. 
Command "
  "'%s' returned %d:\n%s" %
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#153366): 
https://lists.openembedded.org/g/openembedded-core/message/153366
Mute This Topic: https://lists.openembedded.org/mt/83845520/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] mesa: Update 20.2.1 -> 20.2.4

2020-12-07 Thread Fabio Berton
This commit adds the changes of 20.2.2, 20.2.3 and 20.2.4 bug fix
releases.

Signed-off-by: Fabio Berton 
---
 .../mesa/{mesa-gl_20.2.1.bb => mesa-gl_20.2.4.bb}   | 0
 meta/recipes-graphics/mesa/mesa.inc | 2 +-
 meta/recipes-graphics/mesa/{mesa_20.2.1.bb => mesa_20.2.4.bb}   | 0
 3 files changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-graphics/mesa/{mesa-gl_20.2.1.bb => mesa-gl_20.2.4.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_20.2.1.bb => mesa_20.2.4.bb} (100%)

diff --git a/meta/recipes-graphics/mesa/mesa-gl_20.2.1.bb 
b/meta/recipes-graphics/mesa/mesa-gl_20.2.4.bb
similarity index 100%
rename from meta/recipes-graphics/mesa/mesa-gl_20.2.1.bb
rename to meta/recipes-graphics/mesa/mesa-gl_20.2.4.bb
diff --git a/meta/recipes-graphics/mesa/mesa.inc 
b/meta/recipes-graphics/mesa/mesa.inc
index a6652b0ddb..7956d95fc1 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -25,7 +25,7 @@ SRC_URI = 
"https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \

file://0001-meson-Add-xcb-fixes-to-loader-when-using-x11-and-dri.patch \
"
 
-SRC_URI[sha256sum] = 
"d1a46d9a3f291bc0e0374600bdcb59844fa3eafaa50398e472a36fc65fd0244a"
+SRC_URI[sha256sum] = 
"0572dc6015d2e1c50f67823edd16855ae9b6feded0a1470598404e75e64aa092"
 
 UPSTREAM_CHECK_GITTAGREGEX = "mesa-(?P\d+(\.\d+)+)"
 
diff --git a/meta/recipes-graphics/mesa/mesa_20.2.1.bb 
b/meta/recipes-graphics/mesa/mesa_20.2.4.bb
similarity index 100%
rename from meta/recipes-graphics/mesa/mesa_20.2.1.bb
rename to meta/recipes-graphics/mesa/mesa_20.2.4.bb
-- 
2.29.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#145359): 
https://lists.openembedded.org/g/openembedded-core/message/145359
Mute This Topic: https://lists.openembedded.org/mt/78788315/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] mesa: Upgrade 19.1.6 -> 19.2.1

2019-10-29 Thread Fabio Berton
Hi all!

I didn't change this update because there's another patch here
https://patches.openembedded.org/patch/166248/

Thanks!

On Sat, Oct 26, 2019 at 6:09 AM Khem Raj  wrote:
>
> On Sat, Oct 26, 2019 at 12:27 AM Martin Jansa  wrote:
> >
> > It's not part of this mesa upgrade, but as you're maintaining it and I'll 
> > possibly forget to mention it next time (or if someone is using newest mesa 
> > for whatever reason like pinephone does now)...
> >
> > In latest mesa MESA_EGL_NO_X11_HEADERS was renamed to EGL_NO_X11 in:
> > https://github.com/mesa3d/mesa/commit/6202a13b71e18dc31ba7e2f4ea915b67eacc1ddb
> >
> > which will require do_install_append update in mesa recipe, libepoxy 
> > upgrade or patch and possibly few other fixes like I just did for pinephone 
> > here:
> > https://github.com/webOS-ports/meta-pine64-luneos/commit/a65667ab835647869c2e24cd6ad6a6cec61f
> >
>
> This is a good point I see it being used in few layers that yoe distro uses
>
> meta-96boards/recipes-graphics/mesa/mesa-lima_git.bb
> meta-odroid/recipes-graphics/mali/mali-450_r6p1.bb
> meta-qt5/recipes-qt/qt5/qtmultimedia_git.bb
> meta-wpe/recipes-wpe/wpewebkit/wpewebkit_2.22.bb
> meta-wpe/recipes-wpe/wpewebkit/wpewebkit_20170728.bb
>
>
> > Regards,
> >
> > On Fri, Oct 11, 2019 at 10:20 PM Fabio Berton 
> >  wrote:
> >>
> >>   - Update patches with devtool finish --force-patch-refresh
> >>
> >>   - Update license checksum due to commit d5e273aad2
> >> docs: remove pointless line-break
> >>
> >>   This upgrade include the following changes:
> >>
> >> - Mesa 19.2.1 This is a bug fix release.
> >>   Full log: https://mesa3d.org/relnotes/19.2.1.html
> >>
> >> - Mesa 19.2.0 This is a new development release.
> >>   Full log: https://mesa3d.org/relnotes/19.2.0.html
> >>
> >> - Mesa 19.1.7 is released.
> >>   Full log: https://mesa3d.org/relnotes/19.1.7.html
> >>
> >> - Mesa 19.1.6 is released. This is a bug-fix release.
> >>   Full log: https://mesa3d.org/relnotes/19.1.6.html
> >>
> >> Signed-off-by: Fabio Berton 
> >> ---
> >>  ...k-for-all-linux-host_os-combinations.patch |  9 
> >>  ...on.build-make-TLS-GLX-optional-again.patch | 22 +--
> >>  ...Allow-enable-DRI-without-DRI-drivers.patch |  9 
> >>  .../{mesa-gl_19.1.6.bb => mesa-gl_19.2.1.bb}  |  0
> >>  meta/recipes-graphics/mesa/mesa.inc   |  2 +-
> >>  .../mesa/{mesa_19.1.6.bb => mesa_19.2.1.bb}   |  4 ++--
> >>  6 files changed, 24 insertions(+), 22 deletions(-)
> >>  rename meta/recipes-graphics/mesa/{mesa-gl_19.1.6.bb => 
> >> mesa-gl_19.2.1.bb} (100%)
> >>  rename meta/recipes-graphics/mesa/{mesa_19.1.6.bb => mesa_19.2.1.bb} (85%)
> >>
> >> diff --git 
> >> a/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
> >>  
> >> b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
> >> index 9fba5da4b2..461fc83345 100644
> >> --- 
> >> a/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
> >> +++ 
> >> b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
> >> @@ -1,4 +1,4 @@
> >> -From ea966884e39aae9571c038fab55f3c1663d17850 Mon Sep 17 00:00:00 2001
> >> +From 7ed5b340f4077e616287b6124dfd46cf6a2cab50 Mon Sep 17 00:00:00 2001
> >>  From: Fabio Berton 
> >>  Date: Wed, 12 Jun 2019 13:40:20 -0300
> >>  Subject: [PATCH] meson.build: check for all linux host_os combinations
> >> @@ -14,15 +14,16 @@ Upstream-Status: Pending
> >>  Signed-off-by: Anuj Mittal 
> >>  Signed-off-by: Fabio Berton 
> >>  Signed-off-by: Otavio Salvador 
> >> +
> >>  ---
> >>   meson.build | 4 ++--
> >>   1 file changed, 2 insertions(+), 2 deletions(-)
> >>
> >>  diff --git a/meson.build b/meson.build
> >> -index 567a81afd6f..b33b430aed4 100644
> >> +index db94f85..6f7b0ed 100644
> >>  --- a/meson.build
> >>  +++ b/meson.build
> >> -@@ -107,7 +107,7 @@ with_any_opengl = with_opengl or with_gles1 or 
> >> with_gles2
> >> +@@ -117,7 +117,7 @@ with_any_opengl = with_opengl or with_gles1 or 
> >> with_gles2
> >>   # Only build shared_glapi if at least one OpenGL API is enabled
> >>   with_shared_glapi = get_optio

[OE-core] [PATCH] mesa: Upgrade 19.1.6 -> 19.2.1

2019-10-11 Thread Fabio Berton
  - Update patches with devtool finish --force-patch-refresh

  - Update license checksum due to commit d5e273aad2
docs: remove pointless line-break

  This upgrade include the following changes:

- Mesa 19.2.1 This is a bug fix release.
  Full log: https://mesa3d.org/relnotes/19.2.1.html

- Mesa 19.2.0 This is a new development release.
  Full log: https://mesa3d.org/relnotes/19.2.0.html

- Mesa 19.1.7 is released.
  Full log: https://mesa3d.org/relnotes/19.1.7.html

- Mesa 19.1.6 is released. This is a bug-fix release.
  Full log: https://mesa3d.org/relnotes/19.1.6.html

Signed-off-by: Fabio Berton 
---
 ...k-for-all-linux-host_os-combinations.patch |  9 
 ...on.build-make-TLS-GLX-optional-again.patch | 22 +--
 ...Allow-enable-DRI-without-DRI-drivers.patch |  9 
 .../{mesa-gl_19.1.6.bb => mesa-gl_19.2.1.bb}  |  0
 meta/recipes-graphics/mesa/mesa.inc   |  2 +-
 .../mesa/{mesa_19.1.6.bb => mesa_19.2.1.bb}   |  4 ++--
 6 files changed, 24 insertions(+), 22 deletions(-)
 rename meta/recipes-graphics/mesa/{mesa-gl_19.1.6.bb => mesa-gl_19.2.1.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_19.1.6.bb => mesa_19.2.1.bb} (85%)

diff --git 
a/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
 
b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
index 9fba5da4b2..461fc83345 100644
--- 
a/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
+++ 
b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
@@ -1,4 +1,4 @@
-From ea966884e39aae9571c038fab55f3c1663d17850 Mon Sep 17 00:00:00 2001
+From 7ed5b340f4077e616287b6124dfd46cf6a2cab50 Mon Sep 17 00:00:00 2001
 From: Fabio Berton 
 Date: Wed, 12 Jun 2019 13:40:20 -0300
 Subject: [PATCH] meson.build: check for all linux host_os combinations
@@ -14,15 +14,16 @@ Upstream-Status: Pending
 Signed-off-by: Anuj Mittal 
 Signed-off-by: Fabio Berton 
 Signed-off-by: Otavio Salvador 
+
 ---
  meson.build | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/meson.build b/meson.build
-index 567a81afd6f..b33b430aed4 100644
+index db94f85..6f7b0ed 100644
 --- a/meson.build
 +++ b/meson.build
-@@ -107,7 +107,7 @@ with_any_opengl = with_opengl or with_gles1 or with_gles2
+@@ -117,7 +117,7 @@ with_any_opengl = with_opengl or with_gles1 or with_gles2
  # Only build shared_glapi if at least one OpenGL API is enabled
  with_shared_glapi = get_option('shared-glapi') and with_any_opengl
  
@@ -31,7 +32,7 @@ index 567a81afd6f..b33b430aed4 100644
  
  dri_drivers = get_option('dri-drivers')
  if dri_drivers.contains('auto')
-@@ -845,7 +845,7 @@ if cc.compiles('int foo(void) 
__attribute__((__noreturn__));',
+@@ -856,7 +856,7 @@ if cc.compiles('__uint128_t foo(void) { return 0; }',
  endif
  
  # TODO: this is very incomplete
diff --git 
a/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-GLX-optional-again.patch
 
b/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-GLX-optional-again.patch
index 641bacf1d9..dc232285f0 100644
--- 
a/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-GLX-optional-again.patch
+++ 
b/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-GLX-optional-again.patch
@@ -1,4 +1,4 @@
-From cee8e48c5344124e5d84307cb0c48ee0c9b3e684 Mon Sep 17 00:00:00 2001
+From 78efbf1e2e733097d22ae7c558b8acf866104bec Mon Sep 17 00:00:00 2001
 From: Fabio Berton 
 Date: Wed, 12 Jun 2019 14:15:57 -0300
 Subject: [PATCH] meson.build: make TLS GLX optional again
@@ -12,31 +12,32 @@ Upstream-Status: Pending
 Signed-off-by: Alexander Kanavin 
 Signed-off-by: Fabio Berton 
 Signed-off-by: Otavio Salvador 
+
 ---
- meson.build   | 4 +++-
- meson_options.txt | 7 +++
- 2 files changed, 10 insertions(+), 1 deletion(-)
+ meson.build   | 4 
+ meson_options.txt | 6 ++
+ 2 files changed, 10 insertions(+)
 
 diff --git a/meson.build b/meson.build
-index b33b430aed4..0e50bb26c0a 100644
+index 6f7b0ed..d961748 100644
 --- a/meson.build
 +++ b/meson.build
-@@ -369,7 +369,9 @@ if with_egl and not (with_platform_drm or 
with_platform_surfaceless or with_plat
-   endif
+@@ -382,6 +382,10 @@ if not with_platform_android or 
get_option('platform-sdk-version') >= 29
+   pre_args += '-DUSE_ELF_TLS'
  endif
  
--pre_args += '-DGLX_USE_TLS'
 +if get_option('glx-tls')
 +  pre_args += '-DGLX_USE_TLS'
 +endif
++
  if with_glx != 'disabled'
if not (with_platform_x11 and with_any_opengl)
  error('Cannot build GLX support without X11 platform support and at least 
one OpenGL API')
 diff --git a/meson_options.txt b/meson_options.txt
-index 1f72faabee8..fcd49efea27 100644
+index b768c15..d8a2d49 100644
 --- a/meson_options.txt
 +++ b/meson_options.txt
-@@ -339,6 +339,13 @@ option(
+@@ -333,6 +333,12 @@ option(
value : true,
description : 'Enable direct rendering

Re: [OE-core] [PATCH] mesa: Upgrade 19.1.1 -> 19.1.6

2019-09-12 Thread Fabio Berton
Hi Ross!

On Wed, Sep 11, 2019 at 9:35 AM Ross Burton  wrote:
>
> On 10/09/2019 11:39, Alexander Kanavin wrote:
> > Yes, if STAGING_LIBDIR is set, via this patch:
> > http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/python/python3/0001-distutils-sysconfig-append-STAGING_LIBDIR-python-sys.patch
> >
> > (don't shoot the pianist, it was working like this pre-rewrite as well).
>
> See I knew that but had blocked it out because it's so horrible.
>
> One day we need to sit down with upstream Python and figure out how to
> handle cross-compilation properly.
>
> I finally managed to make my own builds fail (had to turn off Python in
> libxml2) and beat at it to build without a target Python.  Fabio: can
> you try building Mesa with these two patches:

Worked removing python3 from DEPENDS and adding these two patches.

Fabio
>
> http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=ross/mut=5f3559d8bb61212e0f9a6543f2dce2bdf77c48b5
> http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=ross/mut=4f8995aaa2ec557a0603ddc664d929317b0c0b6e
>
> Cheers,
> Ross
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] mesa: Upgrade 19.1.1 -> 19.1.6

2019-09-10 Thread Fabio Berton
Because I was a little confused about find_installation() function,
but your comment above clarifies.

Thanks!

On Tue, Sep 10, 2019 at 11:24 AM Alexander Kanavin
 wrote:
>
> The best way is like in your latest patch - inherit python3native and DEPENDS 
> = "python3". No need for further tweaks, why did you try them?
>
> Alex
>
> On Tue, 10 Sep 2019 at 15:59, Fabio Berton  
> wrote:
>>
>> Adding python3-native doesn't work.
>>
>> Hmm... it seems that adding "export STAGING_LIBDIR =
>> "${STAGING_LIBDIR_NATIVE}"" and removing python3 from DEPENDS worked.
>>
>> Alexander, I don't know what is the best way to do this, maybe you can
>> help here.
>>
>> Thanks!
>>
>> On Tue, Sep 10, 2019 at 7:40 AM Alexander Kanavin
>>  wrote:
>> >
>> > On Tue, 10 Sep 2019 at 11:50, Ross Burton  wrote:
>> >>
>> >> On 09/09/2019 19:41, Alexander Kanavin wrote:
>> >> > and find_installation() method of meson does not merely look for the
>> >> > native python binary, it runs the binary with a meson-supplied python
>> >> > script designed to obtain all sorts of information, including
>> >> > target-specific things that we patch native python to report. If the
>> >> > target python installation is not present in sysroot, the script will
>> >> > fail, and meson will declare that 'there is no valid installation of
>> >> > python on your system'.
>> >>
>> >> So the python3-native pokes around the target python3 to get the right
>> >> values?
>> >
>> >
>> > Yes, if STAGING_LIBDIR is set, via this patch:
>> > http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/python/python3/0001-distutils-sysconfig-append-STAGING_LIBDIR-python-sys.patch
>> >
>> > (don't shoot the pianist, it was working like this pre-rewrite as well).
>> >
>> > Alex
>> > --
>> > ___
>> > Openembedded-core mailing list
>> > Openembedded-core@lists.openembedded.org
>> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] mesa: Upgrade 19.1.1 -> 19.1.6

2019-09-10 Thread Fabio Berton
Adding python3-native doesn't work.

Hmm... it seems that adding "export STAGING_LIBDIR =
"${STAGING_LIBDIR_NATIVE}"" and removing python3 from DEPENDS worked.

Alexander, I don't know what is the best way to do this, maybe you can
help here.

Thanks!

On Tue, Sep 10, 2019 at 7:40 AM Alexander Kanavin
 wrote:
>
> On Tue, 10 Sep 2019 at 11:50, Ross Burton  wrote:
>>
>> On 09/09/2019 19:41, Alexander Kanavin wrote:
>> > and find_installation() method of meson does not merely look for the
>> > native python binary, it runs the binary with a meson-supplied python
>> > script designed to obtain all sorts of information, including
>> > target-specific things that we patch native python to report. If the
>> > target python installation is not present in sysroot, the script will
>> > fail, and meson will declare that 'there is no valid installation of
>> > python on your system'.
>>
>> So the python3-native pokes around the target python3 to get the right
>> values?
>
>
> Yes, if STAGING_LIBDIR is set, via this patch:
> http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-devtools/python/python3/0001-distutils-sysconfig-append-STAGING_LIBDIR-python-sys.patch
>
> (don't shoot the pianist, it was working like this pre-rewrite as well).
>
> Alex
> --
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] mesa: Upgrade 19.1.1 -> 19.1.6

2019-09-09 Thread Fabio Berton
Hi Alexander!

I sent a v2 with python3 in depends and dropped the patch.

Thanks!

On Fri, Sep 6, 2019 at 5:33 PM Alexander Kanavin  wrote:
>
> On Fri, 6 Sep 2019 at 22:12, Otavio Salvador 
>  wrote:
>>
>> > As I had previously suggested... can you try adding 'python3' to DEPENDS 
>> > of mesa, and see if that helps please? I think that would allow avoiding 
>> > this patch altogether.
>>
>> Why a new build dependency if this works just fine?
>
>
> 1. Less patches is always better than more patches, especially if they are 
> non-upstreamable.
>
> 2. The patch reverts to something that meson has deprecated and will likely 
> remove in the future.
> https://github.com/mesonbuild/meson/blob/master/docs/markdown/Python-3-module.md
>
> 3. Meson's currently supported way of detecting python does in fact rely on 
> python's target configuration being available, as it picks up settings from 
> it. I had fixed a similar issue elsewhere recently.
>
> Alex
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [OE-Core][PATCH v2] mesa: Upgrade 19.1.1 -> 19.1.6

2019-09-09 Thread Fabio Berton
From: Otavio Salvador 

  - Add python3 to DEPENDS: mesa commit cb3072488c changed function
that verifies python installation and to this new function works
we need to have Python3 in DEPENDS.

This is a bugfix only set of releases. Check following links for the
relevant release notes:

  - https://www.mesa3d.org/relnotes/19.1.2.html
  - https://www.mesa3d.org/relnotes/19.1.3.html
  - https://www.mesa3d.org/relnotes/19.1.4.html
  - https://www.mesa3d.org/relnotes/19.1.5.html
  - https://www.mesa3d.org/relnotes/19.1.6.html

Signed-off-by: Otavio Salvador 
Signed-off-by: Fabio Berton 
---
 ...k-for-all-linux-host_os-combinations.patch | 37 +++
 ...on.build-make-TLS-GLX-optional-again.patch | 12 +++---
 ...Allow-enable-DRI-without-DRI-drivers.patch | 10 ++---
 .../{mesa-gl_19.1.1.bb => mesa-gl_19.1.6.bb}  |  0
 meta/recipes-graphics/mesa/mesa.inc   |  2 +-
 .../mesa/{mesa_19.1.1.bb => mesa_19.1.6.bb}   |  4 +-
 6 files changed, 25 insertions(+), 40 deletions(-)
 rename meta/recipes-graphics/mesa/{mesa-gl_19.1.1.bb => mesa-gl_19.1.6.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_19.1.1.bb => mesa_19.1.6.bb} (85%)

diff --git 
a/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
 
b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
index 0064dc643c..9fba5da4b2 100644
--- 
a/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
+++ 
b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
@@ -1,7 +1,7 @@
-From da6b9188f29942684d4262f0c6264d09bb6fe7de Mon Sep 17 00:00:00 2001
+From ea966884e39aae9571c038fab55f3c1663d17850 Mon Sep 17 00:00:00 2001
 From: Fabio Berton 
 Date: Wed, 12 Jun 2019 13:40:20 -0300
-Subject: [PATCH 1/3] meson.build: check for all linux host_os combinations
+Subject: [PATCH] meson.build: check for all linux host_os combinations
 Organization: O.S. Systems Software LTDA.
 
 Make sure that we are also looking for our host_os combinations like
@@ -13,41 +13,30 @@ Upstream-Status: Pending
 
 Signed-off-by: Anuj Mittal 
 Signed-off-by: Fabio Berton 
+Signed-off-by: Otavio Salvador 
 ---
- meson.build | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
+ meson.build | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/meson.build b/meson.build
-index 8ab8a550f56..e11880f2902 100644
+index 567a81afd6f..b33b430aed4 100644
 --- a/meson.build
 +++ b/meson.build
-@@ -34,6 +34,8 @@ cpp = meson.get_compiler('cpp')
- 
- null_dep = dependency('', required : false)
- 
-+system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 
'dragonfly'].contains(host_machine.system()) or 
host_machine.system().startswith('linux')
-+
- # Arguments for the preprocessor, put these in a separate array from the C and
- # C++ (cpp in meson terminology) arguments since they need to be added to the
- # default arguments for both C and C++.
-@@ -107,8 +109,6 @@ with_any_opengl = with_opengl or with_gles1 or with_gles2
+@@ -107,7 +107,7 @@ with_any_opengl = with_opengl or with_gles1 or with_gles2
  # Only build shared_glapi if at least one OpenGL API is enabled
  with_shared_glapi = get_option('shared-glapi') and with_any_opengl
  
--system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'dragonfly', 
'linux'].contains(host_machine.system())
--
+-system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'gnu/kfreebsd', 
'dragonfly', 'linux'].contains(host_machine.system())
++system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 
'dragonfly'].contains(host_machine.system()) or 
host_machine.system().startswith('linux')
+ 
  dri_drivers = get_option('dri-drivers')
  if dri_drivers.contains('auto')
-   if system_has_kms_drm
-@@ -836,7 +836,7 @@ if cc.compiles('int foo(void) 
__attribute__((__noreturn__));',
+@@ -845,7 +845,7 @@ if cc.compiles('int foo(void) 
__attribute__((__noreturn__));',
  endif
  
  # TODO: this is very incomplete
--if ['linux', 'cygwin', 'gnu'].contains(host_machine.system())
-+if ['cygwin', 'gnu'].contains(host_machine.system()) or 
host_machine.system().startswith('linux')
+-if ['linux', 'cygwin', 'gnu', 'gnu/kfreebsd'].contains(host_machine.system())
++if ['cygwin', 'gnu', 'gnu/kfreebsd'].contains(host_machine.system()) or 
host_machine.system().startswith('linux')
pre_args += '-D_GNU_SOURCE'
  endif
  
--- 
-2.22.0
-
diff --git 
a/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-GLX-optional-again.patch
 
b/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-GLX-optional-again.patch
index 81454aaa29..641bacf1d9 100644
--- 
a/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-GLX-optional-again.patch
+++ 
b/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-GLX-optional-again.patch
@@ -1,7 +1,7 @@
-From d31718999797ffc4dd177d14760ef7b8fd95ac2f Mon Sep 17 00:00:00 2001
+From cee8e48c5344124e5d84307cb0c48ee0c9b3e684 Mon Sep

[OE-core] [PATCH] mesa: Upgrade 19.1.1 -> 19.1.6

2019-09-06 Thread Fabio Berton
From: Otavio Salvador 

This is a bugfix only set of releases. Check following links for the
relevant release notes:

  - https://www.mesa3d.org/relnotes/19.1.2.html
  - https://www.mesa3d.org/relnotes/19.1.3.html
  - https://www.mesa3d.org/relnotes/19.1.4.html
  - https://www.mesa3d.org/relnotes/19.1.5.html
  - https://www.mesa3d.org/relnotes/19.1.6.html

Signed-off-by: Otavio Salvador 
Signed-off-by: Fabio Berton 
---
 ...k-for-all-linux-host_os-combinations.patch | 37 ++-
 ...on.build-make-TLS-GLX-optional-again.patch | 12 ++---
 ...Allow-enable-DRI-without-DRI-drivers.patch | 10 ++--
 ...rove-detection-of-Python-when-using-.patch | 46 +++
 .../{mesa-gl_19.1.1.bb => mesa-gl_19.1.6.bb}  |  0
 .../mesa/{mesa_19.1.1.bb => mesa_19.1.6.bb}   |  5 +-
 6 files changed, 71 insertions(+), 39 deletions(-)
 create mode 100644 
meta/recipes-graphics/mesa/files/0004-Revert-meson-Improve-detection-of-Python-when-using-.patch
 rename meta/recipes-graphics/mesa/{mesa-gl_19.1.1.bb => mesa-gl_19.1.6.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_19.1.1.bb => mesa_19.1.6.bb} (78%)

diff --git 
a/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
 
b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
index 0064dc643c..9fba5da4b2 100644
--- 
a/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
+++ 
b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
@@ -1,7 +1,7 @@
-From da6b9188f29942684d4262f0c6264d09bb6fe7de Mon Sep 17 00:00:00 2001
+From ea966884e39aae9571c038fab55f3c1663d17850 Mon Sep 17 00:00:00 2001
 From: Fabio Berton 
 Date: Wed, 12 Jun 2019 13:40:20 -0300
-Subject: [PATCH 1/3] meson.build: check for all linux host_os combinations
+Subject: [PATCH] meson.build: check for all linux host_os combinations
 Organization: O.S. Systems Software LTDA.
 
 Make sure that we are also looking for our host_os combinations like
@@ -13,41 +13,30 @@ Upstream-Status: Pending
 
 Signed-off-by: Anuj Mittal 
 Signed-off-by: Fabio Berton 
+Signed-off-by: Otavio Salvador 
 ---
- meson.build | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
+ meson.build | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/meson.build b/meson.build
-index 8ab8a550f56..e11880f2902 100644
+index 567a81afd6f..b33b430aed4 100644
 --- a/meson.build
 +++ b/meson.build
-@@ -34,6 +34,8 @@ cpp = meson.get_compiler('cpp')
- 
- null_dep = dependency('', required : false)
- 
-+system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 
'dragonfly'].contains(host_machine.system()) or 
host_machine.system().startswith('linux')
-+
- # Arguments for the preprocessor, put these in a separate array from the C and
- # C++ (cpp in meson terminology) arguments since they need to be added to the
- # default arguments for both C and C++.
-@@ -107,8 +109,6 @@ with_any_opengl = with_opengl or with_gles1 or with_gles2
+@@ -107,7 +107,7 @@ with_any_opengl = with_opengl or with_gles1 or with_gles2
  # Only build shared_glapi if at least one OpenGL API is enabled
  with_shared_glapi = get_option('shared-glapi') and with_any_opengl
  
--system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'dragonfly', 
'linux'].contains(host_machine.system())
--
+-system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'gnu/kfreebsd', 
'dragonfly', 'linux'].contains(host_machine.system())
++system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 
'dragonfly'].contains(host_machine.system()) or 
host_machine.system().startswith('linux')
+ 
  dri_drivers = get_option('dri-drivers')
  if dri_drivers.contains('auto')
-   if system_has_kms_drm
-@@ -836,7 +836,7 @@ if cc.compiles('int foo(void) 
__attribute__((__noreturn__));',
+@@ -845,7 +845,7 @@ if cc.compiles('int foo(void) 
__attribute__((__noreturn__));',
  endif
  
  # TODO: this is very incomplete
--if ['linux', 'cygwin', 'gnu'].contains(host_machine.system())
-+if ['cygwin', 'gnu'].contains(host_machine.system()) or 
host_machine.system().startswith('linux')
+-if ['linux', 'cygwin', 'gnu', 'gnu/kfreebsd'].contains(host_machine.system())
++if ['cygwin', 'gnu', 'gnu/kfreebsd'].contains(host_machine.system()) or 
host_machine.system().startswith('linux')
pre_args += '-D_GNU_SOURCE'
  endif
  
--- 
-2.22.0
-
diff --git 
a/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-GLX-optional-again.patch
 
b/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-GLX-optional-again.patch
index 81454aaa29..641bacf1d9 100644
--- 
a/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-GLX-optional-again.patch
+++ 
b/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-GLX-optional-again.patch
@@ -1,7 +1,7 @@
-From d31718999797ffc4dd177d14760ef7b8fd95ac2f Mon Sep 17 00:00:00 2001
+From cee8e48c5344124e5d84307cb0c48ee0c9b3e684 Mon Sep 17 00:00:00 2001
 From: Fabio Berton 
 Date: Wed,

Re: [OE-core] [OE-Core][warrior][PATCH] rng-tools: start rngd early in the boot process again

2019-08-23 Thread Fabio Berton
Without this change, images with systemd hang on shutdown/reboot.

On Fri, Aug 23, 2019 at 1:39 PM Fabio Berton
 wrote:
>
> From: "Bedel, Alban" 
>
> It do make sense to start rngd early in the boot process because
> otherwise we would need to track every service that might need entropy
> and explicitly configure it to start after rngd.
>
> When used with systemd rngd blocked the shutdown process because it
> simply missed the proper unit configuration. As the systemd
> documentation explains, when using DefaultDependencies=no one also
> have to explicitly configure the unit to properly stop at some point.
> This is normaly achieved by having Before=shutdown.target and
> Conflicts=shutdown.target set for the unit.
>
> To have rngd started early again we reverte the changes done to
> rngd.service in commit edf7606822 (rng-tools: fix rngd blocks system
> shutdown). To have it properly stopped on shutdown we also add
> Before=shutdown.target and Conflicts=shutdown.target.
>
> Signed-off-by: Alban Bedel 
> Signed-off-by: Richard Purdie 
> (cherry picked from commit a74e7df33e2c8ab2152e3217c0a5df3f65971713)
> ---
>  meta/recipes-support/rng-tools/rng-tools/rngd.service | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-support/rng-tools/rng-tools/rngd.service 
> b/meta/recipes-support/rng-tools/rng-tools/rngd.service
> index f0355db14fc..5c8253b5fba 100644
> --- a/meta/recipes-support/rng-tools/rng-tools/rngd.service
> +++ b/meta/recipes-support/rng-tools/rng-tools/rngd.service
> @@ -2,7 +2,8 @@
>  Description=Hardware RNG Entropy Gatherer Daemon
>  DefaultDependencies=no
>  After=systemd-udev-settle.service
> -Before=sysinit.target
> +Before=sysinit.target shutdown.target
> +Conflicts=shutdown.target
>
>  [Service]
>  ExecStart=@SBINDIR@/rngd -f -r /dev/hwrng
> --
> 2.20.1
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [OE-Core][warrior][PATCH] rng-tools: start rngd early in the boot process again

2019-08-23 Thread Fabio Berton
From: "Bedel, Alban" 

It do make sense to start rngd early in the boot process because
otherwise we would need to track every service that might need entropy
and explicitly configure it to start after rngd.

When used with systemd rngd blocked the shutdown process because it
simply missed the proper unit configuration. As the systemd
documentation explains, when using DefaultDependencies=no one also
have to explicitly configure the unit to properly stop at some point.
This is normaly achieved by having Before=shutdown.target and
Conflicts=shutdown.target set for the unit.

To have rngd started early again we reverte the changes done to
rngd.service in commit edf7606822 (rng-tools: fix rngd blocks system
shutdown). To have it properly stopped on shutdown we also add
Before=shutdown.target and Conflicts=shutdown.target.

Signed-off-by: Alban Bedel 
Signed-off-by: Richard Purdie 
(cherry picked from commit a74e7df33e2c8ab2152e3217c0a5df3f65971713)
---
 meta/recipes-support/rng-tools/rng-tools/rngd.service | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-support/rng-tools/rng-tools/rngd.service 
b/meta/recipes-support/rng-tools/rng-tools/rngd.service
index f0355db14fc..5c8253b5fba 100644
--- a/meta/recipes-support/rng-tools/rng-tools/rngd.service
+++ b/meta/recipes-support/rng-tools/rng-tools/rngd.service
@@ -2,7 +2,8 @@
 Description=Hardware RNG Entropy Gatherer Daemon
 DefaultDependencies=no
 After=systemd-udev-settle.service
-Before=sysinit.target
+Before=sysinit.target shutdown.target
+Conflicts=shutdown.target
 
 [Service]
 ExecStart=@SBINDIR@/rngd -f -r /dev/hwrng
-- 
2.20.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [warrior][PATCH] mesa: Update 19.0.1 -> 19.0.8

2019-06-27 Thread Fabio Berton
This commit adds the following changes:

Updates from 19.0.8:

  - Mesa 19.0.8 is an emergency bug fix release which fixes a critical
bug found in the 19.0.7 release.

  Full log:
  https://www.mesa3d.org/relnotes/19.0.8.html

Updates from 19.0.7:

  - Mesa 19.0.7 is a bug fix release which fixes bugs found since the
19.0.6 release.

  Full log:
  https://www.mesa3d.org/relnotes/19.0.7.html

Updates from 19.0.6:

  - Mesa 19.0.6 is a bug fix release which fixes bugs found since the
19.0.5 release.

  Full log:
  https://www.mesa3d.org/relnotes/19.0.6.html

Updates from 19.0.5:

  - Mesa 19.0.5 is a bug fix release which fixes bugs found since the
19.0.4 release.

  Full log:
  https://www.mesa3d.org/relnotes/19.0.5.html

Updates from 19.0.4:

  - Mesa 19.0.4 is a bug fix release which fixes bugs found since the
19.0.3 release.

  Full log:
  https://www.mesa3d.org/relnotes/19.0.4.html

Updates from 19.0.3:

  - Mesa 19.0.3 is a bug fix release which fixes bugs found since the
19.0.2 release.

  Full log:
  https://www.mesa3d.org/relnotes/19.0.3.html

Updates from 19.0.2:

  - Mesa 19.0.2 is a bug fix release which fixes bugs found since the
19.0.1 release.

  Full log:
  https://www.mesa3d.org/relnotes/19.0.2.html

Signed-off-by: Fabio Berton 
---
 .../mesa/{mesa-gl_19.0.1.bb => mesa-gl_19.0.8.bb} | 0
 meta/recipes-graphics/mesa/{mesa_19.0.1.bb => mesa_19.0.8.bb} | 4 ++--
 2 files changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-graphics/mesa/{mesa-gl_19.0.1.bb => mesa-gl_19.0.8.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_19.0.1.bb => mesa_19.0.8.bb} (85%)

diff --git a/meta/recipes-graphics/mesa/mesa-gl_19.0.1.bb 
b/meta/recipes-graphics/mesa/mesa-gl_19.0.8.bb
similarity index 100%
rename from meta/recipes-graphics/mesa/mesa-gl_19.0.1.bb
rename to meta/recipes-graphics/mesa/mesa-gl_19.0.8.bb
diff --git a/meta/recipes-graphics/mesa/mesa_19.0.1.bb 
b/meta/recipes-graphics/mesa/mesa_19.0.8.bb
similarity index 85%
rename from meta/recipes-graphics/mesa/mesa_19.0.1.bb
rename to meta/recipes-graphics/mesa/mesa_19.0.8.bb
index d90be8a074..8cb80b541e 100644
--- a/meta/recipes-graphics/mesa/mesa_19.0.1.bb
+++ b/meta/recipes-graphics/mesa/mesa_19.0.8.bb
@@ -7,8 +7,8 @@ SRC_URI = 
"https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \

file://0004-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch \
 "
 
-SRC_URI[md5sum] = "19636bb3da35c21f43040d31e575d5ce"
-SRC_URI[sha256sum] = 
"6884163c0ea9e4c98378ab8fecd72fe7b5f437713a14471beda378df247999d4"
+SRC_URI[md5sum] = "9634964d87f1ce8d0230493e43f34c50"
+SRC_URI[sha256sum] = 
"d017eb53a810c32dabeedf6ca2238ae1e897ce9090e470e9ce1d6c9e3f1b0862"
 
 #because we cannot rely on the fact that all apps will use pkgconfig,
 #make eglplatform.h independent of MESA_EGL_NO_X11_HEADER
-- 
2.20.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] mesa: Update 19.1.0 -> 19.1.1

2019-06-25 Thread Fabio Berton
Mesa 19.1.1 is a bug fix release which fixes bugs found since the
19.1.0 release.

For a complete changelog see:
https://www.mesa3d.org/relnotes/19.1.1.html

Signed-off-by: Fabio Berton 
---
 .../mesa/{mesa-gl_19.1.0.bb => mesa-gl_19.1.1.bb} | 0
 meta/recipes-graphics/mesa/{mesa_19.1.0.bb => mesa_19.1.1.bb} | 4 ++--
 2 files changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-graphics/mesa/{mesa-gl_19.1.0.bb => mesa-gl_19.1.1.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_19.1.0.bb => mesa_19.1.1.bb} (84%)

diff --git a/meta/recipes-graphics/mesa/mesa-gl_19.1.0.bb 
b/meta/recipes-graphics/mesa/mesa-gl_19.1.1.bb
similarity index 100%
rename from meta/recipes-graphics/mesa/mesa-gl_19.1.0.bb
rename to meta/recipes-graphics/mesa/mesa-gl_19.1.1.bb
diff --git a/meta/recipes-graphics/mesa/mesa_19.1.0.bb 
b/meta/recipes-graphics/mesa/mesa_19.1.1.bb
similarity index 84%
rename from meta/recipes-graphics/mesa/mesa_19.1.0.bb
rename to meta/recipes-graphics/mesa/mesa_19.1.1.bb
index 05c315349c..1a34a6577b 100644
--- a/meta/recipes-graphics/mesa/mesa_19.1.0.bb
+++ b/meta/recipes-graphics/mesa/mesa_19.1.1.bb
@@ -6,8 +6,8 @@ SRC_URI = 
"https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \
file://0003-Allow-enable-DRI-without-DRI-drivers.patch \
"
 
-SRC_URI[md5sum] = "090cd351cf938fc1729dee983520216a"
-SRC_URI[sha256sum] = 
"2a6c3af3a803389183168e449c536304cf03e0f82c4c9333077933543b9d02f3"
+SRC_URI[md5sum] = "07cd8cd79de28ec1a374ee3a06e47789"
+SRC_URI[sha256sum] = 
"72114b16b4a84373b2acda060fe2bb1d45ea2598efab3ef2d44bdeda74f15581"
 
 #because we cannot rely on the fact that all apps will use pkgconfig,
 #make eglplatform.h independent of MESA_EGL_NO_X11_HEADER
-- 
2.20.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] mesa: Update 19.0.6 -> 19.1.0

2019-06-12 Thread Fabio Berton
Update all patches to apply on 19.1.0 version.

See full mesa 19.0.1 changes here:
  - https://www.mesa3d.org/relnotes/19.1.0.html

Signed-off-by: Fabio Berton 
---
 ...k-for-all-linux-host_os-combinations.patch | 25 
 ...n.build-make-TLS-GLX-optional-again.patch} | 30 ---
 ...llow-enable-DRI-without-DRI-drivers.patch} | 29 ++
 .../{mesa-gl_19.0.6.bb => mesa-gl_19.1.0.bb}  |  0
 .../mesa/{mesa_19.0.6.bb => mesa_19.1.0.bb}   |  8 ++---
 5 files changed, 53 insertions(+), 39 deletions(-)
 rename 
meta/recipes-graphics/mesa/files/{0001-meson.build-make-TLS-GLX-optional-again.patch
 => 0002-meson.build-make-TLS-GLX-optional-again.patch} (58%)
 rename 
meta/recipes-graphics/mesa/files/{0001-Allow-enable-DRI-without-DRI-drivers.patch
 => 0003-Allow-enable-DRI-without-DRI-drivers.patch} (50%)
 rename meta/recipes-graphics/mesa/{mesa-gl_19.0.6.bb => mesa-gl_19.1.0.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_19.0.6.bb => mesa_19.1.0.bb} (70%)

diff --git 
a/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
 
b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
index dfc67b83d9..0064dc643c 100644
--- 
a/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
+++ 
b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
@@ -1,7 +1,7 @@
-From 498f230c9446fc7a1b4dc77ff6b84ee1a3b53bf4 Mon Sep 17 00:00:00 2001
+From da6b9188f29942684d4262f0c6264d09bb6fe7de Mon Sep 17 00:00:00 2001
 From: Fabio Berton 
-Date: Wed, 24 Apr 2019 17:01:24 -0300
-Subject: [PATCH] meson.build: check for all linux host_os combinations
+Date: Wed, 12 Jun 2019 13:40:20 -0300
+Subject: [PATCH 1/3] meson.build: check for all linux host_os combinations
 Organization: O.S. Systems Software LTDA.
 
 Make sure that we are also looking for our host_os combinations like
@@ -9,15 +9,16 @@ linux-musl etc. when assuming support for DRM/KMS.
 
 Also delete a duplicate line.
 
+Upstream-Status: Pending
+
 Signed-off-by: Anuj Mittal 
 Signed-off-by: Fabio Berton 
-Upstream-Status: Pending
 ---
  meson.build | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
 
 diff --git a/meson.build b/meson.build
-index 53d02e31097..c41f6b4e402 100644
+index 8ab8a550f56..e11880f2902 100644
 --- a/meson.build
 +++ b/meson.build
 @@ -34,6 +34,8 @@ cpp = meson.get_compiler('cpp')
@@ -29,16 +30,16 @@ index 53d02e31097..c41f6b4e402 100644
  # Arguments for the preprocessor, put these in a separate array from the C and
  # C++ (cpp in meson terminology) arguments since they need to be added to the
  # default arguments for both C and C++.
-@@ -89,8 +91,6 @@ if (with_gles1 or with_gles2) and not with_opengl
-   error('building OpenGL ES without OpenGL is not supported.')
- endif
+@@ -107,8 +109,6 @@ with_any_opengl = with_opengl or with_gles1 or with_gles2
+ # Only build shared_glapi if at least one OpenGL API is enabled
+ with_shared_glapi = get_option('shared-glapi') and with_any_opengl
  
 -system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'dragonfly', 
'linux'].contains(host_machine.system())
 -
- _drivers = get_option('dri-drivers')
- if _drivers.contains('auto')
+ dri_drivers = get_option('dri-drivers')
+ if dri_drivers.contains('auto')
if system_has_kms_drm
-@@ -792,7 +792,7 @@ if cc.compiles('int foo(void) 
__attribute__((__noreturn__));',
+@@ -836,7 +836,7 @@ if cc.compiles('int foo(void) 
__attribute__((__noreturn__));',
  endif
  
  # TODO: this is very incomplete
@@ -48,5 +49,5 @@ index 53d02e31097..c41f6b4e402 100644
  endif
  
 -- 
-2.21.0
+2.22.0
 
diff --git 
a/meta/recipes-graphics/mesa/files/0001-meson.build-make-TLS-GLX-optional-again.patch
 
b/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-GLX-optional-again.patch
similarity index 58%
rename from 
meta/recipes-graphics/mesa/files/0001-meson.build-make-TLS-GLX-optional-again.patch
rename to 
meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-GLX-optional-again.patch
index 8fabafcb35..81454aaa29 100644
--- 
a/meta/recipes-graphics/mesa/files/0001-meson.build-make-TLS-GLX-optional-again.patch
+++ 
b/meta/recipes-graphics/mesa/files/0002-meson.build-make-TLS-GLX-optional-again.patch
@@ -1,23 +1,26 @@
-From 48318f1a5c9042a8e1bb4456c2584362b25c4a59 Mon Sep 17 00:00:00 2001
-From: Alexander Kanavin 
-Date: Wed, 15 May 2019 17:21:51 +0200
-Subject: [PATCH] meson.build: make TLS GLX optional again
+From d31718999797ffc4dd177d14760ef7b8fd95ac2f Mon Sep 17 00:00:00 2001
+From: Fabio Berton 
+Date: Wed, 12 Jun 2019 14:15:57 -0300
+Subject: [PATCH 2/3] meson.build: make TLS GLX optional again
+Organization: O.S. Systems Software LTDA.
 
 This was optional with autotools, and needs to be disabled
 when using musl C library, for instance.
 
 Upstream-Status: Pending
+
 Signed-off-by: Alexander Kanavin 
+Signed-off-by: Fabio Berton 
 ---
  mes

[OE-core] [PATCH] mesa: Update 19.0.5 -> 19.0.6

2019-06-07 Thread Fabio Berton
Mesa 19.0.6 is a bug fix release which fixes bugs found since the
19.0.5 release.

For full log see:
  - https://www.mesa3d.org/relnotes/19.0.6.html

Signed-off-by: Fabio Berton 
---
 .../mesa/{mesa-gl_19.0.5.bb => mesa-gl_19.0.6.bb} | 0
 meta/recipes-graphics/mesa/{mesa_19.0.5.bb => mesa_19.0.6.bb} | 4 ++--
 2 files changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-graphics/mesa/{mesa-gl_19.0.5.bb => mesa-gl_19.0.6.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_19.0.5.bb => mesa_19.0.6.bb} (84%)

diff --git a/meta/recipes-graphics/mesa/mesa-gl_19.0.5.bb 
b/meta/recipes-graphics/mesa/mesa-gl_19.0.6.bb
similarity index 100%
rename from meta/recipes-graphics/mesa/mesa-gl_19.0.5.bb
rename to meta/recipes-graphics/mesa/mesa-gl_19.0.6.bb
diff --git a/meta/recipes-graphics/mesa/mesa_19.0.5.bb 
b/meta/recipes-graphics/mesa/mesa_19.0.6.bb
similarity index 84%
rename from meta/recipes-graphics/mesa/mesa_19.0.5.bb
rename to meta/recipes-graphics/mesa/mesa_19.0.6.bb
index 51cba4e47c..02e2c86dde 100644
--- a/meta/recipes-graphics/mesa/mesa_19.0.5.bb
+++ b/meta/recipes-graphics/mesa/mesa_19.0.6.bb
@@ -6,8 +6,8 @@ SRC_URI = 
"https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \
file://0001-Allow-enable-DRI-without-DRI-drivers.patch \
"
 
-SRC_URI[md5sum] = "1509a3251d459fd8b6fadf9329669dc1"
-SRC_URI[sha256sum] = 
"6aecb7f67c136768692fb3c33a54196186c6c4fcafab7973516a355e1a54f831"
+SRC_URI[md5sum] = "b97159690eba564311d88a818bdbd64d"
+SRC_URI[sha256sum] = 
"2db2f2fcaa4048b16e066fad76b8a93944f7d06d329972b0f5fd5ce692ce3d24"
 
 #because we cannot rely on the fact that all apps will use pkgconfig,
 #make eglplatform.h independent of MESA_EGL_NO_X11_HEADER
-- 
2.20.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] mesa: Update 19.0.3 -> 19.0.5

2019-05-31 Thread Fabio Berton
Mesa 19.0.5 is a bug fix release which fixes bugs found since the
19.0.3 release.

For full log see:
 - https://www.mesa3d.org/relnotes/19.0.5.html
 - https://www.mesa3d.org/relnotes/19.0.4.html

Signed-off-by: Fabio Berton 
---
 .../mesa/{mesa-gl_19.0.3.bb => mesa-gl_19.0.5.bb} | 0
 meta/recipes-graphics/mesa/{mesa_19.0.3.bb => mesa_19.0.5.bb} | 4 ++--
 2 files changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-graphics/mesa/{mesa-gl_19.0.3.bb => mesa-gl_19.0.5.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_19.0.3.bb => mesa_19.0.5.bb} (84%)

diff --git a/meta/recipes-graphics/mesa/mesa-gl_19.0.3.bb 
b/meta/recipes-graphics/mesa/mesa-gl_19.0.5.bb
similarity index 100%
rename from meta/recipes-graphics/mesa/mesa-gl_19.0.3.bb
rename to meta/recipes-graphics/mesa/mesa-gl_19.0.5.bb
diff --git a/meta/recipes-graphics/mesa/mesa_19.0.3.bb 
b/meta/recipes-graphics/mesa/mesa_19.0.5.bb
similarity index 84%
rename from meta/recipes-graphics/mesa/mesa_19.0.3.bb
rename to meta/recipes-graphics/mesa/mesa_19.0.5.bb
index 8a72df1014..51cba4e47c 100644
--- a/meta/recipes-graphics/mesa/mesa_19.0.3.bb
+++ b/meta/recipes-graphics/mesa/mesa_19.0.5.bb
@@ -6,8 +6,8 @@ SRC_URI = 
"https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \
file://0001-Allow-enable-DRI-without-DRI-drivers.patch \
"
 
-SRC_URI[md5sum] = "d03bf14e42c0e54ebae5730712ccc408"
-SRC_URI[sha256sum] = 
"f027244e38dc309a4c12db45ef79be81ab62c797a50a88d566e4edb6159fc4d5"
+SRC_URI[md5sum] = "1509a3251d459fd8b6fadf9329669dc1"
+SRC_URI[sha256sum] = 
"6aecb7f67c136768692fb3c33a54196186c6c4fcafab7973516a355e1a54f831"
 
 #because we cannot rely on the fact that all apps will use pkgconfig,
 #make eglplatform.h independent of MESA_EGL_NO_X11_HEADER
-- 
2.20.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [RFC,v5] mesa: Convert recipe to use meson build system

2019-04-25 Thread Fabio Berton
  - Remove all non related meson patches
  - Change radeon driver to r100
  - Add python3-mako-native gettext-native to DEPENDS

Based on https://patchwork.openembedded.org/patch/158748/

Signed-off-by: Fabio Berton 
---
 ...0001-Simplify-wayland-scanner-lookup.patch | 44 --
 ...k-for-all-linux-host_os-combinations.patch | 51 
 ...-winsys-svga-drm-Include-sys-types.h.patch | 35 ---
 ...M-version-when-using-LLVM-Git-releas.patch | 45 --
 ...R-for-defining-WAYLAND_PROTOCOLS_DAT.patch | 38 
 meta/recipes-graphics/mesa/mesa.inc   | 60 +--
 meta/recipes-graphics/mesa/mesa_19.0.3.bb |  5 +-
 7 files changed, 79 insertions(+), 199 deletions(-)
 delete mode 100644 
meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
 create mode 100644 
meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0003-Properly-get-LLVM-version-when-using-LLVM-Git-releas.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0004-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch

diff --git 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch 
b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
deleted file mode 100644
index d065e2285c..00
--- 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-From e53837ad7b01364f34a533b95f4817c1795789de Mon Sep 17 00:00:00 2001
-From: Fabio Berton 
-Date: Wed, 20 Feb 2019 16:17:00 -0300
-Subject: [PATCH 1/4] Simplify wayland-scanner lookup
-Organization: O.S. Systems Software LTDA.
-
-Don't use pkg-config to lookup the path of a binary that's in the path.
-
-Alternatively we'd have to prefix the path returned by pkg-config with
-PKG_CONFIG_SYSROOT_DIR.
-
-Upstream-Status: Pending
-Signed-off-by: Jussi Kukkonen 
-Signed-off-by: Otavio Salvador 
-Signed-off-by: Fabio Berton 

- configure.ac | 7 +--
- 1 file changed, 1 insertion(+), 6 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 1ef68fe68e6..1816a4cd475 100644
 a/configure.ac
-+++ b/configure.ac
-@@ -1854,16 +1854,11 @@ for plat in $platforms; do
- fi
- WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir 
wayland-protocols`
- 
--PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
--  WAYLAND_SCANNER=`$PKG_CONFIG 
--variable=wayland_scanner wayland-scanner`,
--  WAYLAND_SCANNER='')
- PKG_CHECK_EXISTS([wayland-scanner >= 1.15],
-   AC_SUBST(SCANNER_ARG, 'private-code'),
-   AC_SUBST(SCANNER_ARG, 'code'))
- 
--if test "x$WAYLAND_SCANNER" = x; then
--AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
--fi
-+AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
- 
- if test "x$WAYLAND_SCANNER" = "x:"; then
- AC_MSG_ERROR([wayland-scanner is needed to compile the 
wayland platform])
--- 
-2.21.0
-
diff --git 
a/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
 
b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
new file mode 100644
index 00..61e24c6e9f
--- /dev/null
+++ 
b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
@@ -0,0 +1,51 @@
+From 498f230c9446fc7a1b4dc77ff6b84ee1a3b53bf4 Mon Sep 17 00:00:00 2001
+From: Fabio Berton 
+Date: Wed, 24 Apr 2019 17:01:24 -0300
+Subject: [PATCH] meson.build: check for all linux host_os combinations
+Organization: O.S. Systems Software LTDA.
+
+Make sure that we are also looking for our host_os combinations like
+linux-musl etc. when assuming support for DRM/KMS.
+
+Also delete a duplicate line.
+
+Signed-off-by: Anuj Mittal 
+Signed-off-by: Fabio Berton 
+---
+ meson.build | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index 53d02e31097..c41f6b4e402 100644
+--- a/meson.build
 b/meson.build
+@@ -34,6 +34,8 @@ cpp = meson.get_compiler('cpp')
+ 
+ null_dep = dependency('', required : false)
+ 
++system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 
'dragonfly'].contains(host_machine.system()) or 
host_machine.system().startswith('linux')
++
+ # Arguments for the preprocessor, put these in a separate array from the C and
+ # C++ (cpp in meson terminology) arguments since they need to be added to the
+ # default arguments for both C and C++.
+@@ -89,8 +91,6 @@ if (with_gles1 or with_gles2) and not with_opengl
+   error('building OpenGL ES without OpenGL is not supported.')
+ endif
+ 
+-system_has_kms_drm

[OE-core] [PATCH] mesa: Update 19.0.1 -> 19.0.3

2019-04-24 Thread Fabio Berton
Mesa 19.0.3 is a bug fix release which fixes bugs found since the
19.0.1 release.

For full log see:

https://www.mesa3d.org/relnotes/19.0.2.html
https://www.mesa3d.org/relnotes/19.0.3.html

Signed-off-by: Fabio Berton 
---
 .../mesa/{mesa-gl_19.0.1.bb => mesa-gl_19.0.3.bb} | 0
 meta/recipes-graphics/mesa/{mesa_19.0.1.bb => mesa_19.0.3.bb} | 4 ++--
 2 files changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-graphics/mesa/{mesa-gl_19.0.1.bb => mesa-gl_19.0.3.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_19.0.1.bb => mesa_19.0.3.bb} (85%)

diff --git a/meta/recipes-graphics/mesa/mesa-gl_19.0.1.bb 
b/meta/recipes-graphics/mesa/mesa-gl_19.0.3.bb
similarity index 100%
rename from meta/recipes-graphics/mesa/mesa-gl_19.0.1.bb
rename to meta/recipes-graphics/mesa/mesa-gl_19.0.3.bb
diff --git a/meta/recipes-graphics/mesa/mesa_19.0.1.bb 
b/meta/recipes-graphics/mesa/mesa_19.0.3.bb
similarity index 85%
rename from meta/recipes-graphics/mesa/mesa_19.0.1.bb
rename to meta/recipes-graphics/mesa/mesa_19.0.3.bb
index d90be8a074..585c3ede23 100644
--- a/meta/recipes-graphics/mesa/mesa_19.0.1.bb
+++ b/meta/recipes-graphics/mesa/mesa_19.0.3.bb
@@ -7,8 +7,8 @@ SRC_URI = 
"https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \

file://0004-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch \
 "
 
-SRC_URI[md5sum] = "19636bb3da35c21f43040d31e575d5ce"
-SRC_URI[sha256sum] = 
"6884163c0ea9e4c98378ab8fecd72fe7b5f437713a14471beda378df247999d4"
+SRC_URI[md5sum] = "d03bf14e42c0e54ebae5730712ccc408"
+SRC_URI[sha256sum] = 
"f027244e38dc309a4c12db45ef79be81ab62c797a50a88d566e4edb6159fc4d5"
 
 #because we cannot rely on the fact that all apps will use pkgconfig,
 #make eglplatform.h independent of MESA_EGL_NO_X11_HEADER
-- 
2.20.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] mesa:upgrade 19.0.1 -> 19.0.2

2019-04-24 Thread Fabio Berton
Hi Zang Ruochen!

You need to update mesa-gl recipe too.

On Wed, Apr 24, 2019 at 3:04 PM Fabio Berton
 wrote:
>
> Hi Alex!
>
> I'll rebase meson patch to work with this version.
>
> On Wed, Apr 24, 2019 at 8:07 AM Burton, Ross  wrote:
> >
> > How did you even test this?
> >
> > ERROR: ParseError at
> > /home/ross/Yocto/poky/meta/recipes-graphics/mesa/mesa-gl_19.0.1.bb:1:
> > Could not include required file mesa_19.0.1.bb
> >
> > Ross
> >
> > On Wed, 24 Apr 2019 at 08:19, Zang Ruochen  
> > wrote:
> > >
> > > -Upgrade from mesa_19.0.1.bb to mesa_19.0.2.bb.
> > >
> > > Signed-off-by: Zang Ruochen 
> > > ---
> > >  meta/recipes-graphics/mesa/{mesa_19.0.1.bb => mesa_19.0.2.bb} | 4 ++--
> > >  1 file changed, 2 insertions(+), 2 deletions(-)
> > >  rename meta/recipes-graphics/mesa/{mesa_19.0.1.bb => mesa_19.0.2.bb} 
> > > (85%)
> > >
> > > diff --git a/meta/recipes-graphics/mesa/mesa_19.0.1.bb 
> > > b/meta/recipes-graphics/mesa/mesa_19.0.2.bb
> > > similarity index 85%
> > > rename from meta/recipes-graphics/mesa/mesa_19.0.1.bb
> > > rename to meta/recipes-graphics/mesa/mesa_19.0.2.bb
> > > index d90be8a074..e6646e8503 100644
> > > --- a/meta/recipes-graphics/mesa/mesa_19.0.1.bb
> > > +++ b/meta/recipes-graphics/mesa/mesa_19.0.2.bb
> > > @@ -7,8 +7,8 @@ SRC_URI = 
> > > "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \
> > > 
> > > file://0004-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch \
> > >  "
> > >
> > > -SRC_URI[md5sum] = "19636bb3da35c21f43040d31e575d5ce"
> > > -SRC_URI[sha256sum] = 
> > > "6884163c0ea9e4c98378ab8fecd72fe7b5f437713a14471beda378df247999d4"
> > > +SRC_URI[md5sum] = "7f84af1c3fe2078c35a7a991d1469921"
> > > +SRC_URI[sha256sum] = 
> > > "1a2edc3ce56906a676c91e6851298db45903df1f5cb9827395a922c1452db802"
> > >
> > >  #because we cannot rely on the fact that all apps will use pkgconfig,
> > >  #make eglplatform.h independent of MESA_EGL_NO_X11_HEADER
> > > --
> > > 2.20.1
> > >
> > >
> > >
> > > --
> > > ___
> > > Openembedded-core mailing list
> > > Openembedded-core@lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-core
> > --
> > ___
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] mesa:upgrade 19.0.1 -> 19.0.2

2019-04-24 Thread Fabio Berton
Hi Alex!

I'll rebase meson patch to work with this version.

On Wed, Apr 24, 2019 at 8:07 AM Burton, Ross  wrote:
>
> How did you even test this?
>
> ERROR: ParseError at
> /home/ross/Yocto/poky/meta/recipes-graphics/mesa/mesa-gl_19.0.1.bb:1:
> Could not include required file mesa_19.0.1.bb
>
> Ross
>
> On Wed, 24 Apr 2019 at 08:19, Zang Ruochen  wrote:
> >
> > -Upgrade from mesa_19.0.1.bb to mesa_19.0.2.bb.
> >
> > Signed-off-by: Zang Ruochen 
> > ---
> >  meta/recipes-graphics/mesa/{mesa_19.0.1.bb => mesa_19.0.2.bb} | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >  rename meta/recipes-graphics/mesa/{mesa_19.0.1.bb => mesa_19.0.2.bb} (85%)
> >
> > diff --git a/meta/recipes-graphics/mesa/mesa_19.0.1.bb 
> > b/meta/recipes-graphics/mesa/mesa_19.0.2.bb
> > similarity index 85%
> > rename from meta/recipes-graphics/mesa/mesa_19.0.1.bb
> > rename to meta/recipes-graphics/mesa/mesa_19.0.2.bb
> > index d90be8a074..e6646e8503 100644
> > --- a/meta/recipes-graphics/mesa/mesa_19.0.1.bb
> > +++ b/meta/recipes-graphics/mesa/mesa_19.0.2.bb
> > @@ -7,8 +7,8 @@ SRC_URI = 
> > "https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \
> > 
> > file://0004-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch \
> >  "
> >
> > -SRC_URI[md5sum] = "19636bb3da35c21f43040d31e575d5ce"
> > -SRC_URI[sha256sum] = 
> > "6884163c0ea9e4c98378ab8fecd72fe7b5f437713a14471beda378df247999d4"
> > +SRC_URI[md5sum] = "7f84af1c3fe2078c35a7a991d1469921"
> > +SRC_URI[sha256sum] = 
> > "1a2edc3ce56906a676c91e6851298db45903df1f5cb9827395a922c1452db802"
> >
> >  #because we cannot rely on the fact that all apps will use pkgconfig,
> >  #make eglplatform.h independent of MESA_EGL_NO_X11_HEADER
> > --
> > 2.20.1
> >
> >
> >
> > --
> > ___
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
> --
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v3 1/2] mesa: Update 18.3.4 -> 19.0.0

2019-03-19 Thread Fabio Berton
  - Patch 0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
was applied on commit e68777c87ceed02ab199b32f941778c3cf97c794.
  - Refresh all patches
  - mesa 19.0.0 deprecated the use of autotools and we need to add
--enable-autotools flag. For details see mesa commit:
e68777c87ceed02ab199b32f941778c3cf97c794

  The complete change log can be found here:
https://www.mesa3d.org/relnotes/19.0.0.html

Signed-off-by: Fabio Berton 
---
 ...0001-Simplify-wayland-scanner-lookup.patch | 20 
 ...-winsys-svga-drm-Include-sys-types.h.patch |  7 +--
 ...M-version-when-using-LLVM-Git-releas.patch | 13 ++---
 ...R-for-defining-WAYLAND_PROTOCOLS_DAT.patch | 11 +++--
 ...sing-include-stddef.h-in-egldevice.h.patch | 49 ---
 .../{mesa-gl_18.3.4.bb => mesa-gl_19.0.0.bb}  |  0
 meta/recipes-graphics/mesa/mesa.inc   |  4 +-
 .../mesa/{mesa_18.3.4.bb => mesa_19.0.0.bb}   |  5 +-
 8 files changed, 34 insertions(+), 75 deletions(-)
 delete mode 100644 
meta/recipes-graphics/mesa/files/0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
 rename meta/recipes-graphics/mesa/{mesa-gl_18.3.4.bb => mesa-gl_19.0.0.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_18.3.4.bb => mesa_19.0.0.bb} (78%)

diff --git 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch 
b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
index 1c2ded0e60..d065e2285c 100644
--- 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
+++ 
b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
@@ -1,7 +1,7 @@
-From 81bcaa1aeecf1e66b4d94181e9a827d68e970b03 Mon Sep 17 00:00:00 2001
+From e53837ad7b01364f34a533b95f4817c1795789de Mon Sep 17 00:00:00 2001
 From: Fabio Berton 
 Date: Wed, 20 Feb 2019 16:17:00 -0300
-Subject: [PATCH 1/5] Simplify wayland-scanner lookup
+Subject: [PATCH 1/4] Simplify wayland-scanner lookup
 Organization: O.S. Systems Software LTDA.
 
 Don't use pkg-config to lookup the path of a binary that's in the path.
@@ -12,31 +12,33 @@ PKG_CONFIG_SYSROOT_DIR.
 Upstream-Status: Pending
 Signed-off-by: Jussi Kukkonen 
 Signed-off-by: Otavio Salvador 
+Signed-off-by: Fabio Berton 
 ---
  configure.ac | 7 +--
  1 file changed, 1 insertion(+), 6 deletions(-)
 
 diff --git a/configure.ac b/configure.ac
-index cd9ff259fad..402b4a91946 100644
+index 1ef68fe68e6..1816a4cd475 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -1841,16 +1841,11 @@ for plat in $platforms; do
+@@ -1854,16 +1854,11 @@ for plat in $platforms; do
  fi
  WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir 
wayland-protocols`
-
+ 
 -PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
 -  WAYLAND_SCANNER=`$PKG_CONFIG 
--variable=wayland_scanner wayland-scanner`,
 -  WAYLAND_SCANNER='')
  PKG_CHECK_EXISTS([wayland-scanner >= 1.15],
AC_SUBST(SCANNER_ARG, 'private-code'),
AC_SUBST(SCANNER_ARG, 'code'))
-
+ 
 -if test "x$WAYLAND_SCANNER" = x; then
 -AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
 -fi
 +AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
-
+ 
  if test "x$WAYLAND_SCANNER" = "x:"; then
  AC_MSG_ERROR([wayland-scanner is needed to compile the 
wayland platform])
---
-2.20.1
+-- 
+2.21.0
+
diff --git 
a/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
 
b/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
index 12dca61e19..aaeb0f11ba 100644
--- 
a/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
+++ 
b/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
@@ -1,7 +1,7 @@
-From 34c3d07b67e6c08f555473a86ff158951abb6000 Mon Sep 17 00:00:00 2001
+From f212b6bed4bf265aec069c21cdc4b7c2d9cb32df Mon Sep 17 00:00:00 2001
 From: Khem Raj 
 Date: Wed, 16 Aug 2017 18:58:20 -0700
-Subject: [PATCH 2/5] winsys/svga/drm: Include sys/types.h
+Subject: [PATCH 2/4] winsys/svga/drm: Include sys/types.h
 Organization: O.S. Systems Software LTDA.
 
 vmw_screen.h uses dev_t which is defines in sys/types.h
@@ -13,6 +13,7 @@ system headers
 Signed-off-by: Khem Raj 
 Upstream-Status: Backport [7dfdfbf8c37e52e7b9b09f7d1d434edad3ebc864]
 Signed-off-by: Otavio Salvador 
+Signed-off-by: Fabio Berton 
 ---
  src/gallium/winsys/svga/drm/vmw_screen.h | 1 +
  1 file changed, 1 insertion(+)
@@ -30,5 +31,5 @@ index a87c087d9c5..cb34fec48e7 100644
  #define VMW_GMR_POOL_SIZE (16*1024*1024)
  #define VMW_QUERY_POOL_SIZE (8192)
 -- 
-2.20.1
+2.21.0
 
diff --git 
a/meta/recipes-graphics/mesa/files/0003-Properly-get-LLVM-version-when-using-LLVM-Git-releas.patch
 
b/meta/recipes-graphics/mesa/files/0003-Properly-get-LLVM-version-when-using-LLVM-Git-releas.patch
index 59b1

[OE-core] [PATCH v3 2/2] mesa: Convert recipe to use meson build system

2019-03-19 Thread Fabio Berton
  - Remove all non related meson patches
  - Change radeon driver to r100
  - Add python3-mako-native and gettext-native to DEPENDS

Based on https://patchwork.openembedded.org/patch/158748/

Signed-off-by: Fabio Berton 
---
 ...0001-Simplify-wayland-scanner-lookup.patch | 44 --
 ...k-for-all-linux-host_os-combinations.patch | 41 +
 ...-winsys-svga-drm-Include-sys-types.h.patch | 35 ---
 ...M-version-when-using-LLVM-Git-releas.patch | 45 --
 ...R-for-defining-WAYLAND_PROTOCOLS_DAT.patch | 38 
 meta/recipes-graphics/mesa/mesa.inc   | 59 +--
 meta/recipes-graphics/mesa/mesa_19.0.0.bb |  5 +-
 7 files changed, 69 insertions(+), 198 deletions(-)
 delete mode 100644 
meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
 create mode 100644 
meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0003-Properly-get-LLVM-version-when-using-LLVM-Git-releas.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0004-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch

diff --git 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch 
b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
deleted file mode 100644
index d065e2285c..00
--- 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-From e53837ad7b01364f34a533b95f4817c1795789de Mon Sep 17 00:00:00 2001
-From: Fabio Berton 
-Date: Wed, 20 Feb 2019 16:17:00 -0300
-Subject: [PATCH 1/4] Simplify wayland-scanner lookup
-Organization: O.S. Systems Software LTDA.
-
-Don't use pkg-config to lookup the path of a binary that's in the path.
-
-Alternatively we'd have to prefix the path returned by pkg-config with
-PKG_CONFIG_SYSROOT_DIR.
-
-Upstream-Status: Pending
-Signed-off-by: Jussi Kukkonen 
-Signed-off-by: Otavio Salvador 
-Signed-off-by: Fabio Berton 

- configure.ac | 7 +--
- 1 file changed, 1 insertion(+), 6 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 1ef68fe68e6..1816a4cd475 100644
 a/configure.ac
-+++ b/configure.ac
-@@ -1854,16 +1854,11 @@ for plat in $platforms; do
- fi
- WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir 
wayland-protocols`
- 
--PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
--  WAYLAND_SCANNER=`$PKG_CONFIG 
--variable=wayland_scanner wayland-scanner`,
--  WAYLAND_SCANNER='')
- PKG_CHECK_EXISTS([wayland-scanner >= 1.15],
-   AC_SUBST(SCANNER_ARG, 'private-code'),
-   AC_SUBST(SCANNER_ARG, 'code'))
- 
--if test "x$WAYLAND_SCANNER" = x; then
--AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
--fi
-+AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
- 
- if test "x$WAYLAND_SCANNER" = "x:"; then
- AC_MSG_ERROR([wayland-scanner is needed to compile the 
wayland platform])
--- 
-2.21.0
-
diff --git 
a/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
 
b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
new file mode 100644
index 00..23e207aebf
--- /dev/null
+++ 
b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
@@ -0,0 +1,41 @@
+From 021c24931367c83b62c550d1a296b0e9676726c0 Mon Sep 17 00:00:00 2001
+From: Fabio Berton 
+Date: Fri, 15 Mar 2019 17:42:50 -0300
+Subject: [PATCH] meson.build: check for all linux host_os combinations
+Organization: O.S. Systems Software LTDA.
+
+Make sure that we are also looking for our host_os combinations like
+linux-musl etc. when assuming support for DRM/KMS.
+
+Also delete a duplicate line.
+
+Signed-off-by: Anuj Mittal 
+---
+ meson.build | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index 9272590201d..56465513da9 100644
+--- a/meson.build
 b/meson.build
+@@ -89,7 +89,7 @@ if (with_gles1 or with_gles2) and not with_opengl
+   error('building OpenGL ES without OpenGL is not supported.')
+ endif
+ 
+-system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'dragonfly', 
'linux'].contains(host_machine.system())
++system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 
'dragonfly'].contains(host_machine.system()) or 
host_machine.system().startswith('linux')
+ 
+ _drivers = get_option('dri-drivers')
+ if _drivers.contains('auto')
+@@ -792,7 +792,7 @@ if cc.compiles('int foo(void) 
__attribute__((__noreturn__));',
+ endif
+ 
+ # TODO: this is very incomplete
+-if ['linux', 'cygwin', 'gnu'].contains(host_machi

Re: [OE-core] [PATCH 1/2] mesa: Update 18.3.4 -> 19.0.0

2019-03-18 Thread Fabio Berton
I sent a v2 adding python3-mako-native to DEPENDS.

On Mon, Mar 18, 2019 at 5:58 PM Otavio Salvador
 wrote:
>
> Hello Richard,
>
> On Mon, Mar 18, 2019 at 11:00 AM Richard Purdie
>  wrote:
> > On Fri, 2019-03-15 at 18:21 -0300, Fabio Berton wrote:
> > >   - Patch 0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
> > > was applied on commit e68777c87ceed02ab199b32f941778c3cf97c794.
> > >   - Refresh all patches
> > >   - mesa 19.0.0 deprecated the use of autotools and we need to add
> > > --enable-autotools flag. For details see mesa commit:
> > > e68777c87ceed02ab199b32f941778c3cf97c794
> > >
> > >   The complete change log can be found here:
> > > https://www.mesa3d.org/relnotes/19.0.0.html
> >
> > This failed pretty much everywhere, e.g.:
> >
> > https://autobuilder.yoctoproject.org/typhoon/#/builders/59/builds/407
> >
> > I think it will be too late to get this into 2.7.
>
> We are looking at this here; we intend to have it working anyway so we
> can decide if it goes on 2.7 or not.
>
> --
> Otavio Salvador O.S. Systems
> http://www.ossystems.com.brhttp://code.ossystems.com.br
> Mobile: +55 (53) 9 9981-7854  Mobile: +1 (347) 903-9750
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v2 2/2] mesa: Convert recipe to use meson build system

2019-03-18 Thread Fabio Berton
  - Remove all non related meson patches
  - Change radeon driver to r100
  - Add python3-mako-native to DEPENDS

Based on https://patchwork.openembedded.org/patch/158748/

Signed-off-by: Fabio Berton 
---
 ...0001-Simplify-wayland-scanner-lookup.patch | 44 --
 ...k-for-all-linux-host_os-combinations.patch | 41 +
 ...-winsys-svga-drm-Include-sys-types.h.patch | 35 ---
 ...M-version-when-using-LLVM-Git-releas.patch | 45 --
 ...R-for-defining-WAYLAND_PROTOCOLS_DAT.patch | 38 
 meta/recipes-graphics/mesa/mesa.inc   | 59 +--
 meta/recipes-graphics/mesa/mesa_19.0.0.bb |  5 +-
 7 files changed, 69 insertions(+), 198 deletions(-)
 delete mode 100644 
meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
 create mode 100644 
meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0003-Properly-get-LLVM-version-when-using-LLVM-Git-releas.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0004-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch

diff --git 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch 
b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
deleted file mode 100644
index d065e2285c..00
--- 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-From e53837ad7b01364f34a533b95f4817c1795789de Mon Sep 17 00:00:00 2001
-From: Fabio Berton 
-Date: Wed, 20 Feb 2019 16:17:00 -0300
-Subject: [PATCH 1/4] Simplify wayland-scanner lookup
-Organization: O.S. Systems Software LTDA.
-
-Don't use pkg-config to lookup the path of a binary that's in the path.
-
-Alternatively we'd have to prefix the path returned by pkg-config with
-PKG_CONFIG_SYSROOT_DIR.
-
-Upstream-Status: Pending
-Signed-off-by: Jussi Kukkonen 
-Signed-off-by: Otavio Salvador 
-Signed-off-by: Fabio Berton 

- configure.ac | 7 +--
- 1 file changed, 1 insertion(+), 6 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 1ef68fe68e6..1816a4cd475 100644
 a/configure.ac
-+++ b/configure.ac
-@@ -1854,16 +1854,11 @@ for plat in $platforms; do
- fi
- WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir 
wayland-protocols`
- 
--PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
--  WAYLAND_SCANNER=`$PKG_CONFIG 
--variable=wayland_scanner wayland-scanner`,
--  WAYLAND_SCANNER='')
- PKG_CHECK_EXISTS([wayland-scanner >= 1.15],
-   AC_SUBST(SCANNER_ARG, 'private-code'),
-   AC_SUBST(SCANNER_ARG, 'code'))
- 
--if test "x$WAYLAND_SCANNER" = x; then
--AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
--fi
-+AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
- 
- if test "x$WAYLAND_SCANNER" = "x:"; then
- AC_MSG_ERROR([wayland-scanner is needed to compile the 
wayland platform])
--- 
-2.21.0
-
diff --git 
a/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
 
b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
new file mode 100644
index 00..23e207aebf
--- /dev/null
+++ 
b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
@@ -0,0 +1,41 @@
+From 021c24931367c83b62c550d1a296b0e9676726c0 Mon Sep 17 00:00:00 2001
+From: Fabio Berton 
+Date: Fri, 15 Mar 2019 17:42:50 -0300
+Subject: [PATCH] meson.build: check for all linux host_os combinations
+Organization: O.S. Systems Software LTDA.
+
+Make sure that we are also looking for our host_os combinations like
+linux-musl etc. when assuming support for DRM/KMS.
+
+Also delete a duplicate line.
+
+Signed-off-by: Anuj Mittal 
+---
+ meson.build | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index 9272590201d..56465513da9 100644
+--- a/meson.build
 b/meson.build
+@@ -89,7 +89,7 @@ if (with_gles1 or with_gles2) and not with_opengl
+   error('building OpenGL ES without OpenGL is not supported.')
+ endif
+ 
+-system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'dragonfly', 
'linux'].contains(host_machine.system())
++system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 
'dragonfly'].contains(host_machine.system()) or 
host_machine.system().startswith('linux')
+ 
+ _drivers = get_option('dri-drivers')
+ if _drivers.contains('auto')
+@@ -792,7 +792,7 @@ if cc.compiles('int foo(void) 
__attribute__((__noreturn__));',
+ endif
+ 
+ # TODO: this is very incomplete
+-if ['linux', 'cygwin', 'gnu'].contains(host_machine.system()

[OE-core] [PATCH v2 1/2] mesa: Update 18.3.4 -> 19.0.0

2019-03-18 Thread Fabio Berton
  - Patch 0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
was applied on commit e68777c87ceed02ab199b32f941778c3cf97c794.
  - Refresh all patches
  - mesa 19.0.0 deprecated the use of autotools and we need to add
--enable-autotools flag. For details see mesa commit:
e68777c87ceed02ab199b32f941778c3cf97c794

  The complete change log can be found here:
https://www.mesa3d.org/relnotes/19.0.0.html

Signed-off-by: Fabio Berton 
---
 ...0001-Simplify-wayland-scanner-lookup.patch | 20 
 ...-winsys-svga-drm-Include-sys-types.h.patch |  7 +--
 ...M-version-when-using-LLVM-Git-releas.patch | 13 ++---
 ...R-for-defining-WAYLAND_PROTOCOLS_DAT.patch | 11 +++--
 ...sing-include-stddef.h-in-egldevice.h.patch | 49 ---
 .../{mesa-gl_18.3.4.bb => mesa-gl_19.0.0.bb}  |  0
 meta/recipes-graphics/mesa/mesa.inc   |  4 +-
 .../mesa/{mesa_18.3.4.bb => mesa_19.0.0.bb}   |  5 +-
 8 files changed, 34 insertions(+), 75 deletions(-)
 delete mode 100644 
meta/recipes-graphics/mesa/files/0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
 rename meta/recipes-graphics/mesa/{mesa-gl_18.3.4.bb => mesa-gl_19.0.0.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_18.3.4.bb => mesa_19.0.0.bb} (78%)

diff --git 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch 
b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
index 1c2ded0e60..d065e2285c 100644
--- 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
+++ 
b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
@@ -1,7 +1,7 @@
-From 81bcaa1aeecf1e66b4d94181e9a827d68e970b03 Mon Sep 17 00:00:00 2001
+From e53837ad7b01364f34a533b95f4817c1795789de Mon Sep 17 00:00:00 2001
 From: Fabio Berton 
 Date: Wed, 20 Feb 2019 16:17:00 -0300
-Subject: [PATCH 1/5] Simplify wayland-scanner lookup
+Subject: [PATCH 1/4] Simplify wayland-scanner lookup
 Organization: O.S. Systems Software LTDA.
 
 Don't use pkg-config to lookup the path of a binary that's in the path.
@@ -12,31 +12,33 @@ PKG_CONFIG_SYSROOT_DIR.
 Upstream-Status: Pending
 Signed-off-by: Jussi Kukkonen 
 Signed-off-by: Otavio Salvador 
+Signed-off-by: Fabio Berton 
 ---
  configure.ac | 7 +--
  1 file changed, 1 insertion(+), 6 deletions(-)
 
 diff --git a/configure.ac b/configure.ac
-index cd9ff259fad..402b4a91946 100644
+index 1ef68fe68e6..1816a4cd475 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -1841,16 +1841,11 @@ for plat in $platforms; do
+@@ -1854,16 +1854,11 @@ for plat in $platforms; do
  fi
  WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir 
wayland-protocols`
-
+ 
 -PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
 -  WAYLAND_SCANNER=`$PKG_CONFIG 
--variable=wayland_scanner wayland-scanner`,
 -  WAYLAND_SCANNER='')
  PKG_CHECK_EXISTS([wayland-scanner >= 1.15],
AC_SUBST(SCANNER_ARG, 'private-code'),
AC_SUBST(SCANNER_ARG, 'code'))
-
+ 
 -if test "x$WAYLAND_SCANNER" = x; then
 -AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
 -fi
 +AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
-
+ 
  if test "x$WAYLAND_SCANNER" = "x:"; then
  AC_MSG_ERROR([wayland-scanner is needed to compile the 
wayland platform])
---
-2.20.1
+-- 
+2.21.0
+
diff --git 
a/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
 
b/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
index 12dca61e19..aaeb0f11ba 100644
--- 
a/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
+++ 
b/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
@@ -1,7 +1,7 @@
-From 34c3d07b67e6c08f555473a86ff158951abb6000 Mon Sep 17 00:00:00 2001
+From f212b6bed4bf265aec069c21cdc4b7c2d9cb32df Mon Sep 17 00:00:00 2001
 From: Khem Raj 
 Date: Wed, 16 Aug 2017 18:58:20 -0700
-Subject: [PATCH 2/5] winsys/svga/drm: Include sys/types.h
+Subject: [PATCH 2/4] winsys/svga/drm: Include sys/types.h
 Organization: O.S. Systems Software LTDA.
 
 vmw_screen.h uses dev_t which is defines in sys/types.h
@@ -13,6 +13,7 @@ system headers
 Signed-off-by: Khem Raj 
 Upstream-Status: Backport [7dfdfbf8c37e52e7b9b09f7d1d434edad3ebc864]
 Signed-off-by: Otavio Salvador 
+Signed-off-by: Fabio Berton 
 ---
  src/gallium/winsys/svga/drm/vmw_screen.h | 1 +
  1 file changed, 1 insertion(+)
@@ -30,5 +31,5 @@ index a87c087d9c5..cb34fec48e7 100644
  #define VMW_GMR_POOL_SIZE (16*1024*1024)
  #define VMW_QUERY_POOL_SIZE (8192)
 -- 
-2.20.1
+2.21.0
 
diff --git 
a/meta/recipes-graphics/mesa/files/0003-Properly-get-LLVM-version-when-using-LLVM-Git-releas.patch
 
b/meta/recipes-graphics/mesa/files/0003-Properly-get-LLVM-version-when-using-LLVM-Git-releas.patch
index 59b1

[OE-core] [PATCH] linux-firmware: Bump revision to 7bc2464

2019-03-15 Thread Fabio Berton
License-Update:
  - WHENCE: New firmware files additions and version updates
Add qca/nvm_00440302.bin and qca/rampatch_00440302.bin

This commit includes the following changes:

- 7bc2464 Merge branch 'for-upstream' of 
git://git.chelsio.net/pub/git/linux-firmware
- 283373f cxgb4: update firmware to revision 1.23.3.0
- efd2c1c linux-firmware: Update firmware file for Intel Bluetooth 8265
- 046d108 linux-firmware: Update firmware file for Intel Bluetooth 9260
- 1f5641c linux-firmware: Update firmware file for Intel Bluetooth 9560
- b0d9583 (tag: 20190312) drm/amdgpu: update picasso to latest from 18.50 
branch
- 4041a80 drm/amdgpu: update polaris12 to latest from 18.50 branch
- 4b04ce5 drm/amdgpu: update vega20 to latest from 18.50 branch
- f85841b rtw88: RTL8822C: update rtw8822c_fw.bin to v5.0
- 3531f69 Merge https://github.com/bgodavar/qca6174_bt_fw
- 9936d81 Merge git://git.marvell.com/mwifiex-firmware
- 052a246 Merge commit '450632bb7822f0be09474066f4fee2147acbd055' of
  https://github.com/Netronome/linux-firmware
- 04e7764 rtl_bt: Update firmware for BT part of RTL8822C
- 78d2b16 linux-firmware: update Marvell 8787/8801/8887 firmware images
- 1a5773c linux-firmware: update Marvell 8897/8997 firmware images
- 450632b nfp: update Agilio SmartNIC firmware to rev 2.1.16.1
- c99beda QCA: Add the fw files for BT Chip QCA6174.
- 9ee52be linux-firmware: Add AMD SEV firmware
- 54b0a74 WHENCE: Correct errant entries
- fe0a7d4 Merge https://github.com/bgodavar/qca_bt_wcn3990_fw
- 07cb4ff amdgpu: update raven2 rlc firmware
- 64302ea amdgpu: drop raven2_sdma1.bin
- 30b9314 linux-firmware: Update firmware file for Intel Bluetooth,9560
- 55fa1fb linux-firmware: Update firmware file for Intel Bluetooth,9260
- f859d9f qca: Add firmware files for BT chip wcn3990.

Signed-off-by: Fabio Berton 
---
 meta/recipes-kernel/linux-firmware/linux-firmware_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb 
b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
index fdf8f19490..ad7babf7aa 100644
--- a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
+++ b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
@@ -122,7 +122,7 @@ LIC_FILES_CHKSUM = "\
 file://LICENCE.xc4000;md5=0ff51d2dc49fce04814c9155081092f0 \
 file://LICENCE.xc5000;md5=1e170c13175323c32c7f4d0998d53f66 \
 file://LICENCE.xc5000c;md5=12b02efa3049db65d524aeb418dd87ca \
-file://WHENCE;md5=66abf0fb69b09d6f3d2db6088594c808 \
+file://WHENCE;md5=ef36d3383becd18f36ce32d84109386f \
 "
 
 # These are not common licenses, set NO_GENERIC_LICENSE for them
@@ -188,7 +188,7 @@ NO_GENERIC_LICENSE[Firmware-xc5000] = "LICENCE.xc5000"
 NO_GENERIC_LICENSE[Firmware-xc5000c] = "LICENCE.xc5000c"
 NO_GENERIC_LICENSE[WHENCE] = "WHENCE"
 
-SRCREV = "710963fe53ee3f227556d36839df3858daf6e232"
+SRCREV = "7bc246451318b3536d9bfd3c4e46d541a9831b33"
 PE = "1"
 PV = "0.0+git${SRCPV}"
 
-- 
2.20.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 2/2] mesa: Convert recipe to use meson build system

2019-03-15 Thread Fabio Berton
  - Remove all non related meson patches
  - Change radeon driver to r100

Based on https://patchwork.openembedded.org/patch/158748/

Signed-off-by: Fabio Berton 
---
 ...0001-Simplify-wayland-scanner-lookup.patch | 44 --
 ...k-for-all-linux-host_os-combinations.patch | 41 +
 ...-winsys-svga-drm-Include-sys-types.h.patch | 35 
 ...M-version-when-using-LLVM-Git-releas.patch | 45 ---
 ...R-for-defining-WAYLAND_PROTOCOLS_DAT.patch | 38 -
 meta/recipes-graphics/mesa/mesa.inc   | 57 +--
 meta/recipes-graphics/mesa/mesa_19.0.0.bb |  5 +-
 7 files changed, 68 insertions(+), 197 deletions(-)
 delete mode 100644 
meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
 create mode 100644 
meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0003-Properly-get-LLVM-version-when-using-LLVM-Git-releas.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0004-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch

diff --git 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch 
b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
deleted file mode 100644
index d065e2285c..00
--- 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-From e53837ad7b01364f34a533b95f4817c1795789de Mon Sep 17 00:00:00 2001
-From: Fabio Berton 
-Date: Wed, 20 Feb 2019 16:17:00 -0300
-Subject: [PATCH 1/4] Simplify wayland-scanner lookup
-Organization: O.S. Systems Software LTDA.
-
-Don't use pkg-config to lookup the path of a binary that's in the path.
-
-Alternatively we'd have to prefix the path returned by pkg-config with
-PKG_CONFIG_SYSROOT_DIR.
-
-Upstream-Status: Pending
-Signed-off-by: Jussi Kukkonen 
-Signed-off-by: Otavio Salvador 
-Signed-off-by: Fabio Berton 

- configure.ac | 7 +--
- 1 file changed, 1 insertion(+), 6 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 1ef68fe68e6..1816a4cd475 100644
 a/configure.ac
-+++ b/configure.ac
-@@ -1854,16 +1854,11 @@ for plat in $platforms; do
- fi
- WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir 
wayland-protocols`
- 
--PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
--  WAYLAND_SCANNER=`$PKG_CONFIG 
--variable=wayland_scanner wayland-scanner`,
--  WAYLAND_SCANNER='')
- PKG_CHECK_EXISTS([wayland-scanner >= 1.15],
-   AC_SUBST(SCANNER_ARG, 'private-code'),
-   AC_SUBST(SCANNER_ARG, 'code'))
- 
--if test "x$WAYLAND_SCANNER" = x; then
--AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
--fi
-+AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
- 
- if test "x$WAYLAND_SCANNER" = "x:"; then
- AC_MSG_ERROR([wayland-scanner is needed to compile the 
wayland platform])
--- 
-2.21.0
-
diff --git 
a/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
 
b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
new file mode 100644
index 00..23e207aebf
--- /dev/null
+++ 
b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
@@ -0,0 +1,41 @@
+From 021c24931367c83b62c550d1a296b0e9676726c0 Mon Sep 17 00:00:00 2001
+From: Fabio Berton 
+Date: Fri, 15 Mar 2019 17:42:50 -0300
+Subject: [PATCH] meson.build: check for all linux host_os combinations
+Organization: O.S. Systems Software LTDA.
+
+Make sure that we are also looking for our host_os combinations like
+linux-musl etc. when assuming support for DRM/KMS.
+
+Also delete a duplicate line.
+
+Signed-off-by: Anuj Mittal 
+---
+ meson.build | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index 9272590201d..56465513da9 100644
+--- a/meson.build
 b/meson.build
+@@ -89,7 +89,7 @@ if (with_gles1 or with_gles2) and not with_opengl
+   error('building OpenGL ES without OpenGL is not supported.')
+ endif
+ 
+-system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'dragonfly', 
'linux'].contains(host_machine.system())
++system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 
'dragonfly'].contains(host_machine.system()) or 
host_machine.system().startswith('linux')
+ 
+ _drivers = get_option('dri-drivers')
+ if _drivers.contains('auto')
+@@ -792,7 +792,7 @@ if cc.compiles('int foo(void) 
__attribute__((__noreturn__));',
+ endif
+ 
+ # TODO: this is very incomplete
+-if ['linux', 'cygwin', 'gnu'].contains(host_machine.system())
++if ['cygwin', 'gnu'].contains(host_machine.

[OE-core] [PATCH 1/2] mesa: Update 18.3.4 -> 19.0.0

2019-03-15 Thread Fabio Berton
  - Patch 0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
was applied on commit e68777c87ceed02ab199b32f941778c3cf97c794.
  - Refresh all patches
  - mesa 19.0.0 deprecated the use of autotools and we need to add
--enable-autotools flag. For details see mesa commit:
e68777c87ceed02ab199b32f941778c3cf97c794

  The complete change log can be found here:
https://www.mesa3d.org/relnotes/19.0.0.html

Signed-off-by: Fabio Berton 
---
 ...0001-Simplify-wayland-scanner-lookup.patch | 20 
 ...-winsys-svga-drm-Include-sys-types.h.patch |  7 +--
 ...M-version-when-using-LLVM-Git-releas.patch | 13 ++---
 ...R-for-defining-WAYLAND_PROTOCOLS_DAT.patch | 11 +++--
 ...sing-include-stddef.h-in-egldevice.h.patch | 49 ---
 .../{mesa-gl_18.3.4.bb => mesa-gl_19.0.0.bb}  |  0
 meta/recipes-graphics/mesa/mesa.inc   |  4 +-
 .../mesa/{mesa_18.3.4.bb => mesa_19.0.0.bb}   |  5 +-
 8 files changed, 34 insertions(+), 75 deletions(-)
 delete mode 100644 
meta/recipes-graphics/mesa/files/0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
 rename meta/recipes-graphics/mesa/{mesa-gl_18.3.4.bb => mesa-gl_19.0.0.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_18.3.4.bb => mesa_19.0.0.bb} (78%)

diff --git 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch 
b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
index 1c2ded0e60..d065e2285c 100644
--- 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
+++ 
b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
@@ -1,7 +1,7 @@
-From 81bcaa1aeecf1e66b4d94181e9a827d68e970b03 Mon Sep 17 00:00:00 2001
+From e53837ad7b01364f34a533b95f4817c1795789de Mon Sep 17 00:00:00 2001
 From: Fabio Berton 
 Date: Wed, 20 Feb 2019 16:17:00 -0300
-Subject: [PATCH 1/5] Simplify wayland-scanner lookup
+Subject: [PATCH 1/4] Simplify wayland-scanner lookup
 Organization: O.S. Systems Software LTDA.
 
 Don't use pkg-config to lookup the path of a binary that's in the path.
@@ -12,31 +12,33 @@ PKG_CONFIG_SYSROOT_DIR.
 Upstream-Status: Pending
 Signed-off-by: Jussi Kukkonen 
 Signed-off-by: Otavio Salvador 
+Signed-off-by: Fabio Berton 
 ---
  configure.ac | 7 +--
  1 file changed, 1 insertion(+), 6 deletions(-)
 
 diff --git a/configure.ac b/configure.ac
-index cd9ff259fad..402b4a91946 100644
+index 1ef68fe68e6..1816a4cd475 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -1841,16 +1841,11 @@ for plat in $platforms; do
+@@ -1854,16 +1854,11 @@ for plat in $platforms; do
  fi
  WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir 
wayland-protocols`
-
+ 
 -PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
 -  WAYLAND_SCANNER=`$PKG_CONFIG 
--variable=wayland_scanner wayland-scanner`,
 -  WAYLAND_SCANNER='')
  PKG_CHECK_EXISTS([wayland-scanner >= 1.15],
AC_SUBST(SCANNER_ARG, 'private-code'),
AC_SUBST(SCANNER_ARG, 'code'))
-
+ 
 -if test "x$WAYLAND_SCANNER" = x; then
 -AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
 -fi
 +AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
-
+ 
  if test "x$WAYLAND_SCANNER" = "x:"; then
  AC_MSG_ERROR([wayland-scanner is needed to compile the 
wayland platform])
---
-2.20.1
+-- 
+2.21.0
+
diff --git 
a/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
 
b/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
index 12dca61e19..aaeb0f11ba 100644
--- 
a/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
+++ 
b/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
@@ -1,7 +1,7 @@
-From 34c3d07b67e6c08f555473a86ff158951abb6000 Mon Sep 17 00:00:00 2001
+From f212b6bed4bf265aec069c21cdc4b7c2d9cb32df Mon Sep 17 00:00:00 2001
 From: Khem Raj 
 Date: Wed, 16 Aug 2017 18:58:20 -0700
-Subject: [PATCH 2/5] winsys/svga/drm: Include sys/types.h
+Subject: [PATCH 2/4] winsys/svga/drm: Include sys/types.h
 Organization: O.S. Systems Software LTDA.
 
 vmw_screen.h uses dev_t which is defines in sys/types.h
@@ -13,6 +13,7 @@ system headers
 Signed-off-by: Khem Raj 
 Upstream-Status: Backport [7dfdfbf8c37e52e7b9b09f7d1d434edad3ebc864]
 Signed-off-by: Otavio Salvador 
+Signed-off-by: Fabio Berton 
 ---
  src/gallium/winsys/svga/drm/vmw_screen.h | 1 +
  1 file changed, 1 insertion(+)
@@ -30,5 +31,5 @@ index a87c087d9c5..cb34fec48e7 100644
  #define VMW_GMR_POOL_SIZE (16*1024*1024)
  #define VMW_QUERY_POOL_SIZE (8192)
 -- 
-2.20.1
+2.21.0
 
diff --git 
a/meta/recipes-graphics/mesa/files/0003-Properly-get-LLVM-version-when-using-LLVM-Git-releas.patch
 
b/meta/recipes-graphics/mesa/files/0003-Properly-get-LLVM-version-when-using-LLVM-Git-releas.patch
index 59b1

[OE-core] [RFC][PATCH v4] mesa: Convert recipe to use meson build system

2019-02-22 Thread Fabio Berton
  - Remove all non related meson patches
  - Change radeon driver to r100

Based on https://patchwork.openembedded.org/patch/158748/

Signed-off-by: Fabio Berton 
---
 ...0001-Simplify-wayland-scanner-lookup.patch | 42 --
 ...ing-include-stddef.h-in-egldevice.h.patch} |  4 +-
 ...k-for-all-linux-host_os-combinations.patch | 50 
 ...-winsys-svga-drm-Include-sys-types.h.patch | 34 ---
 ...M-version-when-using-LLVM-Git-releas.patch | 44 --
 ...R-for-defining-WAYLAND_PROTOCOLS_DAT.patch | 35 ---
 meta/recipes-graphics/mesa/mesa.inc   | 58 +--
 meta/recipes-graphics/mesa/mesa_18.3.4.bb |  7 +--
 8 files changed, 81 insertions(+), 193 deletions(-)
 delete mode 100644 
meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
 rename 
meta/recipes-graphics/mesa/files/{0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
 => 0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch} (91%)
 create mode 100644 
meta/recipes-graphics/mesa/files/0002-meson.build-check-for-all-linux-host_os-combinations.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0003-Properly-get-LLVM-version-when-using-LLVM-Git-releas.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0004-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch

diff --git 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch 
b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
deleted file mode 100644
index 1c2ded0e60..00
--- 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From 81bcaa1aeecf1e66b4d94181e9a827d68e970b03 Mon Sep 17 00:00:00 2001
-From: Fabio Berton 
-Date: Wed, 20 Feb 2019 16:17:00 -0300
-Subject: [PATCH 1/5] Simplify wayland-scanner lookup
-Organization: O.S. Systems Software LTDA.
-
-Don't use pkg-config to lookup the path of a binary that's in the path.
-
-Alternatively we'd have to prefix the path returned by pkg-config with
-PKG_CONFIG_SYSROOT_DIR.
-
-Upstream-Status: Pending
-Signed-off-by: Jussi Kukkonen 
-Signed-off-by: Otavio Salvador 

- configure.ac | 7 +--
- 1 file changed, 1 insertion(+), 6 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index cd9ff259fad..402b4a91946 100644
 a/configure.ac
-+++ b/configure.ac
-@@ -1841,16 +1841,11 @@ for plat in $platforms; do
- fi
- WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir 
wayland-protocols`
-
--PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
--  WAYLAND_SCANNER=`$PKG_CONFIG 
--variable=wayland_scanner wayland-scanner`,
--  WAYLAND_SCANNER='')
- PKG_CHECK_EXISTS([wayland-scanner >= 1.15],
-   AC_SUBST(SCANNER_ARG, 'private-code'),
-   AC_SUBST(SCANNER_ARG, 'code'))
-
--if test "x$WAYLAND_SCANNER" = x; then
--AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
--fi
-+AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
-
- if test "x$WAYLAND_SCANNER" = "x:"; then
- AC_MSG_ERROR([wayland-scanner is needed to compile the 
wayland platform])
---
-2.20.1
diff --git 
a/meta/recipes-graphics/mesa/files/0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
 
b/meta/recipes-graphics/mesa/files/0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch
similarity index 91%
rename from 
meta/recipes-graphics/mesa/files/0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
rename to 
meta/recipes-graphics/mesa/files/0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch
index 1782576db2..08d128e919 100644
--- 
a/meta/recipes-graphics/mesa/files/0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
+++ 
b/meta/recipes-graphics/mesa/files/0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch
@@ -1,7 +1,7 @@
-From f452e30ab664fe608acc107cc03d2efa8731d938 Mon Sep 17 00:00:00 2001
+From d2d5acdcb10465c024c8b0931d49e49660210d2c Mon Sep 17 00:00:00 2001
 From: Gurchetan Singh 
 Date: Wed, 28 Nov 2018 08:39:34 -0800
-Subject: [PATCH 5/5] egl: add missing #include  in egldevice.h
+Subject: [PATCH 1/2] egl: add missing #include  in egldevice.h
 MIME-Version: 1.0
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: 8bit
diff --git 
a/meta/recipes-graphics/mesa/files/0002-meson.build-check-for-all-linux-host_os-combinations.patch
 
b/meta/recipes-graphics/mesa/files/0002-meson.build-check-for-all-linux-host_os-combinations.patch
new file mode 100644
index 00..f4650adf0f
--- /dev/null
+++ 
b/meta/recipes-graphics/mesa/files/0002-meson.build-check-for-all-linux-host_os-combinations.patch
@@ -0,0 +1,50 @@
+From a4f6630f4563c2f3f619003706f541c380b49027 

[OE-core] [PATCH v5 1/3] mesa: Update 18.1.9 -> 18.3.4

2019-02-22 Thread Fabio Berton
  - Refresh all patches.

  - Remove "Use Python 3 to execute the scripts" patch
  Commit 986033a2750c1160a4cef3c8418fc7f9e2b4fb5a add support
  for both python 2 and 3.

  - Remove "dri: i965: Add missing time.h include" patch
  Commit 3c288da5eec81ee58b85927df18d9194ead8f5c2 add time.h
  header file.

  - Remove --enable-texture-float.
  Commit 66673bef941af344314fe9c91cad8cd330b245eb remove option to
  unconditionally enable floating-point textures.

  - Commit 30b10dbb7c6f6bdf3e489620f8333c727bd3a6dd moved
${sysconfdir}/drirc to ${datadir}/drirc.d/00-mesa-defaults.conf
Add 00-mesa-defaults.conf to mesa-megadriver package

  - Stop removing ${sysconfdir}/drirc on do_install_append

  - Fix upgrade path from mesa to mesa-megadriver

  - Add patch to fix mesa-native build

  - Add xrandr to X11_DEPS

Signed-off-by: Fabio Berton 
---
 ...0001-Simplify-wayland-scanner-lookup.patch | 27 +-
 ...-winsys-svga-drm-Include-sys-types.h.patch |  8 +--
 ...M-version-when-using-LLVM-Git-releas.patch | 12 ++---
 ...-Use-Python-3-to-execute-the-scripts.patch | 32 
 ...-for-defining-WAYLAND_PROTOCOLS_DAT.patch} | 28 +--
 ...-dri-i965-Add-missing-time.h-include.patch | 36 --
 ...sing-include-stddef.h-in-egldevice.h.patch | 49 +++
 .../{mesa-gl_18.1.9.bb => mesa-gl_18.3.4.bb}  |  0
 meta/recipes-graphics/mesa/mesa.inc   | 13 +++--
 .../mesa/{mesa_18.1.9.bb => mesa_18.3.4.bb}   |  9 ++--
 10 files changed, 99 insertions(+), 115 deletions(-)
 delete mode 100644 
meta/recipes-graphics/mesa/files/0004-Use-Python-3-to-execute-the-scripts.patch
 rename 
meta/recipes-graphics/mesa/files/{0006-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch
 => 0004-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch} (55%)
 delete mode 100644 
meta/recipes-graphics/mesa/files/0005-dri-i965-Add-missing-time.h-include.patch
 create mode 100644 
meta/recipes-graphics/mesa/files/0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
 rename meta/recipes-graphics/mesa/{mesa-gl_18.1.9.bb => mesa-gl_18.3.4.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_18.1.9.bb => mesa_18.3.4.bb} (69%)

diff --git 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch 
b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
index a50d2a2ba2..1c2ded0e60 100644
--- 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
+++ 
b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
@@ -1,7 +1,7 @@
-From 7e8e0f8a8ac2425e19a2f340c9e3da9345f25940 Mon Sep 17 00:00:00 2001
-From: Jussi Kukkonen 
-Date: Tue, 15 Nov 2016 15:20:49 +0200
-Subject: [PATCH 1/6] Simplify wayland-scanner lookup
+From 81bcaa1aeecf1e66b4d94181e9a827d68e970b03 Mon Sep 17 00:00:00 2001
+From: Fabio Berton 
+Date: Wed, 20 Feb 2019 16:17:00 -0300
+Subject: [PATCH 1/5] Simplify wayland-scanner lookup
 Organization: O.S. Systems Software LTDA.
 
 Don't use pkg-config to lookup the path of a binary that's in the path.
@@ -17,23 +17,26 @@ Signed-off-by: Otavio Salvador 
  1 file changed, 1 insertion(+), 6 deletions(-)
 
 diff --git a/configure.ac b/configure.ac
-index 14f1af2b2f..916d0bd207 100644
+index cd9ff259fad..402b4a91946 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -1825,12 +1825,7 @@ for plat in $platforms; do
- PKG_CHECK_MODULES([WAYLAND_PROTOCOLS], [wayland-protocols >= 
$WAYLAND_PROTOCOLS_REQUIRED])
+@@ -1841,16 +1841,11 @@ for plat in $platforms; do
+ fi
  WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir 
wayland-protocols`
- 
+
 -PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
 -  WAYLAND_SCANNER=`$PKG_CONFIG 
--variable=wayland_scanner wayland-scanner`,
 -  WAYLAND_SCANNER='')
+ PKG_CHECK_EXISTS([wayland-scanner >= 1.15],
+   AC_SUBST(SCANNER_ARG, 'private-code'),
+   AC_SUBST(SCANNER_ARG, 'code'))
+
 -if test "x$WAYLAND_SCANNER" = x; then
 -AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
 -fi
 +AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
- 
+
  if test "x$WAYLAND_SCANNER" = "x:"; then
  AC_MSG_ERROR([wayland-scanner is needed to compile the 
wayland platform])
--- 
-2.18.0
-
+--
+2.20.1
diff --git 
a/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
 
b/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
index ffb3bf7a63..12dca61e19 100644
--- 
a/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
+++ 
b/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
@@ -1,7 +1,7 @@
-From 7792f228991744a0396b8bf811e281dca86165d3 Mon Sep 17 00:00:00 2001
+From 34c3d07b67e6c08f5

[OE-core] [PATCH v5 2/3] mesa: Replace dri-native with dri for native and nativesdk classes

2019-02-22 Thread Fabio Berton
Instead of using a native specific packageconfig option, we now set
the swrast as the supported driver.

Currently the native version does not build any dri drivers at all.
This is intentional: mesa-native is used only by virgl, so was made
the most minimal possible configuration for mesa-native so that a)
virgl works; and b) build time is as short as possible.

There are two swrast drivers, one dri-based, another gallium-based.
Autotools lets you build both, meson forces you to choose.
Thus DRIDRIVERS = "swrast" is only set for _native, as for _target
we get the gallium driver instead.

See discussion here [1]

Based on https://patchwork.openembedded.org/patch/158748/

[1] https://patchwork.openembedded.org/patch/158806/

Signed-off-by: Fabio Berton 
---
 meta/recipes-graphics/mesa/mesa.inc | 9 -
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-graphics/mesa/mesa.inc 
b/meta/recipes-graphics/mesa/mesa.inc
index 0ce7e4d626..b2c6395a31 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -49,8 +49,8 @@ PACKAGECONFIG_class-target ??= 
"${@bb.utils.filter('DISTRO_FEATURES', 'wayland v
${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11 
dri3', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 
'dri3', '', d)} \
   "
-PACKAGECONFIG_class-native ?= "gbm dri-native egl"
-PACKAGECONFIG_class-nativesdk ?= "gbm dri-native egl"
+PACKAGECONFIG_class-native ?= "gbm dri egl"
+PACKAGECONFIG_class-nativesdk ?= "gbm dri egl"
 
 # "gbm" requires "dri", "opengl"
 PACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm"
@@ -61,13 +61,12 @@ PACKAGECONFIG[x11] = 
"--enable-glx-tls,--disable-glx,${X11_DEPS}"
 PACKAGECONFIG[xvmc] = "--enable-xvmc,--disable-xvmc,libxvmc"
 PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm wayland-protocols"
 
-DRIDRIVERS = "swrast"
+DRIDRIVERS_class-native = "swrast"
+DRIDRIVERS_class-nativesdk = "swrast"
 DRIDRIVERS_append_x86_class-target = ",radeon,r200,nouveau,i965,i915"
 DRIDRIVERS_append_x86-64_class-target = ",radeon,r200,nouveau,i965,i915"
 # "dri" requires "opengl"
 PACKAGECONFIG[dri] = "--enable-dri --with-dri-drivers=${DRIDRIVERS}, 
--disable-dri, xorgproto libdrm"
-# On the native builds we use host's dri drivers
-PACKAGECONFIG[dri-native] = "--enable-dri, , xorgproto libdrm"
 PACKAGECONFIG[dri3] = "--enable-dri3, --disable-dri3, xorgproto libxshmfence"
 
 # Vulkan drivers need dri3 enabled
-- 
2.20.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v5 3/3] mesa: Add opengl to native and nativesdk PACKAGECONFIG

2019-02-22 Thread Fabio Berton
Allow the use of opengl for native and nativesdk packages.

Based on https://patchwork.openembedded.org/patch/158748/

Signed-off-by: Fabio Berton 
---
 meta/recipes-graphics/mesa/mesa.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-graphics/mesa/mesa.inc 
b/meta/recipes-graphics/mesa/mesa.inc
index b2c6395a31..59e8a204c7 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -49,8 +49,8 @@ PACKAGECONFIG_class-target ??= 
"${@bb.utils.filter('DISTRO_FEATURES', 'wayland v
${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11 
dri3', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 
'dri3', '', d)} \
   "
-PACKAGECONFIG_class-native ?= "gbm dri egl"
-PACKAGECONFIG_class-nativesdk ?= "gbm dri egl"
+PACKAGECONFIG_class-native ?= "gbm dri egl opengl"
+PACKAGECONFIG_class-nativesdk ?= "gbm dri egl opengl"
 
 # "gbm" requires "dri", "opengl"
 PACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm"
-- 
2.20.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v4 1/3] mesa: Update 18.1.9 -> 18.3.4

2019-02-22 Thread Fabio Berton
Hi Ross!

Yes, I'll check packages and fix this.

Thanks

On Fri, Feb 22, 2019 at 7:29 AM Burton, Ross  wrote:
>
> packages/corei7-64-poky-linux/mesa/mesa: FILELIST: added
> "/usr/share/drirc.d/00-mesa-defaults.conf"
> packages/corei7-64-poky-linux/mesa/mesa: PKGSIZE changed from 0 to 14966 
> (+100%)
>
> Can you identify what of the subpackages actually reads this file and
> move it to there?
>
> Ross
>
> On Wed, 20 Feb 2019 at 21:10, Fabio Berton
>  wrote:
> >
> >   - Refresh all patches.
> >
> >   - Remove "Use Python 3 to execute the scripts" patch
> >   Commit 986033a2750c1160a4cef3c8418fc7f9e2b4fb5a add support
> >   for both python 2 and 3.
> >
> >   - Remove "dri: i965: Add missing time.h include" patch
> >   Commit 3c288da5eec81ee58b85927df18d9194ead8f5c2 add time.h
> >   header file.
> >
> >   - Remove --enable-texture-float.
> >   Commit 66673bef941af344314fe9c91cad8cd330b245eb remove option to
> >   unconditionally enable floating-point textures.
> >
> >   - Commit 30b10dbb7c6f6bdf3e489620f8333c727bd3a6dd moved
> >     ${sysconfdir}/drirc to ${datadir}/drirc.d/00-mesa-defaults.conf
> >
> >   - Add patch to fix mesa-native build
> >
> >   - Add xrandr to X11_DEPS
> >
> > Signed-off-by: Fabio Berton 
> > ---
> >  ...0001-Simplify-wayland-scanner-lookup.patch | 27 +-
> >  ...-winsys-svga-drm-Include-sys-types.h.patch |  8 +--
> >  ...M-version-when-using-LLVM-Git-releas.patch | 12 ++---
> >  ...-Use-Python-3-to-execute-the-scripts.patch | 32 
> >  ...-for-defining-WAYLAND_PROTOCOLS_DAT.patch} | 28 +--
> >  ...-dri-i965-Add-missing-time.h-include.patch | 36 --
> >  ...sing-include-stddef.h-in-egldevice.h.patch | 49 +++
> >  .../{mesa-gl_18.1.9.bb => mesa-gl_18.3.4.bb}  |  0
> >  meta/recipes-graphics/mesa/mesa.inc   |  6 +--
> >  .../mesa/{mesa_18.1.9.bb => mesa_18.3.4.bb}   |  9 ++--
> >  10 files changed, 94 insertions(+), 113 deletions(-)
> >  delete mode 100644 
> > meta/recipes-graphics/mesa/files/0004-Use-Python-3-to-execute-the-scripts.patch
> >  rename 
> > meta/recipes-graphics/mesa/files/{0006-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch
> >  => 0004-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch} (55%)
> >  delete mode 100644 
> > meta/recipes-graphics/mesa/files/0005-dri-i965-Add-missing-time.h-include.patch
> >  create mode 100644 
> > meta/recipes-graphics/mesa/files/0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
> >  rename meta/recipes-graphics/mesa/{mesa-gl_18.1.9.bb => mesa-gl_18.3.4.bb} 
> > (100%)
> >  rename meta/recipes-graphics/mesa/{mesa_18.1.9.bb => mesa_18.3.4.bb} (69%)
> >
> > diff --git 
> > a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
> >  
> > b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
> > index a50d2a2ba2..1c2ded0e60 100644
> > --- 
> > a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
> > +++ 
> > b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
> > @@ -1,7 +1,7 @@
> > -From 7e8e0f8a8ac2425e19a2f340c9e3da9345f25940 Mon Sep 17 00:00:00 2001
> > -From: Jussi Kukkonen 
> > -Date: Tue, 15 Nov 2016 15:20:49 +0200
> > -Subject: [PATCH 1/6] Simplify wayland-scanner lookup
> > +From 81bcaa1aeecf1e66b4d94181e9a827d68e970b03 Mon Sep 17 00:00:00 2001
> > +From: Fabio Berton 
> > +Date: Wed, 20 Feb 2019 16:17:00 -0300
> > +Subject: [PATCH 1/5] Simplify wayland-scanner lookup
> >  Organization: O.S. Systems Software LTDA.
> >
> >  Don't use pkg-config to lookup the path of a binary that's in the path.
> > @@ -17,23 +17,26 @@ Signed-off-by: Otavio Salvador 
> >   1 file changed, 1 insertion(+), 6 deletions(-)
> >
> >  diff --git a/configure.ac b/configure.ac
> > -index 14f1af2b2f..916d0bd207 100644
> > +index cd9ff259fad..402b4a91946 100644
> >  --- a/configure.ac
> >  +++ b/configure.ac
> > -@@ -1825,12 +1825,7 @@ for plat in $platforms; do
> > - PKG_CHECK_MODULES([WAYLAND_PROTOCOLS], [wayland-protocols >= 
> > $WAYLAND_PROTOCOLS_REQUIRED])
> > +@@ -1841,16 +1841,11 @@ for plat in $platforms; do
> > + fi
> >   WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir 
> > wayland-protocols`
> > -
> > +
> >  -PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
> >  -   

[OE-core] [RFC][PATCH v3] mesa: Convert recipe to use meson build system

2019-02-20 Thread Fabio Berton
  - Remove all non related meson patches
  - Change radeon driver to r100

Based on https://patchwork.openembedded.org/patch/158748/

Signed-off-by: Fabio Berton 
---
 ...0001-Simplify-wayland-scanner-lookup.patch | 42 --
 ...ing-include-stddef.h-in-egldevice.h.patch} |  4 +-
 ...k-for-all-linux-host_os-combinations.patch | 50 
 ...-winsys-svga-drm-Include-sys-types.h.patch | 34 ---
 ...M-version-when-using-LLVM-Git-releas.patch | 44 --
 ...R-for-defining-WAYLAND_PROTOCOLS_DAT.patch | 35 ---
 meta/recipes-graphics/mesa/mesa.inc   | 58 +--
 meta/recipes-graphics/mesa/mesa_18.3.4.bb |  7 +--
 8 files changed, 81 insertions(+), 193 deletions(-)
 delete mode 100644 
meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
 rename 
meta/recipes-graphics/mesa/files/{0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
 => 0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch} (91%)
 create mode 100644 
meta/recipes-graphics/mesa/files/0002-meson.build-check-for-all-linux-host_os-combinations.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0003-Properly-get-LLVM-version-when-using-LLVM-Git-releas.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0004-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch

diff --git 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch 
b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
deleted file mode 100644
index 1c2ded0e60..00
--- 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From 81bcaa1aeecf1e66b4d94181e9a827d68e970b03 Mon Sep 17 00:00:00 2001
-From: Fabio Berton 
-Date: Wed, 20 Feb 2019 16:17:00 -0300
-Subject: [PATCH 1/5] Simplify wayland-scanner lookup
-Organization: O.S. Systems Software LTDA.
-
-Don't use pkg-config to lookup the path of a binary that's in the path.
-
-Alternatively we'd have to prefix the path returned by pkg-config with
-PKG_CONFIG_SYSROOT_DIR.
-
-Upstream-Status: Pending
-Signed-off-by: Jussi Kukkonen 
-Signed-off-by: Otavio Salvador 

- configure.ac | 7 +--
- 1 file changed, 1 insertion(+), 6 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index cd9ff259fad..402b4a91946 100644
 a/configure.ac
-+++ b/configure.ac
-@@ -1841,16 +1841,11 @@ for plat in $platforms; do
- fi
- WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir 
wayland-protocols`
-
--PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
--  WAYLAND_SCANNER=`$PKG_CONFIG 
--variable=wayland_scanner wayland-scanner`,
--  WAYLAND_SCANNER='')
- PKG_CHECK_EXISTS([wayland-scanner >= 1.15],
-   AC_SUBST(SCANNER_ARG, 'private-code'),
-   AC_SUBST(SCANNER_ARG, 'code'))
-
--if test "x$WAYLAND_SCANNER" = x; then
--AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
--fi
-+AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
-
- if test "x$WAYLAND_SCANNER" = "x:"; then
- AC_MSG_ERROR([wayland-scanner is needed to compile the 
wayland platform])
---
-2.20.1
diff --git 
a/meta/recipes-graphics/mesa/files/0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
 
b/meta/recipes-graphics/mesa/files/0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch
similarity index 91%
rename from 
meta/recipes-graphics/mesa/files/0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
rename to 
meta/recipes-graphics/mesa/files/0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch
index 1782576db2..08d128e919 100644
--- 
a/meta/recipes-graphics/mesa/files/0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
+++ 
b/meta/recipes-graphics/mesa/files/0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch
@@ -1,7 +1,7 @@
-From f452e30ab664fe608acc107cc03d2efa8731d938 Mon Sep 17 00:00:00 2001
+From d2d5acdcb10465c024c8b0931d49e49660210d2c Mon Sep 17 00:00:00 2001
 From: Gurchetan Singh 
 Date: Wed, 28 Nov 2018 08:39:34 -0800
-Subject: [PATCH 5/5] egl: add missing #include  in egldevice.h
+Subject: [PATCH 1/2] egl: add missing #include  in egldevice.h
 MIME-Version: 1.0
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: 8bit
diff --git 
a/meta/recipes-graphics/mesa/files/0002-meson.build-check-for-all-linux-host_os-combinations.patch
 
b/meta/recipes-graphics/mesa/files/0002-meson.build-check-for-all-linux-host_os-combinations.patch
new file mode 100644
index 00..f4650adf0f
--- /dev/null
+++ 
b/meta/recipes-graphics/mesa/files/0002-meson.build-check-for-all-linux-host_os-combinations.patch
@@ -0,0 +1,50 @@
+From a4f6630f4563c2f3f619003706f541c380b49027 

[OE-core] [PATCH v4 1/3] mesa: Update 18.1.9 -> 18.3.4

2019-02-20 Thread Fabio Berton
  - Refresh all patches.

  - Remove "Use Python 3 to execute the scripts" patch
  Commit 986033a2750c1160a4cef3c8418fc7f9e2b4fb5a add support
  for both python 2 and 3.

  - Remove "dri: i965: Add missing time.h include" patch
  Commit 3c288da5eec81ee58b85927df18d9194ead8f5c2 add time.h
  header file.

  - Remove --enable-texture-float.
  Commit 66673bef941af344314fe9c91cad8cd330b245eb remove option to
  unconditionally enable floating-point textures.

  - Commit 30b10dbb7c6f6bdf3e489620f8333c727bd3a6dd moved
${sysconfdir}/drirc to ${datadir}/drirc.d/00-mesa-defaults.conf

  - Add patch to fix mesa-native build

  - Add xrandr to X11_DEPS

Signed-off-by: Fabio Berton 
---
 ...0001-Simplify-wayland-scanner-lookup.patch | 27 +-
 ...-winsys-svga-drm-Include-sys-types.h.patch |  8 +--
 ...M-version-when-using-LLVM-Git-releas.patch | 12 ++---
 ...-Use-Python-3-to-execute-the-scripts.patch | 32 
 ...-for-defining-WAYLAND_PROTOCOLS_DAT.patch} | 28 +--
 ...-dri-i965-Add-missing-time.h-include.patch | 36 --
 ...sing-include-stddef.h-in-egldevice.h.patch | 49 +++
 .../{mesa-gl_18.1.9.bb => mesa-gl_18.3.4.bb}  |  0
 meta/recipes-graphics/mesa/mesa.inc   |  6 +--
 .../mesa/{mesa_18.1.9.bb => mesa_18.3.4.bb}   |  9 ++--
 10 files changed, 94 insertions(+), 113 deletions(-)
 delete mode 100644 
meta/recipes-graphics/mesa/files/0004-Use-Python-3-to-execute-the-scripts.patch
 rename 
meta/recipes-graphics/mesa/files/{0006-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch
 => 0004-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch} (55%)
 delete mode 100644 
meta/recipes-graphics/mesa/files/0005-dri-i965-Add-missing-time.h-include.patch
 create mode 100644 
meta/recipes-graphics/mesa/files/0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
 rename meta/recipes-graphics/mesa/{mesa-gl_18.1.9.bb => mesa-gl_18.3.4.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_18.1.9.bb => mesa_18.3.4.bb} (69%)

diff --git 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch 
b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
index a50d2a2ba2..1c2ded0e60 100644
--- 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
+++ 
b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
@@ -1,7 +1,7 @@
-From 7e8e0f8a8ac2425e19a2f340c9e3da9345f25940 Mon Sep 17 00:00:00 2001
-From: Jussi Kukkonen 
-Date: Tue, 15 Nov 2016 15:20:49 +0200
-Subject: [PATCH 1/6] Simplify wayland-scanner lookup
+From 81bcaa1aeecf1e66b4d94181e9a827d68e970b03 Mon Sep 17 00:00:00 2001
+From: Fabio Berton 
+Date: Wed, 20 Feb 2019 16:17:00 -0300
+Subject: [PATCH 1/5] Simplify wayland-scanner lookup
 Organization: O.S. Systems Software LTDA.
 
 Don't use pkg-config to lookup the path of a binary that's in the path.
@@ -17,23 +17,26 @@ Signed-off-by: Otavio Salvador 
  1 file changed, 1 insertion(+), 6 deletions(-)
 
 diff --git a/configure.ac b/configure.ac
-index 14f1af2b2f..916d0bd207 100644
+index cd9ff259fad..402b4a91946 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -1825,12 +1825,7 @@ for plat in $platforms; do
- PKG_CHECK_MODULES([WAYLAND_PROTOCOLS], [wayland-protocols >= 
$WAYLAND_PROTOCOLS_REQUIRED])
+@@ -1841,16 +1841,11 @@ for plat in $platforms; do
+ fi
  WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir 
wayland-protocols`
- 
+
 -PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
 -  WAYLAND_SCANNER=`$PKG_CONFIG 
--variable=wayland_scanner wayland-scanner`,
 -  WAYLAND_SCANNER='')
+ PKG_CHECK_EXISTS([wayland-scanner >= 1.15],
+   AC_SUBST(SCANNER_ARG, 'private-code'),
+   AC_SUBST(SCANNER_ARG, 'code'))
+
 -if test "x$WAYLAND_SCANNER" = x; then
 -AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
 -fi
 +AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
- 
+
  if test "x$WAYLAND_SCANNER" = "x:"; then
  AC_MSG_ERROR([wayland-scanner is needed to compile the 
wayland platform])
--- 
-2.18.0
-
+--
+2.20.1
diff --git 
a/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
 
b/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
index ffb3bf7a63..12dca61e19 100644
--- 
a/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
+++ 
b/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
@@ -1,7 +1,7 @@
-From 7792f228991744a0396b8bf811e281dca86165d3 Mon Sep 17 00:00:00 2001
+From 34c3d07b67e6c08f555473a86ff158951abb6000 Mon Sep 17 00:00:00 2001
 From: Khem Raj 
 Date: Wed, 16 Aug 2017 18:58:20 -0700
-Subject: [PATCH 2/6] winsys/svga/drm: Include sys/types.h
+Subje

[OE-core] [PATCH v4 2/3] mesa: Replace dri-native with dri for native and nativesdk classes

2019-02-20 Thread Fabio Berton
Instead of using a native specific packageconfig option, we now set
the swrast as the supported driver.

Currently the native version does not build any dri drivers at all.
This is intentional: mesa-native is used only by virgl, so was made
the most minimal possible configuration for mesa-native so that a)
virgl works; and b) build time is as short as possible.

There are two swrast drivers, one dri-based, another gallium-based.
Autotools lets you build both, meson forces you to choose.
Thus DRIDRIVERS = "swrast" is only set for _native, as for _target
we get the gallium driver instead.

See discussion here [1]

Based on https://patchwork.openembedded.org/patch/158748/

[1] https://patchwork.openembedded.org/patch/158806/

Signed-off-by: Fabio Berton 
---
 meta/recipes-graphics/mesa/mesa.inc | 9 -
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-graphics/mesa/mesa.inc 
b/meta/recipes-graphics/mesa/mesa.inc
index b9870eb6ad..c5f3e332fa 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -49,8 +49,8 @@ PACKAGECONFIG_class-target ??= 
"${@bb.utils.filter('DISTRO_FEATURES', 'wayland v
${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11 
dri3', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 
'dri3', '', d)} \
   "
-PACKAGECONFIG_class-native ?= "gbm dri-native egl"
-PACKAGECONFIG_class-nativesdk ?= "gbm dri-native egl"
+PACKAGECONFIG_class-native ?= "gbm dri egl"
+PACKAGECONFIG_class-nativesdk ?= "gbm dri egl"
 
 # "gbm" requires "dri", "opengl"
 PACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm"
@@ -61,13 +61,12 @@ PACKAGECONFIG[x11] = 
"--enable-glx-tls,--disable-glx,${X11_DEPS}"
 PACKAGECONFIG[xvmc] = "--enable-xvmc,--disable-xvmc,libxvmc"
 PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm wayland-protocols"
 
-DRIDRIVERS = "swrast"
+DRIDRIVERS_class-native = "swrast"
+DRIDRIVERS_class-nativesdk = "swrast"
 DRIDRIVERS_append_x86_class-target = ",radeon,r200,nouveau,i965,i915"
 DRIDRIVERS_append_x86-64_class-target = ",radeon,r200,nouveau,i965,i915"
 # "dri" requires "opengl"
 PACKAGECONFIG[dri] = "--enable-dri --with-dri-drivers=${DRIDRIVERS}, 
--disable-dri, xorgproto libdrm"
-# On the native builds we use host's dri drivers
-PACKAGECONFIG[dri-native] = "--enable-dri, , xorgproto libdrm"
 PACKAGECONFIG[dri3] = "--enable-dri3, --disable-dri3, xorgproto libxshmfence"
 
 # Vulkan drivers need dri3 enabled
-- 
2.20.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v4 3/3] mesa: Add opengl to native and nativesdk PACKAGECONFIG

2019-02-20 Thread Fabio Berton
Allow the use of opengl for native and nativesdk packages.

Based on https://patchwork.openembedded.org/patch/158748/

Signed-off-by: Fabio Berton 
---
 meta/recipes-graphics/mesa/mesa.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-graphics/mesa/mesa.inc 
b/meta/recipes-graphics/mesa/mesa.inc
index c5f3e332fa..c4a827fa5c 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -49,8 +49,8 @@ PACKAGECONFIG_class-target ??= 
"${@bb.utils.filter('DISTRO_FEATURES', 'wayland v
${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11 
dri3', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 
'dri3', '', d)} \
   "
-PACKAGECONFIG_class-native ?= "gbm dri egl"
-PACKAGECONFIG_class-nativesdk ?= "gbm dri egl"
+PACKAGECONFIG_class-native ?= "gbm dri egl opengl"
+PACKAGECONFIG_class-nativesdk ?= "gbm dri egl opengl"
 
 # "gbm" requires "dri", "opengl"
 PACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm"
-- 
2.20.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] libdrm: Upgrade 2.4.96 -> 2.4.97

2019-02-20 Thread Fabio Berton
Signed-off-by: Fabio Berton 
---
 .../drm/{libdrm_2.4.96.bb => libdrm_2.4.97.bb}| 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-graphics/drm/{libdrm_2.4.96.bb => libdrm_2.4.97.bb} (95%)

diff --git a/meta/recipes-graphics/drm/libdrm_2.4.96.bb 
b/meta/recipes-graphics/drm/libdrm_2.4.97.bb
similarity index 95%
rename from meta/recipes-graphics/drm/libdrm_2.4.96.bb
rename to meta/recipes-graphics/drm/libdrm_2.4.97.bb
index 1c9e0e9f95..bbe9a33ba9 100644
--- a/meta/recipes-graphics/drm/libdrm_2.4.96.bb
+++ b/meta/recipes-graphics/drm/libdrm_2.4.97.bb
@@ -12,8 +12,8 @@ DEPENDS = "libpthread-stubs"
 
 SRC_URI = "http://dri.freedesktop.org/libdrm/${BP}.tar.bz2 \
file://musl-ioctl.patch"
-SRC_URI[md5sum] = "f296d87272b1befeada3bb135751ab3d"
-SRC_URI[sha256sum] = 
"0d561acf7bb4cc59dc82415100e6c1a44860e8c380e00f9592923e3cd08db393"
+SRC_URI[md5sum] = "acef22d0c62c89692348c2dd5591393e"
+SRC_URI[sha256sum] = 
"77d0ccda3e10d6593398edb70b1566bfe1a23a39bd3da98ace2147692eadd123"
 
 inherit meson pkgconfig manpages
 
-- 
2.20.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v3 3/3] mesa: Add opengl to native and nativesdk PACKAGECONFIG

2019-02-20 Thread Fabio Berton
Allow the use of opengl for native and nativesdk packages.

Based on https://patchwork.openembedded.org/patch/158748/

Signed-off-by: Fabio Berton 
---
 meta/recipes-graphics/mesa/mesa.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-graphics/mesa/mesa.inc 
b/meta/recipes-graphics/mesa/mesa.inc
index 4c902b8156..58009d77ab 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -49,8 +49,8 @@ PACKAGECONFIG_class-target ??= 
"${@bb.utils.filter('DISTRO_FEATURES', 'wayland v
${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11 
dri3', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 
'dri3', '', d)} \
   "
-PACKAGECONFIG_class-native ?= "gbm dri egl"
-PACKAGECONFIG_class-nativesdk ?= "gbm dri egl"
+PACKAGECONFIG_class-native ?= "gbm dri egl opengl"
+PACKAGECONFIG_class-nativesdk ?= "gbm dri egl opengl"
 
 # "gbm" requires "dri", "opengl"
 PACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm"
-- 
2.20.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v3 1/3] mesa: Update 18.1.9 -> 18.3.4

2019-02-20 Thread Fabio Berton
  - Refresh all patches.

  - Remove "Use Python 3 to execute the scripts" patch
  Commit 986033a2750c1160a4cef3c8418fc7f9e2b4fb5a add support
  for both python 2 and 3.

  - Remove "dri: i965: Add missing time.h include" patch
  Commit 3c288da5eec81ee58b85927df18d9194ead8f5c2 add time.h
  header file.

  - Remove --enable-texture-float.
  Commit 66673bef941af344314fe9c91cad8cd330b245eb remove option to
  unconditionally enable floating-point textures.

  - Commit 30b10dbb7c6f6bdf3e489620f8333c727bd3a6dd moved
${sysconfdir}/drirc to ${datadir}/drirc.d/00-mesa-defaults.conf

  - Add patch to fix mesa-native build

  - Add xrandr to X11_DEPS

Signed-off-by: Fabio Berton 
---
 ...0001-Simplify-wayland-scanner-lookup.patch | 20 +---
 ...-winsys-svga-drm-Include-sys-types.h.patch |  8 +--
 ...M-version-when-using-LLVM-Git-releas.patch | 12 ++---
 ...-Use-Python-3-to-execute-the-scripts.patch | 32 
 ...-for-defining-WAYLAND_PROTOCOLS_DAT.patch} | 23 -
 ...-dri-i965-Add-missing-time.h-include.patch | 36 --
 ...sing-include-stddef.h-in-egldevice.h.patch | 49 +++
 .../{mesa-gl_18.1.9.bb => mesa-gl_18.3.4.bb}  |  0
 meta/recipes-graphics/mesa/mesa.inc   |  6 +--
 .../mesa/{mesa_18.1.9.bb => mesa_18.3.4.bb}   |  9 ++--
 10 files changed, 90 insertions(+), 105 deletions(-)
 delete mode 100644 
meta/recipes-graphics/mesa/files/0004-Use-Python-3-to-execute-the-scripts.patch
 rename 
meta/recipes-graphics/mesa/files/{0006-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch
 => 0004-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch} (60%)
 delete mode 100644 
meta/recipes-graphics/mesa/files/0005-dri-i965-Add-missing-time.h-include.patch
 create mode 100644 
meta/recipes-graphics/mesa/files/0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
 rename meta/recipes-graphics/mesa/{mesa-gl_18.1.9.bb => mesa-gl_18.3.4.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_18.1.9.bb => mesa_18.3.4.bb} (69%)

diff --git 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch 
b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
index a50d2a2ba2..e765356fe1 100644
--- 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
+++ 
b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
@@ -1,7 +1,7 @@
-From 7e8e0f8a8ac2425e19a2f340c9e3da9345f25940 Mon Sep 17 00:00:00 2001
+From 7338667148cb7fcefee76b27359bc1e11656c132 Mon Sep 17 00:00:00 2001
 From: Jussi Kukkonen 
 Date: Tue, 15 Nov 2016 15:20:49 +0200
-Subject: [PATCH 1/6] Simplify wayland-scanner lookup
+Subject: [PATCH 1/5] Simplify wayland-scanner lookup
 Organization: O.S. Systems Software LTDA.
 
 Don't use pkg-config to lookup the path of a binary that's in the path.
@@ -13,20 +13,24 @@ Upstream-Status: Pending
 Signed-off-by: Jussi Kukkonen 
 Signed-off-by: Otavio Salvador 
 ---
- configure.ac | 7 +--
- 1 file changed, 1 insertion(+), 6 deletions(-)
+ configure.ac | 11 +--
+ 1 file changed, 1 insertion(+), 10 deletions(-)
 
 diff --git a/configure.ac b/configure.ac
-index 14f1af2b2f..916d0bd207 100644
+index cd9ff259fad..cbc455e130f 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -1825,12 +1825,7 @@ for plat in $platforms; do
- PKG_CHECK_MODULES([WAYLAND_PROTOCOLS], [wayland-protocols >= 
$WAYLAND_PROTOCOLS_REQUIRED])
+@@ -1841,16 +1841,7 @@ for plat in $platforms; do
+ fi
  WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir 
wayland-protocols`
  
 -PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
 -  WAYLAND_SCANNER=`$PKG_CONFIG 
--variable=wayland_scanner wayland-scanner`,
 -  WAYLAND_SCANNER='')
+-PKG_CHECK_EXISTS([wayland-scanner >= 1.15],
+-  AC_SUBST(SCANNER_ARG, 'private-code'),
+-  AC_SUBST(SCANNER_ARG, 'code'))
+-
 -if test "x$WAYLAND_SCANNER" = x; then
 -AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
 -fi
@@ -35,5 +39,5 @@ index 14f1af2b2f..916d0bd207 100644
  if test "x$WAYLAND_SCANNER" = "x:"; then
  AC_MSG_ERROR([wayland-scanner is needed to compile the 
wayland platform])
 -- 
-2.18.0
+2.20.1
 
diff --git 
a/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
 
b/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
index ffb3bf7a63..12dca61e19 100644
--- 
a/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
+++ 
b/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
@@ -1,7 +1,7 @@
-From 7792f228991744a0396b8bf811e281dca86165d3 Mon Sep 17 00:00:00 2001
+From 34c3d07b67e6c08f555473a86ff158951abb6000 Mon Sep 17 00:00:00 2001
 From: Khem Raj 
 Date: Wed, 16 Aug

[OE-core] [PATCH v3 2/3] mesa: Replace dri-native with dri for native and nativesdk classes

2019-02-20 Thread Fabio Berton
Instead of using a native specific packageconfig option, we now set
the swrast as the supported driver.

Currently the native version does not build any dri drivers at all.
This is intentional: mesa-native is used only by virgl, so was made
the most minimal possible configuration for mesa-native so that a)
virgl works; and b) build time is as short as possible.

There are two swrast drivers, one dri-based, another gallium-based.
Autotools lets you build both, meson forces you to choose.
Thus DRIDRIVERS = "swrast" is only set for _native, as for _target
we get the gallium driver instead.

See discussion here [1]

Based on https://patchwork.openembedded.org/patch/158748/

[1] https://patchwork.openembedded.org/patch/158806/

Signed-off-by: Fabio Berton 
---
 meta/recipes-graphics/mesa/mesa.inc | 13 ++---
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/meta/recipes-graphics/mesa/mesa.inc 
b/meta/recipes-graphics/mesa/mesa.inc
index b9870eb6ad..4c902b8156 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -49,8 +49,8 @@ PACKAGECONFIG_class-target ??= 
"${@bb.utils.filter('DISTRO_FEATURES', 'wayland v
${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11 
dri3', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 
'dri3', '', d)} \
   "
-PACKAGECONFIG_class-native ?= "gbm dri-native egl"
-PACKAGECONFIG_class-nativesdk ?= "gbm dri-native egl"
+PACKAGECONFIG_class-native ?= "gbm dri egl"
+PACKAGECONFIG_class-nativesdk ?= "gbm dri egl"
 
 # "gbm" requires "dri", "opengl"
 PACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm"
@@ -61,13 +61,12 @@ PACKAGECONFIG[x11] = 
"--enable-glx-tls,--disable-glx,${X11_DEPS}"
 PACKAGECONFIG[xvmc] = "--enable-xvmc,--disable-xvmc,libxvmc"
 PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm wayland-protocols"
 
-DRIDRIVERS = "swrast"
-DRIDRIVERS_append_x86_class-target = ",radeon,r200,nouveau,i965,i915"
-DRIDRIVERS_append_x86-64_class-target = ",radeon,r200,nouveau,i965,i915"
+DRIDRIVERS_class-native = "swrast"
+DRIDRIVERS_class-nativesdk = "swrast"
+DRIDRIVERS_append_x86_class-target = ",r100,r200,nouveau,i965,i915"
+DRIDRIVERS_append_x86-64_class-target = ",r100,r200,nouveau,i965,i915"
 # "dri" requires "opengl"
 PACKAGECONFIG[dri] = "--enable-dri --with-dri-drivers=${DRIDRIVERS}, 
--disable-dri, xorgproto libdrm"
-# On the native builds we use host's dri drivers
-PACKAGECONFIG[dri-native] = "--enable-dri, , xorgproto libdrm"
 PACKAGECONFIG[dri3] = "--enable-dri3, --disable-dri3, xorgproto libxshmfence"
 
 # Vulkan drivers need dri3 enabled
-- 
2.20.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v2 2/3] mesa: Replace dri-native with dri for native and nativesdk classes

2019-02-19 Thread Fabio Berton
Instead of using a native specific packageconfig option, we now set
the swrast as the supported driver.

Currently the native version does not build any dri drivers at all.
This is intentional: mesa-native is used only by virgl, so was made
the most minimal possible configuration for mesa-native so that a)
virgl works; and b) build time is as short as possible.

There are two swrast drivers, one dri-based, another gallium-based.
Autotools lets you build both, meson forces you to choose.
Thus DRIDRIVERS = "swrast" is only set for _native, as for _target
we get the gallium driver instead.

See discussion here [1]

Based on https://patchwork.openembedded.org/patch/158748/

[1] https://patchwork.openembedded.org/patch/158806/

Signed-off-by: Fabio Berton 
---
 meta/recipes-graphics/mesa/mesa.inc | 13 ++---
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/meta/recipes-graphics/mesa/mesa.inc 
b/meta/recipes-graphics/mesa/mesa.inc
index a57438b295..8d3e976481 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -49,8 +49,8 @@ PACKAGECONFIG_class-target ??= 
"${@bb.utils.filter('DISTRO_FEATURES', 'wayland v
${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11 
dri3', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 
'dri3', '', d)} \
   "
-PACKAGECONFIG_class-native ?= "gbm dri-native egl"
-PACKAGECONFIG_class-nativesdk ?= "gbm dri-native egl"
+PACKAGECONFIG_class-native ?= "gbm dri egl"
+PACKAGECONFIG_class-nativesdk ?= "gbm dri egl"
 
 # "gbm" requires "dri", "opengl"
 PACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm"
@@ -61,13 +61,12 @@ PACKAGECONFIG[x11] = 
"--enable-glx-tls,--disable-glx,${X11_DEPS}"
 PACKAGECONFIG[xvmc] = "--enable-xvmc,--disable-xvmc,libxvmc"
 PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm wayland-protocols"
 
-DRIDRIVERS = "swrast"
-DRIDRIVERS_append_x86_class-target = ",radeon,r200,nouveau,i965,i915"
-DRIDRIVERS_append_x86-64_class-target = ",radeon,r200,nouveau,i965,i915"
+DRIDRIVERS_class-native = "swrast"
+DRIDRIVERS_class-nativesdk = "swrast"
+DRIDRIVERS_append_x86_class-target = ",r100,r200,nouveau,i965,i915"
+DRIDRIVERS_append_x86-64_class-target = ",r100,r200,nouveau,i965,i915"
 # "dri" requires "opengl"
 PACKAGECONFIG[dri] = "--enable-dri --with-dri-drivers=${DRIDRIVERS}, 
--disable-dri, xorgproto libdrm"
-# On the native builds we use host's dri drivers
-PACKAGECONFIG[dri-native] = "--enable-dri, , xorgproto libdrm"
 PACKAGECONFIG[dri3] = "--enable-dri3, --disable-dri3, xorgproto libxshmfence"
 
 # Vulkan drivers need dri3 enabled
-- 
2.20.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v2 3/3] mesa: Add opengl to native and nativesdk PACKAGECONFIG

2019-02-19 Thread Fabio Berton
Allow the use of opengl for native and nativesdk packages.

Based on https://patchwork.openembedded.org/patch/158748/

Signed-off-by: Fabio Berton 
---
 meta/recipes-graphics/mesa/mesa.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-graphics/mesa/mesa.inc 
b/meta/recipes-graphics/mesa/mesa.inc
index 8d3e976481..233de8eb27 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -49,8 +49,8 @@ PACKAGECONFIG_class-target ??= 
"${@bb.utils.filter('DISTRO_FEATURES', 'wayland v
${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11 
dri3', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 
'dri3', '', d)} \
   "
-PACKAGECONFIG_class-native ?= "gbm dri egl"
-PACKAGECONFIG_class-nativesdk ?= "gbm dri egl"
+PACKAGECONFIG_class-native ?= "gbm dri egl opengl"
+PACKAGECONFIG_class-nativesdk ?= "gbm dri egl opengl"
 
 # "gbm" requires "dri", "opengl"
 PACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm"
-- 
2.20.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v2 1/3] mesa: Update 18.1.9 -> 18.3.4

2019-02-19 Thread Fabio Berton
  - Refresh all patches.

  - Remove "Use Python 3 to execute the scripts" patch
  Commit 986033a2750c1160a4cef3c8418fc7f9e2b4fb5a add support
  for both python 2 and 3.

  - Remove "dri: i965: Add missing time.h include" patch
  Commit 3c288da5eec81ee58b85927df18d9194ead8f5c2 add time.h
  header file.

  - Remove --enable-texture-float.
  Commit 66673bef941af344314fe9c91cad8cd330b245eb remove option to
  unconditionally enable floating-point textures.

  - Commit 30b10dbb7c6f6bdf3e489620f8333c727bd3a6dd moved
${sysconfdir}/drirc to ${datadir}/drirc.d/00-mesa-defaults.conf

  - Add patch to fix mesa-native build

Signed-off-by: Fabio Berton 
---
 ...0001-Simplify-wayland-scanner-lookup.patch | 20 +---
 ...-winsys-svga-drm-Include-sys-types.h.patch |  8 +--
 ...M-version-when-using-LLVM-Git-releas.patch | 12 ++---
 ...-Use-Python-3-to-execute-the-scripts.patch | 32 
 ...-for-defining-WAYLAND_PROTOCOLS_DAT.patch} | 23 -
 ...-dri-i965-Add-missing-time.h-include.patch | 36 --
 ...sing-include-stddef.h-in-egldevice.h.patch | 49 +++
 .../{mesa-gl_18.1.9.bb => mesa-gl_18.3.4.bb}  |  0
 meta/recipes-graphics/mesa/mesa.inc   |  4 +-
 .../mesa/{mesa_18.1.9.bb => mesa_18.3.4.bb}   |  9 ++--
 10 files changed, 89 insertions(+), 104 deletions(-)
 delete mode 100644 
meta/recipes-graphics/mesa/files/0004-Use-Python-3-to-execute-the-scripts.patch
 rename 
meta/recipes-graphics/mesa/files/{0006-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch
 => 0004-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch} (60%)
 delete mode 100644 
meta/recipes-graphics/mesa/files/0005-dri-i965-Add-missing-time.h-include.patch
 create mode 100644 
meta/recipes-graphics/mesa/files/0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
 rename meta/recipes-graphics/mesa/{mesa-gl_18.1.9.bb => mesa-gl_18.3.4.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_18.1.9.bb => mesa_18.3.4.bb} (69%)

diff --git 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch 
b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
index a50d2a2ba2..e765356fe1 100644
--- 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
+++ 
b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
@@ -1,7 +1,7 @@
-From 7e8e0f8a8ac2425e19a2f340c9e3da9345f25940 Mon Sep 17 00:00:00 2001
+From 7338667148cb7fcefee76b27359bc1e11656c132 Mon Sep 17 00:00:00 2001
 From: Jussi Kukkonen 
 Date: Tue, 15 Nov 2016 15:20:49 +0200
-Subject: [PATCH 1/6] Simplify wayland-scanner lookup
+Subject: [PATCH 1/5] Simplify wayland-scanner lookup
 Organization: O.S. Systems Software LTDA.
 
 Don't use pkg-config to lookup the path of a binary that's in the path.
@@ -13,20 +13,24 @@ Upstream-Status: Pending
 Signed-off-by: Jussi Kukkonen 
 Signed-off-by: Otavio Salvador 
 ---
- configure.ac | 7 +--
- 1 file changed, 1 insertion(+), 6 deletions(-)
+ configure.ac | 11 +--
+ 1 file changed, 1 insertion(+), 10 deletions(-)
 
 diff --git a/configure.ac b/configure.ac
-index 14f1af2b2f..916d0bd207 100644
+index cd9ff259fad..cbc455e130f 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -1825,12 +1825,7 @@ for plat in $platforms; do
- PKG_CHECK_MODULES([WAYLAND_PROTOCOLS], [wayland-protocols >= 
$WAYLAND_PROTOCOLS_REQUIRED])
+@@ -1841,16 +1841,7 @@ for plat in $platforms; do
+ fi
  WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir 
wayland-protocols`
  
 -PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
 -  WAYLAND_SCANNER=`$PKG_CONFIG 
--variable=wayland_scanner wayland-scanner`,
 -  WAYLAND_SCANNER='')
+-PKG_CHECK_EXISTS([wayland-scanner >= 1.15],
+-  AC_SUBST(SCANNER_ARG, 'private-code'),
+-  AC_SUBST(SCANNER_ARG, 'code'))
+-
 -if test "x$WAYLAND_SCANNER" = x; then
 -AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
 -fi
@@ -35,5 +39,5 @@ index 14f1af2b2f..916d0bd207 100644
  if test "x$WAYLAND_SCANNER" = "x:"; then
  AC_MSG_ERROR([wayland-scanner is needed to compile the 
wayland platform])
 -- 
-2.18.0
+2.20.1
 
diff --git 
a/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
 
b/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
index ffb3bf7a63..12dca61e19 100644
--- 
a/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
+++ 
b/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
@@ -1,7 +1,7 @@
-From 7792f228991744a0396b8bf811e281dca86165d3 Mon Sep 17 00:00:00 2001
+From 34c3d07b67e6c08f555473a86ff158951abb6000 Mon Sep 17 00:00:00 2001
 From: Khem Raj 
 Date: Wed, 16 Aug 2017 18:58:20 -0700
-Subject

[OE-core] [RFC][PATCH v2] mesa: Convert recipe to use meson build system

2019-02-18 Thread Fabio Berton
  - Remove all non related meson patches

Based on https://patchwork.openembedded.org/patch/158748/

Signed-off-by: Fabio Berton 
---
 ...0001-Simplify-wayland-scanner-lookup.patch | 43 ---
 ...ing-include-stddef.h-in-egldevice.h.patch} |  4 +-
 ...k-for-all-linux-host_os-combinations.patch | 50 +
 ...-winsys-svga-drm-Include-sys-types.h.patch | 34 
 ...M-version-when-using-LLVM-Git-releas.patch | 44 ---
 ...R-for-defining-WAYLAND_PROTOCOLS_DAT.patch | 38 -
 meta/recipes-graphics/mesa/mesa.inc   | 54 +--
 meta/recipes-graphics/mesa/mesa_18.3.3.bb |  7 +--
 8 files changed, 79 insertions(+), 195 deletions(-)
 delete mode 100644 
meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
 rename 
meta/recipes-graphics/mesa/files/{0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
 => 0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch} (91%)
 create mode 100644 
meta/recipes-graphics/mesa/files/0002-meson.build-check-for-all-linux-host_os-combinations.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0003-Properly-get-LLVM-version-when-using-LLVM-Git-releas.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0004-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch

diff --git 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch 
b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
deleted file mode 100644
index e765356fe1..00
--- 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From 7338667148cb7fcefee76b27359bc1e11656c132 Mon Sep 17 00:00:00 2001
-From: Jussi Kukkonen 
-Date: Tue, 15 Nov 2016 15:20:49 +0200
-Subject: [PATCH 1/5] Simplify wayland-scanner lookup
-Organization: O.S. Systems Software LTDA.
-
-Don't use pkg-config to lookup the path of a binary that's in the path.
-
-Alternatively we'd have to prefix the path returned by pkg-config with
-PKG_CONFIG_SYSROOT_DIR.
-
-Upstream-Status: Pending
-Signed-off-by: Jussi Kukkonen 
-Signed-off-by: Otavio Salvador 

- configure.ac | 11 +--
- 1 file changed, 1 insertion(+), 10 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index cd9ff259fad..cbc455e130f 100644
 a/configure.ac
-+++ b/configure.ac
-@@ -1841,16 +1841,7 @@ for plat in $platforms; do
- fi
- WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir 
wayland-protocols`
- 
--PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
--  WAYLAND_SCANNER=`$PKG_CONFIG 
--variable=wayland_scanner wayland-scanner`,
--  WAYLAND_SCANNER='')
--PKG_CHECK_EXISTS([wayland-scanner >= 1.15],
--  AC_SUBST(SCANNER_ARG, 'private-code'),
--  AC_SUBST(SCANNER_ARG, 'code'))
--
--if test "x$WAYLAND_SCANNER" = x; then
--AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
--fi
-+AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
- 
- if test "x$WAYLAND_SCANNER" = "x:"; then
- AC_MSG_ERROR([wayland-scanner is needed to compile the 
wayland platform])
--- 
-2.20.1
-
diff --git 
a/meta/recipes-graphics/mesa/files/0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
 
b/meta/recipes-graphics/mesa/files/0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch
similarity index 91%
rename from 
meta/recipes-graphics/mesa/files/0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
rename to 
meta/recipes-graphics/mesa/files/0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch
index 1782576db2..08d128e919 100644
--- 
a/meta/recipes-graphics/mesa/files/0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
+++ 
b/meta/recipes-graphics/mesa/files/0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch
@@ -1,7 +1,7 @@
-From f452e30ab664fe608acc107cc03d2efa8731d938 Mon Sep 17 00:00:00 2001
+From d2d5acdcb10465c024c8b0931d49e49660210d2c Mon Sep 17 00:00:00 2001
 From: Gurchetan Singh 
 Date: Wed, 28 Nov 2018 08:39:34 -0800
-Subject: [PATCH 5/5] egl: add missing #include  in egldevice.h
+Subject: [PATCH 1/2] egl: add missing #include  in egldevice.h
 MIME-Version: 1.0
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: 8bit
diff --git 
a/meta/recipes-graphics/mesa/files/0002-meson.build-check-for-all-linux-host_os-combinations.patch
 
b/meta/recipes-graphics/mesa/files/0002-meson.build-check-for-all-linux-host_os-combinations.patch
new file mode 100644
index 00..f4650adf0f
--- /dev/null
+++ 
b/meta/recipes-graphics/mesa/files/0002-meson.build-check-for-all-linux-host_os-combinations.patch
@@ -0,0 +1,50 @@
+From a4f6630f4563c2f3f619003706f541c380b49027 Mon Sep 17 00:

[OE-core] [RFC][PATCH] mesa: Convert recipe to use meson build system

2019-02-18 Thread Fabio Berton
  - Remove all non related meson patches

Based on https://patchwork.openembedded.org/patch/158748/

Signed-off-by: Fabio Berton 
---
 ...sing-include-stddef.h-in-egldevice.h.patch | 49 +
 ...k-for-all-linux-host_os-combinations.patch | 50 +
 meta/recipes-graphics/mesa/mesa.inc   | 54 +--
 meta/recipes-graphics/mesa/mesa_18.3.3.bb |  7 +--
 4 files changed, 126 insertions(+), 34 deletions(-)
 create mode 100644 
meta/recipes-graphics/mesa/files/0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch
 create mode 100644 
meta/recipes-graphics/mesa/files/0002-meson.build-check-for-all-linux-host_os-combinations.patch

diff --git 
a/meta/recipes-graphics/mesa/files/0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch
 
b/meta/recipes-graphics/mesa/files/0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch
new file mode 100644
index 00..08d128e919
--- /dev/null
+++ 
b/meta/recipes-graphics/mesa/files/0001-egl-add-missing-include-stddef.h-in-egldevice.h.patch
@@ -0,0 +1,49 @@
+From d2d5acdcb10465c024c8b0931d49e49660210d2c Mon Sep 17 00:00:00 2001
+From: Gurchetan Singh 
+Date: Wed, 28 Nov 2018 08:39:34 -0800
+Subject: [PATCH 1/2] egl: add missing #include  in egldevice.h
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+Organization: O.S. Systems Software LTDA.
+
+Otherwise, I get this error:
+
+main/egldevice.h:54:13: error: ‘NULL’ undeclared (first use in this function)
+   dev = NULL;
+ ^~~~
+with this config:
+
+./autogen.sh --enable-gles1 --enable-gles2 --with-platforms='surfaceless' 
--disable-glx
+ --with-dri-drivers="i965" --with-gallium-drivers="" --enable-gbm
+
+v3: Use stddef.h (Matt)
+v4: Modify commit message (Eric)
+
+Reviewed-by: Matt Turner 
+Reviewed-by: Eric Engestrom 
+
+Upstream-Status: Backport 
[https://cgit.freedesktop.org/mesa/mesa/commit/?id=eb44c36cf1729e7e200b77cf8ea755dff72d1639]
+Signed-off-by: Alexander Kanavin 
+---
+ src/egl/main/egldevice.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/egl/main/egldevice.h b/src/egl/main/egldevice.h
+index ddcdcd17f5a..83a47d5eacc 100644
+--- a/src/egl/main/egldevice.h
 b/src/egl/main/egldevice.h
+@@ -31,9 +31,9 @@
+ 
+ 
+ #include 
++#include 
+ #include "egltypedefs.h"
+ 
+-
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+-- 
+2.20.1
+
diff --git 
a/meta/recipes-graphics/mesa/files/0002-meson.build-check-for-all-linux-host_os-combinations.patch
 
b/meta/recipes-graphics/mesa/files/0002-meson.build-check-for-all-linux-host_os-combinations.patch
new file mode 100644
index 00..f4650adf0f
--- /dev/null
+++ 
b/meta/recipes-graphics/mesa/files/0002-meson.build-check-for-all-linux-host_os-combinations.patch
@@ -0,0 +1,50 @@
+From a4f6630f4563c2f3f619003706f541c380b49027 Mon Sep 17 00:00:00 2001
+From: Anuj Mittal 
+Date: Mon, 11 Feb 2019 20:55:27 +0800
+Subject: [PATCH 2/2] meson.build: check for all linux host_os combinations
+Organization: O.S. Systems Software LTDA.
+
+Make sure that we are also looking for our host_os combinations like
+linux-musl etc. when assuming support for DRM/KMS.
+
+Also delete a duplicate line.
+
+Signed-off-by: Anuj Mittal 
+---
+ meson.build | 6 ++
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index f11c556d359..e5f9b8a24be 100644
+--- a/meson.build
 b/meson.build
+@@ -34,7 +34,7 @@ cpp = meson.get_compiler('cpp')
+ 
+ null_dep = dependency('', required : false)
+ 
+-system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'dragonfly', 
'linux'].contains(host_machine.system())
++system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 
'dragonfly'].contains(host_machine.system()) or 
host_machine.system().startswith('linux')
+ 
+ # Arguments for the preprocessor, put these in a separate array from the C and
+ # C++ (cpp in meson terminology) arguments since they need to be added to the
+@@ -92,8 +92,6 @@ if (with_gles1 or with_gles2) and not with_opengl
+   error('building OpenGL ES without OpenGL is not supported.')
+ endif
+ 
+-system_has_kms_drm = ['openbsd', 'netbsd', 'freebsd', 'dragonfly', 
'linux'].contains(host_machine.system())
+-
+ _drivers = get_option('dri-drivers')
+ if _drivers.contains('auto')
+   if system_has_kms_drm
+@@ -799,7 +797,7 @@ if cc.compiles('int foo(void) 
__attribute__((__noreturn__));',
+ endif
+ 
+ # TODO: this is very incomplete
+-if ['linux', 'cygwin', 'gnu'].contains(host_machine.system())
++if ['cygwin', 'gnu'].contains(host_machine.system()) or 
host_machine.system().startswith('linux')
+   pre_args += '-D_GNU_SOURCE'
+ endif
+ 
+-- 
+2.20.1
+
diff --git a/meta/recipes-graphics/mesa/mesa.inc 
b/meta/recipes-graphics/mesa/mesa.inc
index 233de8eb27..128dd80295 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -14,7 +14,7 @@ LIC_FILES

[OE-core] [PATCH 3/3] mesa: Add opengl to native and nativesdk PACKAGECONFIG

2019-02-18 Thread Fabio Berton
Allow the use of opengl for native and nativesdk packages.

Based on https://patchwork.openembedded.org/patch/158748/

Signed-off-by: Fabio Berton 
---
 meta/recipes-graphics/mesa/mesa.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-graphics/mesa/mesa.inc 
b/meta/recipes-graphics/mesa/mesa.inc
index 8d3e976481..233de8eb27 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -49,8 +49,8 @@ PACKAGECONFIG_class-target ??= 
"${@bb.utils.filter('DISTRO_FEATURES', 'wayland v
${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11 
dri3', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 
'dri3', '', d)} \
   "
-PACKAGECONFIG_class-native ?= "gbm dri egl"
-PACKAGECONFIG_class-nativesdk ?= "gbm dri egl"
+PACKAGECONFIG_class-native ?= "gbm dri egl opengl"
+PACKAGECONFIG_class-nativesdk ?= "gbm dri egl opengl"
 
 # "gbm" requires "dri", "opengl"
 PACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm"
-- 
2.20.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 2/3] mesa: Replace dri-native with dri for native and nativesdk classes

2019-02-18 Thread Fabio Berton
Instead of using a native specific packageconfig option, we now set
the swrast as the supported driver.

Based on https://patchwork.openembedded.org/patch/158748/

Signed-off-by: Fabio Berton 
---
 meta/recipes-graphics/mesa/mesa.inc | 13 ++---
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/meta/recipes-graphics/mesa/mesa.inc 
b/meta/recipes-graphics/mesa/mesa.inc
index a57438b295..8d3e976481 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -49,8 +49,8 @@ PACKAGECONFIG_class-target ??= 
"${@bb.utils.filter('DISTRO_FEATURES', 'wayland v
${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'x11 
dri3', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11 vulkan', 
'dri3', '', d)} \
   "
-PACKAGECONFIG_class-native ?= "gbm dri-native egl"
-PACKAGECONFIG_class-nativesdk ?= "gbm dri-native egl"
+PACKAGECONFIG_class-native ?= "gbm dri egl"
+PACKAGECONFIG_class-nativesdk ?= "gbm dri egl"
 
 # "gbm" requires "dri", "opengl"
 PACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm"
@@ -61,13 +61,12 @@ PACKAGECONFIG[x11] = 
"--enable-glx-tls,--disable-glx,${X11_DEPS}"
 PACKAGECONFIG[xvmc] = "--enable-xvmc,--disable-xvmc,libxvmc"
 PACKAGECONFIG[wayland] = ",,wayland-native wayland libdrm wayland-protocols"
 
-DRIDRIVERS = "swrast"
-DRIDRIVERS_append_x86_class-target = ",radeon,r200,nouveau,i965,i915"
-DRIDRIVERS_append_x86-64_class-target = ",radeon,r200,nouveau,i965,i915"
+DRIDRIVERS_class-native = "swrast"
+DRIDRIVERS_class-nativesdk = "swrast"
+DRIDRIVERS_append_x86_class-target = ",r100,r200,nouveau,i965,i915"
+DRIDRIVERS_append_x86-64_class-target = ",r100,r200,nouveau,i965,i915"
 # "dri" requires "opengl"
 PACKAGECONFIG[dri] = "--enable-dri --with-dri-drivers=${DRIDRIVERS}, 
--disable-dri, xorgproto libdrm"
-# On the native builds we use host's dri drivers
-PACKAGECONFIG[dri-native] = "--enable-dri, , xorgproto libdrm"
 PACKAGECONFIG[dri3] = "--enable-dri3, --disable-dri3, xorgproto libxshmfence"
 
 # Vulkan drivers need dri3 enabled
-- 
2.20.1

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 1/3] mesa: Update 18.1.9 -> 18.3.3

2019-02-18 Thread Fabio Berton
  - Refresh all patches.

  - Remove "Use Python 3 to execute the scripts" patch
  Commit 986033a2750c1160a4cef3c8418fc7f9e2b4fb5a add support
  for both python 2 and 3.

  - Remove "dri: i965: Add missing time.h include" patch
  Commit 3c288da5eec81ee58b85927df18d9194ead8f5c2 add time.h
  header file.

  - Remove --enable-texture-float.
  Commit 66673bef941af344314fe9c91cad8cd330b245eb remove option to
  unconditionally enable floating-point textures.

  - Commit 30b10dbb7c6f6bdf3e489620f8333c727bd3a6dd moved
${sysconfdir}/drirc to ${datadir}/drirc.d/00-mesa-defaults.conf

  - Add patch to fix mesa-native build

Signed-off-by: Fabio Berton 
---
 ...0001-Simplify-wayland-scanner-lookup.patch | 20 +---
 ...-winsys-svga-drm-Include-sys-types.h.patch |  8 +--
 ...M-version-when-using-LLVM-Git-releas.patch | 12 ++---
 ...-Use-Python-3-to-execute-the-scripts.patch | 32 
 ...-for-defining-WAYLAND_PROTOCOLS_DAT.patch} | 23 -
 ...-dri-i965-Add-missing-time.h-include.patch | 36 --
 ...sing-include-stddef.h-in-egldevice.h.patch | 49 +++
 .../{mesa-gl_18.1.9.bb => mesa-gl_18.3.3.bb}  |  0
 meta/recipes-graphics/mesa/mesa.inc   |  4 +-
 .../mesa/{mesa_18.1.9.bb => mesa_18.3.3.bb}   |  9 ++--
 10 files changed, 89 insertions(+), 104 deletions(-)
 delete mode 100644 
meta/recipes-graphics/mesa/files/0004-Use-Python-3-to-execute-the-scripts.patch
 rename 
meta/recipes-graphics/mesa/files/{0006-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch
 => 0004-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch} (60%)
 delete mode 100644 
meta/recipes-graphics/mesa/files/0005-dri-i965-Add-missing-time.h-include.patch
 create mode 100644 
meta/recipes-graphics/mesa/files/0005-egl-add-missing-include-stddef.h-in-egldevice.h.patch
 rename meta/recipes-graphics/mesa/{mesa-gl_18.1.9.bb => mesa-gl_18.3.3.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_18.1.9.bb => mesa_18.3.3.bb} (69%)

diff --git 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch 
b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
index a50d2a2ba2..e765356fe1 100644
--- 
a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
+++ 
b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
@@ -1,7 +1,7 @@
-From 7e8e0f8a8ac2425e19a2f340c9e3da9345f25940 Mon Sep 17 00:00:00 2001
+From 7338667148cb7fcefee76b27359bc1e11656c132 Mon Sep 17 00:00:00 2001
 From: Jussi Kukkonen 
 Date: Tue, 15 Nov 2016 15:20:49 +0200
-Subject: [PATCH 1/6] Simplify wayland-scanner lookup
+Subject: [PATCH 1/5] Simplify wayland-scanner lookup
 Organization: O.S. Systems Software LTDA.
 
 Don't use pkg-config to lookup the path of a binary that's in the path.
@@ -13,20 +13,24 @@ Upstream-Status: Pending
 Signed-off-by: Jussi Kukkonen 
 Signed-off-by: Otavio Salvador 
 ---
- configure.ac | 7 +--
- 1 file changed, 1 insertion(+), 6 deletions(-)
+ configure.ac | 11 +--
+ 1 file changed, 1 insertion(+), 10 deletions(-)
 
 diff --git a/configure.ac b/configure.ac
-index 14f1af2b2f..916d0bd207 100644
+index cd9ff259fad..cbc455e130f 100644
 --- a/configure.ac
 +++ b/configure.ac
-@@ -1825,12 +1825,7 @@ for plat in $platforms; do
- PKG_CHECK_MODULES([WAYLAND_PROTOCOLS], [wayland-protocols >= 
$WAYLAND_PROTOCOLS_REQUIRED])
+@@ -1841,16 +1841,7 @@ for plat in $platforms; do
+ fi
  WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir 
wayland-protocols`
  
 -PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
 -  WAYLAND_SCANNER=`$PKG_CONFIG 
--variable=wayland_scanner wayland-scanner`,
 -  WAYLAND_SCANNER='')
+-PKG_CHECK_EXISTS([wayland-scanner >= 1.15],
+-  AC_SUBST(SCANNER_ARG, 'private-code'),
+-  AC_SUBST(SCANNER_ARG, 'code'))
+-
 -if test "x$WAYLAND_SCANNER" = x; then
 -AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
 -fi
@@ -35,5 +39,5 @@ index 14f1af2b2f..916d0bd207 100644
  if test "x$WAYLAND_SCANNER" = "x:"; then
  AC_MSG_ERROR([wayland-scanner is needed to compile the 
wayland platform])
 -- 
-2.18.0
+2.20.1
 
diff --git 
a/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
 
b/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
index ffb3bf7a63..12dca61e19 100644
--- 
a/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
+++ 
b/meta/recipes-graphics/mesa/files/0002-winsys-svga-drm-Include-sys-types.h.patch
@@ -1,7 +1,7 @@
-From 7792f228991744a0396b8bf811e281dca86165d3 Mon Sep 17 00:00:00 2001
+From 34c3d07b67e6c08f555473a86ff158951abb6000 Mon Sep 17 00:00:00 2001
 From: Khem Raj 
 Date: Wed, 16 Aug 2017 18:58:20 -0700
-Subject

Re: [OE-core] [PATCH] mesa: upgrade 18.1.9 -> 18.3.3

2019-02-15 Thread Fabio Berton
Hi All!

In my opinion, there is no relation with an update and change build
system, once we can use mesa 18.3.3 without meson.

On Fri, Feb 15, 2019 at 1:11 PM Alexander Kanavin
 wrote:
>
> From: Anuj Mittal 
>
> * For changes, see:
> https://www.mesa3d.org/relnotes/18.3.3.html
>
> * Convert from using autotools to meson and get rid of unnecessary
> patches.
>
> * Include a patch to fix detection of host os combinations that we build
> for.
>
> Alex:
> * fixed mesa-native failures by correctly setting disabled variants of
> PACKAGECONFIGs
>
> * Added a backported patch to avoid a build failure
>
> Signed-off-by: Anuj Mittal 
> Signed-off-by: Alexander Kanavin 
> ---
>  ...0001-Simplify-wayland-scanner-lookup.patch | 39 ---
>  ...k-for-all-linux-host_os-combinations.patch | 49 +
>  ...M-version-when-using-LLVM-Git-releas.patch | 44 
>  ...-Use-Python-3-to-execute-the-scripts.patch | 32 -
>  ...-dri-i965-Add-missing-time.h-include.patch | 36 --
>  ...R-for-defining-WAYLAND_PROTOCOLS_DAT.patch | 37 --
>  .../mesa/files/fix-NULL-error.patch   | 50 +
>  .../{mesa-gl_18.1.9.bb => mesa-gl_18.3.3.bb}  |  0
>  meta/recipes-graphics/mesa/mesa.inc   | 70 +--
>  .../mesa/{mesa_18.1.9.bb => mesa_18.3.3.bb}   | 11 ++-
>  10 files changed, 136 insertions(+), 232 deletions(-)
>  delete mode 100644 
> meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
>  create mode 100644 
> meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
>  delete mode 100644 
> meta/recipes-graphics/mesa/files/0003-Properly-get-LLVM-version-when-using-LLVM-Git-releas.patch
>  delete mode 100644 
> meta/recipes-graphics/mesa/files/0004-Use-Python-3-to-execute-the-scripts.patch
>  delete mode 100644 
> meta/recipes-graphics/mesa/files/0005-dri-i965-Add-missing-time.h-include.patch
>  delete mode 100644 
> meta/recipes-graphics/mesa/files/0006-use-PKG_CHECK_VAR-for-defining-WAYLAND_PROTOCOLS_DAT.patch
>  create mode 100644 meta/recipes-graphics/mesa/files/fix-NULL-error.patch
>  rename meta/recipes-graphics/mesa/{mesa-gl_18.1.9.bb => mesa-gl_18.3.3.bb} 
> (100%)
>  rename meta/recipes-graphics/mesa/{mesa_18.1.9.bb => mesa_18.3.3.bb} (54%)
>
> diff --git 
> a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch 
> b/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
> deleted file mode 100644
> index a50d2a2ba28..000
> --- 
> a/meta/recipes-graphics/mesa/files/0001-Simplify-wayland-scanner-lookup.patch
> +++ /dev/null
> @@ -1,39 +0,0 @@
> -From 7e8e0f8a8ac2425e19a2f340c9e3da9345f25940 Mon Sep 17 00:00:00 2001
> -From: Jussi Kukkonen 
> -Date: Tue, 15 Nov 2016 15:20:49 +0200
> -Subject: [PATCH 1/6] Simplify wayland-scanner lookup
> -Organization: O.S. Systems Software LTDA.
> -
> -Don't use pkg-config to lookup the path of a binary that's in the path.
> -
> -Alternatively we'd have to prefix the path returned by pkg-config with
> -PKG_CONFIG_SYSROOT_DIR.
> -
> -Upstream-Status: Pending
> -Signed-off-by: Jussi Kukkonen 
> -Signed-off-by: Otavio Salvador 
> 
> - configure.ac | 7 +--
> - 1 file changed, 1 insertion(+), 6 deletions(-)
> -
> -diff --git a/configure.ac b/configure.ac
> -index 14f1af2b2f..916d0bd207 100644
>  a/configure.ac
> -+++ b/configure.ac
> -@@ -1825,12 +1825,7 @@ for plat in $platforms; do
> - PKG_CHECK_MODULES([WAYLAND_PROTOCOLS], [wayland-protocols >= 
> $WAYLAND_PROTOCOLS_REQUIRED])
> - WAYLAND_PROTOCOLS_DATADIR=`$PKG_CONFIG --variable=pkgdatadir 
> wayland-protocols`
> -
> --PKG_CHECK_MODULES([WAYLAND_SCANNER], [wayland-scanner],
> --  WAYLAND_SCANNER=`$PKG_CONFIG 
> --variable=wayland_scanner wayland-scanner`,
> --  WAYLAND_SCANNER='')
> --if test "x$WAYLAND_SCANNER" = x; then
> --AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
> --fi
> -+AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner], [:])
> -
> - if test "x$WAYLAND_SCANNER" = "x:"; then
> - AC_MSG_ERROR([wayland-scanner is needed to compile the 
> wayland platform])
> ---
> -2.18.0
> -
> diff --git 
> a/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
>  
> b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
> new file mode 100644
> index 000..1147eacdd93
> --- /dev/null
> +++ 
> b/meta/recipes-graphics/mesa/files/0001-meson.build-check-for-all-linux-host_os-combinations.patch
> @@ -0,0 +1,49 @@
> +From 8140dc078bcdbc5fbaf1c46c3fd3efbe587a0f29 Mon Sep 17 00:00:00 2001
> +From: Anuj Mittal 
> +Date: Mon, 11 Feb 2019 20:55:27 +0800
> +Subject: [PATCH] meson.build: check for all linux host_os combinations
> +
> +Make sure that we are also looking for our host_os combinations like
> +linux-musl etc. when 

[OE-core] [sumo, master][PATCH] busybox: Add patch to ignore -c on umount command

2018-07-03 Thread Fabio Berton
Fix error when umounting filesystem on shutdown with a systemd distro.

See more datails here: [https://github.com/systemd/systemd/issues/7786]

Signed-off-by: Fabio Berton 
---
 .../busybox/busybox/umount-ignore-c.patch | 37 +++
 meta/recipes-core/busybox/busybox_1.27.2.bb   |  1 +
 2 files changed, 38 insertions(+)
 create mode 100644 meta/recipes-core/busybox/busybox/umount-ignore-c.patch

diff --git a/meta/recipes-core/busybox/busybox/umount-ignore-c.patch 
b/meta/recipes-core/busybox/busybox/umount-ignore-c.patch
new file mode 100644
index 00..16514200ee
--- /dev/null
+++ b/meta/recipes-core/busybox/busybox/umount-ignore-c.patch
@@ -0,0 +1,37 @@
+From 95ea12791c8623bf825bc711ac7790306e7e1adb Mon Sep 17 00:00:00 2001
+From: Shawn Landden 
+Date: Mon, 8 Jan 2018 13:31:58 +0100
+Subject: [PATCH] umount: ignore -c
+Organization: O.S. Systems Software LTDA.
+
+"-c, --no-canonicalize: Do not canonicalize paths."
+
+As busybox doesn't canonicalize paths in the first place it is safe to ignore
+this option.
+
+See https://github.com/systemd/systemd/issues/7786
+
+Signed-off-by: Shawn Landden 
+Signed-off-by: Denys Vlasenko 
+---
+ util-linux/umount.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/util-linux/umount.c b/util-linux/umount.c
+index 0c50dc9ee..0425c5b76 100644
+--- a/util-linux/umount.c
 b/util-linux/umount.c
+@@ -68,8 +68,8 @@ static struct mntent *getmntent_r(FILE* stream, struct 
mntent* result,
+ }
+ #endif
+ 
+-/* ignored: -v -t -i */
+-#define OPTION_STRING   "fldnra" "vt:i"
++/* ignored: -c -v -t -i */
++#define OPTION_STRING   "fldnra" "cvt:i"
+ #define OPT_FORCE   (1 << 0) // Same as MNT_FORCE
+ #define OPT_LAZY(1 << 1) // Same as MNT_DETACH
+ #define OPT_FREELOOP(1 << 2)
+-- 
+2.18.0
+
diff --git a/meta/recipes-core/busybox/busybox_1.27.2.bb 
b/meta/recipes-core/busybox/busybox_1.27.2.bb
index 92678701fc..1ce4823d47 100644
--- a/meta/recipes-core/busybox/busybox_1.27.2.bb
+++ b/meta/recipes-core/busybox/busybox_1.27.2.bb
@@ -46,6 +46,7 @@ SRC_URI = 
"http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
file://CVE-2017-15873.patch \
file://busybox-CVE-2017-16544.patch \
file://busybox-fix-lzma-segfaults.patch \
+   file://umount-ignore-c.patch \
 "
 SRC_URI_append_libc-musl = " file://musl.cfg "
 
-- 
2.18.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [rocko][PATCH] busybox: Add patch to ignore -c on umount command

2018-07-03 Thread Fabio Berton
Fix error when umounting filesystem on shutdown with a systemd distro.

See more datails here: [https://github.com/systemd/systemd/issues/7786]

Signed-off-by: Fabio Berton 
---
 .../busybox/busybox/umount-ignore-c.patch | 47 +++
 meta/recipes-core/busybox/busybox_1.24.1.bb   |  1 +
 2 files changed, 48 insertions(+)
 create mode 100644 meta/recipes-core/busybox/busybox/umount-ignore-c.patch

diff --git a/meta/recipes-core/busybox/busybox/umount-ignore-c.patch 
b/meta/recipes-core/busybox/busybox/umount-ignore-c.patch
new file mode 100644
index 00..563532bf52
--- /dev/null
+++ b/meta/recipes-core/busybox/busybox/umount-ignore-c.patch
@@ -0,0 +1,47 @@
+From d222d23433116088f15b6f9510e42d02744a0de2 Mon Sep 17 00:00:00 2001
+From: Fabio Berton 
+Date: Tue, 3 Jul 2018 14:20:52 -0300
+Subject: [PATCH] umount: ignore -c
+Organization: O.S. Systems Software LTDA.
+
+"-c, --no-canonicalize: Do not canonicalize paths."
+
+As busybox doesn't canonicalize paths in the first place it is safe to ignore
+this option.
+
+See https://github.com/systemd/systemd/issues/7786
+
+Signed-off-by: Shawn Landden 
+Signed-off-by: Denys Vlasenko 
+Signed-off-by: Fabio Berton 
+
+Upstream-Status: Backport 
[https://git.busybox.net/busybox/commit/?id=426134128112738c97a665170b21153ef0764b7d]
+---
+ util-linux/umount.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/util-linux/umount.c b/util-linux/umount.c
+index c6c7441b8..e80266677 100644
+--- a/util-linux/umount.c
 b/util-linux/umount.c
+@@ -44,7 +44,7 @@ static struct mntent *getmntent_r(FILE* stream, struct 
mntent* result,
+ }
+ #endif
+ 
+-/* Ignored: -v -t -i
++/* Ignored: -c -v -t -i
+  * bbox always acts as if -d is present.
+  * -D can be used to suppress it (bbox extension).
+  * Rationale:
+@@ -52,7 +52,7 @@ static struct mntent *getmntent_r(FILE* stream, struct 
mntent* result,
+  * thus, on many systems, bare umount _does_ drop loop devices.
+  * (2) many users request this feature.
+  */
+-#define OPTION_STRING   "fldDnra" "vt:i"
++#define OPTION_STRING   "fldDnra" "cvt:i"
+ #define OPT_FORCE   (1 << 0) // Same as MNT_FORCE
+ #define OPT_LAZY(1 << 1) // Same as MNT_DETACH
+ //#define OPT_FREE_LOOP   (1 << 2) // -d is assumed always present
+-- 
+2.18.0
+
diff --git a/meta/recipes-core/busybox/busybox_1.24.1.bb 
b/meta/recipes-core/busybox/busybox_1.24.1.bb
index 1c8580876a..c5540bf4f0 100644
--- a/meta/recipes-core/busybox/busybox_1.24.1.bb
+++ b/meta/recipes-core/busybox/busybox_1.24.1.bb
@@ -61,6 +61,7 @@ SRC_URI = 
"http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
file://busybox-tar-add-IF_FEATURE_-checks.patch \
file://0001-iproute-support-scope-.-Closes-8561.patch \

file://0001-ip-fix-an-improper-optimization-req.r.rtm_scope-may-.patch \
+   file://umount-ignore-c.patch \
 "
 SRC_URI_append_libc-musl = " file://musl.cfg "
 
-- 
2.18.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] systemd: Add util-linux-umount to RDEPENDS

2018-05-18 Thread Fabio Berton
Yes, I tested this patch seems to work.

But bug report has:

"Yeah, this appears to be a limitation of busybox, and needs to be fixed in
busybox. We focus on util-linux proper, which has supported this option
since generations"

So, I add umount from util-linux because systemd focus on util-linux and
systemd recipe already has util-linux-mount.

If add patch to busybox is a better solution I can do this and send to list.

Fabio

On Thu, May 17, 2018 at 4:53 PM, Andre McCurdy <armccu...@gmail.com> wrote:

> On Thu, May 17, 2018 at 12:15 PM, Fabio Berton
> <fabio.ber...@ossystems.com.br> wrote:
> > Images with systemd fails on reboot with error:
> >
> >[FAILED] Failed unmounting Temporary Directory (/tmp).
> >
> > This happens because busybox umount command doesn't has -c
> > option. Add util-linux-umount that has this option to fix
> > this issue.
> >
> > See details: https://github.com/systemd/systemd/issues/7786
>
> That bug report mentions a fix to busybox. Since the fix is available
> in upstream busybox, maybe better to just backport the patch to our
> version of buysbox:
>
>   https://git.busybox.net/busybox/commit/?id=
> 426134128112738c97a665170b21153ef0764b7d
>
> > Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
> > ---
> >  meta/recipes-core/systemd/systemd_237.bb | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/meta/recipes-core/systemd/systemd_237.bb
> b/meta/recipes-core/systemd/systemd_237.bb
> > index b7c2113255f..3b0f4580d49 100644
> > --- a/meta/recipes-core/systemd/systemd_237.bb
> > +++ b/meta/recipes-core/systemd/systemd_237.bb
> > @@ -478,7 +478,7 @@ FILES_${PN} = " ${base_bindir}/* \
> >
> >  FILES_${PN}-dev += "${base_libdir}/security/*.la
> ${datadir}/dbus-1/interfaces/ ${sysconfdir}/rpm/macros.systemd"
> >
> > -RDEPENDS_${PN} += "kmod dbus util-linux-mount udev (= ${EXTENDPKGV})
> util-linux-agetty"
> > +RDEPENDS_${PN} += "kmod dbus util-linux-mount util-linux-umount udev (=
> ${EXTENDPKGV}) util-linux-agetty"
> >  RDEPENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG',
> 'serial-getty-generator', '', 'systemd-serialgetty', d)}"
> >  RDEPENDS_${PN} += "volatile-binds update-rc.d"
> >
> > --
> > 2.14.2
> >
> > --
> > ___
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] systemd: Add util-linux-umount to RDEPENDS

2018-05-17 Thread Fabio Berton
Images with systemd fails on reboot with error:

   [FAILED] Failed unmounting Temporary Directory (/tmp).

This happens because busybox umount command doesn't has -c
option. Add util-linux-umount that has this option to fix
this issue.

See details: https://github.com/systemd/systemd/issues/7786

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 meta/recipes-core/systemd/systemd_237.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/systemd/systemd_237.bb 
b/meta/recipes-core/systemd/systemd_237.bb
index b7c2113255f..3b0f4580d49 100644
--- a/meta/recipes-core/systemd/systemd_237.bb
+++ b/meta/recipes-core/systemd/systemd_237.bb
@@ -478,7 +478,7 @@ FILES_${PN} = " ${base_bindir}/* \
 
 FILES_${PN}-dev += "${base_libdir}/security/*.la ${datadir}/dbus-1/interfaces/ 
${sysconfdir}/rpm/macros.systemd"
 
-RDEPENDS_${PN} += "kmod dbus util-linux-mount udev (= ${EXTENDPKGV}) 
util-linux-agetty"
+RDEPENDS_${PN} += "kmod dbus util-linux-mount util-linux-umount udev (= 
${EXTENDPKGV}) util-linux-agetty"
 RDEPENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 
'serial-getty-generator', '', 'systemd-serialgetty', d)}"
 RDEPENDS_${PN} += "volatile-binds update-rc.d"
 
-- 
2.14.2

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] mesa: Upgrade 17.3.8 -> 18.0.1

2018-04-25 Thread Fabio Berton
This includes changes from Mesa 18.0.0 and 18.0.1 releases.

Mesa 18.0.0 is a new development release and 18.0.1 is a bug-fix release.

You can find release notes here:

  - https://mesa3d.org/relnotes/18.0.0.html
  - https://mesa3d.org/relnotes/18.0.1.html

Remove patch 0001-st-dri-Initialise-modifier-to-INVALID-for-DRI2.patch
that was applied on upstream.

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 ...i-Initialise-modifier-to-INVALID-for-DRI2.patch | 43 --
 .../mesa/{mesa-gl_17.3.8.bb => mesa-gl_18.0.1.bb}  |  0
 .../mesa/{mesa_17.3.8.bb => mesa_18.0.1.bb}|  5 +--
 3 files changed, 2 insertions(+), 46 deletions(-)
 delete mode 100644 
meta/recipes-graphics/mesa/files/0001-st-dri-Initialise-modifier-to-INVALID-for-DRI2.patch
 rename meta/recipes-graphics/mesa/{mesa-gl_17.3.8.bb => mesa-gl_18.0.1.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_17.3.8.bb => mesa_18.0.1.bb} (81%)

diff --git 
a/meta/recipes-graphics/mesa/files/0001-st-dri-Initialise-modifier-to-INVALID-for-DRI2.patch
 
b/meta/recipes-graphics/mesa/files/0001-st-dri-Initialise-modifier-to-INVALID-for-DRI2.patch
deleted file mode 100644
index 6aba7859ee..00
--- 
a/meta/recipes-graphics/mesa/files/0001-st-dri-Initialise-modifier-to-INVALID-for-DRI2.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From 4cbecb61682a0ee426faaa03d824fc8fd7aef826 Mon Sep 17 00:00:00 2001
-From: Daniel Stone <dani...@collabora.com>
-Date: Mon, 2 Apr 2018 13:20:34 +0100
-Subject: [PATCH] st/dri: Initialise modifier to INVALID for DRI2
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-When allocating a buffer for DRI2, set the modifier to INVALID to inform
-the backend that we have no supplied modifiers and it should do its own
-thing. The missed initialisation forced linear, even if the
-implementation had made other decisions.
-
-This resulted in VC4 DRI2 clients failing with:
-  Modifier 0x0 vs. tiling (0x701) mismatch
-
-Signed-off-by: Daniel Stone <dani...@collabora.com>
-Reported-by: Andreas Müller <schnitzelt...@gmail.com>
-Reviewed-by: Eric Anholt <e...@anholt.net>
-Fixes: 3f8513172ff6 ("gallium/winsys/drm: introduce modifier field to 
winsys_handle")
-
-Upstream-Status: Backport [1]
-
-[1] 
https://cgit.freedesktop.org/mesa/mesa/commit/?id=4cbecb61682a0ee426faaa03d824fc8fd7aef826

- src/gallium/state_trackers/dri/dri2.c | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/src/gallium/state_trackers/dri/dri2.c 
b/src/gallium/state_trackers/dri/dri2.c
-index 31d17d46c2..58a6757f03 100644
 a/src/gallium/state_trackers/dri/dri2.c
-+++ b/src/gallium/state_trackers/dri/dri2.c
-@@ -806,6 +806,7 @@ dri2_allocate_textures(struct dri_context *ctx,
-  whandle.handle = buf->name;
-  whandle.stride = buf->pitch;
-  whandle.offset = 0;
-+ whandle.modifier = DRM_FORMAT_MOD_INVALID;
-  if (screen->can_share_buffer)
- whandle.type = DRM_API_HANDLE_TYPE_SHARED;
-  else
--- 
-2.14.3
-
diff --git a/meta/recipes-graphics/mesa/mesa-gl_17.3.8.bb 
b/meta/recipes-graphics/mesa/mesa-gl_18.0.1.bb
similarity index 100%
rename from meta/recipes-graphics/mesa/mesa-gl_17.3.8.bb
rename to meta/recipes-graphics/mesa/mesa-gl_18.0.1.bb
diff --git a/meta/recipes-graphics/mesa/mesa_17.3.8.bb 
b/meta/recipes-graphics/mesa/mesa_18.0.1.bb
similarity index 81%
rename from meta/recipes-graphics/mesa/mesa_17.3.8.bb
rename to meta/recipes-graphics/mesa/mesa_18.0.1.bb
index 2d3fd3ca38..6588dfcae0 100644
--- a/meta/recipes-graphics/mesa/mesa_17.3.8.bb
+++ b/meta/recipes-graphics/mesa/mesa_18.0.1.bb
@@ -8,11 +8,10 @@ SRC_URI = 
"https://mesa.freedesktop.org/archive/mesa-${PV}.tar.xz \
file://llvm-config-version.patch \
file://0001-winsys-svga-drm-Include-sys-types.h.patch \

file://0001-Makefile.vulkan.am-explictly-add-lib-expat-to-intel-.patch \
-   file://0001-st-dri-Initialise-modifier-to-INVALID-for-DRI2.patch \
"
 
-SRC_URI[md5sum] = "203d1a79156ab6926f2d253b377e9d9d"
-SRC_URI[sha256sum] = 
"8f9d9bf281c48e4a8f5228816577263b4c655248dc7666e75034ab422951a6b1"
+SRC_URI[md5sum] = "a240b17769ad5ff918507848590f9397"
+SRC_URI[sha256sum] = 
"b2d2f5b5dbaab13e15cb0dcb5ec81887467f55ebc9625945b303a3647cd87954"
 
 #because we cannot rely on the fact that all apps will use pkgconfig,
 #make eglplatform.h independent of MESA_EGL_NO_X11_HEADER
-- 
2.14.2

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [rocko][PATCH] libepoxy: Fix build break for EGL_CAST dependency

2018-01-23 Thread Fabio Berton
From: Tom Hochstein <tom.hochst...@nxp.com>

This is a backport [1] to fix the following build error:

| In file included from 
/home/r60874/upstream/xwayland/tmp/work/armv7at2hf-neon-mx6qdl-fslc-linux-gnueabi/gtk+3/3.22.17-r0/recipe-sysroot/usr/include/epoxy/egl.h:46:0,
|  from 
../../../gtk+-3.22.17/gdk/wayland/gdkglcontext-wayland.h:32,
|  from 
../../../gtk+-3.22.17/gdk/wayland/gdkglcontext-wayland.c:24:
| ../../../gtk+-3.22.17/gdk/wayland/gdkglcontext-wayland.c: In function 
'gdk_wayland_gl_context_realize':
| ../../../gtk+-3.22.17/gdk/wayland/gdkglcontext-wayland.c:179:43: error: 
expected expression before 'EGLContext'
|  : EGL_NO_CONTEXT,
|^

[1] 
https://github.com/anholt/libepoxy/commit/ebe3a53db1c0bb34e1ca963b95d1f222115f93f8

Signed-off-by: Tom Hochstein <tom.hochst...@nxp.com>
Signed-off-by: Ross Burton <ross.bur...@intel.com>
(cherry picked from commit b468e28194be39f6d6a2084bb51773c45253d5f7)
Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
Acked-by: Otavio Salvador <ota...@ossystems.com.br>
---
 .../Add-fallback-definition-for-EGL-CAST.patch | 33 ++
 meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb   |  3 +-
 2 files changed, 35 insertions(+), 1 deletion(-)
 create mode 100644 
meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch

diff --git 
a/meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch
 
b/meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch
new file mode 100644
index 00..b9297257dc
--- /dev/null
+++ 
b/meta/recipes-graphics/libepoxy/libepoxy/Add-fallback-definition-for-EGL-CAST.patch
@@ -0,0 +1,33 @@
+Add fallback definition for EGL_CAST
+
+The EGL API update from d11104f introduced a dependency on the
+EGL_CAST() macro, provided by an updated eglplatform.h. Given that we
+don't provide eglplatform.h, add a fallback definition for if we're
+building against Mesa 17.0.x or similar.
+
+https://bugs.gentoo.org/show_bug.cgi?id=623926
+
+Upstream-Status: Backport 
[https://github.com/anholt/libepoxy/commit/ebe3a53db1c0bb34e1ca963b95d1f222115f93f8]
+
+Signed-off-by: Tom Hochstein <tom.hochst...@nxp.com>
+
+Index: libepoxy-1.4.3/src/gen_dispatch.py
+===
+--- libepoxy-1.4.3.orig/src/gen_dispatch.py2017-06-06 04:24:13.0 
-0500
 libepoxy-1.4.3/src/gen_dispatch.py 2017-11-06 12:45:43.594966473 -0600
+@@ -491,6 +491,15 @@
+ self.outln('#include "epoxy/gl.h"')
+ if self.target == "egl":
+ self.outln('#include "EGL/eglplatform.h"')
++# Account for older eglplatform.h, which doesn't define
++# the EGL_CAST macro.
++self.outln('#ifndef EGL_CAST')
++self.outln('#if defined(__cplusplus)')
++self.outln('#define EGL_CAST(type, value) 
(static_cast(value))')
++self.outln('#else')
++self.outln('#define EGL_CAST(type, value) ((type) (value))')
++self.outln('#endif')
++self.outln('#endif')
+ else:
+ # Add some ridiculous inttypes.h redefinitions that are
+ # from khrplatform.h and not included in the XML.  We
diff --git a/meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb 
b/meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb
index c8b398f176..0172322b92 100644
--- a/meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb
+++ b/meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb
@@ -5,7 +5,8 @@ SECTION = "libs"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://COPYING;md5=58ef4c80d401e07bd9ee8b6b58cf464b"
 
-SRC_URI = 
"https://github.com/anholt/${BPN}/releases/download/${PV}/${BP}.tar.xz;
+SRC_URI = 
"https://github.com/anholt/${BPN}/releases/download/${PV}/${BP}.tar.xz \
+   file://Add-fallback-definition-for-EGL-CAST.patch"
 SRC_URI[md5sum] = "af4c3ce0fb1143bdc4e43f85695a9bed"
 SRC_URI[sha256sum] = 
"0b808a06c9685a62fca34b680abb8bc7fb2fda074478e329b063c1f872b826f6"
 UPSTREAM_CHECK_URI = "https://github.com/anholt/libepoxy/releases;
-- 
2.14.2

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] mesa: Upgrade to 17.2.0 release

2017-09-14 Thread Fabio Berton
Upgrade to a new development release and drop patches applied on upstream.

For a full release notes, please see:
https://mesa3d.org/relnotes/17.2.0.html

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 ...1-ac-fix-build-after-LLVM-5.0-SVN-r300718.patch | 40 --
 ...allivm-Fix-build-against-LLVM-SVN-r302589.patch | 49 --
 .../mesa/{mesa-gl_17.1.7.bb => mesa-gl_17.2.0.bb}  |  0
 .../mesa/{mesa_17.1.7.bb => mesa_17.2.0.bb}|  6 +--
 4 files changed, 2 insertions(+), 93 deletions(-)
 delete mode 100644 
meta/recipes-graphics/mesa/files/0001-ac-fix-build-after-LLVM-5.0-SVN-r300718.patch
 delete mode 100644 
meta/recipes-graphics/mesa/files/0002-gallivm-Fix-build-against-LLVM-SVN-r302589.patch
 rename meta/recipes-graphics/mesa/{mesa-gl_17.1.7.bb => mesa-gl_17.2.0.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_17.1.7.bb => mesa_17.2.0.bb} (77%)

diff --git 
a/meta/recipes-graphics/mesa/files/0001-ac-fix-build-after-LLVM-5.0-SVN-r300718.patch
 
b/meta/recipes-graphics/mesa/files/0001-ac-fix-build-after-LLVM-5.0-SVN-r300718.patch
deleted file mode 100644
index b27a3bc8e4..00
--- 
a/meta/recipes-graphics/mesa/files/0001-ac-fix-build-after-LLVM-5.0-SVN-r300718.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-From 9861437e58fdd0de01193a102608d34e5952953f Mon Sep 17 00:00:00 2001
-From: Christoph Haag <haagch+mesa...@frickel.club>
-Date: Thu, 20 Apr 2017 10:34:18 +0200
-Subject: [PATCH 1/2] ac: fix build after LLVM 5.0 SVN r300718
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-v2: previously getWithDereferenceableBytes() exists, but addAttr() doesn't 
take that type
-
-Signed-off-by: Christoph Haag <haagch+mesa...@frickel.club>
-Reviewed-by: Nicolai Hähnle <nicolai.haeh...@amd.com>
-Tested-and-reviewed-by: Mike Lothian <m...@fireburn.co.uk>

-Upstream-Status: Backport
-
- src/amd/common/ac_llvm_helper.cpp | 4 
- 1 file changed, 4 insertions(+)
-
-diff --git a/src/amd/common/ac_llvm_helper.cpp 
b/src/amd/common/ac_llvm_helper.cpp
-index d9ea4b1..11fa809 100644
 a/src/amd/common/ac_llvm_helper.cpp
-+++ b/src/amd/common/ac_llvm_helper.cpp
-@@ -44,9 +44,13 @@ typedef AttributeSet AttributeList;
- void ac_add_attr_dereferenceable(LLVMValueRef val, uint64_t bytes)
- {
-llvm::Argument *A = llvm::unwrap(val);
-+#if HAVE_LLVM < 0x0500
-llvm::AttrBuilder B;
-B.addDereferenceableAttr(bytes);
-A->addAttr(llvm::AttributeList::get(A->getContext(), A->getArgNo() + 1,  
B));
-+#else
-+   A->addAttr(llvm::Attribute::getWithDereferenceableBytes(A->getContext(), 
bytes));
-+#endif
- }
- 
- bool ac_is_sgpr_param(LLVMValueRef arg)
--- 
-2.13.3
-
diff --git 
a/meta/recipes-graphics/mesa/files/0002-gallivm-Fix-build-against-LLVM-SVN-r302589.patch
 
b/meta/recipes-graphics/mesa/files/0002-gallivm-Fix-build-against-LLVM-SVN-r302589.patch
deleted file mode 100644
index ac8caec74d..00
--- 
a/meta/recipes-graphics/mesa/files/0002-gallivm-Fix-build-against-LLVM-SVN-r302589.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From a02a0dfda2712d30ad62b8f0421ec7b8244ba2cb Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <michel.daen...@amd.com>
-Date: Wed, 10 May 2017 17:26:07 +0900
-Subject: [PATCH 2/2] gallivm: Fix build against LLVM SVN >= r302589
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-deregisterEHFrames doesn't take any parameters anymore.
-
-Reviewed-by: Vedran Miletić <ved...@miletic.net>
-Reviewed-by: Marek Olšák <marek.ol...@amd.com>

-Upstream-Status: Backport
-
- src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 12 +---
- 1 file changed, 9 insertions(+), 3 deletions(-)
-
-diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp 
b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
-index 2a388cb..0e4a531 100644
 a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
-+++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
-@@ -342,14 +342,20 @@ class DelegatingJITMemoryManager : public 
BaseMemoryManager {
-   virtual void registerEHFrames(uint8_t *Addr, uint64_t LoadAddr, size_t 
Size) {
-  mgr()->registerEHFrames(Addr, LoadAddr, Size);
-   }
--  virtual void deregisterEHFrames(uint8_t *Addr, uint64_t LoadAddr, 
size_t Size) {
-- mgr()->deregisterEHFrames(Addr, LoadAddr, Size);
--  }
- #else
-   virtual void registerEHFrames(llvm::StringRef SectionData) {
-  mgr()->registerEHFrames(SectionData);
-   }
- #endif
-+#if HAVE_LLVM >= 0x0500
-+  virtual void deregisterEHFrames() {
-+ mgr()->deregisterEHFrames();
-+  }
-+#elif HAVE_LLVM >= 0x0304
-+  virtual void deregisterEHFrames(uint8_t *Addr, uint64_t LoadAddr, 
size_t Size) {
-+ mgr()->deregisterEHFrames(Addr, LoadAddr, Size);
-+  }
-+#endif
-   virtual void *getPointerToNamedFunction(const std::stri

[OE-core] [PATCH] python3-native: Add python3-misc-native to RPROVIDES

2017-08-16 Thread Fabio Berton
OE-core commit 800753069f667cd1664d70b3779150c467e3b3fe remove
RPROVIDES list to get runtime dependences from manifest file.
python3-misc is added in python3 recipe, we need to add
native runtime to use python3-misc with native recipes.

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 meta/recipes-devtools/python/python3-native_3.5.3.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-devtools/python/python3-native_3.5.3.bb 
b/meta/recipes-devtools/python/python3-native_3.5.3.bb
index db0e7b9bd8..8cd9c88a82 100644
--- a/meta/recipes-devtools/python/python3-native_3.5.3.bb
+++ b/meta/recipes-devtools/python/python3-native_3.5.3.bb
@@ -80,3 +80,5 @@ do_install() {
# Tests are large and we don't need them in the native sysroot
rm ${D}${libdir}/python${PYTHON_MAJMIN}/test -rf
 }
+
+RPROVIDES += "python3-misc-native"
-- 
2.11.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] libarchive: Remove xz packageconfig --with-lzmadec option

2017-08-14 Thread Fabio Berton
--with-lzmadec option was removed in libarchive commit:
30e1b7efd472e0439bea14df6a2d19cd8b5ac15e

See Github PR: https://github.com/libarchive/libarchive/pull/806

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 meta/recipes-extended/libarchive/libarchive_3.3.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-extended/libarchive/libarchive_3.3.2.bb 
b/meta/recipes-extended/libarchive/libarchive_3.3.2.bb
index 9bf40f2609..5c3895e547 100644
--- a/meta/recipes-extended/libarchive/libarchive_3.3.2.bb
+++ b/meta/recipes-extended/libarchive/libarchive_3.3.2.bb
@@ -21,7 +21,7 @@ PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl,"
 PACKAGECONFIG[xattr] = "--enable-xattr,--disable-xattr,attr,"
 PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib,"
 PACKAGECONFIG[bz2] = "--with-bz2lib,--without-bz2lib,${DEPENDS_BZIP2},"
-PACKAGECONFIG[xz] = "--with-lzmadec --with-lzma,--without-lzma,xz,"
+PACKAGECONFIG[xz] = "--with-lzma,--without-lzma,xz,"
 PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl,"
 PACKAGECONFIG[libxml2] = "--with-xml2,--without-xml2,libxml2,"
 PACKAGECONFIG[expat] = "--with-expat,--without-expat,expat,"
-- 
2.11.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v2 0/5] #11662 - wic should mount /boot

2017-06-27 Thread Fabio Berton
The last patch I sent is here: 
https://patchwork.openembedded.org/patch/139252/


We're using this patch internally with Pyro branch. I can rework to 
apply on master.


On 06/27/2017 05:35 PM, Otavio Salvador wrote:

On Tue, Jun 27, 2017 at 10:28 AM, Ed Bartosh  wrote:

The patchset also fixes long standing bug: wic updated fstab
inplace in rootfs directory. This causes other tasks working with
rootfs directory to produce incorrect results or crash. This is
fixed by copying rootfs to the temporary directory before updating
fstab.


As you is working on this, please also include Fabio's patch on the
patchset. It includes a command like option to disable fstab change at
all. For delta-based updates this is imperative.

Fabio, could you point him the last patch revision?


--
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] mesa: Update to version 17.0.4

2017-04-20 Thread Fabio Berton
This commit apply bug fixes found in both mesa 17.0.2 and mesa 17.0.3
releases.

  - Mesa 17.0.4 is a bug fix release which fixes the following bugs
found since the 17.0.3 release:

  Bug 99515  - SIGSEGV MAPERR on Android nougat-x86 with mesa 17.0.0rc
  Bug 100391 - SachaWillems deferredmultisampling asserts
  Bug 100452 - push_constants host memory leak when resetting command buffer
  Bug 100582 - [GEN8+] piglit.spec.arb_stencil_texturing.glblitframebuffer
   corrupts state.gl_texture* assertions

  - Mesa 17.0.3 is a bug fix release which fixes the following bugs
found since the 17.0.2 release:

  Bug 96743  - [BYT, HSW, SKL, BXT, KBL] GPU hangs with GfxBench 4.0 
CarChase
  Bug 99246  - [d3dadapter+radeonsi & bisect] EVE-Online : hang on wormhole 
sight
  Bug 100061 - LODQ instruction generated with invalid dst mask
  Bug 100182 - Flickering in The Talos Principle on Sky Lake GT4.
  Bug 100201 - Windows scons build with MSVC toolchain and LLVM 4.0 fails

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 meta/recipes-graphics/mesa/{mesa-gl_17.0.2.bb => mesa-gl_17.0.4.bb} | 0
 meta/recipes-graphics/mesa/{mesa_17.0.2.bb => mesa_17.0.4.bb}   | 4 ++--
 2 files changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-graphics/mesa/{mesa-gl_17.0.2.bb => mesa-gl_17.0.4.bb} 
(100%)
 rename meta/recipes-graphics/mesa/{mesa_17.0.2.bb => mesa_17.0.4.bb} (83%)

diff --git a/meta/recipes-graphics/mesa/mesa-gl_17.0.2.bb 
b/meta/recipes-graphics/mesa/mesa-gl_17.0.4.bb
similarity index 100%
rename from meta/recipes-graphics/mesa/mesa-gl_17.0.2.bb
rename to meta/recipes-graphics/mesa/mesa-gl_17.0.4.bb
diff --git a/meta/recipes-graphics/mesa/mesa_17.0.2.bb 
b/meta/recipes-graphics/mesa/mesa_17.0.4.bb
similarity index 83%
rename from meta/recipes-graphics/mesa/mesa_17.0.2.bb
rename to meta/recipes-graphics/mesa/mesa_17.0.4.bb
index 2689e8fac2..396076d2a1 100644
--- a/meta/recipes-graphics/mesa/mesa_17.0.2.bb
+++ b/meta/recipes-graphics/mesa/mesa_17.0.4.bb
@@ -6,8 +6,8 @@ SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/mesa-${PV}.tar.xz 
\
file://0001-Use-wayland-scanner-in-the-path.patch \
 "
 
-SRC_URI[md5sum] = "8f808e92b893d412fbd6510e1d16f5c5"
-SRC_URI[sha256sum] = 
"f8f191f909e01e65de38d5bdea5fb057f21649a3aed20948be02348e77a689d4"
+SRC_URI[md5sum] = "4a16cfc1c6d034cc17314b866eada628"
+SRC_URI[sha256sum] = 
"1269dc8545a193932a0779b2db5bce9be4a5f6813b98c38b93b372be8362a346"
 
 #because we cannot rely on the fact that all apps will use pkgconfig,
 #make eglplatform.h independent of MESA_EGL_NO_X11_HEADER
-- 
2.11.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] wic: Add option to not change fstab

2017-04-19 Thread Fabio Berton
Create an option to wic doesn't change fstab file, the final
fstab file will be same that in rootfs and wic doesn't update
file, e.g adding a new mount point.

Users can control the fstab file content in base-files recipe.
This is useful if you want to only create an partition but not
add fstab mount point or add new mount point using label e.g:

LABEL=recovery /recovery auto defaults 0  1

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 scripts/lib/wic/help.py  | 7 ++-
 scripts/lib/wic/plugins/imager/direct.py | 6 +-
 scripts/wic  | 2 ++
 3 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py
index aee2451a72..1112192c6c 100644
--- a/scripts/lib/wic/help.py
+++ b/scripts/lib/wic/help.py
@@ -154,7 +154,7 @@ SYNOPSIS
 [-e | --image-name] [-s, --skip-build-check] [-D, --debug]
 [-r, --rootfs-dir] [-b, --bootimg-dir]
 [-k, --kernel-dir] [-n, --native-sysroot] [-f, --build-rootfs]
-[-c, --compress-with] [-m, --bmap]
+[-c, --compress-with] [-m, --bmap] [--no-fstab-update]
 
 DESCRIPTION
 This command creates an OpenEmbedded image based on the 'OE
@@ -226,6 +226,11 @@ DESCRIPTION
 
 The -m option is used to produce .bmap file for the image. This file
 can be used to flash image using bmaptool utility.
+
+The --no-fstab-update option is used to doesn't change fstab file. When
+using this option the final fstab file will be same that in rootfs and
+wic doesn't update file, e.g adding a new mount point. User can control
+the fstab file content in base-files recipe.
 """
 
 wic_list_usage = """
diff --git a/scripts/lib/wic/plugins/imager/direct.py 
b/scripts/lib/wic/plugins/imager/direct.py
index f2e6127331..a5afec9a14 100644
--- a/scripts/lib/wic/plugins/imager/direct.py
+++ b/scripts/lib/wic/plugins/imager/direct.py
@@ -68,6 +68,7 @@ class DirectPlugin(ImagerPlugin):
 self.outdir = options.outdir
 self.compressor = options.compressor
 self.bmap = options.bmap
+self.no_fstab_update = options.no_fstab_update
 
 self.name = "%s-%s" % (os.path.splitext(os.path.basename(wks_file))[0],
strftime("%Y%m%d%H%M"))
@@ -156,7 +157,10 @@ class DirectPlugin(ImagerPlugin):
 filesystems from the artifacts directly and combine them into
 a partitioned image.
 """
-fstab_path = self._write_fstab(self.rootfs_dir.get("ROOTFS_DIR"))
+if self.no_fstab_update:
+fstab_path = None
+else:
+fstab_path = self._write_fstab(self.rootfs_dir.get("ROOTFS_DIR"))
 
 for part in self.parts:
 # get rootfs size from bitbake variable if it's not set in .ks file
diff --git a/scripts/wic b/scripts/wic
index a5f2dbfc6f..5907098b3a 100755
--- a/scripts/wic
+++ b/scripts/wic
@@ -133,6 +133,8 @@ def wic_create_subcommand(args, usage_str):
   dest='compressor',
   help="compress image with specified compressor")
 parser.add_option("-m", "--bmap", action="store_true", help="generate 
.bmap")
+parser.add_option("", "--no-fstab-update" ,action="store_true",
+  help="Do not change fstab file.")
 parser.add_option("-v", "--vars", dest='vars_dir',
   help="directory with .env files that store "
"bitbake variables")
-- 
2.11.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 1/2] wpa-supplicant: Use systemd-tmpfiles to create volatiles files and dirs

2017-04-13 Thread Fabio Berton

ping

On 04/05/2017 09:09 AM, Fabio Berton wrote:

Volatiles files are installed in different locations depending on
distro feature update-rc.d or systemd. For update-rc.d volatiles
configuration files are installed in /etc/default/volatiles and
for systemd in /etc/tmpfiles.d/. So, we need to install volatiles
files in correct location depending on what distro feature is used.

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 .../wpa-supplicant/wpa-supplicant/wpa_supplicant.tmpfiles.d   | 1 +
 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bb| 8 +---
 2 files changed, 6 insertions(+), 3 deletions(-)
 create mode 100644 
meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/wpa_supplicant.tmpfiles.d

diff --git 
a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/wpa_supplicant.tmpfiles.d
 
b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/wpa_supplicant.tmpfiles.d
new file mode 100644
index 00..5b27498b8e
--- /dev/null
+++ 
b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/wpa_supplicant.tmpfiles.d
@@ -0,0 +1 @@
+d /var/run/wpa_supplicant   0700rootroot-   -
diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bb 
b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bb
index 146bccfaa7..ff4ad34d51 100644
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bb
+++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bb
@@ -24,6 +24,7 @@ SRC_URI = "http://w1.fi/releases/wpa_supplicant-${PV}.tar.gz  
\
file://wpa_supplicant.conf \
file://wpa_supplicant.conf-sane \
file://99_wpa_supplicant \
+   file://wpa_supplicant.tmpfiles.d \
   "
 SRC_URI[md5sum] = "091569eb4440b7d7f2b4276dbfc03c3c"
 SRC_URI[sha256sum] = 
"b4936d34c4e6cdd44954beba74296d964bc2c9668ecaa5255e499636fe2b1450"
@@ -93,10 +94,11 @@ do_install () {
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; 
then
install -d ${D}/${systemd_unitdir}/system
install -m 644 ${S}/wpa_supplicant/systemd/*.service 
${D}/${systemd_unitdir}/system
+   install -Dm 0644 ${WORKDIR}/wpa_supplicant.tmpfiles.d 
${D}${sysconfdir}/tmpfiles.d/wpa_supplicant.conf
+   else
+   install -d ${D}/etc/default/volatiles
+   install -m 0644 ${WORKDIR}/99_wpa_supplicant 
${D}/etc/default/volatiles
fi
-
-   install -d ${D}/etc/default/volatiles
-   install -m 0644 ${WORKDIR}/99_wpa_supplicant ${D}/etc/default/volatiles
 }

 pkg_postinst_wpa-supplicant () {


--
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 2/2] openssh: Use systemd-tmpfiles to create volatiles files and dirs

2017-04-13 Thread Fabio Berton

ping

On 04/05/2017 09:09 AM, Fabio Berton wrote:

Volatiles files are installed in different locations depending on
distro feature update-rc.d or systemd. For update-rc.d volatiles
configuration files are installed in /etc/default/volatiles and
for systemd in /etc/tmpfiles.d/. So, we need to install volatiles
files in correct location depending on what distro feature is used.

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 .../openssh/openssh/sshd.tmpfiles.d|  2 ++
 meta/recipes-connectivity/openssh/openssh_7.4p1.bb | 27 +-
 2 files changed, 18 insertions(+), 11 deletions(-)
 create mode 100644 meta/recipes-connectivity/openssh/openssh/sshd.tmpfiles.d

diff --git a/meta/recipes-connectivity/openssh/openssh/sshd.tmpfiles.d 
b/meta/recipes-connectivity/openssh/openssh/sshd.tmpfiles.d
new file mode 100644
index 00..a2ae06ad94
--- /dev/null
+++ b/meta/recipes-connectivity/openssh/openssh/sshd.tmpfiles.d
@@ -0,0 +1,2 @@
+d /var/run/sshd 0755rootroot-   -
+f /var/log/lastlog  0644rootroot-   -
diff --git a/meta/recipes-connectivity/openssh/openssh_7.4p1.bb 
b/meta/recipes-connectivity/openssh/openssh_7.4p1.bb
index c8093d4e2b..eff83de135 100644
--- a/meta/recipes-connectivity/openssh/openssh_7.4p1.bb
+++ b/meta/recipes-connectivity/openssh/openssh_7.4p1.bb
@@ -20,6 +20,7 @@ SRC_URI = 
"http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar
file://sshd@.service \
file://sshdgenkeys.service \
file://volatiles.99_sshd \
+   file://sshd.tmpfiles.d \
file://add-test-support-for-busybox.patch \
file://run-ptest \
file://openssh-7.1p1-conditional-compile-des-in-cipher.patch \
@@ -104,8 +105,7 @@ do_install_append () {
install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/sshd
rm -f ${D}${bindir}/slogin ${D}${datadir}/Ssh.bin
rmdir ${D}${localstatedir}/run/sshd ${D}${localstatedir}/run 
${D}${localstatedir}
-   install -d ${D}/${sysconfdir}/default/volatiles
-   install -m 644 ${WORKDIR}/volatiles.99_sshd 
${D}/${sysconfdir}/default/volatiles/99_sshd
+
install -m 0755 ${S}/contrib/ssh-copy-id ${D}${bindir}

# Create config files for read-only rootfs
@@ -117,14 +117,19 @@ do_install_append () {
echo "HostKey /var/run/ssh/ssh_host_ecdsa_key" >> 
${D}${sysconfdir}/ssh/sshd_config_readonly
echo "HostKey /var/run/ssh/ssh_host_ed25519_key" >> 
${D}${sysconfdir}/ssh/sshd_config_readonly

-   install -d ${D}${systemd_unitdir}/system
-   install -c -m 0644 ${WORKDIR}/sshd.socket ${D}${systemd_unitdir}/system
-   install -c -m 0644 ${WORKDIR}/sshd@.service 
${D}${systemd_unitdir}/system
-   install -c -m 0644 ${WORKDIR}/sshdgenkeys.service 
${D}${systemd_unitdir}/system
-   sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \
-   -e 's,@SBINDIR@,${sbindir},g' \
-   -e 's,@BINDIR@,${bindir},g' \
-   ${D}${systemd_unitdir}/system/sshd.socket 
${D}${systemd_unitdir}/system/*.service
+   if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; 
then
+   install -d ${D}${systemd_unitdir}/system
+   install -c -m 0644 ${WORKDIR}/sshd.socket 
${D}${systemd_unitdir}/system
+   install -c -m 0644 ${WORKDIR}/sshd@.service 
${D}${systemd_unitdir}/system
+   install -c -m 0644 ${WORKDIR}/sshdgenkeys.service 
${D}${systemd_unitdir}/system
+   sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \
+   -e 's,@SBINDIR@,${sbindir},g' \
+   -e 's,@BINDIR@,${bindir},g' \
+   ${D}${systemd_unitdir}/system/sshd.socket 
${D}${systemd_unitdir}/system/*.service
+   install -Dm 0644 ${WORKDIR}/sshd.tmpfiles.d 
${D}${sysconfdir}/tmpfiles.d/sshd.conf
+   else
+   install -Dm 0644 ${WORKDIR}/volatiles.99_sshd 
${D}/${sysconfdir}/default/volatiles/99_sshd
+   fi
 }

 do_install_ptest () {
@@ -138,7 +143,7 @@ PACKAGES =+ "${PN}-keygen ${PN}-scp ${PN}-ssh ${PN}-sshd 
${PN}-sftp ${PN}-misc $
 FILES_${PN}-scp = "${bindir}/scp.${BPN}"
 FILES_${PN}-ssh = "${bindir}/ssh.${BPN} ${sysconfdir}/ssh/ssh_config"
 FILES_${PN}-sshd = "${sbindir}/sshd ${sysconfdir}/init.d/sshd 
${systemd_unitdir}/system"
-FILES_${PN}-sshd += "${sysconfdir}/ssh/moduli ${sysconfdir}/ssh/sshd_config 
${sysconfdir}/ssh/sshd_config_readonly ${sysconfdir}/default/volatiles/99_sshd 
${sysconfdir}/pam.d/sshd"
+FILES_${PN}-sshd += "${sysconfdir}/ssh/moduli ${sysconfdir}/ssh/sshd_config 
${sysconfdir}/ssh/sshd_config_readonly ${sysconfdir}/default/volatiles/99_sshd 
${sysconfdir}/pam.d/sshd ${sysconfdir}/tmpfiles.d/sshd.conf"
 FILES_${PN}-sftp = "${bindir}/sftp"
 FILES_${PN}-sftp-server = "${libexecdir}/sftp-server"
 FILES_$

[OE-core] [PATCH 2/2] openssh: Use systemd-tmpfiles to create volatiles files and dirs

2017-04-05 Thread Fabio Berton
Volatiles files are installed in different locations depending on
distro feature update-rc.d or systemd. For update-rc.d volatiles
configuration files are installed in /etc/default/volatiles and
for systemd in /etc/tmpfiles.d/. So, we need to install volatiles
files in correct location depending on what distro feature is used.

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 .../openssh/openssh/sshd.tmpfiles.d|  2 ++
 meta/recipes-connectivity/openssh/openssh_7.4p1.bb | 27 +-
 2 files changed, 18 insertions(+), 11 deletions(-)
 create mode 100644 meta/recipes-connectivity/openssh/openssh/sshd.tmpfiles.d

diff --git a/meta/recipes-connectivity/openssh/openssh/sshd.tmpfiles.d 
b/meta/recipes-connectivity/openssh/openssh/sshd.tmpfiles.d
new file mode 100644
index 00..a2ae06ad94
--- /dev/null
+++ b/meta/recipes-connectivity/openssh/openssh/sshd.tmpfiles.d
@@ -0,0 +1,2 @@
+d /var/run/sshd 0755rootroot-   -
+f /var/log/lastlog  0644rootroot-   -
diff --git a/meta/recipes-connectivity/openssh/openssh_7.4p1.bb 
b/meta/recipes-connectivity/openssh/openssh_7.4p1.bb
index c8093d4e2b..eff83de135 100644
--- a/meta/recipes-connectivity/openssh/openssh_7.4p1.bb
+++ b/meta/recipes-connectivity/openssh/openssh_7.4p1.bb
@@ -20,6 +20,7 @@ SRC_URI = 
"http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar
file://sshd@.service \
file://sshdgenkeys.service \
file://volatiles.99_sshd \
+   file://sshd.tmpfiles.d \
file://add-test-support-for-busybox.patch \
file://run-ptest \
file://openssh-7.1p1-conditional-compile-des-in-cipher.patch \
@@ -104,8 +105,7 @@ do_install_append () {
install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/sshd
rm -f ${D}${bindir}/slogin ${D}${datadir}/Ssh.bin
rmdir ${D}${localstatedir}/run/sshd ${D}${localstatedir}/run 
${D}${localstatedir}
-   install -d ${D}/${sysconfdir}/default/volatiles
-   install -m 644 ${WORKDIR}/volatiles.99_sshd 
${D}/${sysconfdir}/default/volatiles/99_sshd
+
install -m 0755 ${S}/contrib/ssh-copy-id ${D}${bindir}
 
# Create config files for read-only rootfs
@@ -117,14 +117,19 @@ do_install_append () {
echo "HostKey /var/run/ssh/ssh_host_ecdsa_key" >> 
${D}${sysconfdir}/ssh/sshd_config_readonly
echo "HostKey /var/run/ssh/ssh_host_ed25519_key" >> 
${D}${sysconfdir}/ssh/sshd_config_readonly
 
-   install -d ${D}${systemd_unitdir}/system
-   install -c -m 0644 ${WORKDIR}/sshd.socket ${D}${systemd_unitdir}/system
-   install -c -m 0644 ${WORKDIR}/sshd@.service 
${D}${systemd_unitdir}/system
-   install -c -m 0644 ${WORKDIR}/sshdgenkeys.service 
${D}${systemd_unitdir}/system
-   sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \
-   -e 's,@SBINDIR@,${sbindir},g' \
-   -e 's,@BINDIR@,${bindir},g' \
-   ${D}${systemd_unitdir}/system/sshd.socket 
${D}${systemd_unitdir}/system/*.service
+   if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; 
then
+   install -d ${D}${systemd_unitdir}/system
+   install -c -m 0644 ${WORKDIR}/sshd.socket 
${D}${systemd_unitdir}/system
+   install -c -m 0644 ${WORKDIR}/sshd@.service 
${D}${systemd_unitdir}/system
+   install -c -m 0644 ${WORKDIR}/sshdgenkeys.service 
${D}${systemd_unitdir}/system
+   sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \
+   -e 's,@SBINDIR@,${sbindir},g' \
+   -e 's,@BINDIR@,${bindir},g' \
+   ${D}${systemd_unitdir}/system/sshd.socket 
${D}${systemd_unitdir}/system/*.service
+   install -Dm 0644 ${WORKDIR}/sshd.tmpfiles.d 
${D}${sysconfdir}/tmpfiles.d/sshd.conf
+   else
+   install -Dm 0644 ${WORKDIR}/volatiles.99_sshd 
${D}/${sysconfdir}/default/volatiles/99_sshd
+   fi
 }
 
 do_install_ptest () {
@@ -138,7 +143,7 @@ PACKAGES =+ "${PN}-keygen ${PN}-scp ${PN}-ssh ${PN}-sshd 
${PN}-sftp ${PN}-misc $
 FILES_${PN}-scp = "${bindir}/scp.${BPN}"
 FILES_${PN}-ssh = "${bindir}/ssh.${BPN} ${sysconfdir}/ssh/ssh_config"
 FILES_${PN}-sshd = "${sbindir}/sshd ${sysconfdir}/init.d/sshd 
${systemd_unitdir}/system"
-FILES_${PN}-sshd += "${sysconfdir}/ssh/moduli ${sysconfdir}/ssh/sshd_config 
${sysconfdir}/ssh/sshd_config_readonly ${sysconfdir}/default/volatiles/99_sshd 
${sysconfdir}/pam.d/sshd"
+FILES_${PN}-sshd += "${sysconfdir}/ssh/moduli ${sysconfdir}/ssh/sshd_config 
${sysconfdir}/ssh/sshd_config_readonly ${sysconfdir}/default/volatiles/99_sshd 
${sysconfdir}/pam.d/sshd ${sysconfdir}/tmpfiles.d/sshd.conf"
 FILES_${PN}-sftp = "${bindir}/sftp"
 FILES_${PN}-sftp-server = "${libexecdir}/sftp-server"
 FILES_${PN}-misc = "${bindir}/ssh* ${libexec

[OE-core] [PATCH 1/2] wpa-supplicant: Use systemd-tmpfiles to create volatiles files and dirs

2017-04-05 Thread Fabio Berton
Volatiles files are installed in different locations depending on
distro feature update-rc.d or systemd. For update-rc.d volatiles
configuration files are installed in /etc/default/volatiles and
for systemd in /etc/tmpfiles.d/. So, we need to install volatiles
files in correct location depending on what distro feature is used.

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 .../wpa-supplicant/wpa-supplicant/wpa_supplicant.tmpfiles.d   | 1 +
 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bb| 8 +---
 2 files changed, 6 insertions(+), 3 deletions(-)
 create mode 100644 
meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/wpa_supplicant.tmpfiles.d

diff --git 
a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/wpa_supplicant.tmpfiles.d
 
b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/wpa_supplicant.tmpfiles.d
new file mode 100644
index 00..5b27498b8e
--- /dev/null
+++ 
b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant/wpa_supplicant.tmpfiles.d
@@ -0,0 +1 @@
+d /var/run/wpa_supplicant   0700rootroot-   -
diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bb 
b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bb
index 146bccfaa7..ff4ad34d51 100644
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bb
+++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.6.bb
@@ -24,6 +24,7 @@ SRC_URI = "http://w1.fi/releases/wpa_supplicant-${PV}.tar.gz  
\
file://wpa_supplicant.conf \
file://wpa_supplicant.conf-sane \
file://99_wpa_supplicant \
+   file://wpa_supplicant.tmpfiles.d \
   "
 SRC_URI[md5sum] = "091569eb4440b7d7f2b4276dbfc03c3c"
 SRC_URI[sha256sum] = 
"b4936d34c4e6cdd44954beba74296d964bc2c9668ecaa5255e499636fe2b1450"
@@ -93,10 +94,11 @@ do_install () {
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; 
then
install -d ${D}/${systemd_unitdir}/system
install -m 644 ${S}/wpa_supplicant/systemd/*.service 
${D}/${systemd_unitdir}/system
+   install -Dm 0644 ${WORKDIR}/wpa_supplicant.tmpfiles.d 
${D}${sysconfdir}/tmpfiles.d/wpa_supplicant.conf
+   else
+   install -d ${D}/etc/default/volatiles
+   install -m 0644 ${WORKDIR}/99_wpa_supplicant 
${D}/etc/default/volatiles
fi
-
-   install -d ${D}/etc/default/volatiles
-   install -m 0644 ${WORKDIR}/99_wpa_supplicant ${D}/etc/default/volatiles
 }
 
 pkg_postinst_wpa-supplicant () {
-- 
2.11.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] wic: Prevent duplicate entries on fstab

2017-03-06 Thread Fabio Berton

Hi Ed,

The main motivation to my patch is prevent to duplicate entries. For 
example, if I add to my fstab line:


LABEL=data   /dataauto defaults  0  1

and add to wsk file:

part /data --ondisk mmcblk0 --fstype=ext4 --label data --align 8192 
--size 500M --extra-space 0


Final fstab will have two entries for /data.

In most Linux distros mount /boot partition, if we have kernel image or 
boot script to update we need to mount /boot partition. Why the reason 
to not mount /boot?


I'll look into parser issue.

Fabio

On 03/06/2017 03:13 PM, Ed Bartosh wrote:

On Mon, Mar 06, 2017 at 11:00:59AM -0300, Fabio Berton wrote:

Same error with poky-contrib:ed/wic/wip, we need to add --fstype= to
part /boot line in all wks files.


Only if we want boot partitions to be added to fstab. Currently / and
/boot partitions are not added. Why do we want to change this?

BTW, your patch will make wic to parse the same fstab file several
times. Can you change this, please?


On 03/03/2017 10:49 AM, Burton, Ross wrote:

On 3 March 2017 at 12:12, Fabio Berton
<fabio.ber...@ossystems.com.br
<mailto:fabio.ber...@ossystems.com.br>> wrote:

Sorry for delay. This error for qemux86 is because common.wks.inc
and directdisk-gpt.wks files in scripts/lib/wic/canned-wks
directory doesn't have option --fstype= for part /boot.

For qemuarm machines I get the error:

| DEBUG: Executing python function set_image_size
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_wic
| Error: Please build syslinux first


There's patches queued that will change the behaviour here and
likely cause your patch to not apply - can you rebase on top of
poky-contrib:ed/wic/wip and see what happens?  The build
dependency is now wic-tools.

Ross

--
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core




--
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] wic: Prevent duplicate entries on fstab

2017-03-06 Thread Fabio Berton
Same error with poky-contrib:ed/wic/wip, we need to add --fstype= to 
part /boot line in all wks files.



On 03/03/2017 10:49 AM, Burton, Ross wrote:


On 3 March 2017 at 12:12, Fabio Berton <fabio.ber...@ossystems.com.br 
<mailto:fabio.ber...@ossystems.com.br>> wrote:


Sorry for delay. This error for qemux86 is because common.wks.inc
and directdisk-gpt.wks files in scripts/lib/wic/canned-wks
directory doesn't have option --fstype= for part /boot.

For qemuarm machines I get the error:

| DEBUG: Executing python function set_image_size
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_wic
| Error: Please build syslinux first


There's patches queued that will change the behaviour here and likely 
cause your patch to not apply - can you rebase on top of 
poky-contrib:ed/wic/wip and see what happens?  The build dependency is 
now wic-tools.


Ross


-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] wic: Prevent duplicate entries on fstab

2017-03-03 Thread Fabio Berton

Hi Ross,

Sorry for delay. This error for qemux86 is because common.wks.inc and 
directdisk-gpt.wks files in scripts/lib/wic/canned-wks directory doesn't 
have option --fstype= for part /boot.


For qemuarm machines I get the error:

| DEBUG: Executing python function set_image_size
| DEBUG: Python function set_image_size finished
| DEBUG: Executing shell function do_image_wic
| Error: Please build syslinux first

On 02/24/2017 08:02 PM, Burton, Ross wrote:


On 23 February 2017 at 18:13, Fabio Berton 
<fabio.ber...@ossystems.com.br <mailto:fabio.ber...@ossystems.com.br>> 
wrote:

>
> Add function to read fstab and return all mount points. This function
> is useful to _update_fstab doesn't duplicate entries in /etc/fstab.


The AB just failed all over with this error message:

| Traceback (most recent call last):
|   File 
"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86/build/scripts/wic", 
line 327, in 

| sys.exit(main(sys.argv[1:]))
|   File 
"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86/build/scripts/wic", 
line 322, in main
| return hlp.invoke_subcommand(args, parser, hlp.wic_help_usage, 
subcommands)
|   File 
"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86/build/scripts/lib/wic/help.py", 
line 95, in invoke_subcommand

| subcommands.get(args[0], subcommand_error)[0](args[1:], usage)
|   File 
"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86/build/scripts/wic", 
line 255, in wic_create_subcommand

| native_sysroot, options)
|   File 
"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86/build/scripts/lib/wic/engine.py", 
line 199, in wic_create

| plugin.do_create()
|   File 
"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86/build/scripts/lib/wic/plugins/imager/direct.py", 
line 93, in do_create

| self.create()
|   File 
"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86/build/scripts/lib/wic/plugins/imager/direct.py", 
line 176, in create

| fstab_path = self._write_fstab(self.rootfs_dir.get("ROOTFS_DIR"))
|   File 
"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86/build/scripts/lib/wic/plugins/imager/direct.py", 
line 134, in _write_fstab

| if self._update_fstab(fstab_lines, self.parts):
|   File 
"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86/build/scripts/lib/wic/plugins/imager/direct.py", 
line 156, in _update_fstab

| opts, "0", "0"]) + "\n"
| TypeError: sequence item 2: expected str instance, NoneType found

Ross


-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] wic: Prevent duplicate entries on fstab

2017-02-23 Thread Fabio Berton
Add function to read fstab and return all mount points. This function
is useful to _update_fstab doesn't duplicate entries in /etc/fstab.

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 scripts/lib/wic/plugins/imager/direct.py | 21 -
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/scripts/lib/wic/plugins/imager/direct.py 
b/scripts/lib/wic/plugins/imager/direct.py
index 481d24d5ba..570dbbbf79 100644
--- a/scripts/lib/wic/plugins/imager/direct.py
+++ b/scripts/lib/wic/plugins/imager/direct.py
@@ -97,6 +97,25 @@ class DirectPlugin(ImagerPlugin):
 finally:
 self.cleanup()
 
+def _get_fstab_mountpoints(self):
+""" Read file /etc/fstab and returns all mountpoints."""
+image_rootfs = self.rootfs_dir.get("ROOTFS_DIR")
+if not image_rootfs:
+return
+
+fstab_path = image_rootfs + "/etc/fstab"
+if not os.path.isfile(fstab_path):
+return
+
+with open(fstab_path) as fp:
+mp = []
+for l in fp:
+if not l.startswith("#"):
+valid_mp = l.replace("\t", " ").split()
+if len(valid_mp) >= 2:
+mp.append(valid_mp[1])
+return mp
+
 def _write_fstab(self, image_rootfs):
 """overriden to generate fstab (temporarily) in rootfs. This is called
 from _create, make sure it doesn't get called from
@@ -125,7 +144,7 @@ class DirectPlugin(ImagerPlugin):
 updated = False
 for part in parts:
 if not part.realnum or not part.mountpoint \
-   or part.mountpoint in ("/", "/boot"):
+   or part.mountpoint in self._get_fstab_mountpoints():
 continue
 
 # mmc device partitions are named mmcblk0p1, mmcblk0p2..
-- 
2.11.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] libbsd: libbsd-overlay.pc: Set Cflags to use -I instead of -isystem

2017-02-22 Thread Fabio Berton

Hi!

We need to backport this commit to morty.

On 01/30/2017 03:41 PM, Otavio Salvador wrote:

On Mon, Jan 30, 2017 at 2:27 PM, Fabio Berton
<fabio.ber...@ossystems.com.br> wrote:

pkg-config currently only handles -I and -L correctly, but misses
-isystem, so we need to do this workaround to fix this issue.

There's a open bug in:
https://bugzilla.freedesktop.org/show_bug.cgi?id=99516

This appears when building lldpd and shows error:

ERROR: lldpd-0.9.6-r0 do_configure: This autoconf log indicates
errors, it looked at host include and/or library paths while
determining system capabilities.
Rerun configure task after fixing this.
ERROR: lldpd-0.9.6-r0 do_configure: Function failed: do_qa_configure

Change-Id: I83255b5952e19bb2f516b1186276cd03eb67eed3
Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>

Acked-by: Otavio Salvador <ota...@ossystems.com.br>

Also, this  should be backported to morty as well.



--
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [OE-Core][PATCH] uboot-extlinux-config.bbclass: add support for timeout & default

2017-02-09 Thread Fabio Berton
I get this error:

Exception: UnboundLocalError: local variable 'localdata' referenced before
assignment

You are using localdata.getVar('UBOOT_EXTLINUX_TIMEOUT') before localdata =
bb.data.createCopy(d).

On Thu, Feb 9, 2017 at 2:09 PM, Dalon Westergreen 
wrote:

> When multible targets are defined it is useful to allow for
> a default target along with a timeout.  After timeout, the
> default target will be selected.
>
> Signed-off-by: Dalon Westergreen 
> ---
>  meta/classes/uboot-extlinux-config.bbclass | 18 ++
>  1 file changed, 18 insertions(+)
>
> diff --git a/meta/classes/uboot-extlinux-config.bbclass
> b/meta/classes/uboot-extlinux-config.bbclass
> index ec5fffb..96b5a2e 100644
> --- a/meta/classes/uboot-extlinux-config.bbclass
> +++ b/meta/classes/uboot-extlinux-config.bbclass
> @@ -16,6 +16,10 @@
>  #concatenate and use as an initrd
> (optional).
>  # UBOOT_EXTLINUX_MENU_DESCRIPTION  - Name to use as description.
>  # UBOOT_EXTLINUX_ROOT  - Root kernel cmdline.
> +# UBOOT_EXTLINUX_TIMEOUT   - Timeout before DEFAULT selection is
> made.
> +#Measured in 1/10 of a second.
> +# UBOOT_EXTLINUX_DEFAULT_LABEL - Target to be selected by default
> after
> +#the timeout period
>  #
>  # If there's only one label system will boot automatically and menu won't
> be
>  # created. If you want to use more than one labels, e.g linux and
> alternate,
> @@ -25,6 +29,9 @@
>  #
>  # UBOOT_EXTLINUX_LABELS ??= "default fallback"
>  #
> +# UBOOT_EXTLINUX_DEFAULT_LABEL ??= "Linux Default"
> +# UBOOT_EXTLINUX_TIMEOUT ??= "30"
> +#
>  # UBOOT_EXTLINUX_KERNEL_IMAGE_default ??= "../zImage"
>  # UBOOT_EXTLINUX_MENU_DESCRIPTION_default ??= "Linux Default"
>  #
> @@ -34,6 +41,8 @@
>  # Results:
>  #
>  # menu title Select the boot mode
> +# TIMEOUT 30
> +# DEFAULT Linux Default
>  # LABEL Linux Default
>  #   KERNEL ../zImage
>  #   FDTDIR ../
> @@ -82,6 +91,15 @@ python create_extlinux_config() {
>  if len(labels.split()) > 1:
>  cfgfile.write('menu title Select the boot mode\n')
>
> +timeout =  localdata.getVar('UBOOT_EXTLINUX_TIMEOUT')
> +if timeout:
> +cfgfile.write('TIMEOUT %s\n' % (timeout))
> +
> +if len(labels.split()) > 1:
> +default = localdata.getVar('UBOOT_
> EXTLINUX_DEFAULT_LABEL')
> +if default:
> +cfgfile.write('DEFAULT %s\n' % (default))
> +
>  for label in labels.split():
>  localdata = bb.data.createCopy(d)
>
> --
> 2.7.4
>
> --
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] libbsd: libbsd-overlay.pc: Set Cflags to use -I instead of -isystem

2017-01-30 Thread Fabio Berton
pkg-config currently only handles -I and -L correctly, but misses
-isystem, so we need to do this workaround to fix this issue.

There's a open bug in:
https://bugzilla.freedesktop.org/show_bug.cgi?id=99516

This appears when building lldpd and shows error:

ERROR: lldpd-0.9.6-r0 do_configure: This autoconf log indicates
errors, it looked at host include and/or library paths while
determining system capabilities.
Rerun configure task after fixing this.
ERROR: lldpd-0.9.6-r0 do_configure: Function failed: do_qa_configure

Change-Id: I83255b5952e19bb2f516b1186276cd03eb67eed3
Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 ...overlay.pc.in-Set-Cflags-to-use-I-instead.patch | 33 ++
 meta/recipes-support/libbsd/libbsd_0.8.3.bb|  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 
meta/recipes-support/libbsd/libbsd/0001-src-libbsd-overlay.pc.in-Set-Cflags-to-use-I-instead.patch

diff --git 
a/meta/recipes-support/libbsd/libbsd/0001-src-libbsd-overlay.pc.in-Set-Cflags-to-use-I-instead.patch
 
b/meta/recipes-support/libbsd/libbsd/0001-src-libbsd-overlay.pc.in-Set-Cflags-to-use-I-instead.patch
new file mode 100644
index 00..7e3a5b3be4
--- /dev/null
+++ 
b/meta/recipes-support/libbsd/libbsd/0001-src-libbsd-overlay.pc.in-Set-Cflags-to-use-I-instead.patch
@@ -0,0 +1,33 @@
+From b6972f1c29ebf073cbe19a4a669ee093259792a0 Mon Sep 17 00:00:00 2001
+From: Fabio Berton <fabio.ber...@ossystems.com.br>
+Date: Mon, 30 Jan 2017 12:00:33 -0200
+Subject: [PATCH] src/libbsd-overlay.pc.in: Set Cflags to use -I instead of
+ -isystem
+Organization: O.S. Systems Software LTDA.
+
+pkg-config currently only handles -I and -L correctly, but misses
+-isystem, so we need to do this workaround to fix this issue.
+
+There's a open bug in:
+https://bugzilla.freedesktop.org/show_bug.cgi?id=99516
+
+Upstream-Status: Pending
+
+Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
+---
+ src/libbsd-overlay.pc.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/libbsd-overlay.pc.in b/src/libbsd-overlay.pc.in
+index ac8bf89..65dc3ae 100644
+--- a/src/libbsd-overlay.pc.in
 b/src/libbsd-overlay.pc.in
+@@ -8,4 +8,4 @@ Description: Utility functions from BSD systems (overlay)
+ Version: @VERSION@
+ URL: https://libbsd.freedesktop.org/
+ Libs: -L${libdir} -lbsd
+-Cflags: -isystem ${includedir}/bsd -DLIBBSD_OVERLAY
++Cflags: -I${includedir}/bsd -DLIBBSD_OVERLAY
+-- 
+2.11.0
+
diff --git a/meta/recipes-support/libbsd/libbsd_0.8.3.bb 
b/meta/recipes-support/libbsd/libbsd_0.8.3.bb
index fadd7886a2..e85ee2153d 100644
--- a/meta/recipes-support/libbsd/libbsd_0.8.3.bb
+++ b/meta/recipes-support/libbsd/libbsd_0.8.3.bb
@@ -35,6 +35,7 @@ SECTION = "libs"
 
 SRC_URI = " \
 http://libbsd.freedesktop.org/releases/${BPN}-${PV}.tar.xz \
+file://0001-src-libbsd-overlay.pc.in-Set-Cflags-to-use-I-instead.patch \
 "
 SRC_URI_append_libc-musl  = " \
 file://0001-Replace-__BEGIN_DECLS-and-__END_DECLS.patch \
-- 
2.11.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] watchdog: Add RCONFLICTS to watchdog-keepalive and split RDEPENDS

2017-01-25 Thread Fabio Berton
watchdog-keepalive is a simplified version of the watchdog daemon
and can't be installed along with watchdog daemon, we need to
choose which daemon install.

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 meta/recipes-extended/watchdog/watchdog_5.15.bb | 9 +
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-extended/watchdog/watchdog_5.15.bb 
b/meta/recipes-extended/watchdog/watchdog_5.15.bb
index cedfc042ce..9659f27df5 100644
--- a/meta/recipes-extended/watchdog/watchdog_5.15.bb
+++ b/meta/recipes-extended/watchdog/watchdog_5.15.bb
@@ -52,8 +52,9 @@ FILES_${PN}-keepalive = " \
 ${sbindir}/wd_keepalive \
 "
 
-RDEPENDS_${PN} += "${PN}-config ${PN}-keepalive"
-RDEPENDS_${PN}-keepalive += "${PN}-config"
-
-RRECOMMENDS_${PN} = "kernel-module-softdog"
+RDEPENDS_${PN} += "${PN}-config"
+RRECOMMENDS_${PN} += "kernel-module-softdog"
 
+RDEPENDS_${PN}-keepalive += "${PN}-config"
+RCONFLICTS_${PN}-keepalive += "${PN}"
+RRECOMMENDS_${PN}-keepalive += "kernel-module-softdog"
-- 
2.11.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] openssl: Use linux-aarch64 target for aarch64

2017-01-13 Thread Fabio Berton
aarch64 target was being configured for linux-generic64 but openssl has
linux-aarch64 target. Change to use linux-aarch64 as default.

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 meta/recipes-connectivity/openssl/openssl.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-connectivity/openssl/openssl.inc 
b/meta/recipes-connectivity/openssl/openssl.inc
index 2ef8b38be8..5cca019e1d 100644
--- a/meta/recipes-connectivity/openssl/openssl.inc
+++ b/meta/recipes-connectivity/openssl/openssl.inc
@@ -84,7 +84,7 @@ do_configure () {
target=linux-elf-armeb
;;
linux-aarch64*)
-   target=linux-generic64
+   target=linux-aarch64
;;
linux-sh3)
target=debian-sh3
-- 
2.11.0

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] u-boot: Add RPROVIDES bootloader

2016-12-05 Thread Fabio Berton
Use MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "u-boot" without apply any patch?

On Mon, Dec 5, 2016 at 2:18 PM, Burton, Ross <ross.bur...@intel.com> wrote:

>
> On 2 December 2016 at 13:59, Fabio Berton <fabio.ber...@ossystems.com.br>
> wrote:
>
>> This change allow to install u-boot in /boot partition using
>> MACHINE_ESSENTIAL_EXTRA_RDEPENDS variable e.g.:
>>
>> MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "bootloader"
>>
>> This is usefull when system has only one partition and u-boot,
>> kernel and device tree need to be installed in /boot.
>>
>
> What does this give you over just MACHINE_ESSENTIAL_EXTRA_RDEPENDS +=
> "u-boot"?
>
> Ross
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] u-boot: Add RPROVIDES bootloader

2016-12-02 Thread Fabio Berton
This change allow to install u-boot in /boot partition using
MACHINE_ESSENTIAL_EXTRA_RDEPENDS variable e.g.:

MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "bootloader"

This is usefull when system has only one partition and u-boot,
kernel and device tree need to be installed in /boot.

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 meta/recipes-bsp/u-boot/u-boot.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-bsp/u-boot/u-boot.inc 
b/meta/recipes-bsp/u-boot/u-boot.inc
index afe3fe9..3676158 100644
--- a/meta/recipes-bsp/u-boot/u-boot.inc
+++ b/meta/recipes-bsp/u-boot/u-boot.inc
@@ -1,5 +1,6 @@
 SUMMARY = "Universal Boot Loader for embedded devices"
 PROVIDES = "virtual/bootloader"
+RPROVIDES_${PN} += "bootloader"
 
 B = "${WORKDIR}/build"
 
-- 
2.1.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] libpcap: Disable exposed bits of WinPCAP remote capture support

2016-11-22 Thread Fabio Berton
Disable bits of remote capture support inherited from the WinPCAP merge
which cause applications to fails to build if they define HAVE_REMOTE.

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 .../libpcap/libpcap/disable-remote.patch   | 36 ++
 meta/recipes-connectivity/libpcap/libpcap_1.8.1.bb |  1 +
 2 files changed, 37 insertions(+)
 create mode 100644 
meta/recipes-connectivity/libpcap/libpcap/disable-remote.patch

diff --git a/meta/recipes-connectivity/libpcap/libpcap/disable-remote.patch 
b/meta/recipes-connectivity/libpcap/libpcap/disable-remote.patch
new file mode 100644
index 000..7e1eea6
--- /dev/null
+++ b/meta/recipes-connectivity/libpcap/libpcap/disable-remote.patch
@@ -0,0 +1,36 @@
+Disable bits of remote capture support inherited from the WinPCAP merge
+which cause applications to FTBFS if they define HAVE_REMOTE.
+
+Patch from:
+https://anonscm.debian.org/cgit/users/rfrancoise/libpcap.git/commit/?
+id=f35949969269dfdcc3549b12fade604755e1e326
+
+Upstream-Status: Pending
+
+--- a/pcap/pcap.h
 b/pcap/pcap.h
+@@ -506,6 +506,11 @@
+   #define MODE_STAT 1
+   #define MODE_MON 2
+ 
++#ifdef HAVE_REMOTE
++  /* Includes most of the public stuff that is needed for the remote capture 
*/
++  #include 
++#endif /* HAVE_REMOTE */
++
+ #elif defined(MSDOS)
+ 
+   /*
+@@ -526,11 +531,6 @@
+ 
+ #endif /* _WIN32/MSDOS/UN*X */
+ 
+-#ifdef HAVE_REMOTE
+-  /* Includes most of the public stuff that is needed for the remote capture 
*/
+-  #include 
+-#endif /* HAVE_REMOTE */
+-
+ #ifdef __cplusplus
+ }
+ #endif
+
diff --git a/meta/recipes-connectivity/libpcap/libpcap_1.8.1.bb 
b/meta/recipes-connectivity/libpcap/libpcap_1.8.1.bb
index 9072fe0..8ce18e5 100644
--- a/meta/recipes-connectivity/libpcap/libpcap_1.8.1.bb
+++ b/meta/recipes-connectivity/libpcap/libpcap_1.8.1.bb
@@ -2,6 +2,7 @@ require libpcap.inc
 
 SRC_URI += " \
 file://libpcap-pkgconfig-support.patch \
+file://disable-remote.patch \
 "
 
 SRC_URI[md5sum] = "3d48f9cd171ff12b0efd9134b52f1447"
-- 
2.1.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] libgpg-error: Update to version 1.25

2016-11-21 Thread Fabio Berton
License checksum changes are not related to license changes.

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 .../libgpg-error/{libgpg-error_1.24.bb => libgpg-error_1.25.bb}| 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)
 rename meta/recipes-support/libgpg-error/{libgpg-error_1.24.bb => 
libgpg-error_1.25.bb} (86%)

diff --git a/meta/recipes-support/libgpg-error/libgpg-error_1.24.bb 
b/meta/recipes-support/libgpg-error/libgpg-error_1.25.bb
similarity index 86%
rename from meta/recipes-support/libgpg-error/libgpg-error_1.24.bb
rename to meta/recipes-support/libgpg-error/libgpg-error_1.25.bb
index 84a882a..9d402ff 100644
--- a/meta/recipes-support/libgpg-error/libgpg-error_1.24.bb
+++ b/meta/recipes-support/libgpg-error/libgpg-error_1.25.bb
@@ -5,7 +5,7 @@ BUGTRACKER = "https://bugs.g10code.com/gnupg/index;
 LICENSE = "GPLv2+ & LGPLv2.1+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
 file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \
-
file://src/gpg-error.h.in;endline=23;md5=cf562f60b9dba7df20d6ee3f97ea1d5a \
+
file://src/gpg-error.h.in;endline=23;md5=64af9846baaf852793fd3a5af393acbf \
 
file://src/init.c;endline=20;md5=872b2389fe9bae7ffb80d2b91225afbc"
 
 
@@ -15,8 +15,9 @@ UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html;
 SRC_URI = "${GNUPG_MIRROR}/libgpg-error/libgpg-error-${PV}.tar.bz2 \
file://pkgconfig.patch \
  "
-SRC_URI[md5sum] = "feb42198c0aaf3b28eabe8f41a34b983"
-SRC_URI[sha256sum] = 
"9268e1cc487de5e6e4460fca612a06e4f383072ac43ae90603e5e46783d3e540"
+
+SRC_URI[md5sum] = "d9fa545922a5060cbfbd87464bc31686"
+SRC_URI[sha256sum] = 
"f628f75843433b38b05af248121beb7db5bd54bb2106f384edac39934261320c"
 
 BINCONFIG = "${bindir}/gpg-error-config"
 
-- 
2.1.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] nettle: Update to version 3.3

2016-11-21 Thread Fabio Berton
Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 meta/recipes-support/nettle/{nettle_3.2.bb => nettle_3.3.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-support/nettle/{nettle_3.2.bb => nettle_3.3.bb} (75%)

diff --git a/meta/recipes-support/nettle/nettle_3.2.bb 
b/meta/recipes-support/nettle/nettle_3.3.bb
similarity index 75%
rename from meta/recipes-support/nettle/nettle_3.2.bb
rename to meta/recipes-support/nettle/nettle_3.3.bb
index 2b79779..c723e27 100644
--- a/meta/recipes-support/nettle/nettle_3.2.bb
+++ b/meta/recipes-support/nettle/nettle_3.3.bb
@@ -7,5 +7,5 @@ LIC_FILES_CHKSUM = 
"file://COPYING.LESSERv3;md5=6a6a8e020838b23406c81b19c1d46df6
 
file://serpent-decrypt.c;beginline=14;endline=36;md5=ca0d220bc413e1842ecc507690ce416e
 \
 
file://serpent-set-key.c;beginline=14;endline=36;md5=ca0d220bc413e1842ecc507690ce416e"
 
-SRC_URI[md5sum] = "afb15b4764ebf1b4e6d06c62bd4d29e4"
-SRC_URI[sha256sum] = 
"ea4283def236413edab5a4cf9cf32adf540c8df1b9b67641cfc2302fca849d97"
+SRC_URI[md5sum] = "10f969f78a463704ae73529978148dbe"
+SRC_URI[sha256sum] = 
"46942627d5d0ca11720fec18d81fc38f7ef837ea4197c1f630e71ce0d470b11e"
-- 
2.1.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] pigz: Update to version 2.3.4

2016-11-21 Thread Fabio Berton
  - Change SRC_URI to fetch sources from Github archives. Pigz official
site maintains only the latest tarball version and Github have all
versions avaiable to download.

  - Remove patch link-order.patch. The following commit fix this issue:
https://github.com/madler/pigz/commit/c3f91d1a12a6f

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 meta/recipes-extended/pigz/pigz/link-order.patch | 38 
 meta/recipes-extended/pigz/pigz_2.3.3.bb | 14 -
 meta/recipes-extended/pigz/pigz_2.3.4.bb | 12 
 3 files changed, 12 insertions(+), 52 deletions(-)
 delete mode 100644 meta/recipes-extended/pigz/pigz/link-order.patch
 delete mode 100644 meta/recipes-extended/pigz/pigz_2.3.3.bb
 create mode 100644 meta/recipes-extended/pigz/pigz_2.3.4.bb

diff --git a/meta/recipes-extended/pigz/pigz/link-order.patch 
b/meta/recipes-extended/pigz/pigz/link-order.patch
deleted file mode 100644
index 4becc0e..000
--- a/meta/recipes-extended/pigz/pigz/link-order.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-This patch avoids underlinking issues since we pass -lz via LDFLAGS but it 
appears
-before pigz.o which needs symbols from libz however due to order linker 
happily discards libz
-
-Upstream-Status: Pending
-
-Signed-off-by: Khem Raj <raj.k...@gmail.com>
-
-Index: pigz-2.3.3/Makefile
-===
 pigz-2.3.3.orig/Makefile   2015-01-19 20:12:31.0 -0800
-+++ pigz-2.3.3/Makefile2015-01-28 09:11:50.29184 -0800
-@@ -5,7 +5,7 @@
- # use gcc and gmake on Solaris
- 
- pigz: pigz.o yarn.o try.o ${ZOPFLI}deflate.o ${ZOPFLI}blocksplitter.o 
${ZOPFLI}tree.o ${ZOPFLI}lz77.o ${ZOPFLI}cache.o ${ZOPFLI}hash.o 
${ZOPFLI}util.o ${ZOPFLI}squeeze.o ${ZOPFLI}katajainen.o
--  $(CC) $(LDFLAGS) -o pigz $^ -lpthread -lm
-+  $(CC) -o pigz $^ $(LDFLAGS) -lz -lpthread -lm
-   ln -f pigz unpigz
- 
- pigz.o: pigz.c yarn.h try.h ${ZOPFLI}deflate.h ${ZOPFLI}util.h
-@@ -35,7 +35,7 @@
- dev: pigz pigzt pigzn
- 
- pigzt: pigzt.o yarnt.o try.o ${ZOPFLI}deflate.o ${ZOPFLI}blocksplitter.o 
${ZOPFLI}tree.o ${ZOPFLI}lz77.o ${ZOPFLI}cache.o ${ZOPFLI}hash.o 
${ZOPFLI}util.o ${ZOPFLI}squeeze.o ${ZOPFLI}katajainen.o
--  $(CC) $(LDFLAGS) -o pigzt $^ -lpthread -lm
-+  $(CC) -o pigzt $^ $(LDFLAGS) -lz -lpthread -lm
- 
- pigzt.o: pigz.c yarn.h try.h
-   $(CC) $(CFLAGS) -DDEBUG -g -c -o pigzt.o pigz.c
-@@ -44,7 +44,7 @@
-   $(CC) $(CFLAGS) -DDEBUG -g -c -o yarnt.o yarn.c
- 
- pigzn: pigzn.o tryn.o ${ZOPFLI}deflate.o ${ZOPFLI}blocksplitter.o 
${ZOPFLI}tree.o ${ZOPFLI}lz77.o ${ZOPFLI}cache.o ${ZOPFLI}hash.o 
${ZOPFLI}util.o ${ZOPFLI}squeeze.o ${ZOPFLI}katajainen.o
--  $(CC) $(LDFLAGS) -o pigzn $^ -lm
-+  $(CC) -o pigzn $^ $(LDFLAGS) -lz -lm
- 
- pigzn.o: pigz.c try.h
-   $(CC) $(CFLAGS) -DDEBUG -DNOTHREAD -g -c -o pigzn.o pigz.c
diff --git a/meta/recipes-extended/pigz/pigz_2.3.3.bb 
b/meta/recipes-extended/pigz/pigz_2.3.3.bb
deleted file mode 100644
index b4fe831..000
--- a/meta/recipes-extended/pigz/pigz_2.3.3.bb
+++ /dev/null
@@ -1,14 +0,0 @@
-require pigz.inc
-LIC_FILES_CHKSUM = 
"file://pigz.c;beginline=7;endline=21;md5=a21d4075cb00ab4ca17fce5e7534ca95"
-
-UPSTREAM_CHECK_URI = "http://zlib.net/${BPN}/;
-SRC_URI = "http://downloads.yoctoproject.org/mirror/sources/${BP}.tar.gz;
-SRC_URI += "file://link-order.patch"
-
-SRC_URI[md5sum] = "01d7a16cce77929cc1a78aa1bdfb68cb"
-SRC_URI[sha256sum] = 
"4e8b67b432ce7907575a549f3e1cac4709781ba0f6b48afea9f59369846b509c"
-
-NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}"
-
-BBCLASSEXTEND = "native nativesdk"
-
diff --git a/meta/recipes-extended/pigz/pigz_2.3.4.bb 
b/meta/recipes-extended/pigz/pigz_2.3.4.bb
new file mode 100644
index 000..49d9d78
--- /dev/null
+++ b/meta/recipes-extended/pigz/pigz_2.3.4.bb
@@ -0,0 +1,12 @@
+require pigz.inc
+LIC_FILES_CHKSUM = 
"file://pigz.c;beginline=7;endline=21;md5=a21d4075cb00ab4ca17fce5e7534ca95"
+
+UPSTREAM_CHECK_URI = "http://zlib.net/${BPN}/;
+SRC_URI = "https://github.com/madler/pigz/archive/v${PV}.tar.gz;
+SRC_URI[md5sum] = "c109057050b15edf3eb9bb4d0805235e"
+SRC_URI[sha256sum] = 
"763f2fdb203aa0b7b640e63385e38e5dd4e5aaa041bc8e42aa96f2ef156b06e8"
+
+NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}"
+
+BBCLASSEXTEND = "native nativesdk"
+
-- 
2.1.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] libpcap: Fix build when PACKAGECONFIG ipv6 is not enable

2016-11-17 Thread Fabio Berton
Hi Chistopher,

Patches in this commit have Upstream-Status: Submitted tag.

Thanks.

On Thu, Nov 17, 2016 at 2:00 PM, Christopher Larson <clar...@kergoth.com>
wrote:

>
> On Thu, Nov 17, 2016 at 8:26 AM, Fabio Berton <
> fabio.ber...@ossystems.com.br> wrote:
>
>> Add patches to fix error:
>> /
>> | ERROR: oe_runmake failed
>> | config.status: creating pcap-config.tmp
>> | mv pcap-config.tmp pcap-config
>> | chmod a+x pcap-config
>> | ../libpcap-1.8.1/gencode.c: In function 'pcap_compile':
>> | ../libpcap-1.8.1/gencode.c:693:8: error: 'compiler_state_t
>> | {aka struct _compiler_state}' has no member named 'ai'
>> |   cstate.ai = NULL;
>> | ^
>> | ../libpcap-1.8.1/gencode.c: In function 'gen_gateway':
>> | ../libpcap-1.8.1/gencode.c:4914:13: error: 'cstate' undeclared
>> | (first use in this function)
>> |bpf_error(cstate, "direction applied to 'gateway'");
>> |  ^~
>> | ../libpcap-1.8.1/gencode.c:4914:13: note: each undeclared identifier is
>> | reported only once for each function it appears in
>> \
>>
>> Patches were submitted to upstream [1]
>>
>> [1] https://github.com/the-tcpdump-group/libpcap/pull/541
>>
>> Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
>>
>
> This is fairly common, but afaik the Upstream-Status is an artifact of the
> patch, not the commit that generated the patch, so belongs outside (above)
> the commit message in the patch file.
> --
> Christopher Larson
> clarson at kergoth dot com
> Founder - BitBake, OpenEmbedded, OpenZaurus
> Maintainer - Tslib
> Senior Software Engineer, Mentor Graphics
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] libpcap: Fix build when PACKAGECONFIG ipv6 is not enable

2016-11-17 Thread Fabio Berton
No, I created a patch, git format-patch and then edit generated files with
Upstream-Status tag and added to recipe. Is this wrong?

On Thu, Nov 17, 2016 at 2:15 PM, Christopher Larson <clar...@kergoth.com>
wrote:

>
> On Thu, Nov 17, 2016 at 9:11 AM, Fabio Berton <
> fabio.ber...@ossystems.com.br> wrote:
>
>> Patches in this commit have Upstream-Status: Submitted tag.
>>
>
> I know, the point was the tag was within the commit message in the patch,
> not just the patch file — wrong location within the patch file. Is the
> Upstream-Status tag in the commits you submitted upstream? Unlikely, it’s
> oe-specific metadata.
> --
> Christopher Larson
> clarson at kergoth dot com
> Founder - BitBake, OpenEmbedded, OpenZaurus
> Maintainer - Tslib
> Senior Software Engineer, Mentor Graphics
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] libpcap: Fix build when PACKAGECONFIG ipv6 is not enable

2016-11-17 Thread Fabio Berton
Add patches to fix error:
/
| ERROR: oe_runmake failed
| config.status: creating pcap-config.tmp
| mv pcap-config.tmp pcap-config
| chmod a+x pcap-config
| ../libpcap-1.8.1/gencode.c: In function 'pcap_compile':
| ../libpcap-1.8.1/gencode.c:693:8: error: 'compiler_state_t
| {aka struct _compiler_state}' has no member named 'ai'
|   cstate.ai = NULL;
| ^
| ../libpcap-1.8.1/gencode.c: In function 'gen_gateway':
| ../libpcap-1.8.1/gencode.c:4914:13: error: 'cstate' undeclared
| (first use in this function)
|bpf_error(cstate, "direction applied to 'gateway'");
|  ^~
| ../libpcap-1.8.1/gencode.c:4914:13: note: each undeclared identifier is
| reported only once for each function it appears in
\

Patches were submitted to upstream [1]

[1] https://github.com/the-tcpdump-group/libpcap/pull/541

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 ...r_state_t.ai-usage-when-INET6-is-not-defi.patch | 41 +
 ...02-Add-missing-compiler_state_t-parameter.patch | 67 ++
 meta/recipes-connectivity/libpcap/libpcap_1.8.1.bb |  2 +
 3 files changed, 110 insertions(+)
 create mode 100644 
meta/recipes-connectivity/libpcap/libpcap/0001-Fix-compiler_state_t.ai-usage-when-INET6-is-not-defi.patch
 create mode 100644 
meta/recipes-connectivity/libpcap/libpcap/0002-Add-missing-compiler_state_t-parameter.patch

diff --git 
a/meta/recipes-connectivity/libpcap/libpcap/0001-Fix-compiler_state_t.ai-usage-when-INET6-is-not-defi.patch
 
b/meta/recipes-connectivity/libpcap/libpcap/0001-Fix-compiler_state_t.ai-usage-when-INET6-is-not-defi.patch
new file mode 100644
index 000..edb6ae5
--- /dev/null
+++ 
b/meta/recipes-connectivity/libpcap/libpcap/0001-Fix-compiler_state_t.ai-usage-when-INET6-is-not-defi.patch
@@ -0,0 +1,41 @@
+From 64aa033a061c43fc15c711f2490ae41d23b868c3 Mon Sep 17 00:00:00 2001
+From: Fabio Berton <fabio.ber...@ossystems.com.br>
+Date: Thu, 17 Nov 2016 09:44:42 -0200
+Subject: [PATCH 1/2] Fix compiler_state_t.ai usage when INET6 is not defined
+Organization: O.S. Systems Software LTDA.
+
+Fix error:
+
+/
+| ../libpcap-1.8.1/gencode.c: In function 'pcap_compile':
+| ../libpcap-1.8.1/gencode.c:693:8: error: 'compiler_state_t
+| {aka struct _compiler_state}' has no member named 'ai'
+|   cstate.ai = NULL;
+\
+
+Upstream-Status: Submitted [1]
+
+[1] https://github.com/the-tcpdump-group/libpcap/pull/541
+
+Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
+---
+ gencode.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/gencode.c b/gencode.c
+index a887f27..e103c70 100644
+--- a/gencode.c
 b/gencode.c
+@@ -690,7 +690,9 @@ pcap_compile(pcap_t *p, struct bpf_program *program,
+   }
+   initchunks();
+   cstate.no_optimize = 0;
++#ifdef INET6
+   cstate.ai = NULL;
++#endif
+   cstate.ic.root = NULL;
+   cstate.ic.cur_mark = 0;
+   cstate.bpf_pcap = p;
+-- 
+2.1.4
+
diff --git 
a/meta/recipes-connectivity/libpcap/libpcap/0002-Add-missing-compiler_state_t-parameter.patch
 
b/meta/recipes-connectivity/libpcap/libpcap/0002-Add-missing-compiler_state_t-parameter.patch
new file mode 100644
index 000..032b265
--- /dev/null
+++ 
b/meta/recipes-connectivity/libpcap/libpcap/0002-Add-missing-compiler_state_t-parameter.patch
@@ -0,0 +1,67 @@
+From 50ec0a088d5924a8305b2d70dcba71b0942dee1a Mon Sep 17 00:00:00 2001
+From: Fabio Berton <fabio.ber...@ossystems.com.br>
+Date: Thu, 17 Nov 2016 09:47:29 -0200
+Subject: [PATCH 2/2] Add missing compiler_state_t parameter
+Organization: O.S. Systems Software LTDA.
+
+Fix error:
+
+/
+|../libpcap-1.8.1/gencode.c: In function 'gen_gateway':
+|../libpcap-1.8.1/gencode.c:4914:13: error: 'cstate' undeclared
+| (first use in this function)
+|bpf_error(cstate, "direction applied to 'gateway'");
+\
+
+Upstream-Status: Submitted [1]
+
+[1] https://github.com/the-tcpdump-group/libpcap/pull/541
+
+Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
+---
+ gencode.c | 15 ---
+ 1 file changed, 8 insertions(+), 7 deletions(-)
+
+diff --git a/gencode.c b/gencode.c
+index e103c70..f07c0be 100644
+--- a/gencode.c
 b/gencode.c
+@@ -523,7 +523,7 @@ static struct block *gen_host6(compiler_state_t *, struct 
in6_addr *,
+ struct in6_addr *, int, int, int);
+ #endif
+ #ifndef INET6
+-static struct block *gen_gateway(const u_char *, bpf_u_int32 **, int, int);
++static struct block *gen_gateway(compiler_state_t *, const u_char *, 
bpf_u_int32 **, int, int);
+ #endif
+ static struct block *gen_ipfrag(compiler_state_t *);
+ static struct block *gen_portatom(compiler_state_t *, int, bpf_int32);
+@@ -4904,11 +4904,12 @@ gen_host6(compiler_state_t *cstate, struct in6_addr 
*addr,
+ 
+ #ifndef INET6
+ static struct block *
+-gen_gateway(eaddr, alist, proto, dir)
+-  const u_char *eaddr;
+-  bpf_u_int32 **alist;
+-  int proto;
+-  int dir;
++gen_gateway(cstate, eaddr, alist, proto, dir)
++c

Re: [OE-core] [PATCH v2] libpcap: Update to version 1.8.1

2016-11-16 Thread Fabio Berton
Hi Martin,

I'll look into this.

Thanks.

On Wed, Nov 16, 2016 at 5:41 PM, Martin Jansa <martin.ja...@gmail.com>
wrote:

> On Tue, Nov 08, 2016 at 09:52:48AM -0200, Fabio Berton wrote:
> >   - Option --enable-canusb was removed on commit:
> > https://github.com/the-tcpdump-group/libpcap/commit/
> 93ca5ff7030aaf1219e1de05ec89a68384bfc50b
> >   - Autotools class was improved and we can now stop aclocal from
> running at all.
> >   - File configure.in was renamed to configure.ac, rework
> libpcap-pkgconfig-support
> > patch and do_configure_prepend task to use configure.ac file.
> >
> > Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
> > ---
> >  meta/recipes-connectivity/libpcap/libpcap.inc  |   5 +-
> >  .../libpcap/libpcap/aclocal.patch  | 167
> -
> >  .../libpcap/libpcap-pkgconfig-support.patch|  32 ++--
> >  .../libpcap/{libpcap_1.7.4.bb => libpcap_1.8.1.bb} |  13 +-
> >  4 files changed, 25 insertions(+), 192 deletions(-)
> >  delete mode 100644 meta/recipes-connectivity/
> libpcap/libpcap/aclocal.patch
> >  rename meta/recipes-connectivity/libpcap/{libpcap_1.7.4.bb =>
> libpcap_1.8.1.bb} (67%)
> >
> > diff --git a/meta/recipes-connectivity/libpcap/libpcap.inc
> b/meta/recipes-connectivity/libpcap/libpcap.inc
> > index 7b29a52..4453a9e 100644
> > --- a/meta/recipes-connectivity/libpcap/libpcap.inc
> > +++ b/meta/recipes-connectivity/libpcap/libpcap.inc
> > @@ -19,6 +19,7 @@ BINCONFIG = "${bindir}/pcap-config"
> >  inherit autotools binconfig-disabled pkgconfig bluetooth
> >
> >  EXTRA_OECONF = "--with-pcap=linux"
> > +EXTRA_AUTORECONF += "--exclude=aclocal"
> >
> >  PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES',
> 'bluetooth', '${BLUEZ}', '', d)} \
> > ${@bb.utils.contains('DISTRO_FEATURES', 'ipv6',
> 'ipv6', '', d)} \
> > @@ -26,7 +27,6 @@ PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES',
> 'bluetooth', '${BLUEZ
> >  PACKAGECONFIG[bluez4] = "--enable-bluetooth,--disable-bluetooth,bluez4"
> >  # Add a dummy PACKAGECONFIG for bluez5 since it is not supported by
> libpcap.
> >  PACKAGECONFIG[bluez5] = ",,"
> > -PACKAGECONFIG[canusb] = "--enable-canusb,--enable-canusb=no,libusb"
> >  PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus"
> >  PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
>
> This version fails to build without ipv6 in PACKAGECONFIG with this
> error:
>
> | i586-oe-linux-gcc  -m32 -march=i586 
> --sysroot=/OE/build/oe-core/tmp-glibc/sysroots/qemux86
> -I../libpcap-1.8.1 -fvisibility=hidden -fpic -I/OE/build/oe-core/tmp-glibc/
> work/i586-oe-linux/libpcap/1.8.1-r0/libpcap-1.8.1 -O2 -pipe -g
> -feliminate-unused-debug-types -fdebug-prefix-map=/OE/build/
> oe-core/tmp-glibc/work/i586-oe-linux/libpcap/1.8.1-r0=/usr/src/debug/libpcap/1.8.1-r0
> -fdebug-prefix-map=/OE/build/oe-core/tmp-glibc/sysroots/x86_64-linux=
> -fdebug-prefix-map=/OE/build/oe-core/tmp-glibc/sysroots/qemux86= -I.
> -DBUILDING_PCAP -DHAVE_CONFIG_H  -D_U_="__attribute__((unused))"
> -I/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/libpcap/1.8.1-r0/libpcap-1.8.1
> -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/OE/build/
> oe-core/tmp-glibc/work/i586-oe-linux/libpcap/1.8.1-r0=/usr/src/debug/libpcap/1.8.1-r0
> -fdebug-prefix-map=/OE/build/oe-core/tmp-glibc/sysroots/x86_64-linux=
> -fdebug-prefix-map=/OE/build/oe-core/tmp-glibc/sysroots/qemux86=-c
> scanner.c
> | ../libpcap-1.8.1/gencode.c: In function 'pcap_compile':
> | ../libpcap-1.8.1/gencode.c:693:8: error: 'compiler_state_t {aka struct
> _compiler_state}' has no member named 'ai'
> |   cstate.ai = NULL;
> | ^
> | ../libpcap-1.8.1/gencode.c: In function 'gen_gateway':
> | ../libpcap-1.8.1/gencode.c:4914:13: error: 'cstate' undeclared (first
> use in this function)
> |bpf_error(cstate, "direction applied to 'gateway'");
> |  ^~
> | ../libpcap-1.8.1/gencode.c:4914:13: note: each undeclared identifier is
> reported only once for each function it appears in
> | config.status: creating pcap-config.tmp
> | make: *** [Makefile:478: gencode.o] Error 1
> | make: *** Waiting for unfinished jobs
> | mv pcap-config.tmp pcap-config
> | chmod a+x pcap-config
>
> Version 1.7.4 was building fine without it.
>
> >  PACKAGECONFIG[libnl] = "--with-libnl,--without-libnl,libnl"
> > @@ -36,8 +36,5 @@ CFLAGS_prepend = "-I${S} "
> >  CXXFLAGS_prepend = "-I${S} "
> >
> >  do_configu

[OE-core] [PATCH] binutils: Fix build for c293pcie PPC machine

2016-11-14 Thread Fabio Berton
The following patch fix build for c293pcie PPC machine :
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=8941017b

This patch is a backport from master branch.

Fix error:
/
|ERROR: binutils-2.27-r0 do_package: runstrip: 
''powerpc-fslc-linux-gnuspe-strip'
|--remove-section=.comment --remove-section=.note --strip-unneeded
|'../tmp/work/ppce500v2-fslc-linux-gnuspe/binutils/2.27-r0/package/usr/lib/
|libbfd-2.27.0.20160806.so'' strip command failed with 1
|(b'powerpc-fslc-linux-gnuspe-strip: ../tmp/work/ppce500v2-fslc-linux-gnuspe/
|binutils/2.27-r0/package/usr/lib/stJMAEnm: Not enough room for program headers,
|try linking with -N\npowerpc-fslc-linux-gnuspe-strip:../tmp/work/
|ppce500v2-fslc-linux-gnuspe/binutils/2.27-r0/package/usr/lib/stJMAEnm
|[.note.gnu.build-id]: Bad value\n')
\

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 meta/recipes-devtools/binutils/binutils-2.27.inc   |  1 +
 ...01-ppc-apuinfo-for-spe-parsed-incorrectly.patch | 37 ++
 2 files changed, 38 insertions(+)
 create mode 100644 
meta/recipes-devtools/binutils/binutils/0001-ppc-apuinfo-for-spe-parsed-incorrectly.patch

diff --git a/meta/recipes-devtools/binutils/binutils-2.27.inc 
b/meta/recipes-devtools/binutils/binutils-2.27.inc
index fc81721..75180ea 100644
--- a/meta/recipes-devtools/binutils/binutils-2.27.inc
+++ b/meta/recipes-devtools/binutils/binutils-2.27.inc
@@ -37,6 +37,7 @@ SRC_URI = "\
  file://0015-binutils-mips-gas-pic-relax-linkonce.diff \
  file://0015-Refine-.cfi_sections-check-to-only-consider-compact-.patch \
  file://0016-Fix-seg-fault-in-ARM-linker-when-trying-to-parse-a-b.patch \
+ file://0001-ppc-apuinfo-for-spe-parsed-incorrectly.patch \
 "
 S  = "${WORKDIR}/git"
 
diff --git 
a/meta/recipes-devtools/binutils/binutils/0001-ppc-apuinfo-for-spe-parsed-incorrectly.patch
 
b/meta/recipes-devtools/binutils/binutils/0001-ppc-apuinfo-for-spe-parsed-incorrectly.patch
new file mode 100644
index 000..d82a0b6
--- /dev/null
+++ 
b/meta/recipes-devtools/binutils/binutils/0001-ppc-apuinfo-for-spe-parsed-incorrectly.patch
@@ -0,0 +1,37 @@
+From 8941017bc0226b60ce306d5271df15820ce66a53 Mon Sep 17 00:00:00 2001
+From: Alan Modra <amo...@gmail.com>
+Date: Tue, 30 Aug 2016 20:57:32 +0930
+Subject: [PATCH] ppc apuinfo for spe parsed incorrectly
+Organization: O.S. Systems Software LTDA.
+
+apuinfo saying SPE resulted in mach = bfd_mach_ppc_vle due to a
+missing break.
+
+   PR 20531
+   * elf32-ppc.c (_bfd_elf_ppc_set_arch): Add missing "break".
+
+
+Backport from :
+https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=8941017b
+
+Upstream-Status: Backport
+Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
+---
+ bfd/elf32-ppc.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
+index 95ce1dc..e42ef1c 100644
+--- a/bfd/elf32-ppc.c
 b/bfd/elf32-ppc.c
+@@ -2246,6 +2246,7 @@ _bfd_elf_ppc_set_arch (bfd *abfd)
+   case PPC_APUINFO_BRLOCK:
+ if (mach != bfd_mach_ppc_vle)
+   mach = bfd_mach_ppc_e500;
++break;
+ 
+   case PPC_APUINFO_VLE:
+ mach = bfd_mach_ppc_vle;
+-- 
+2.1.4
+
-- 
2.1.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v2] libpcap: Update to version 1.8.1

2016-11-08 Thread Fabio Berton
  - Option --enable-canusb was removed on commit:

https://github.com/the-tcpdump-group/libpcap/commit/93ca5ff7030aaf1219e1de05ec89a68384bfc50b
  - Autotools class was improved and we can now stop aclocal from running at 
all.
  - File configure.in was renamed to configure.ac, rework 
libpcap-pkgconfig-support
patch and do_configure_prepend task to use configure.ac file.

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 meta/recipes-connectivity/libpcap/libpcap.inc  |   5 +-
 .../libpcap/libpcap/aclocal.patch  | 167 -
 .../libpcap/libpcap-pkgconfig-support.patch|  32 ++--
 .../libpcap/{libpcap_1.7.4.bb => libpcap_1.8.1.bb} |  13 +-
 4 files changed, 25 insertions(+), 192 deletions(-)
 delete mode 100644 meta/recipes-connectivity/libpcap/libpcap/aclocal.patch
 rename meta/recipes-connectivity/libpcap/{libpcap_1.7.4.bb => 
libpcap_1.8.1.bb} (67%)

diff --git a/meta/recipes-connectivity/libpcap/libpcap.inc 
b/meta/recipes-connectivity/libpcap/libpcap.inc
index 7b29a52..4453a9e 100644
--- a/meta/recipes-connectivity/libpcap/libpcap.inc
+++ b/meta/recipes-connectivity/libpcap/libpcap.inc
@@ -19,6 +19,7 @@ BINCONFIG = "${bindir}/pcap-config"
 inherit autotools binconfig-disabled pkgconfig bluetooth
 
 EXTRA_OECONF = "--with-pcap=linux"
+EXTRA_AUTORECONF += "--exclude=aclocal"
 
 PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 
'${BLUEZ}', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', 
d)} \
@@ -26,7 +27,6 @@ PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 
'bluetooth', '${BLUEZ
 PACKAGECONFIG[bluez4] = "--enable-bluetooth,--disable-bluetooth,bluez4"
 # Add a dummy PACKAGECONFIG for bluez5 since it is not supported by libpcap.
 PACKAGECONFIG[bluez5] = ",,"
-PACKAGECONFIG[canusb] = "--enable-canusb,--enable-canusb=no,libusb"
 PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus"
 PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
 PACKAGECONFIG[libnl] = "--with-libnl,--without-libnl,libnl"
@@ -36,8 +36,5 @@ CFLAGS_prepend = "-I${S} "
 CXXFLAGS_prepend = "-I${S} "
 
 do_configure_prepend () {
-if [ ! -e ${S}/acinclude.m4 ]; then
-cat ${S}/aclocal.m4 > ${S}/acinclude.m4
-fi
 sed -i -e's,^V_RPATH_OPT=.*$,V_RPATH_OPT=,' ${S}/pcap-config.in
 }
diff --git a/meta/recipes-connectivity/libpcap/libpcap/aclocal.patch 
b/meta/recipes-connectivity/libpcap/libpcap/aclocal.patch
deleted file mode 100644
index 2151982..000
--- a/meta/recipes-connectivity/libpcap/libpcap/aclocal.patch
+++ /dev/null
@@ -1,167 +0,0 @@
-Upstream-Status: Inappropriate [configuration]
-
-diff -ruN libpcap-1.1.1-orig/aclocal.m4 libpcap-1.1.1/aclocal.m4
 libpcap-1.1.1-orig/aclocal.m4  2010-06-29 10:46:32.815117569 +0800
-+++ libpcap-1.1.1/aclocal.m4   2010-06-29 10:49:17.150149949 +0800
-@@ -37,7 +37,7 @@
- dnl AC_LBL_C_INIT.  Now, we run AC_LBL_C_INIT_BEFORE_CC, AC_PROG_CC,
- dnl and AC_LBL_C_INIT at the top level.
- dnl
--AC_DEFUN(AC_LBL_C_INIT_BEFORE_CC,
-+AC_DEFUN([AC_LBL_C_INIT_BEFORE_CC],
- [
- AC_BEFORE([$0], [AC_LBL_C_INIT])
- AC_BEFORE([$0], [AC_PROG_CC])
-@@ -90,7 +90,7 @@
- dnl LDFLAGS
- dnl LBL_CFLAGS
- dnl
--AC_DEFUN(AC_LBL_C_INIT,
-+AC_DEFUN([AC_LBL_C_INIT],
- [
- AC_BEFORE([$0], [AC_LBL_FIXINCLUDES])
- AC_BEFORE([$0], [AC_LBL_DEVEL])
-@@ -217,7 +217,7 @@
- dnl   V_SONAME_OPT
- dnl   V_RPATH_OPT
- dnl
--AC_DEFUN(AC_LBL_SHLIBS_INIT,
-+AC_DEFUN([AC_LBL_SHLIBS_INIT],
- [AC_PREREQ(2.50)
- if test "$GCC" = yes ; then
-   #
-@@ -361,7 +361,7 @@
- # Make sure we use the V_CCOPT flags, because some of those might
- # disable inlining.
- #
--AC_DEFUN(AC_LBL_C_INLINE,
-+AC_DEFUN([AC_LBL_C_INLINE],
- [AC_MSG_CHECKING(for inline)
- save_CFLAGS="$CFLAGS"
- CFLAGS="$V_CCOPT"
-@@ -407,7 +407,7 @@
- dnl
- dnl   AC_LBL_FIXINCLUDES
- dnl
--AC_DEFUN(AC_LBL_FIXINCLUDES,
-+AC_DEFUN([AC_LBL_FIXINCLUDES],
- [if test "$GCC" = yes ; then
-   AC_MSG_CHECKING(for ANSI ioctl definitions)
-   AC_CACHE_VAL(ac_cv_lbl_gcc_fixincludes,
-@@ -453,7 +453,7 @@
- dnl   $2 (yacc appended)
- dnl   $3 (optional flex and bison -P prefix)
- dnl
--AC_DEFUN(AC_LBL_LEX_AND_YACC,
-+AC_DEFUN([AC_LBL_LEX_AND_YACC],
- [AC_ARG_WITH(flex, [  --without-flex  don't use flex])
- AC_ARG_WITH(bison, [  --without-bison don't use bison])
- if test "$with_flex" = no ; then
-@@ -506,7 +506,7 @@
- dnl
- dnl   DECLWAITSTATUS (defined)
- dnl
--AC_DEFUN(AC_LBL_UNION_WAIT,
-+AC_DEFUN([AC_LBL_UNION_WAIT],
- [AC_MSG_CHECKING(if union wait is used)
- AC_CACHE_VAL(ac_cv_lbl_union_wait,
-   AC_TRY_COMPILE([
-@@ -535,7 +535,7 @@
- dnl
- dnl   HAVE_SOCKADDR_SA_LEN (defined)
- dnl
--AC_DEFUN(AC_LBL_SOCKADDR_SA_LEN,
-+AC_DEFUN([AC_LBL

[OE-core] [PATCH]] libpcap: Update to version 1.8.1

2016-11-04 Thread Fabio Berton
  - Update patches libpcap.inc and aclocal.patch to work with version 1.8.1.
  - Option --enable-canusb was removed on commit:

https://github.com/the-tcpdump-group/libpcap/commit/93ca5ff7030aaf1219e1de05ec89a68384bfc50b

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 meta/recipes-connectivity/libpcap/libpcap.inc  |   1 -
 .../libpcap/libpcap/aclocal.patch  | 119 +++--
 .../libpcap/libpcap-pkgconfig-support.patch|  32 +++---
 .../libpcap/{libpcap_1.7.4.bb => libpcap_1.8.1.bb} |   6 +-
 4 files changed, 105 insertions(+), 53 deletions(-)
 rename meta/recipes-connectivity/libpcap/{libpcap_1.7.4.bb => 
libpcap_1.8.1.bb} (80%)

diff --git a/meta/recipes-connectivity/libpcap/libpcap.inc 
b/meta/recipes-connectivity/libpcap/libpcap.inc
index 7b29a52..56a2a6a 100644
--- a/meta/recipes-connectivity/libpcap/libpcap.inc
+++ b/meta/recipes-connectivity/libpcap/libpcap.inc
@@ -26,7 +26,6 @@ PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 
'bluetooth', '${BLUEZ
 PACKAGECONFIG[bluez4] = "--enable-bluetooth,--disable-bluetooth,bluez4"
 # Add a dummy PACKAGECONFIG for bluez5 since it is not supported by libpcap.
 PACKAGECONFIG[bluez5] = ",,"
-PACKAGECONFIG[canusb] = "--enable-canusb,--enable-canusb=no,libusb"
 PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus"
 PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
 PACKAGECONFIG[libnl] = "--with-libnl,--without-libnl,libnl"
diff --git a/meta/recipes-connectivity/libpcap/libpcap/aclocal.patch 
b/meta/recipes-connectivity/libpcap/libpcap/aclocal.patch
index 2151982..a2421c4 100644
--- a/meta/recipes-connectivity/libpcap/libpcap/aclocal.patch
+++ b/meta/recipes-connectivity/libpcap/libpcap/aclocal.patch
@@ -1,9 +1,21 @@
+From 731aa41f2139d5217941685441d49a809a04de02 Mon Sep 17 00:00:00 2001
+From: Fabio Berton <fabio.ber...@ossystems.com.br>
+Date: Thu, 3 Nov 2016 17:41:17 -0200
+Subject: [PATCH] aclocal
+Organization: O.S. Systems Software LTDA.
+
 Upstream-Status: Inappropriate [configuration]
 
-diff -ruN libpcap-1.1.1-orig/aclocal.m4 libpcap-1.1.1/aclocal.m4
 libpcap-1.1.1-orig/aclocal.m4  2010-06-29 10:46:32.815117569 +0800
-+++ libpcap-1.1.1/aclocal.m4   2010-06-29 10:49:17.150149949 +0800
-@@ -37,7 +37,7 @@
+Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
+---
+ aclocal.m4 | 44 ++--
+ 1 file changed, 22 insertions(+), 22 deletions(-)
+
+diff --git a/aclocal.m4 b/aclocal.m4
+index 83f5761..3de3bf8 100644
+--- a/aclocal.m4
 b/aclocal.m4
+@@ -35,7 +35,7 @@ dnl calling AC_PROG_CC, and then doing the tests we now do in
  dnl AC_LBL_C_INIT.  Now, we run AC_LBL_C_INIT_BEFORE_CC, AC_PROG_CC,
  dnl and AC_LBL_C_INIT at the top level.
  dnl
@@ -12,16 +24,43 @@ diff -ruN libpcap-1.1.1-orig/aclocal.m4 
libpcap-1.1.1/aclocal.m4
  [
  AC_BEFORE([$0], [AC_LBL_C_INIT])
  AC_BEFORE([$0], [AC_PROG_CC])
-@@ -90,7 +90,7 @@
- dnl LDFLAGS
- dnl LBL_CFLAGS
+@@ -92,7 +92,7 @@ dnl  CC
+ dnl   LDFLAGS
+ dnl   LBL_CFLAGS
  dnl
 -AC_DEFUN(AC_LBL_C_INIT,
 +AC_DEFUN([AC_LBL_C_INIT],
  [
  AC_BEFORE([$0], [AC_LBL_FIXINCLUDES])
  AC_BEFORE([$0], [AC_LBL_DEVEL])
-@@ -217,7 +217,7 @@
+@@ -238,7 +238,7 @@ dnl Set ac_lbl_unknown_warning_option_error to the 
appropriate flag
+ dnl to force an error if it would otherwise just print a warning message
+ dnl and succeed.
+ dnl
+-AC_DEFUN(AC_LBL_CHECK_UNKNOWN_WARNING_OPTION_ERROR,
++AC_DEFUN([AC_LBL_CHECK_UNKNOWN_WARNING_OPTION_ERROR],
+ [
+   AC_MSG_CHECKING([whether the compiler fails when given an unknown 
warning option])
+   save_CFLAGS="$CFLAGS"
+@@ -266,7 +266,7 @@ dnl Check whether the compiler option specified as the 
second argument
+ dnl is supported by the compiler and, if so, add it to the macro
+ dnl specified as the first argument
+ dnl
+-AC_DEFUN(AC_LBL_CHECK_COMPILER_OPT,
++AC_DEFUN([AC_LBL_CHECK_COMPILER_OPT],
+ [
+   AC_MSG_CHECKING([whether the compiler supports the $2 option])
+   save_CFLAGS="$CFLAGS"
+@@ -315,7 +315,7 @@ dnl output by default.  IBM's XLC, however, supports -M 
but sends
+ dnl the output to {sourcefile-basename}.u, and AIX has no /dev/stdout
+ dnl to work around that, so we don't bother with XLC.
+ dnl
+-AC_DEFUN(AC_LBL_CHECK_DEPENDENCY_GENERATION_OPT,
++AC_DEFUN([AC_LBL_CHECK_DEPENDENCY_GENERATION_OPT],
+ [
+   AC_MSG_CHECKING([whether the compiler supports generating dependencies])
+   if test "$GCC" = yes ; then
+@@ -425,7 +425,7 @@ dnlV_SHLIB_OPT
  dnl   V_SONAME_OPT
  dnl   V_RPATH_OPT
  dnl
@@ -30,7 +69,7 @@ diff -ruN libpcap-1.1.1-orig/aclocal.m4 
libpcap-1.1.1/aclocal.m4
  [AC_PREREQ(2.50)
  if test "$GCC" = yes ; then
#
-@@ -361,7 +361,7 @@
+@@ -586,7 +586,7 @@ AC_DEFUN(AC_LBL_SHLIBS_INIT,
  # Make sure we use the V_CCOPT flags, because 

[OE-core] [PATCH v2]] gawk: Update to version 4.1.4

2016-11-04 Thread Fabio Berton
Add patch to remove hashbang line in file test/arrayind1.awk. This
patch fixes:
/
|WARNING: gawk-4.1.4-r0 do_package_qa: QA Issue:
|/usr/lib/gawk/ptest/test/arrayind1.awk contained in package gawk-ptest
|requires /usr/local/bin/awk, but no providers found in RDEPENDS_gawk-ptest?
|[file-rdeps]
\

Patch was submitted to upstream [1]

[1] https://lists.gnu.org/archive/html/bug-gawk/2016-11/msg3.html

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 .../gawk/{gawk-4.1.3 => gawk-4.1.4}/run-ptest  |  0
 .../test-arrayind1-Remove-hashbang-line.patch  | 30 ++
 .../gawk/{gawk_4.1.3.bb => gawk_4.1.4.bb}  |  5 ++--
 3 files changed, 33 insertions(+), 2 deletions(-)
 rename meta/recipes-extended/gawk/{gawk-4.1.3 => gawk-4.1.4}/run-ptest (100%)
 create mode 100644 
meta/recipes-extended/gawk/gawk-4.1.4/test-arrayind1-Remove-hashbang-line.patch
 rename meta/recipes-extended/gawk/{gawk_4.1.3.bb => gawk_4.1.4.bb} (85%)

diff --git a/meta/recipes-extended/gawk/gawk-4.1.3/run-ptest 
b/meta/recipes-extended/gawk/gawk-4.1.4/run-ptest
similarity index 100%
rename from meta/recipes-extended/gawk/gawk-4.1.3/run-ptest
rename to meta/recipes-extended/gawk/gawk-4.1.4/run-ptest
diff --git 
a/meta/recipes-extended/gawk/gawk-4.1.4/test-arrayind1-Remove-hashbang-line.patch
 
b/meta/recipes-extended/gawk/gawk-4.1.4/test-arrayind1-Remove-hashbang-line.patch
new file mode 100644
index 000..d4262ed
--- /dev/null
+++ 
b/meta/recipes-extended/gawk/gawk-4.1.4/test-arrayind1-Remove-hashbang-line.patch
@@ -0,0 +1,30 @@
+From a3a3f26078223c47871c7b53e5c015ad163ae045 Mon Sep 17 00:00:00 2001
+From: Fabio Berton <fabio.ber...@ossystems.com.br>
+Date: Thu, 3 Nov 2016 14:50:52 -0200
+Subject: [PATCH] test/arrayind1: Remove hashbang line
+Organization: O.S. Systems Software LTDA.
+
+Remove "#!/usr/local/bin/awk -f" as none of the other awk scripts in the
+test suite have a hashbang.
+
+Upstream-Status: Submitted [1]
+
+[1] https://lists.gnu.org/archive/html/bug-gawk/2016-11/msg00003.html
+
+Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
+---
+ test/arrayind1.awk | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/test/arrayind1.awk b/test/arrayind1.awk
+index 5d4a6f3..59e8b4e 100755
+--- a/test/arrayind1.awk
 b/test/arrayind1.awk
+@@ -1,4 +1,3 @@
+-#!/usr/local/bin/awk -f
+ # this script renums pedigrees with metafounders
+ # so that they are added *before*regular animals
+ # mf are ascertained because they are not in the 1st column
+-- 
+2.1.4
+
diff --git a/meta/recipes-extended/gawk/gawk_4.1.3.bb 
b/meta/recipes-extended/gawk/gawk_4.1.4.bb
similarity index 85%
rename from meta/recipes-extended/gawk/gawk_4.1.3.bb
rename to meta/recipes-extended/gawk/gawk_4.1.4.bb
index 6ca7f3e..b888df1 100644
--- a/meta/recipes-extended/gawk/gawk_4.1.3.bb
+++ b/meta/recipes-extended/gawk/gawk_4.1.4.bb
@@ -17,10 +17,11 @@ PACKAGECONFIG[mpfr] = "--with-mpfr,--without-mpfr, mpfr"
 
 SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz \
file://run-ptest \
+   file://test-arrayind1-Remove-hashbang-line.patch \
 "
 
-SRC_URI[md5sum] = "55d37f4069502677f25d1340df8eec97"
-SRC_URI[sha256sum] = 
"524effa5b9ecd4ed940f2581c5d3c1df4e4bd7e6f768aa033c1916f47dfc6e29"
+SRC_URI[md5sum] = "f20c94ca51b6ebfc9bffb90f95c8ffbb"
+SRC_URI[sha256sum] = 
"8c03080e2b5a56263e8783f6f1f306398d4591be18254041f3f547efef944d35"
 
 inherit autotools gettext texinfo update-alternatives
 
-- 
2.1.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] 2/3] curl: Update to version 7.51.0

2016-11-03 Thread Fabio Berton
CVE fixed in 7.51.0:

  CVE-2016-8615: cookie injection for other servers
  CVE-2016-8616: case insensitive password comparison
  CVE-2016-8617: OOB write via unchecked multiplication
  CVE-2016-8618: double-free in curl_maprintf
  CVE-2016-8619: double-free in krb5 code
  CVE-2016-8620: glob parser write/read out of bounds
  CVE-2016-8621: curl_getdate read out of bounds
  CVE-2016-8622: URL unescape heap overflow via integer truncation
  CVE-2016-8623: Use-after-free via shared cookies
  CVE-2016-8624: invalid URL parsing with '#'
  CVE-2016-8625: IDNA 2003 makes curl use wrong host

To see complete log access link bellow:
  https://curl.haxx.se/changes.html#7_51_0

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 meta/recipes-support/curl/{curl_7.50.1.bb => curl_7.51.0.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-support/curl/{curl_7.50.1.bb => curl_7.51.0.bb} (94%)

diff --git a/meta/recipes-support/curl/curl_7.50.1.bb 
b/meta/recipes-support/curl/curl_7.51.0.bb
similarity index 94%
rename from meta/recipes-support/curl/curl_7.50.1.bb
rename to meta/recipes-support/curl/curl_7.51.0.bb
index a21419a..e1a996b 100644
--- a/meta/recipes-support/curl/curl_7.50.1.bb
+++ b/meta/recipes-support/curl/curl_7.51.0.bb
@@ -14,8 +14,8 @@ SRC_URI = "http://curl.haxx.se/download/curl-${PV}.tar.bz2 \
 #
 SRC_URI += " file://configure_ac.patch"
 
-SRC_URI[md5sum] = "015f6a0217ca6f2c5442ca406476920b"
-SRC_URI[sha256sum] = 
"3c12c5f54ccaa1d40abc65d672107dcc75d3e1fcb38c267484334280096e5156"
+SRC_URI[md5sum] = "09a7c5769a7eae676d5e2c86d51f167e"
+SRC_URI[sha256sum] = 
"7f8240048907e5030f67be0a6129bc4b333783b9cca1391026d700835a788dde"
 
 inherit autotools pkgconfig binconfig multilib_header
 
-- 
2.1.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] 3/3] readline: Update to version 7.0

2016-11-03 Thread Fabio Berton
Remove readline 6.3 patches and config-dirent-symbols.patch already
apply on upstream.

Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 .../configure-fix.patch|  0
 .../{readline-6.3 => readline-7.0}/norpath.patch   |  0
 meta/recipes-core/readline/readline_6.3.bb | 34 --
 meta/recipes-core/readline/readline_7.0.bb |  7 +
 4 files changed, 7 insertions(+), 34 deletions(-)
 rename meta/recipes-core/readline/{readline-6.3 => 
readline-7.0}/configure-fix.patch (100%)
 rename meta/recipes-core/readline/{readline-6.3 => readline-7.0}/norpath.patch 
(100%)
 delete mode 100644 meta/recipes-core/readline/readline_6.3.bb
 create mode 100644 meta/recipes-core/readline/readline_7.0.bb

diff --git a/meta/recipes-core/readline/readline-6.3/configure-fix.patch 
b/meta/recipes-core/readline/readline-7.0/configure-fix.patch
similarity index 100%
rename from meta/recipes-core/readline/readline-6.3/configure-fix.patch
rename to meta/recipes-core/readline/readline-7.0/configure-fix.patch
diff --git a/meta/recipes-core/readline/readline-6.3/norpath.patch 
b/meta/recipes-core/readline/readline-7.0/norpath.patch
similarity index 100%
rename from meta/recipes-core/readline/readline-6.3/norpath.patch
rename to meta/recipes-core/readline/readline-7.0/norpath.patch
diff --git a/meta/recipes-core/readline/readline_6.3.bb 
b/meta/recipes-core/readline/readline_6.3.bb
deleted file mode 100644
index 8ec7c4a..000
--- a/meta/recipes-core/readline/readline_6.3.bb
+++ /dev/null
@@ -1,34 +0,0 @@
-require readline.inc
-
-SRC_URI += 
"${GNU_MIRROR}/readline/readline-6.3-patches/readline63-001;name=patch1;apply=yes;striplevel=0
 \
-
${GNU_MIRROR}/readline/readline-6.3-patches/readline63-002;name=patch2;apply=yes;striplevel=0
 \
-
${GNU_MIRROR}/readline/readline-6.3-patches/readline63-003;name=patch3;apply=yes;striplevel=0
 \
-
${GNU_MIRROR}/readline/readline-6.3-patches/readline63-004;name=patch4;apply=yes;striplevel=0
 \
-
${GNU_MIRROR}/readline/readline-6.3-patches/readline63-005;name=patch5;apply=yes;striplevel=0
 \
-
${GNU_MIRROR}/readline/readline-6.3-patches/readline63-006;name=patch6;apply=yes;striplevel=0
 \
-
${GNU_MIRROR}/readline/readline-6.3-patches/readline63-007;name=patch7;apply=yes;striplevel=0
 \
-
${GNU_MIRROR}/readline/readline-6.3-patches/readline63-008;name=patch8;apply=yes;striplevel=0
 \
-file://configure-fix.patch \
-file://config-dirent-symbols.patch \
-file://norpath.patch"
-
-SRC_URI[archive.md5sum] = "33c8fb279e981274f485fd91da77e94a"
-SRC_URI[archive.sha256sum] = 
"56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43"
-
-SRC_URI[patch1.md5sum]= "4343f5ea9b0f42447f102fb61576b398"
-SRC_URI[patch1.sha256sum] = 
"1a79bbb6eaee750e0d6f7f3d059b30a45fc54e8e388a8e05e9c3ae598590146f"
-SRC_URI[patch2.md5sum]= "700295212f7e2978577feaee584afddb"
-SRC_URI[patch2.sha256sum] = 
"39e304c7a526888f9e112e733848215736fb7b9d540729b9e31f3347b7a1e0a5"
-SRC_URI[patch3.md5sum]= "af4963862f5156fbf9111c2c6fa86ed7"
-SRC_URI[patch3.sha256sum] = 
"ec41bdd8b00fd884e847708513df41d51b1243cecb680189e31b7173d01ca52f"
-SRC_URI[patch4.md5sum]= "11f9def89803a5052db3ba72394ce14f"
-SRC_URI[patch4.sha256sum] = 
"4547b906fb2570866c21887807de5dee19838a60a1afb66385b272155e4355cc"
-SRC_URI[patch5.md5sum]= "93721c31cd225393f80cb3aadb165544"
-SRC_URI[patch5.sha256sum] = 
"877788f9228d1a9907a4bcfe3d6dd0439c08d728949458b41208d9bf9060274b"
-SRC_URI[patch6.md5sum]= "71dc6ecce66d1489b96595f55d142a52"
-SRC_URI[patch6.sha256sum] = 
"5c237ab3c6c97c23cf52b2a118adc265b7fb411b57c93a5f7c221d50fafbe556"
-SRC_URI[patch7.md5sum]= "062a08ed60679d3c4878710b3d595b65"
-SRC_URI[patch7.sha256sum] = 
"4d79b5a2adec3c2e8114cbd3d63c1771f7c6cf64035368624903d257014f5bea"
-SRC_URI[patch8.md5sum]= "ee1c04072154826870848d8b218d7b04"
-SRC_URI[patch8.sha256sum] = 
"3bc093cf526ceac23eb80256b0ec87fa1735540d659742107b6284d635c43787"
-
diff --git a/meta/recipes-core/readline/readline_7.0.bb 
b/meta/recipes-core/readline/readline_7.0.bb
new file mode 100644
index 000..85dfaa6
--- /dev/null
+++ b/meta/recipes-core/readline/readline_7.0.bb
@@ -0,0 +1,7 @@
+require readline.inc
+
+SRC_URI += "file://configure-fix.patch \
+file://norpath.patch"
+
+SRC_URI[archive.md5sum] = "205b03a87fc83dab653b628c59b9fc91"
+SRC_URI[archive.sha256sum] = 
"750d437185286f40a369e1e4f4764eda932b9459b5ec9a731628393dd3d32334"
-- 
2.1.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v2] serf: Update to version 1.3.9

2016-11-03 Thread Fabio Berton
Hi Ross,

I removed UPSTREAM_CHECK_URI and checked with bitbake serf -c checkpkg and
I got the same output. So, I'll remove UPSTREAM_CHECK_URI and send a v3.

Thanks

Fabio

On Thu, Nov 3, 2016 at 5:40 PM, Burton, Ross <ross.bur...@intel.com> wrote:

>
> On 3 November 2016 at 15:34, Fabio Berton <fabio.ber...@ossystems.com.br>
> wrote:
>
>> -UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/s/serf/"
>> +UPSTREAM_CHECK_URI = "${APACHE_MIRROR}/${BPN}/"
>>
>
> As all the tarballs are in a single directory you can probably just delete
> this line (though please do check with bitbake serf -c checkpkg).
>
> Ross
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] 1/3] grep: Update to version 2.26

2016-11-03 Thread Fabio Berton
Signed-off-by: Fabio Berton <fabio.ber...@ossystems.com.br>
---
 meta/recipes-extended/grep/{grep_2.25.bb => grep_2.26.bb} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta/recipes-extended/grep/{grep_2.25.bb => grep_2.26.bb} (88%)

diff --git a/meta/recipes-extended/grep/grep_2.25.bb 
b/meta/recipes-extended/grep/grep_2.26.bb
similarity index 88%
rename from meta/recipes-extended/grep/grep_2.25.bb
rename to meta/recipes-extended/grep/grep_2.26.bb
index 9720d9f..9e6f05e 100644
--- a/meta/recipes-extended/grep/grep_2.25.bb
+++ b/meta/recipes-extended/grep/grep_2.26.bb
@@ -9,8 +9,8 @@ SRC_URI = "${GNU_MIRROR}/grep/grep-${PV}.tar.xz \
file://0001-Unset-need_charset_alias-when-building-for-musl.patch \
   "
 
-SRC_URI[md5sum] = "04e96b0e6f0fe6a180ae62c88fcd0af6"
-SRC_URI[sha256sum] = 
"e21e83bac50450e0d0d61a42c154ee0dceaacdbf4f604ef6e79071cb8e596830"
+SRC_URI[md5sum] = "afdd61c7221434722671baf002ac9267"
+SRC_URI[sha256sum] = 
"246a8fb37e82aa33d495b07c22fdab994c039ab0f818538eac81b01e78636870"
 
 inherit autotools gettext texinfo
 
-- 
2.1.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


  1   2   >