[OE-core] [dunfell][patch] dropbear: fix CVE-2021-36369

2022-12-05 Thread Lee Chee Yang
From: Lee Chee Yang 

Signed-off-by: Lee Chee Yang 
---
 meta/recipes-core/dropbear/dropbear.inc   |   1 +
 .../dropbear/dropbear/CVE-2021-36369.patch| 145 ++
 2 files changed, 146 insertions(+)
 create mode 100644 meta/recipes-core/dropbear/dropbear/CVE-2021-36369.patch

diff --git a/meta/recipes-core/dropbear/dropbear.inc 
b/meta/recipes-core/dropbear/dropbear.inc
index 026292230c..0f5e9ba4ac 100644
--- a/meta/recipes-core/dropbear/dropbear.inc
+++ b/meta/recipes-core/dropbear/dropbear.inc
@@ -29,6 +29,7 @@ SRC_URI = 
"http://matt.ucc.asn.au/dropbear/releases/dropbear-${PV}.tar.bz2 \
${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', 
'', d)} \
${@bb.utils.contains('PACKAGECONFIG', 'disable-weak-ciphers', 
'file://dropbear-disable-weak-ciphers.patch', '', d)} \
file://CVE-2020-36254.patch \
+   file://CVE-2021-36369.patch \
"
 
 PAM_SRC_URI = "file://0005-dropbear-enable-pam.patch \
diff --git a/meta/recipes-core/dropbear/dropbear/CVE-2021-36369.patch 
b/meta/recipes-core/dropbear/dropbear/CVE-2021-36369.patch
new file mode 100644
index 00..5ff11abdd6
--- /dev/null
+++ b/meta/recipes-core/dropbear/dropbear/CVE-2021-36369.patch
@@ -0,0 +1,145 @@
+From e9b15a8b1035b62413b2b881315c6bffd02205d4 Mon Sep 17 00:00:00 2001
+From: Manfred Kaiser <37737811+manfred-kai...@users.noreply.github.com>
+Date: Thu, 19 Aug 2021 17:37:14 +0200
+Subject: [PATCH] added option to disable trivial auth methods (#128)
+
+* added option to disable trivial auth methods
+
+* rename argument to match with other ssh clients
+
+* fixed trivial auth detection for pubkeys
+
+[https://github.com/mkj/dropbear/pull/128]
+Upstream-Status: Backport
+CVE: CVE-2021-36369
+Signed-off-by: Chee Yang Lee 
+
+---
+ cli-auth.c | 3 +++
+ cli-authinteract.c | 1 +
+ cli-authpasswd.c   | 2 +-
+ cli-authpubkey.c   | 1 +
+ cli-runopts.c  | 7 +++
+ cli-session.c  | 1 +
+ runopts.h  | 1 +
+ session.h  | 1 +
+ 8 files changed, 16 insertions(+), 1 deletion(-)
+
+diff --git a/cli-auth.c b/cli-auth.c
+index 2e509e5..6f04495 100644
+--- a/cli-auth.c
 b/cli-auth.c
+@@ -267,6 +267,9 @@ void recv_msg_userauth_success() {
+   if DROPBEAR_CLI_IMMEDIATE_AUTH is set */
+ 
+   TRACE(("received msg_userauth_success"))
++  if (cli_opts.disable_trivial_auth && cli_ses.is_trivial_auth) {
++  dropbear_exit("trivial authentication not allowed");
++  }
+   /* Note: in delayed-zlib mode, setting authdone here 
+* will enable compression in the transport layer */
+   ses.authstate.authdone = 1;
+diff --git a/cli-authinteract.c b/cli-authinteract.c
+index e1cc9a1..f7128ee 100644
+--- a/cli-authinteract.c
 b/cli-authinteract.c
+@@ -114,6 +114,7 @@ void recv_msg_userauth_info_request() {
+   m_free(instruction);
+ 
+   for (i = 0; i < num_prompts; i++) {
++  cli_ses.is_trivial_auth = 0;
+   unsigned int response_len = 0;
+   prompt = buf_getstring(ses.payload, NULL);
+   cleantext(prompt);
+diff --git a/cli-authpasswd.c b/cli-authpasswd.c
+index 00fdd8b..a24d43e 100644
+--- a/cli-authpasswd.c
 b/cli-authpasswd.c
+@@ -155,7 +155,7 @@ void cli_auth_password() {
+ 
+   encrypt_packet();
+   m_burn(password, strlen(password));
+-
++  cli_ses.is_trivial_auth = 0;
+   TRACE(("leave cli_auth_password"))
+ }
+ #endif/* DROPBEAR_CLI_PASSWORD_AUTH */
+diff --git a/cli-authpubkey.c b/cli-authpubkey.c
+index 42c4e3f..fa01807 100644
+--- a/cli-authpubkey.c
 b/cli-authpubkey.c
+@@ -176,6 +176,7 @@ static void send_msg_userauth_pubkey(sign_key *key, enum 
signature_type sigtype,
+   buf_putbytes(sigbuf, ses.writepayload->data, 
ses.writepayload->len);
+   cli_buf_put_sign(ses.writepayload, key, sigtype, sigbuf);
+   buf_free(sigbuf); /* Nothing confidential in the buffer */
++  cli_ses.is_trivial_auth = 0;
+   }
+ 
+   encrypt_packet();
+diff --git a/cli-runopts.c b/cli-runopts.c
+index 3654b9a..255b47e 100644
+--- a/cli-runopts.c
 b/cli-runopts.c
+@@ -152,6 +152,7 @@ void cli_getopts(int argc, char ** argv) {
+ #if DROPBEAR_CLI_ANYTCPFWD
+   cli_opts.exit_on_fwd_failure = 0;
+ #endif
++  cli_opts.disable_trivial_auth = 0;
+ #if DROPBEAR_CLI_LOCALTCPFWD
+   cli_opts.localfwds = list_new();
+   opts.listen_fwd_all = 0;
+@@ -889,6 +890,7 @@ static void add_extendedopt(const char* origstr) {
+ #if DROPBEAR_CLI_ANYTCPFWD
+   "\tExitOnForwardFailure\n"
+ #endif
++  "\tDisableTrivialAuth\n"
+ #ifndef DISABLE_SYSLOG
+   "\tUseSyslog\n"
+ #endif
+@@ -916,5 +918,10 @@ static void add_extendedopt(const char* origstr) {
+   return;
+   }
+ 
++  if (match_extendedopt(, "DisableTrivialAuth") == 
DROPBEAR_SUCCESS) {
++  cli_opts.disable_trivial_auth = 

[OE-core] Current high bug count owners for Yocto Project 4.2

2022-12-05 Thread Stephen Jolley
All,

Below is the list as of top 31 bug owners as of the end of WW49 of who have
open medium or higher bugs and enhancements against YP 4.2.   There are 99
possible work days left until the final release candidates for YP 4.2 needs
to be released.


Who

Count


michael.opdenac...@bootlin.com

35


ross.bur...@arm.com

29


randy.macl...@windriver.com

26


bruce.ashfi...@gmail.com

24


david.re...@windriver.com

23


richard.pur...@linuxfoundation.org

21


sakib.sa...@windriver.com

11


jpewhac...@gmail.com

10


saul.w...@windriver.com

9


pa...@zhukoff.net

4


zheng@windriver.com

4


tim.orl...@konsulko.com

4


sundeep.kokko...@gmail.com

3


alexandre.bell...@bootlin.com

3


aeh...@gmail.com

2


naveen.go...@windriver.com

2


jon.ma...@arm.com

2


akuster...@gmail.com

2


hongxu@windriver.com

2


s...@bigsur.com

2


hummerbl...@gmail.com

1


qi.c...@windriver.com

1


anton.anto...@arm.com

1


martin.bee...@online.de

1


rybczyn...@gmail.com

1


ptsne...@gmail.com

1


sundeep.kokko...@windriver.com

1


tvgamb...@gmail.com

1


thomas.per...@bootlin.com

1


martin.ja...@gmail.com

1


mhalst...@linuxfoundation.org

1


Grand Total

229

Thanks,

 

Stephen K. Jolley

Yocto Project Program Manager

*Cell:(208) 244-4460

* Email:  sjolley.yp...@gmail.com
 

 


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



[OE-core] Yocto Project Newcomer & Unassigned Bugs - Help Needed

2022-12-05 Thread Stephen Jolley
All,

 

The triage team is starting to try and collect up and classify bugs which a
newcomer to the project would be able to work on in a way which means people
can find them. They're being listed on the triage page under the appropriate
heading:

https://wiki.yoctoproject.org/wiki/Bug_Triage#Newcomer_Bugs  Also please
review:
https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded and
how to create a bugzilla account at:

https://bugzilla.yoctoproject.org/createaccount.cgi

The idea is these bugs should be straight forward for a person to help work
on who doesn't have deep experience with the project.  If anyone can help,
please take ownership of the bug and send patches!  If anyone needs
help/advice there are people on irc who can likely do so, or some of the
more experienced contributors will likely be happy to help too.

 

Also, the triage team meets weekly and does its best to handle the bugs
reported into the Bugzilla. The number of people attending that meeting has
fallen, as have the number of people available to help fix bugs. One of the
things we hear users report is they don't know how to help. We (the triage
team) are therefore going to start reporting out the currently 418
unassigned or newcomer bugs.

 

We're hoping people may be able to spare some time now and again to help out
with these.  Bugs are split into two types, "true bugs" where things don't
work as they should and "enhancements" which are features we'd want to add
to the system.  There are also roughly four different "priority" classes
right now,  "4.2", "4.3", "4.99" and "Future", the more pressing/urgent
issues being in "4.2" and then "4.3".

 

Please review this link and if a bug is something you would be able to help
with either take ownership of the bug, or send me (sjolley.yp...@gmail.com
 ) an e-mail with the bug number you would
like and I will assign it to you (please make sure you have a Bugzilla
account).  The list is at:
https://wiki.yoctoproject.org/wiki/Bug_Triage_Archive#Unassigned_or_Newcomer
_Bugs

 

Thanks,

 

Stephen K. Jolley

Yocto Project Program Manager

*Cell:(208) 244-4460

* Email:  sjolley.yp...@gmail.com
 

 


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



[OE-core] [meta][dunfell][PATCH] rpm: Fix rpm CVE CVE-2021-3521

2022-12-05 Thread Riyaz Ahmed Khan
From: Riyaz Khan 

Links:
Dependent Patches:
CVE-2021-3521-01
https://github.com/rpm-software-management/rpm/commit/b5e8bc74b2b05aa557f663fe227b94d2bc64fbd8
CVE-2021-3521-02
https://github.com/rpm-software-management/rpm/commit/9f03f42e2614a68f589f9db8fe76287146522c0c
CVE-2021-3521-03
https://github.com/rpm-software-management/rpm/commit/5ff86764b17f31535cb247543a90dd739076ec38
CVE-2021-3521
https://github.com/rpm-software-management/rpm/commit/bd36c5dc9fb6d90c46fbfed8c2d67516fc571ec8

Signed-off-by: Riyaz Khan 
---
 .../rpm/files/CVE-2021-3521-01.patch  |  60 
 .../rpm/files/CVE-2021-3521-02.patch  |  55 +++
 .../rpm/files/CVE-2021-3521-03.patch  |  34 ++
 .../rpm/files/CVE-2021-3521.patch | 330 ++
 meta/recipes-devtools/rpm/rpm_4.14.2.1.bb |   4 +
 5 files changed, 483 insertions(+)
 create mode 100644 meta/recipes-devtools/rpm/files/CVE-2021-3521-01.patch
 create mode 100644 meta/recipes-devtools/rpm/files/CVE-2021-3521-02.patch
 create mode 100644 meta/recipes-devtools/rpm/files/CVE-2021-3521-03.patch
 create mode 100644 meta/recipes-devtools/rpm/files/CVE-2021-3521.patch

diff --git a/meta/recipes-devtools/rpm/files/CVE-2021-3521-01.patch 
b/meta/recipes-devtools/rpm/files/CVE-2021-3521-01.patch
new file mode 100644
index 00..0882d6f310
--- /dev/null
+++ b/meta/recipes-devtools/rpm/files/CVE-2021-3521-01.patch
@@ -0,0 +1,60 @@
+From b5e8bc74b2b05aa557f663fe227b94d2bc64fbd8 Mon Sep 17 00:00:00 2001
+From: Panu Matilainen 
+Date: Thu, 30 Sep 2021 09:51:10 +0300
+Subject: [PATCH] Process MPI's from all kinds of signatures
+
+No immediate effect but needed by the following commits.
+
+Dependent patch:
+CVE: CVE-2021-3521
+Upstream-Status: Backport 
[https://github.com/rpm-software-management/rpm/commit/b5e8bc74b2b05aa557f663fe227b94d2bc64fbd8]
+Signed-off-by: Riyaz Khan 
+
+---
+ rpmio/rpmpgp.c | 12 +---
+ 1 file changed, 5 insertions(+), 7 deletions(-)
+
+diff --git a/rpmio/rpmpgp.c b/rpmio/rpmpgp.c
+index ee5c81e246..340de5fc9a 100644
+--- a/rpmio/rpmpgp.c
 b/rpmio/rpmpgp.c
+@@ -511,7 +511,7 @@  pgpDigAlg pgpDigAlgFree(pgpDigAlg alg)
+ return NULL;
+ }
+ 
+-static int pgpPrtSigParams(pgpTag tag, uint8_t pubkey_algo, uint8_t sigtype,
++static int pgpPrtSigParams(pgpTag tag, uint8_t pubkey_algo,
+   const uint8_t *p, const uint8_t *h, size_t hlen,
+   pgpDigParams sigp)
+ {
+@@ -524,10 +524,8 @@ static int pgpPrtSigParams(pgpTag tag, uint8_t 
pubkey_algo, uint8_t sigtype,
+   int mpil = pgpMpiLen(p);
+   if (p + mpil > pend)
+   break;
+-  if (sigtype == PGPSIGTYPE_BINARY || sigtype == PGPSIGTYPE_TEXT) {
+-  if (sigalg->setmpi(sigalg, i, p))
+-  break;
+-  }
++if (sigalg->setmpi(sigalg, i, p))
++   break;
+   p += mpil;
+ }
+ 
+@@ -600,7 +598,7 @@ static int pgpPrtSig(pgpTag tag, const uint8_t *h, size_t 
hlen,
+   }
+ 
+   p = ((uint8_t *)v) + sizeof(*v);
+-  rc = pgpPrtSigParams(tag, v->pubkey_algo, v->sigtype, p, h, hlen, 
_digp);
++  rc = pgpPrtSigParams(tag, v->pubkey_algo, p, h, hlen, _digp);
+ } break;
+ case 4:
+ {   pgpPktSigV4 v = (pgpPktSigV4)h;
+@@ -658,7 +656,7 @@ static int pgpPrtSig(pgpTag tag, const uint8_t *h, size_t 
hlen,
+   if (p > (h + hlen))
+   return 1;
+ 
+-  rc = pgpPrtSigParams(tag, v->pubkey_algo, v->sigtype, p, h, hlen, 
_digp);
++  rc = pgpPrtSigParams(tag, v->pubkey_algo, p, h, hlen, _digp);
+ } break;
+ default:
+   rpmlog(RPMLOG_WARNING, _("Unsupported version of key: V%d\n"), version);
diff --git a/meta/recipes-devtools/rpm/files/CVE-2021-3521-02.patch 
b/meta/recipes-devtools/rpm/files/CVE-2021-3521-02.patch
new file mode 100644
index 00..c5f88a8c72
--- /dev/null
+++ b/meta/recipes-devtools/rpm/files/CVE-2021-3521-02.patch
@@ -0,0 +1,55 @@
+From 9f03f42e2614a68f589f9db8fe76287146522c0c Mon Sep 17 00:00:00 2001
+From: Panu Matilainen 
+Date: Thu, 30 Sep 2021 09:56:20 +0300
+Subject: [PATCH] Refactor pgpDigParams construction to helper function
+
+No functional changes, just to reduce code duplication and needed by
+the following commits.
+
+Dependent patch:
+CVE: CVE-2021-3521
+Upstream-Status: Backport 
[https://github.com/rpm-software-management/rpm/commit/9f03f42e2614a68f589f9db8fe76287146522c0c]
+Signed-off-by: Riyaz Khan 
+
+---
+ rpmio/rpmpgp.c | 13 +
+ 1 file changed, 9 insertions(+), 4 deletions(-)
+
+diff --git a/rpmio/rpmpgp.c b/rpmio/rpmpgp.c
+index 340de5fc9a..aad7c275c9 100644
+--- a/rpmio/rpmpgp.c
 b/rpmio/rpmpgp.c
+@@ -1055,6 +1055,13 @@ unsigned int pgpDigParamsAlgo(pgpDigParams digp, 
unsigned int algotype)
+ return algo;
+ }
+ 
++static pgpDigParams pgpDigParamsNew(uint8_t tag)
++{
++pgpDigParams digp = xcalloc(1, sizeof(*digp));
++digp->tag = tag;
++return digp;
++}
++
+ int pgpPrtParams(const uint8_t * pkts, size_t pktlen, unsigned int pkttype,
+pgpDigParams * 

[OE-core] [PATCH v2] gnu-config: upgrade to latest revision

2022-12-05 Thread wangmy
From: Wang Mingyu 

Signed-off-by: Wang Mingyu 
---
 meta/recipes-devtools/gnu-config/gnu-config_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/gnu-config/gnu-config_git.bb 
b/meta/recipes-devtools/gnu-config/gnu-config_git.bb
index e298e31714..e35e9008f9 100644
--- a/meta/recipes-devtools/gnu-config/gnu-config_git.bb
+++ b/meta/recipes-devtools/gnu-config/gnu-config_git.bb
@@ -9,8 +9,8 @@ DEPENDS:class-native = "hostperl-runtime-native"
 
 INHIBIT_DEFAULT_DEPS = "1"
 
-SRCREV = "20403c5701973a4cbd7e0b4bbeb627fcd424a0f1"
-PV = "20220927+git${SRCPV}"
+SRCREV = "f992bcc08219edb283d2ab31dd3871a4a0e8220e"
+PV = "20221007+git${SRCPV}"
 
 SRC_URI = 
"git://git.savannah.gnu.org/git/config.git;protocol=https;branch=master \
file://gnu-configize.in"
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#174315): 
https://lists.openembedded.org/g/openembedded-core/message/174315
Mute This Topic: https://lists.openembedded.org/mt/95488097/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] bluez5: enable position independent executables flag

2022-12-05 Thread Khem Raj
texrels are generated while compiling on x86/clang because pic/pie flags
that are passed via bitbake do not make it everywhere evenly.
--enable-pie is default way of getting it enabled in bluez5
PIE is enabled by default which ensures that textrels are not generated

Signed-off-by: Khem Raj 
---
 meta/recipes-connectivity/bluez5/bluez5.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc 
b/meta/recipes-connectivity/bluez5/bluez5.inc
index a8eaba1dd6..976297127d 100644
--- a/meta/recipes-connectivity/bluez5/bluez5.inc
+++ b/meta/recipes-connectivity/bluez5/bluez5.inc
@@ -65,6 +65,7 @@ EXTRA_OECONF = "\
   --enable-test \
   --enable-datafiles \
   --enable-library \
+  --enable-pie  \
   --without-zsh-completion-dir \
 "
 
-- 
2.38.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#174314): 
https://lists.openembedded.org/g/openembedded-core/message/174314
Mute This Topic: https://lists.openembedded.org/mt/95488068/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][master,langdale][PATCH] libdrm: Remove libdrm-kms package

2022-12-05 Thread Sandeep Gundlupet Raju via lists.openembedded.org
I resent the patch and shows up in list now. May be a glitch in 
thunderbird not sure.


On 12/5/2022 6:28 AM, Ross Burton wrote:

It doesn’t look like this patch was ever sent to the list, at least 
https://lists.openembedded.org/g/openembedded-core/search?p=%2C%2C%2C20%2C0%2C0%2C0=libdrm-kms
 doesn’t show it.

Can you post it please?

Ross


On 2 Dec 2022, at 18:24, Sandeep Gundlupet Raju via lists.openembedded.org 
 wrote:

Hi Alex, Richard,

Any updates on reviewing this patch?

Thanks,

Sandeep

On 11/3/2022 2:09 PM, Gundlupet Raju, Sandeep wrote:

Hello,

Any updates on reviewing this patch?

Thanks,

Sandeep

On 10/27/2022 8:17 PM, Sandeep Gundlupet Raju wrote:

libkms library is deprecated in 2.4.111 version. Hence remove
libdrm-kms package.

Signed-off-by: Sandeep Gundlupet Raju 
---
   meta/recipes-graphics/drm/libdrm_2.4.113.bb | 3 +--
   1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta/recipes-graphics/drm/libdrm_2.4.113.bb 
b/meta/recipes-graphics/drm/libdrm_2.4.113.bb
index 959ef68032..613d3430ce 100644
--- a/meta/recipes-graphics/drm/libdrm_2.4.113.bb
+++ b/meta/recipes-graphics/drm/libdrm_2.4.113.bb
@@ -39,7 +39,7 @@ PACKAGECONFIG[manpages] = 
"-Dman-pages=enabled,-Dman-pages=disabled,libxslt-nati
 ALLOW_EMPTY:${PN}-drivers = "1"
   PACKAGES =+ "${PN}-tests ${PN}-drivers ${PN}-radeon ${PN}-nouveau ${PN}-omap 
\
- ${PN}-intel ${PN}-exynos ${PN}-kms ${PN}-freedreno ${PN}-amdgpu \
+ ${PN}-intel ${PN}-exynos ${PN}-freedreno ${PN}-amdgpu \
${PN}-etnaviv"
 RRECOMMENDS:${PN}-drivers = "${PN}-radeon ${PN}-nouveau ${PN}-omap 
${PN}-intel \
@@ -52,7 +52,6 @@ FILES:${PN}-nouveau = "${libdir}/libdrm_nouveau.so.*"
   FILES:${PN}-omap = "${libdir}/libdrm_omap.so.*"
   FILES:${PN}-intel = "${libdir}/libdrm_intel.so.*"
   FILES:${PN}-exynos = "${libdir}/libdrm_exynos.so.*"
-FILES:${PN}-kms = "${libdir}/libkms*.so.*"
   FILES:${PN}-freedreno = "${libdir}/libdrm_freedreno.so.*"
   FILES:${PN}-amdgpu = "${libdir}/libdrm_amdgpu.so.* 
${datadir}/${PN}/amdgpu.ids"
   FILES:${PN}-etnaviv = "${libdir}/libdrm_etnaviv.so.*"




-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#174313): 
https://lists.openembedded.org/g/openembedded-core/message/174313
Mute This Topic: https://lists.openembedded.org/mt/95412279/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] gstreamer-vaapi: rename USE_X11 variable

2022-12-05 Thread Markus Volk
Am Mo, 5. Dez 2022 um 22:30:38 + schrieb Richard Purdie 
:

FWIW I do agree with Alex, we can't afford to carry a patch like this
ourselves and we should discuss it with upstream as it is presumably
something they'd want to fix. If they reject it for some reason, that
is a different discussion.


I agree on this point as well. I marked the patch as inappropriate 
because I see some more problems here, such as options that should be 
boolean and are defined as strings, or the uppercase variables in 
general, most of which at least are common enough to possibly cause 
unwanted magic. This patch feels like replacing one hack with another. 
True, there would be something to discuss.

I'd have to be in the right mood for this. At least today I'm not.


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#174312): 
https://lists.openembedded.org/g/openembedded-core/message/174312
Mute This Topic: https://lists.openembedded.org/mt/95477995/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] Y2038 proposal

2022-12-05 Thread Richard Purdie
On Fri, 2022-12-02 at 16:54 +0800, Matt Johnston wrote:
> Your email prompted me to check my own software (Dropbear) and it showed a
> few y2038 issues to fix. Those bugs wouldn't be noticed from a quick test -
> it "only" prevented auth and idle timeouts from occurring.
> 
> gcc and clang are able to flag truncated conversions for 64-bit time_t with 
> -Wconversion, but that's very noisy. Comparing that against a 32-bit time_t
> build, however, gives a pretty clean list of code that needs attention.
> 
> As an experiment I've built OpenBMC with and without 64-bit time_t,
> https://github.com/mkj/yocto-y2038 has the results and a description. There
> are a mix of false positives (particularly tv_usec/tv_nsec), but also some
> real-looking things. As an example, busybox using a uint32_t to copy a dhcpd
> lease expiry.
> 
> I'm not sure the best way to use these logs - they need manual review.
> Expanding the list of packages should be easy, but there will be more that
> need manual intervention to get rid of -Werror.

That is really interesting data as it confirmed there are real world
issues which changing the compiler flags is going to break. Thanks for
sharing.

What you describe is relatively easy for a maintainer to do as a one
off check but not really something we can do at scale for all the
software we build. It worries me :/. I guess the one upside is that
whilst it did break some functionality, it didn't actually crash the
runtime if I understand what happened correctly.

I'm not sure this should stop our plan to switch the flags but it is
certainly something to think about and be aware of.

Cheers,

Richard





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



[OE-core][langdale][master][PATCH] libdrm: Remove libdrm-kms package

2022-12-05 Thread Sandeep Gundlupet Raju via lists.openembedded.org
libkms library is deprecated in 2.4.111 version. Hence remove
libdrm-kms package.

Signed-off-by: Sandeep Gundlupet Raju 
---
 meta/recipes-graphics/drm/libdrm_2.4.113.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta/recipes-graphics/drm/libdrm_2.4.113.bb 
b/meta/recipes-graphics/drm/libdrm_2.4.113.bb
index 959ef68032..613d3430ce 100644
--- a/meta/recipes-graphics/drm/libdrm_2.4.113.bb
+++ b/meta/recipes-graphics/drm/libdrm_2.4.113.bb
@@ -39,7 +39,7 @@ PACKAGECONFIG[manpages] = 
"-Dman-pages=enabled,-Dman-pages=disabled,libxslt-nati
 
 ALLOW_EMPTY:${PN}-drivers = "1"
 PACKAGES =+ "${PN}-tests ${PN}-drivers ${PN}-radeon ${PN}-nouveau ${PN}-omap \
- ${PN}-intel ${PN}-exynos ${PN}-kms ${PN}-freedreno ${PN}-amdgpu \
+ ${PN}-intel ${PN}-exynos ${PN}-freedreno ${PN}-amdgpu \
  ${PN}-etnaviv"
 
 RRECOMMENDS:${PN}-drivers = "${PN}-radeon ${PN}-nouveau ${PN}-omap ${PN}-intel 
\
@@ -52,7 +52,6 @@ FILES:${PN}-nouveau = "${libdir}/libdrm_nouveau.so.*"
 FILES:${PN}-omap = "${libdir}/libdrm_omap.so.*"
 FILES:${PN}-intel = "${libdir}/libdrm_intel.so.*"
 FILES:${PN}-exynos = "${libdir}/libdrm_exynos.so.*"
-FILES:${PN}-kms = "${libdir}/libkms*.so.*"
 FILES:${PN}-freedreno = "${libdir}/libdrm_freedreno.so.*"
 FILES:${PN}-amdgpu = "${libdir}/libdrm_amdgpu.so.* ${datadir}/${PN}/amdgpu.ids"
 FILES:${PN}-etnaviv = "${libdir}/libdrm_etnaviv.so.*"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#174310): 
https://lists.openembedded.org/g/openembedded-core/message/174310
Mute This Topic: https://lists.openembedded.org/mt/95481524/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 v3][master] go: Update reproducibility patch to fix panic errors

2022-12-05 Thread Richard Purdie
On Mon, 2022-12-05 at 13:49 -0600, Ryan Eatmon via
lists.openembedded.org wrote:
> This might have gotten lost in the fun of the YPS and the many 
> discussions around the previous versions of then patch.  Was there any 
> more feedback or changes that folks want me to make for this patch, or 
> is it good to go?  Just curious if there was more that you needed from me?

I've merged it but I am worried there is a deeper problem here we could
really do with solving properly. We should probably at least have an
open bug about resolving the issue the patch addresses in a better way.

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#174309): 
https://lists.openembedded.org/g/openembedded-core/message/174309
Mute This Topic: https://lists.openembedded.org/mt/95334740/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] gstreamer-vaapi: rename USE_X11 variable

2022-12-05 Thread Richard Purdie
On Mon, 2022-12-05 at 21:13 +0100, Markus Volk wrote:
> Rename USE_X11 to HAVE_X11 to avoid naming conflict with eglplatform.h
> 
> Signed-off-by: Markus Volk 
> ---
>  .../0001-replace-USE_X11-by-HAVE_X11.patch| 319 ++
>  .../gstreamer/gstreamer1.0-vaapi_1.20.4.bb|   9 +-
>  2 files changed, 324 insertions(+), 4 deletions(-)
>  create mode 100644 
> meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-replace-USE_X11-by-HAVE_X11.patch
> 
> diff --git 
> a/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-replace-USE_X11-by-HAVE_X11.patch
>  
> b/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-replace-USE_X11-by-HAVE_X11.patch
> new file mode 100644
> index 00..8cb17a8a0b
> --- /dev/null
> +++ 
> b/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-replace-USE_X11-by-HAVE_X11.patch
> @@ -0,0 +1,319 @@
> +From ff9c63505183f7620b68d7d848ad6b16a7497c75 Mon Sep 17 00:00:00 2001
> +From: Markus Volk 
> +Date: Mon, 5 Dec 2022 20:56:43 +0100
> +Subject: [PATCH] replace USE_X11 by HAVE_X11
> +
> +currently used variable collides with eglplatform.h
> +
> +Signed-off-by: Markus Volk 
> +
> +Patch-Status: Inappropriate
> +---
> + ChangeLog|  2 +-
> + gst-libs/gst/vaapi/gstvaapidisplay.c |  2 +-
> + gst-libs/gst/vaapi/gstvaapidisplay_egl.c |  4 ++--
> + gst-libs/gst/vaapi/meson.build   |  4 ++--
> + gst/vaapi/gstvaapipluginutil.c   | 12 ++--
> + gst/vaapi/gstvaapisink.c |  4 ++--
> + gst/vaapi/gstvaapivideocontext.c |  4 ++--
> + meson.build  | 10 +-
> + tests/examples/meson.build   |  2 +-
> + tests/internal/output.c  |  4 ++--
> + tests/internal/test-display.c|  4 ++--
> + tests/internal/test-windows.c|  4 ++--
> + 12 files changed, 28 insertions(+), 28 deletions(-)
> +

FWIW I do agree with Alex, we can't afford to carry a patch like this
ourselves and we should discuss it with upstream as it is presumably
something they'd want to fix. If they reject it for some reason, that
is a different discussion.

Cheers,

Richard




-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#174308): 
https://lists.openembedded.org/g/openembedded-core/message/174308
Mute This Topic: https://lists.openembedded.org/mt/95477995/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] gstreamer-vaapi: rename USE_X11 variable

2022-12-05 Thread Alexandre Belloni via lists.openembedded.org
On 05/12/2022 21:13:30+0100, Markus Volk wrote:
> Rename USE_X11 to HAVE_X11 to avoid naming conflict with eglplatform.h
> 
> Signed-off-by: Markus Volk 
> ---
>  .../0001-replace-USE_X11-by-HAVE_X11.patch| 319 ++
>  .../gstreamer/gstreamer1.0-vaapi_1.20.4.bb|   9 +-
>  2 files changed, 324 insertions(+), 4 deletions(-)
>  create mode 100644 
> meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-replace-USE_X11-by-HAVE_X11.patch
> 
> diff --git 
> a/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-replace-USE_X11-by-HAVE_X11.patch
>  
> b/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-replace-USE_X11-by-HAVE_X11.patch
> new file mode 100644
> index 00..8cb17a8a0b
> --- /dev/null
> +++ 
> b/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-replace-USE_X11-by-HAVE_X11.patch
> @@ -0,0 +1,319 @@
> +From ff9c63505183f7620b68d7d848ad6b16a7497c75 Mon Sep 17 00:00:00 2001
> +From: Markus Volk 
> +Date: Mon, 5 Dec 2022 20:56:43 +0100
> +Subject: [PATCH] replace USE_X11 by HAVE_X11
> +
> +currently used variable collides with eglplatform.h
> +
> +Signed-off-by: Markus Volk 
> +
> +Patch-Status: Inappropriate
The proper tag is Upstream-Status. This is checked and the build is
going to fail

> +---
> + ChangeLog|  2 +-
> + gst-libs/gst/vaapi/gstvaapidisplay.c |  2 +-
> + gst-libs/gst/vaapi/gstvaapidisplay_egl.c |  4 ++--
> + gst-libs/gst/vaapi/meson.build   |  4 ++--
> + gst/vaapi/gstvaapipluginutil.c   | 12 ++--
> + gst/vaapi/gstvaapisink.c |  4 ++--
> + gst/vaapi/gstvaapivideocontext.c |  4 ++--
> + meson.build  | 10 +-
> + tests/examples/meson.build   |  2 +-
> + tests/internal/output.c  |  4 ++--
> + tests/internal/test-display.c|  4 ++--
> + tests/internal/test-windows.c|  4 ++--
> + 12 files changed, 28 insertions(+), 28 deletions(-)
> +
> +diff --git a/ChangeLog b/ChangeLog
> +index 0f769dd..1c54803 100644
> +--- a/ChangeLog
>  b/ChangeLog
> +@@ -5905,7 +5905,7 @@
> + 2019-03-30 18:29:31 +0100  Danilo Spinella 
> + 
> + * gst/vaapi/gstvaapipluginutil.c:
> +-  vaapipluginutil: Fix #endif for USE_X11
> ++  vaapipluginutil: Fix #endif for HAVE_X11
> + 
> + 2019-03-29 18:29:51 +0100  Víctor Manuel Jáquez Leal 
> + 
> +diff --git a/gst-libs/gst/vaapi/gstvaapidisplay.c 
> b/gst-libs/gst/vaapi/gstvaapidisplay.c
> +index 5bf4b13..324330e 100644
> +--- a/gst-libs/gst/vaapi/gstvaapidisplay.c
>  b/gst-libs/gst/vaapi/gstvaapidisplay.c
> +@@ -115,7 +115,7 @@ gst_vaapi_display_type_get_type (void)
> +   static const GEnumValue display_types[] = {
> + {GST_VAAPI_DISPLAY_TYPE_ANY,
> + "Auto detection", "any"},
> +-#if USE_X11
> ++#if HAVE_X11
> + {GST_VAAPI_DISPLAY_TYPE_X11,
> + "VA/X11 display", "x11"},
> + #endif
> +diff --git a/gst-libs/gst/vaapi/gstvaapidisplay_egl.c 
> b/gst-libs/gst/vaapi/gstvaapidisplay_egl.c
> +index fcffecd..06ac70b 100644
> +--- a/gst-libs/gst/vaapi/gstvaapidisplay_egl.c
>  b/gst-libs/gst/vaapi/gstvaapidisplay_egl.c
> +@@ -28,7 +28,7 @@
> + #include "gstvaapiwindow_priv.h"
> + #include "gstvaapitexture_egl.h"
> + 
> +-#if USE_X11
> ++#if HAVE_X11
> + #include "gstvaapidisplay_x11.h"
> + #endif
> + #if USE_WAYLAND
> +@@ -110,7 +110,7 @@ gst_vaapi_display_egl_bind_display (GstVaapiDisplay * 
> base_display,
> +   native_egl_display = params->gl_display;
> + 
> +   if (!native_vaapi_display) {
> +-#if USE_X11
> ++#if HAVE_X11
> + if (params->display_type == GST_VAAPI_DISPLAY_TYPE_ANY
> + || params->display_type == GST_VAAPI_DISPLAY_TYPE_X11
> + || params->display_type == GST_VAAPI_DISPLAY_TYPE_EGL)
> +diff --git a/gst-libs/gst/vaapi/meson.build b/gst-libs/gst/vaapi/meson.build
> +index 2e15063..26bface 100644
> +--- a/gst-libs/gst/vaapi/meson.build
>  b/gst-libs/gst/vaapi/meson.build
> +@@ -126,7 +126,7 @@ if USE_DRM
> + ]
> + endif
> + 
> +-if USE_X11
> ++if HAVE_X11
> +   gstlibvaapi_sources += [
> +   'gstvaapidisplay_x11.c',
> +   'gstvaapiutils_x11.c',
> +@@ -224,7 +224,7 @@ endif
> + if USE_WAYLAND
> +   gstlibvaapi_deps  += [libva_wayland_dep, gstglwayland_dep, 
> wayland_client_dep, wayland_protocols_dep]
> + endif
> +-if USE_X11
> ++if HAVE_X11
> +   gstlibvaapi_deps  += [libva_x11_dep, x11_dep, xrandr_dep, gstglx11_dep]
> + endif
> + 
> +diff --git a/gst/vaapi/gstvaapipluginutil.c b/gst/vaapi/gstvaapipluginutil.c
> +index 0c47b75..8bc4419 100644
> +--- a/gst/vaapi/gstvaapipluginutil.c
>  b/gst/vaapi/gstvaapipluginutil.c
> +@@ -29,7 +29,7 @@
> + #if USE_DRM
> + # include 
> + #endif
> +-#if USE_X11
> ++#if HAVE_X11
> + # include 
> + #endif
> + #if USE_GLX
> +@@ -80,7 +80,7 @@ static const DisplayMap g_display_map[] = {
> +(GstVaapiDisplayCreateFromHandleFunc)
> +gst_vaapi_display_glx_new_with_display},
> + #endif
> +-#if USE_X11
> ++#if HAVE_X11
> +   {"x11",
> +   

Re: [OE-core] [PATCH v3][master] go: Update reproducibility patch to fix panic errors

2022-12-05 Thread Alexandre Belloni via lists.openembedded.org
Hello,

On 05/12/2022 13:49:48-0600, Ryan Eatmon via lists.openembedded.org wrote:
> 
> This might have gotten lost in the fun of the YPS and the many discussions
> around the previous versions of then patch.  Was there any more feedback or
> changes that folks want me to make for this patch, or is it good to go?
> Just curious if there was more that you needed from me?
> 

It passed successfully on the autobuilders, it is now up to Richard to
merge.

> 
> On 11/29/2022 8:12, Ryan Eatmon via lists.openembedded.org wrote:
> > Based on a discussion on the mailing list [1], there are panic
> > errors that occur on a few platforms caused by the patch.  We
> > cannot simply remove the original patch due to the
> > reproducibility issues that it addresses, so this patch on the
> > original patch fixes the cause of the panic errors.
> > 
> > The previous version of this patch was a little too aggressive
> > in cleaning up the environment.  Some of the variables impacted
> > by the filerCompilerFlags() function require at least one value
> > to remain in the array.  In this case, the values for ccExe,
> > cxxExe, and fcExe require a value or later code that access
> > them result in a panic related to accessing a value out of range.
> > 
> > This updated patch adds a flag that requires keeping the first
> > value so that at least one thing remains and the assignments
> > for the Exes set that flag to true.  The first item in the
> > array should be the executable name, so leaving it should be
> > safe.
> > 
> > I have run the oe-selftest and everything passed in my setup.
> > 
> > There is a bug report [2] filed for the issue that this patch
> > addresses.
> > 
> > [YOCTO #14976]
> > 
> > [1] https://lists.openembedded.org/g/openembedded-core/topic/94022663
> > [2] https://bugzilla.yoctoproject.org/show_bug.cgi?id=14976
> > 
> > Signed-off-by: Ryan Eatmon 
> > ---
> > v3: Added [YOCTO #14976] to commit message.
> > v2: Added more background and bug report link to commit message.
> > 
> >   ...ent-based-hash-generation-less-pedan.patch | 30 ++-
> >   1 file changed, 16 insertions(+), 14 deletions(-)
> > 
> > diff --git 
> > a/meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch
> >  
> > b/meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch
> > index 17fa9d9831..43be5cd2e8 100644
> > --- 
> > a/meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch
> > +++ 
> > b/meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch
> > @@ -74,7 +74,7 @@ index c88b315..a06455c 100644
> >   + cppflags, cflags, cxxflags, fflags, ldflags, _ := b.CFlags(p, 
> > true)
> >   - ccExe := b.ccExe()
> > -+  ccExe := filterCompilerFlags(b.ccExe())
> > ++  ccExe := filterCompilerFlags(b.ccExe(), true)
> > fmt.Fprintf(h, "CC=%q %q %q %q\n", ccExe, cppflags, cflags, 
> > ldflags)
> > // Include the C compiler tool ID so that if the C
> > // compiler changes we rebuild the package.
> > @@ -83,7 +83,7 @@ index c88b315..a06455c 100644
> > }
> > if len(p.CXXFiles)+len(p.SwigCXXFiles) > 0 {
> >   - cxxExe := b.cxxExe()
> > -+  cxxExe := filterCompilerFlags(b.cxxExe())
> > ++  cxxExe := filterCompilerFlags(b.cxxExe(), true)
> > fmt.Fprintf(h, "CXX=%q %q\n", cxxExe, cxxflags)
> > if cxxID, err := b.gccToolID(cxxExe[0], "c++"); err == 
> > nil {
> > fmt.Fprintf(h, "CXX ID=%q\n", cxxID)
> > @@ -91,7 +91,7 @@ index c88b315..a06455c 100644
> > }
> > if len(p.FFiles) > 0 {
> >   - fcExe := b.fcExe()
> > -+  fcExe := filterCompilerFlags(b.fcExe())
> > ++  fcExe := filterCompilerFlags(b.fcExe(), true)
> > fmt.Fprintf(h, "FC=%q %q\n", fcExe, fflags)
> > if fcID, err := b.gccToolID(fcExe[0], "f95"); err == 
> > nil {
> > fmt.Fprintf(h, "FC ID=%q\n", fcID)
> > @@ -104,20 +104,22 @@ index c88b315..a06455c 100644
> > }
> > // Configuration specific to compiler toolchain.
> > -@@ -2705,8 +2707,23 @@ func envList(key, def string) []string {
> > +@@ -2705,8 +2707,25 @@ func envList(key, def string) []string {
> > return args
> >}
> >   +var filterFlags = os.Getenv("CGO_PEDANTIC") == ""
> >   +
> > -+func filterCompilerFlags(flags []string) []string {
> > ++func filterCompilerFlags(flags []string, keepfirst bool) []string {
> >   + var newflags []string
> > ++   var realkeepfirst bool = keepfirst
> >   + if !filterFlags {
> >   + return flags
> >   + }
> >   + for _, flag := range flags {
> > -+  if strings.HasPrefix(flag, "-m") {
> > ++  if strings.HasPrefix(flag, "-m") || realkeepfirst {
> >   + 

Re: [OE-core][kirkstone][master][PATCH] externalsrc: fix lookup for .gitmodules

2022-12-05 Thread Peter Marko
> There’s been a series of commits now “fixing” the lookup logic, can you write 
> a small test case to exercise this path?
> 
> Ross

Test implemented under 
https://lists.openembedded.org/g/openembedded-core/message/174304.
I did it as a separate patch from this one as it is my first test and it may 
need several iterations to get right.
But if necessary, I'll send a v2 which will be a series of those two patches.

Peter

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#174305): 
https://lists.openembedded.org/g/openembedded-core/message/174305
Mute This Topic: https://lists.openembedded.org/mt/95382667/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] oeqa/selftest/externalsrc: add test for srctree_hash_files

2022-12-05 Thread Peter Marko
Signed-off-by: Peter Marko 
---
 meta/lib/oeqa/selftest/cases/externalsrc.py | 44 +
 1 file changed, 44 insertions(+)
 create mode 100644 meta/lib/oeqa/selftest/cases/externalsrc.py

diff --git a/meta/lib/oeqa/selftest/cases/externalsrc.py 
b/meta/lib/oeqa/selftest/cases/externalsrc.py
new file mode 100644
index 00..1d800dc82c
--- /dev/null
+++ b/meta/lib/oeqa/selftest/cases/externalsrc.py
@@ -0,0 +1,44 @@
+#
+# Copyright OpenEmbedded Contributors
+#
+# SPDX-License-Identifier: MIT
+#
+
+import os
+import shutil
+import tempfile
+
+from oeqa.selftest.case import OESelftestTestCase
+from oeqa.utils.commands import get_bb_var, runCmd
+
+class ExternalSrc(OESelftestTestCase):
+# test that srctree_hash_files does not crash
+# we should be actually checking do_compile[file-checksums] but oeqa 
currently does not support it
+# so we check only that a recipe with externalsrc can be parsed
+def test_externalsrc_srctree_hash_files(self):
+test_recipe = "git-submodule-test"
+git_url = "git://git.yoctoproject.org/git-submodule-test"
+externalsrc_dir = 
tempfile.TemporaryDirectory(prefix="externalsrc").name
+
+self.write_config(
+"""
+INHERIT += "externalsrc"
+EXTERNALSRC:pn-%s = "%s"
+""" % (test_recipe, externalsrc_dir)
+)
+
+# test with git without submodules
+runCmd('git clone %s %s' % (git_url, externalsrc_dir))
+os.unlink(externalsrc_dir + "/.gitmodules")
+open(".gitmodules", 'w').close()  # local file .gitmodules in cwd 
should not affect externalsrc parsing
+self.assertEqual(get_bb_var("S", test_recipe), externalsrc_dir, msg = 
"S does not equal to EXTERNALSRC")
+os.unlink(".gitmodules")
+
+# test with git with submodules
+runCmd('git checkout .gitmodules', cwd=externalsrc_dir)
+runCmd('git submodule update --init --recursive', cwd=externalsrc_dir)
+self.assertEqual(get_bb_var("S", test_recipe), externalsrc_dir, msg = 
"S does not equal to EXTERNALSRC")
+
+# test without git
+shutil.rmtree(os.path.join(externalsrc_dir, ".git"))
+self.assertEqual(get_bb_var("S", test_recipe), externalsrc_dir, msg = 
"S does not equal to EXTERNALSRC")
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#174304): 
https://lists.openembedded.org/g/openembedded-core/message/174304
Mute This Topic: https://lists.openembedded.org/mt/95479820/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] gstreamer-vaapi: rename USE_X11 variable

2022-12-05 Thread Alexander Kanavin
This is totally appropriate for upstream submission, please do so.

Alex

On Mon 5. Dec 2022 at 21.13, Markus Volk  wrote:

> Rename USE_X11 to HAVE_X11 to avoid naming conflict with eglplatform.h
>
> Signed-off-by: Markus Volk 
> ---
>  .../0001-replace-USE_X11-by-HAVE_X11.patch| 319 ++
>  .../gstreamer/gstreamer1.0-vaapi_1.20.4.bb|   9 +-
>  2 files changed, 324 insertions(+), 4 deletions(-)
>  create mode 100644
> meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-replace-USE_X11-by-HAVE_X11.patch
>
> diff --git
> a/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-replace-USE_X11-by-HAVE_X11.patch
> b/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-replace-USE_X11-by-HAVE_X11.patch
> new file mode 100644
> index 00..8cb17a8a0b
> --- /dev/null
> +++
> b/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-replace-USE_X11-by-HAVE_X11.patch
> @@ -0,0 +1,319 @@
> +From ff9c63505183f7620b68d7d848ad6b16a7497c75 Mon Sep 17 00:00:00 2001
> +From: Markus Volk 
> +Date: Mon, 5 Dec 2022 20:56:43 +0100
> +Subject: [PATCH] replace USE_X11 by HAVE_X11
> +
> +currently used variable collides with eglplatform.h
> +
> +Signed-off-by: Markus Volk 
> +
> +Patch-Status: Inappropriate
> +---
> + ChangeLog|  2 +-
> + gst-libs/gst/vaapi/gstvaapidisplay.c |  2 +-
> + gst-libs/gst/vaapi/gstvaapidisplay_egl.c |  4 ++--
> + gst-libs/gst/vaapi/meson.build   |  4 ++--
> + gst/vaapi/gstvaapipluginutil.c   | 12 ++--
> + gst/vaapi/gstvaapisink.c |  4 ++--
> + gst/vaapi/gstvaapivideocontext.c |  4 ++--
> + meson.build  | 10 +-
> + tests/examples/meson.build   |  2 +-
> + tests/internal/output.c  |  4 ++--
> + tests/internal/test-display.c|  4 ++--
> + tests/internal/test-windows.c|  4 ++--
> + 12 files changed, 28 insertions(+), 28 deletions(-)
> +
> +diff --git a/ChangeLog b/ChangeLog
> +index 0f769dd..1c54803 100644
> +--- a/ChangeLog
>  b/ChangeLog
> +@@ -5905,7 +5905,7 @@
> + 2019-03-30 18:29:31 +0100  Danilo Spinella 
> +
> +   * gst/vaapi/gstvaapipluginutil.c:
> +-vaapipluginutil: Fix #endif for USE_X11
> ++vaapipluginutil: Fix #endif for HAVE_X11
> +
> + 2019-03-29 18:29:51 +0100  Víctor Manuel Jáquez Leal  >
> +
> +diff --git a/gst-libs/gst/vaapi/gstvaapidisplay.c
> b/gst-libs/gst/vaapi/gstvaapidisplay.c
> +index 5bf4b13..324330e 100644
> +--- a/gst-libs/gst/vaapi/gstvaapidisplay.c
>  b/gst-libs/gst/vaapi/gstvaapidisplay.c
> +@@ -115,7 +115,7 @@ gst_vaapi_display_type_get_type (void)
> +   static const GEnumValue display_types[] = {
> + {GST_VAAPI_DISPLAY_TYPE_ANY,
> + "Auto detection", "any"},
> +-#if USE_X11
> ++#if HAVE_X11
> + {GST_VAAPI_DISPLAY_TYPE_X11,
> + "VA/X11 display", "x11"},
> + #endif
> +diff --git a/gst-libs/gst/vaapi/gstvaapidisplay_egl.c
> b/gst-libs/gst/vaapi/gstvaapidisplay_egl.c
> +index fcffecd..06ac70b 100644
> +--- a/gst-libs/gst/vaapi/gstvaapidisplay_egl.c
>  b/gst-libs/gst/vaapi/gstvaapidisplay_egl.c
> +@@ -28,7 +28,7 @@
> + #include "gstvaapiwindow_priv.h"
> + #include "gstvaapitexture_egl.h"
> +
> +-#if USE_X11
> ++#if HAVE_X11
> + #include "gstvaapidisplay_x11.h"
> + #endif
> + #if USE_WAYLAND
> +@@ -110,7 +110,7 @@ gst_vaapi_display_egl_bind_display (GstVaapiDisplay *
> base_display,
> +   native_egl_display = params->gl_display;
> +
> +   if (!native_vaapi_display) {
> +-#if USE_X11
> ++#if HAVE_X11
> + if (params->display_type == GST_VAAPI_DISPLAY_TYPE_ANY
> + || params->display_type == GST_VAAPI_DISPLAY_TYPE_X11
> + || params->display_type == GST_VAAPI_DISPLAY_TYPE_EGL)
> +diff --git a/gst-libs/gst/vaapi/meson.build
> b/gst-libs/gst/vaapi/meson.build
> +index 2e15063..26bface 100644
> +--- a/gst-libs/gst/vaapi/meson.build
>  b/gst-libs/gst/vaapi/meson.build
> +@@ -126,7 +126,7 @@ if USE_DRM
> + ]
> + endif
> +
> +-if USE_X11
> ++if HAVE_X11
> +   gstlibvaapi_sources += [
> +   'gstvaapidisplay_x11.c',
> +   'gstvaapiutils_x11.c',
> +@@ -224,7 +224,7 @@ endif
> + if USE_WAYLAND
> +   gstlibvaapi_deps  += [libva_wayland_dep, gstglwayland_dep,
> wayland_client_dep, wayland_protocols_dep]
> + endif
> +-if USE_X11
> ++if HAVE_X11
> +   gstlibvaapi_deps  += [libva_x11_dep, x11_dep, xrandr_dep, gstglx11_dep]
> + endif
> +
> +diff --git a/gst/vaapi/gstvaapipluginutil.c
> b/gst/vaapi/gstvaapipluginutil.c
> +index 0c47b75..8bc4419 100644
> +--- a/gst/vaapi/gstvaapipluginutil.c
>  b/gst/vaapi/gstvaapipluginutil.c
> +@@ -29,7 +29,7 @@
> + #if USE_DRM
> + # include 
> + #endif
> +-#if USE_X11
> ++#if HAVE_X11
> + # include 
> + #endif
> + #if USE_GLX
> +@@ -80,7 +80,7 @@ static const DisplayMap g_display_map[] = {
> +(GstVaapiDisplayCreateFromHandleFunc)
> +gst_vaapi_display_glx_new_with_display},
> + #endif
> +-#if USE_X11
> ++#if HAVE_X11
> +   {"x11",
> +

[oe-core][PATCH] gstreamer-vaapi: rename USE_X11 variable

2022-12-05 Thread Markus Volk
Rename USE_X11 to HAVE_X11 to avoid naming conflict with eglplatform.h

Signed-off-by: Markus Volk 
---
 .../0001-replace-USE_X11-by-HAVE_X11.patch| 319 ++
 .../gstreamer/gstreamer1.0-vaapi_1.20.4.bb|   9 +-
 2 files changed, 324 insertions(+), 4 deletions(-)
 create mode 100644 
meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-replace-USE_X11-by-HAVE_X11.patch

diff --git 
a/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-replace-USE_X11-by-HAVE_X11.patch
 
b/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-replace-USE_X11-by-HAVE_X11.patch
new file mode 100644
index 00..8cb17a8a0b
--- /dev/null
+++ 
b/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi/0001-replace-USE_X11-by-HAVE_X11.patch
@@ -0,0 +1,319 @@
+From ff9c63505183f7620b68d7d848ad6b16a7497c75 Mon Sep 17 00:00:00 2001
+From: Markus Volk 
+Date: Mon, 5 Dec 2022 20:56:43 +0100
+Subject: [PATCH] replace USE_X11 by HAVE_X11
+
+currently used variable collides with eglplatform.h
+
+Signed-off-by: Markus Volk 
+
+Patch-Status: Inappropriate
+---
+ ChangeLog|  2 +-
+ gst-libs/gst/vaapi/gstvaapidisplay.c |  2 +-
+ gst-libs/gst/vaapi/gstvaapidisplay_egl.c |  4 ++--
+ gst-libs/gst/vaapi/meson.build   |  4 ++--
+ gst/vaapi/gstvaapipluginutil.c   | 12 ++--
+ gst/vaapi/gstvaapisink.c |  4 ++--
+ gst/vaapi/gstvaapivideocontext.c |  4 ++--
+ meson.build  | 10 +-
+ tests/examples/meson.build   |  2 +-
+ tests/internal/output.c  |  4 ++--
+ tests/internal/test-display.c|  4 ++--
+ tests/internal/test-windows.c|  4 ++--
+ 12 files changed, 28 insertions(+), 28 deletions(-)
+
+diff --git a/ChangeLog b/ChangeLog
+index 0f769dd..1c54803 100644
+--- a/ChangeLog
 b/ChangeLog
+@@ -5905,7 +5905,7 @@
+ 2019-03-30 18:29:31 +0100  Danilo Spinella 
+ 
+   * gst/vaapi/gstvaapipluginutil.c:
+-vaapipluginutil: Fix #endif for USE_X11
++vaapipluginutil: Fix #endif for HAVE_X11
+ 
+ 2019-03-29 18:29:51 +0100  Víctor Manuel Jáquez Leal 
+ 
+diff --git a/gst-libs/gst/vaapi/gstvaapidisplay.c 
b/gst-libs/gst/vaapi/gstvaapidisplay.c
+index 5bf4b13..324330e 100644
+--- a/gst-libs/gst/vaapi/gstvaapidisplay.c
 b/gst-libs/gst/vaapi/gstvaapidisplay.c
+@@ -115,7 +115,7 @@ gst_vaapi_display_type_get_type (void)
+   static const GEnumValue display_types[] = {
+ {GST_VAAPI_DISPLAY_TYPE_ANY,
+ "Auto detection", "any"},
+-#if USE_X11
++#if HAVE_X11
+ {GST_VAAPI_DISPLAY_TYPE_X11,
+ "VA/X11 display", "x11"},
+ #endif
+diff --git a/gst-libs/gst/vaapi/gstvaapidisplay_egl.c 
b/gst-libs/gst/vaapi/gstvaapidisplay_egl.c
+index fcffecd..06ac70b 100644
+--- a/gst-libs/gst/vaapi/gstvaapidisplay_egl.c
 b/gst-libs/gst/vaapi/gstvaapidisplay_egl.c
+@@ -28,7 +28,7 @@
+ #include "gstvaapiwindow_priv.h"
+ #include "gstvaapitexture_egl.h"
+ 
+-#if USE_X11
++#if HAVE_X11
+ #include "gstvaapidisplay_x11.h"
+ #endif
+ #if USE_WAYLAND
+@@ -110,7 +110,7 @@ gst_vaapi_display_egl_bind_display (GstVaapiDisplay * 
base_display,
+   native_egl_display = params->gl_display;
+ 
+   if (!native_vaapi_display) {
+-#if USE_X11
++#if HAVE_X11
+ if (params->display_type == GST_VAAPI_DISPLAY_TYPE_ANY
+ || params->display_type == GST_VAAPI_DISPLAY_TYPE_X11
+ || params->display_type == GST_VAAPI_DISPLAY_TYPE_EGL)
+diff --git a/gst-libs/gst/vaapi/meson.build b/gst-libs/gst/vaapi/meson.build
+index 2e15063..26bface 100644
+--- a/gst-libs/gst/vaapi/meson.build
 b/gst-libs/gst/vaapi/meson.build
+@@ -126,7 +126,7 @@ if USE_DRM
+ ]
+ endif
+ 
+-if USE_X11
++if HAVE_X11
+   gstlibvaapi_sources += [
+   'gstvaapidisplay_x11.c',
+   'gstvaapiutils_x11.c',
+@@ -224,7 +224,7 @@ endif
+ if USE_WAYLAND
+   gstlibvaapi_deps  += [libva_wayland_dep, gstglwayland_dep, 
wayland_client_dep, wayland_protocols_dep]
+ endif
+-if USE_X11
++if HAVE_X11
+   gstlibvaapi_deps  += [libva_x11_dep, x11_dep, xrandr_dep, gstglx11_dep]
+ endif
+ 
+diff --git a/gst/vaapi/gstvaapipluginutil.c b/gst/vaapi/gstvaapipluginutil.c
+index 0c47b75..8bc4419 100644
+--- a/gst/vaapi/gstvaapipluginutil.c
 b/gst/vaapi/gstvaapipluginutil.c
+@@ -29,7 +29,7 @@
+ #if USE_DRM
+ # include 
+ #endif
+-#if USE_X11
++#if HAVE_X11
+ # include 
+ #endif
+ #if USE_GLX
+@@ -80,7 +80,7 @@ static const DisplayMap g_display_map[] = {
+(GstVaapiDisplayCreateFromHandleFunc)
+gst_vaapi_display_glx_new_with_display},
+ #endif
+-#if USE_X11
++#if HAVE_X11
+   {"x11",
+GST_VAAPI_DISPLAY_TYPE_X11,
+gst_vaapi_display_x11_new,
+@@ -140,7 +140,7 @@ gst_vaapi_get_display_type_from_gl (GstGLDisplayType 
gl_display_type,
+ GstGLPlatform gl_platform)
+ {
+   switch (gl_display_type) {
+-#if USE_X11
++#if HAVE_X11
+ case GST_GL_DISPLAY_TYPE_X11:{
+ #if USE_GLX
+   if (gl_platform == GST_GL_PLATFORM_GLX)
+@@ -178,7 +178,7 @@ 

Re: [OE-core] [PATCH v3][master] go: Update reproducibility patch to fix panic errors

2022-12-05 Thread Ryan Eatmon via lists.openembedded.org


This might have gotten lost in the fun of the YPS and the many 
discussions around the previous versions of then patch.  Was there any 
more feedback or changes that folks want me to make for this patch, or 
is it good to go?  Just curious if there was more that you needed from me?



On 11/29/2022 8:12, Ryan Eatmon via lists.openembedded.org wrote:

Based on a discussion on the mailing list [1], there are panic
errors that occur on a few platforms caused by the patch.  We
cannot simply remove the original patch due to the
reproducibility issues that it addresses, so this patch on the
original patch fixes the cause of the panic errors.

The previous version of this patch was a little too aggressive
in cleaning up the environment.  Some of the variables impacted
by the filerCompilerFlags() function require at least one value
to remain in the array.  In this case, the values for ccExe,
cxxExe, and fcExe require a value or later code that access
them result in a panic related to accessing a value out of range.

This updated patch adds a flag that requires keeping the first
value so that at least one thing remains and the assignments
for the Exes set that flag to true.  The first item in the
array should be the executable name, so leaving it should be
safe.

I have run the oe-selftest and everything passed in my setup.

There is a bug report [2] filed for the issue that this patch
addresses.

[YOCTO #14976]

[1] https://lists.openembedded.org/g/openembedded-core/topic/94022663
[2] https://bugzilla.yoctoproject.org/show_bug.cgi?id=14976

Signed-off-by: Ryan Eatmon 
---
v3: Added [YOCTO #14976] to commit message.
v2: Added more background and bug report link to commit message.

  ...ent-based-hash-generation-less-pedan.patch | 30 ++-
  1 file changed, 16 insertions(+), 14 deletions(-)

diff --git 
a/meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch
 
b/meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch
index 17fa9d9831..43be5cd2e8 100644
--- 
a/meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch
+++ 
b/meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch
@@ -74,7 +74,7 @@ index c88b315..a06455c 100644
  + cppflags, cflags, cxxflags, fflags, ldflags, _ := b.CFlags(p, 
true)
   
  -		ccExe := b.ccExe()

-+  ccExe := filterCompilerFlags(b.ccExe())
++  ccExe := filterCompilerFlags(b.ccExe(), true)
fmt.Fprintf(h, "CC=%q %q %q %q\n", ccExe, cppflags, cflags, 
ldflags)
// Include the C compiler tool ID so that if the C
// compiler changes we rebuild the package.
@@ -83,7 +83,7 @@ index c88b315..a06455c 100644
}
if len(p.CXXFiles)+len(p.SwigCXXFiles) > 0 {
  - cxxExe := b.cxxExe()
-+  cxxExe := filterCompilerFlags(b.cxxExe())
++  cxxExe := filterCompilerFlags(b.cxxExe(), true)
fmt.Fprintf(h, "CXX=%q %q\n", cxxExe, cxxflags)
if cxxID, err := b.gccToolID(cxxExe[0], "c++"); err == 
nil {
fmt.Fprintf(h, "CXX ID=%q\n", cxxID)
@@ -91,7 +91,7 @@ index c88b315..a06455c 100644
}
if len(p.FFiles) > 0 {
  - fcExe := b.fcExe()
-+  fcExe := filterCompilerFlags(b.fcExe())
++  fcExe := filterCompilerFlags(b.fcExe(), true)
fmt.Fprintf(h, "FC=%q %q\n", fcExe, fflags)
if fcID, err := b.gccToolID(fcExe[0], "f95"); err == 
nil {
fmt.Fprintf(h, "FC ID=%q\n", fcID)
@@ -104,20 +104,22 @@ index c88b315..a06455c 100644
}
   
   	// Configuration specific to compiler toolchain.

-@@ -2705,8 +2707,23 @@ func envList(key, def string) []string {
+@@ -2705,8 +2707,25 @@ func envList(key, def string) []string {
return args
   }
   
  +var filterFlags = os.Getenv("CGO_PEDANTIC") == ""

  +
-+func filterCompilerFlags(flags []string) []string {
++func filterCompilerFlags(flags []string, keepfirst bool) []string {
  + var newflags []string
++   var realkeepfirst bool = keepfirst
  + if !filterFlags {
  + return flags
  + }
  + for _, flag := range flags {
-+  if strings.HasPrefix(flag, "-m") {
++  if strings.HasPrefix(flag, "-m") || realkeepfirst {
  + newflags = append(newflags, flag)
++   realkeepfirst = false
  + }
  + }
  + return newflags
@@ -129,21 +131,21 @@ index c88b315..a06455c 100644
defaults := "-g -O2"
   
   	if cppflags, err = buildFlags("CPPFLAGS", "", p.CgoCPPFLAGS, checkCompilerFlags); err != nil {

-@@ -2724,6 +2741,13 @@ func (b *Builder) CFlags(p *load.Package) (cppflags, 
cflags, cxxflags, fflags, l
+@@ -2724,6 

[OE-core][hardknott][PATCH] binutils-cross-canadian: Add lib*.a files to the staticdev package

2022-12-05 Thread Shruthi Ravichandran
This fixes the following QA issue when building an SDK for
x86_64-mingw32 machines.

ERROR: binutils-cross-canadian-x86-64-2.36.1-r0 do_package_qa: QA Issue: non 
-staticdev package contains static .a library: binutils-cross-canadian-x86-64 
path 
'/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-w64-mingw32/usr/lib/x86_64-nilrt-linux/bfd-plugins/libdep.dll.a'
 [staticdev]

Signed-off-by: Shruthi Ravichandran 
---
 meta/recipes-devtools/binutils/binutils-cross-canadian.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-devtools/binutils/binutils-cross-canadian.inc 
b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
index e98f31f9c3..c38936db42 100644
--- a/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
+++ b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
@@ -30,3 +30,5 @@ do_install () {
 }
 
 BBCLASSEXTEND = ""
+
+FILES_${PN}-staticdev:append = " ${libdir}/bfd-plugins/lib*.a"
-- 
2.20.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#174300): 
https://lists.openembedded.org/g/openembedded-core/message/174300
Mute This Topic: https://lists.openembedded.org/mt/95476990/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: update 22.2.3 -> 22.3.0

2022-12-05 Thread Markus Volk
Am Mo, 5. Dez 2022 um 20:17:53 +0100 schrieb Alexander Kanavin 
:

We don't use the monorepo, we use source tarballs and in them vaapi
continues to be provided separately:


I see. Their meson.build is quite broken :(


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#174299): 
https://lists.openembedded.org/g/openembedded-core/message/174299
Mute This Topic: https://lists.openembedded.org/mt/95388063/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: update 22.2.3 -> 22.3.0

2022-12-05 Thread Alexander Kanavin
We don't use the monorepo, we use source tarballs and in them vaapi
continues to be provided separately:
https://gstreamer.freedesktop.org/src/gstreamer-vaapi/

Alex

On Mon, 5 Dec 2022 at 20:04, Markus Volk  wrote:
>
> Wouldn't it be best if we just removed the gstreamer-1.0-vaapi recipe. Gitlab 
> repo says:
>
> ARCHIVED REPOSITORY: Hardware-accelerated video decoding, encoding and 
> processing on Intel graphics through VA-API
>
> This code has been moved to the GStreamer mono repo, please submit new issues 
> and merge requests there!
>
> Like I understand it, the code has been merged into gstreamer1.0 and can be 
> enabled by
>
> https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/main/meson_options.txt#L13
>
>
> Am Mo, 5. Dez 2022 um 09:23:21 -0800 schrieb Khem Raj :
>
> On Mon, Dec 5, 2022 at 6:32 AM Alexandre Belloni via lists.openembedded.org 
>  wrote:
>
> Hello, This caused: | FAILED: 
> gst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p/gstvaapidisplay_egl.c.o | 
> x86_64-poky-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse 
> -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security 
> -Werror=format-security 
> --sysroot=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot
>  -Igst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p -Igst-libs/gst/vaapi 
> -I../gstreamer-vaapi-1.20.4/gst-libs/gst/vaapi -I. 
> -I../gstreamer-vaapi-1.20.4 -Igst-libs -I../gstreamer-vaapi-1.20.4/gst-libs 
> -I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/gstreamer-1.0
>  
> -I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/glib-2.0
>  
> -I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/lib/glib-2.0/include
>  
> -I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/orc-0.4
>  
> -I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/lib/gstreamer-1.0/include
>  
> -I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/libdrm
>  -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch 
> -fvisibility=hidden -fno-strict-aliasing -O2 -pipe -g 
> -feliminate-unused-debug-types 
> -fmacro-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/gstreamer-vaapi-1.20.4=/usr/src/debug/gstreamer1.0-vaapi/1.20.4-r0
>  
> -fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/gstreamer-vaapi-1.20.4=/usr/src/debug/gstreamer1.0-vaapi/1.20.4-r0
>  
> -fmacro-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/build=/usr/src/debug/gstreamer1.0-vaapi/1.20.4-r0
>  
> -fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/build=/usr/src/debug/gstreamer1.0-vaapi/1.20.4-r0
>  
> -fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot=
>  
> -fmacro-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot=
>  
> -fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot-native=
>  -fPIC -pthread -DHAVE_CONFIG_H -DGST_USE_UNSTABLE_API 
> '-DGST_VAAPI_VERSION_ID="1.20.4"' -MD -MQ 
> gst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p/gstvaapidisplay_egl.c.o -MF 
> gst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p/gstvaapidisplay_egl.c.o.d -o 
> gst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p/gstvaapidisplay_egl.c.o -c 
> ../gstreamer-vaapi-1.20.4/gst-libs/gst/vaapi/gstvaapidisplay_egl.c | In file 
> included from 
> /home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/EGL/egl.h:20,
>  | from 
> ../gstreamer-vaapi-1.20.4/gst-libs/gst/vaapi/gstvaapidisplay_egl.h:26, | from 
> ../gstreamer-vaapi-1.20.4/gst-libs/gst/vaapi/gstvaapidisplay_egl.c:24: | 
> /home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/EGL/eglplatform.h:109:10:
>  fatal error: X11/Xlib.h: No such file or directory | 109 | #include 
>  | | ^~~~
>
> for no-x11 builds gstreamer1.0-vaapi needs to pass -UUSE_X11 maybe, the code 
> where we were tweaking. 
> https://git.yoctoproject.org/poky/tree/meta/recipes-graphics/mesa/mesa.inc#n38
>  is removed from upstream.
>
> | 

Re: [oe-core][PATCH] mesa: update 22.2.3 -> 22.3.0

2022-12-05 Thread Khem Raj
On Mon, Dec 5, 2022 at 11:04 AM Markus Volk  wrote:
>
> Wouldn't it be best if we just removed the gstreamer-1.0-vaapi recipe. Gitlab 
> repo says:
>
> ARCHIVED REPOSITORY: Hardware-accelerated video decoding, encoding and 
> processing on Intel graphics through VA-API
>
> This code has been moved to the GStreamer mono repo, please submit new issues 
> and merge requests there!
>
> Like I understand it, the code has been merged into gstreamer1.0 and can be 
> enabled by
>
> https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/main/meson_options.txt#L13
>

yes I think that would be preferred.

>
> Am Mo, 5. Dez 2022 um 09:23:21 -0800 schrieb Khem Raj :
>
> On Mon, Dec 5, 2022 at 6:32 AM Alexandre Belloni via lists.openembedded.org 
>  wrote:
>
> Hello, This caused: | FAILED: 
> gst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p/gstvaapidisplay_egl.c.o | 
> x86_64-poky-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse 
> -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security 
> -Werror=format-security 
> --sysroot=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot
>  -Igst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p -Igst-libs/gst/vaapi 
> -I../gstreamer-vaapi-1.20.4/gst-libs/gst/vaapi -I. 
> -I../gstreamer-vaapi-1.20.4 -Igst-libs -I../gstreamer-vaapi-1.20.4/gst-libs 
> -I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/gstreamer-1.0
>  
> -I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/glib-2.0
>  
> -I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/lib/glib-2.0/include
>  
> -I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/orc-0.4
>  
> -I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/lib/gstreamer-1.0/include
>  
> -I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/libdrm
>  -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch 
> -fvisibility=hidden -fno-strict-aliasing -O2 -pipe -g 
> -feliminate-unused-debug-types 
> -fmacro-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/gstreamer-vaapi-1.20.4=/usr/src/debug/gstreamer1.0-vaapi/1.20.4-r0
>  
> -fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/gstreamer-vaapi-1.20.4=/usr/src/debug/gstreamer1.0-vaapi/1.20.4-r0
>  
> -fmacro-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/build=/usr/src/debug/gstreamer1.0-vaapi/1.20.4-r0
>  
> -fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/build=/usr/src/debug/gstreamer1.0-vaapi/1.20.4-r0
>  
> -fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot=
>  
> -fmacro-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot=
>  
> -fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot-native=
>  -fPIC -pthread -DHAVE_CONFIG_H -DGST_USE_UNSTABLE_API 
> '-DGST_VAAPI_VERSION_ID="1.20.4"' -MD -MQ 
> gst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p/gstvaapidisplay_egl.c.o -MF 
> gst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p/gstvaapidisplay_egl.c.o.d -o 
> gst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p/gstvaapidisplay_egl.c.o -c 
> ../gstreamer-vaapi-1.20.4/gst-libs/gst/vaapi/gstvaapidisplay_egl.c | In file 
> included from 
> /home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/EGL/egl.h:20,
>  | from 
> ../gstreamer-vaapi-1.20.4/gst-libs/gst/vaapi/gstvaapidisplay_egl.h:26, | from 
> ../gstreamer-vaapi-1.20.4/gst-libs/gst/vaapi/gstvaapidisplay_egl.c:24: | 
> /home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/EGL/eglplatform.h:109:10:
>  fatal error: X11/Xlib.h: No such file or directory | 109 | #include 
>  | | ^~~~
>
> for no-x11 builds gstreamer1.0-vaapi needs to pass -UUSE_X11 maybe, the code 
> where we were tweaking. 
> https://git.yoctoproject.org/poky/tree/meta/recipes-graphics/mesa/mesa.inc#n38
>  is removed from upstream.
>
> | compilation terminated. | ninja: build stopped: subcommand failed. | 
> WARNING: 
> 

Re: [oe-core][PATCH] mesa: update 22.2.3 -> 22.3.0

2022-12-05 Thread Markus Volk
Wouldn't it be best if we just removed the gstreamer-1.0-vaapi recipe. 
Gitlab repo says:


*ARCHIVED REPOSITORY*: Hardware-accelerated video decoding, encoding 
and processing on Intel graphics through VA-API


*This code has been moved to the GStreamer mono repo 
, please submit new 
issues and merge requests there!*


Like I understand it, the code has been merged into gstreamer1.0 and 
can be enabled by





Am Mo, 5. Dez 2022 um 09:23:21 -0800 schrieb Khem Raj 
:

On Mon, Dec 5, 2022 at 6:32 AM Alexandre Belloni via
lists.openembedded.org
> wrote:


 Hello,

 This caused:

 | FAILED: 
gst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p/gstvaapidisplay_egl.c.o
 | x86_64-poky-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 
-mfpmath=sse -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 
-Wformat -Wformat-security -Werror=format-security 
--sysroot=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot 
-Igst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p -Igst-libs/gst/vaapi 
-I../gstreamer-vaapi-1.20.4/gst-libs/gst/vaapi -I. 
-I../gstreamer-vaapi-1.20.4 -Igst-libs 
-I../gstreamer-vaapi-1.20.4/gst-libs 
-I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/gstreamer-1.0 
-I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/glib-2.0 
-I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/lib/glib-2.0/include 
-I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/orc-0.4 
-I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/lib/gstreamer-1.0/include 
-I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/libdrm 
-fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall 
-Winvalid-pch -fvisibility=hidden -fno-strict-aliasing -O2 -pipe -g 
-feliminate-unused-debug-types 
-fmacro-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/gstreamer-vaapi-1.20.4=/usr/src/debug/gstreamer1.0-vaapi/1.20.4-r0 
-fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/gstreamer-vaapi-1.20.4=/usr/src/debug/gstreamer1.0-vaapi/1.20.4-r0 
-fmacro-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/build=/usr/src/debug/gstreamer1.0-vaapi/1.20.4-r0 
-fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/build=/usr/src/debug/gstreamer1.0-vaapi/1.20.4-r0 
-fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot= 
-fmacro-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot= 
-fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot-native= 
-fPIC -pthread -DHAVE_CONFIG_H -DGST_USE_UNSTABLE_API 
'-DGST_VAAPI_VERSION_ID="1.20.4"' -MD -MQ 
gst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p/gstvaapidisplay_egl.c.o 
-MF 
gst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p/gstvaapidisplay_egl.c.o.d 
-o gst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p/gstvaapidisplay_egl.c.o 
-c ../gstreamer-vaapi-1.20.4/gst-libs/gst/vaapi/gstvaapidisplay_egl.c
 | In file included from 
/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/EGL/egl.h:20,
 |  from 
../gstreamer-vaapi-1.20.4/gst-libs/gst/vaapi/gstvaapidisplay_egl.h:26,
 |  from 
../gstreamer-vaapi-1.20.4/gst-libs/gst/vaapi/gstvaapidisplay_egl.c:24:
 | 
/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/EGL/eglplatform.h:109:10: 
fatal error: X11/Xlib.h: No such file or directory

 |   109 | #include 
 |   |  ^~~~


for no-x11 builds gstreamer1.0-vaapi needs to pass -UUSE_X11 maybe,
the code where we were tweaking.



is removed from upstream.


 | compilation terminated.
 | ninja: build stopped: subcommand failed.
 | WARNING: 

Re: [OE-core] GCC Patch Tracking

2022-12-05 Thread Khem Raj
On Mon, Dec 5, 2022 at 5:48 AM Randy MacLeod
 wrote:
>
> Let's keep the discussion on the list to give everyone a chance to know 
> what's going on and to contribute.
> Oh and please use in-line email instead of attachments when possible.
>
> Also add Khem who is the author of many of these patches. Hopefully he can
> help us clean-up the status and advise about which 'Pending' patches are
> candidates to send upstream.
>
> On 2022-12-05 08:06, Shinde, Yash wrote:
>
> Hi Richard,
>
> PFA  document for GCC patch analysis. There were about 28 patches in GCC 
> sources out of which 3 patches are with the upstream status of ‘Submitted’ 
> and other 10 are ‘Pending’.  I had analysed the current status of these 
> patches by checking them with the GCC patch list and archive list and 
> documented the same in the attached document.
>
> Out of the 3 patches with ‘submitted’ as the status,
>
> - The 1st patch is submitted but changes are not reflected in the upstream. 
> (hardcoded-paths.patch)
>
> - The 2nd patch is not found in the upstream 
> (0014-Don-t-search-host-directory-during-relink-if-inst_pr.patch), was not 
> found in patch list or archive list and
>
> - For the 3rd patch 1 hunk taken to upstream and can be marked as 
> 'backported' and the other hunk is not taken to upstream yet. 
> (prefix-map-realpath.patch)

Did you check upstream master branch of gcc ?

>
> All the patch links are given in the doc.
>
>
> GCC 12.2 Patch Analysis
>
> hardcoded-paths.patch:Upstream-Status: Submitted 
> [https://gcc.gnu.org/pipermail/gcc-patches/2022-August/599882.html]
> ->Patch is submitted but changes not reflected in upstream
>
>
>
> 0014-Don-t-search-host-directory-during-relink-if-inst_pr.patch:Upstream-Status:
>  Submitted
> ->not yet submitted to upstream but link provided here- 
> http://lists.gnu.org/archive/html/libtool-patches/2011-01/msg00026.html
>
> prefix-map-realpath.patch:Upstream-Status: Submitted 
> [https://gcc.gnu.org/pipermail/gcc-patches/2022-August/599885.html]
> ->1 of the 2 hunks of patch send to upstream and other is not included. Link- 
> https://www.mail-archive.com/gcc-patches@gcc.gnu.org/msg294480.html
>
> 0013-Ensure-target-gcc-headers-can-be-included.patch:Upstream-Status: Pending
> ->not yet submitted to upstream
>
> 0005-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch:Upstream-Status:
>  Pending
> ->not yet submitted to upstream
>
> 0004-Pass-CXXFLAGS_FOR_BUILD-in-a-couple-of-places-to-avo.patch:Upstream-Status:
>  Pending [should be submittable]
> ->not yet submitted to upstream
>
> 0002-gcc-poison-system-directories.patch:Upstream-Status: Pending
> ->not yet submitted to upstream
>
> 0009-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch:Upstream-Status: 
> Pending
> ->not yet submitted to upstream
>
> 0017-Search-target-sysroot-gcc-version-specific-dirs-with.patch:Upstream-Status:
>  Pending
> ->not yet submitted to upstream
>
> 0008-libtool.patch:Upstream-Status: Pending
> ->not yet submitted to upstream
>
> 0020-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch:Upstream-Status:
>  Pending
> ->not yet submitted to upstream
>
> 0018-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch:Upstream-Status:
>  Pending
> ->not yet submitted to upstream
>
> 0006-cpp-honor-sysroot.patch:Upstream-Status: Pending
> ->not yet submitted to upstream
>
>
>
>
> For the patches with ‘pending’ as the status, they are pending from quite 
> some time. Should we contact the author of the patch or the community for 
> these patches?
>
> Please guide me on how to proceed further in GCC patch analysis and what are 
> the next steps.
>
> Let's see what Khem has to say about his collection of 'Pending' patches.
>
>
> Thanks Yash,
>
> ../Randy
>
>
> Regards,
> Yash Shinde
>
>
>
>
>
>
> --
> # Randy MacLeod
> # Wind River Linux

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#174295): 
https://lists.openembedded.org/g/openembedded-core/message/174295
Mute This Topic: https://lists.openembedded.org/mt/95468728/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: update 22.2.3 -> 22.3.0

2022-12-05 Thread Khem Raj
On Mon, Dec 5, 2022 at 6:32 AM Alexandre Belloni via
lists.openembedded.org
 wrote:
>
> Hello,
>
> This caused:
>
> | FAILED: gst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p/gstvaapidisplay_egl.c.o
> | x86_64-poky-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse 
> -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security 
> -Werror=format-security 
> --sysroot=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot
>  -Igst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p -Igst-libs/gst/vaapi 
> -I../gstreamer-vaapi-1.20.4/gst-libs/gst/vaapi -I. 
> -I../gstreamer-vaapi-1.20.4 -Igst-libs -I../gstreamer-vaapi-1.20.4/gst-libs 
> -I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/gstreamer-1.0
>  
> -I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/glib-2.0
>  
> -I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/lib/glib-2.0/include
>  
> -I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/orc-0.4
>  
> -I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/lib/gstreamer-1.0/include
>  
> -I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/libdrm
>  -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch 
> -fvisibility=hidden -fno-strict-aliasing -O2 -pipe -g 
> -feliminate-unused-debug-types 
> -fmacro-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/gstreamer-vaapi-1.20.4=/usr/src/debug/gstreamer1.0-vaapi/1.20.4-r0
>  
> -fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/gstreamer-vaapi-1.20.4=/usr/src/debug/gstreamer1.0-vaapi/1.20.4-r0
>  
> -fmacro-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/build=/usr/src/debug/gstreamer1.0-vaapi/1.20.4-r0
>  
> -fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/build=/usr/src/debug/gstreamer1.0-vaapi/1.20.4-r0
>  
> -fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot=
>  
> -fmacro-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot=
>  
> -fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot-native=
>  -fPIC -pthread -DHAVE_CONFIG_H -DGST_USE_UNSTABLE_API 
> '-DGST_VAAPI_VERSION_ID="1.20.4"' -MD -MQ 
> gst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p/gstvaapidisplay_egl.c.o -MF 
> gst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p/gstvaapidisplay_egl.c.o.d -o 
> gst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p/gstvaapidisplay_egl.c.o -c 
> ../gstreamer-vaapi-1.20.4/gst-libs/gst/vaapi/gstvaapidisplay_egl.c
> | In file included from 
> /home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/EGL/egl.h:20,
> |  from 
> ../gstreamer-vaapi-1.20.4/gst-libs/gst/vaapi/gstvaapidisplay_egl.h:26,
> |  from 
> ../gstreamer-vaapi-1.20.4/gst-libs/gst/vaapi/gstvaapidisplay_egl.c:24:
> | 
> /home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/EGL/eglplatform.h:109:10:
>  fatal error: X11/Xlib.h: No such file or directory
> |   109 | #include 
> |   |  ^~~~

for no-x11 builds gstreamer1.0-vaapi needs to pass -UUSE_X11 maybe,
the code where we were tweaking.

https://git.yoctoproject.org/poky/tree/meta/recipes-graphics/mesa/mesa.inc#n38

is removed from upstream.

> | compilation terminated.
> | ninja: build stopped: subcommand failed.
> | WARNING: 
> /home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/temp/run.do_compile.281472:153
>  exit 1 from 'ninja -v -j 16 -l 52'
> | WARNING: Backtrace (BB generated script):
> |   #1: meson_do_compile, 
> /home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/temp/run.do_compile.281472,
>  line 153
> |   #2: do_compile, 
> /home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/temp/run.do_compile.281472,
>  line 148
> |   #3: main, 
> 

Re: [OE-core] GCC Patch Tracking

2022-12-05 Thread Randy MacLeod
Add the list and Khem in case anyone is interested in Richard's comments 
below.


../Randy

On 2022-12-05 08:47, Richard Purdie wrote:

Hi Yash,

On Mon, 2022-12-05 at 13:06 +, Shinde, Yash wrote:

PFA  document for GCC patch analysis. There were about 28 patches in
GCC sources out of which 3 patches are with the upstream status of
‘Submitted’ and other 10 are ‘Pending’.  I had analysed the current
status of these patches by checking them with the GCC patch list and
archive list and documented the same in the attached document.

Out of the 3 patches with ‘submitted’ as the status,
- The 1st patch is submitted but changes are not reflected in the
upstream. (hardcoded-paths.patch)

We should remind them about this one.


- The 2nd patch is not found in the upstream (0014-Don-t-search-host-
directory-during-relink-if-inst_pr.patch), was not found in patch
list or archive list and

This one is tricky since it is a libtool change. Was the change
accepted by libtool? If it was, we might be able to then persuade gcc
that they need it. It would mean updating gcc's libtool and I don't
know how they do that though.



- For the 3rd patch 1 hunk taken to upstream and can be marked as
'backported' and the other hunk is not taken to upstream yet.
(prefix-map-realpath.patch)
All the patch links are given in the doc.

I thought both pieces of this had merged?


https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=11543b27fe16d81ca5483ecb98ec7a5b2426e0c0
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=e5c15eb183f17e806ad6b58c9497321ded87866f

We should update the patch to mention it is now a Backport with those
two links?


For the patches with ‘pending’ as the status, they are pending from
quite some time. Should we contact the author of the patch or the
community for these patches?

Please guide me on how to proceed further in GCC patch analysis and
what are the next steps.

For the Pending patches I'll add my comments below.

0013-Ensure-target-gcc-headers-can-be-included.patch


These headers are being installed under a prefix in the sysroot. We
need to check if that prefix is as a result of our own changes or
something upstream does. If upsptream uses the prefix, we should talk
to them about whether we can expect sysroot layout like this to work.


0005-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch
-

I suspect this is inappropriate for upstream and should be marked as such.


0004-Pass-CXXFLAGS_FOR_BUILD-in-a-couple-of-places-to-avo.patch
---

Looks like it could be submitted/discussed upstream


0002-gcc-poison-system-directories.patch


Mark inappropriate?


0009-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch


Looks like it could be submitted/discussed upstream


0017-Search-target-sysroot-gcc-version-specific-dirs-with.patch
---

Looks like it should be discussed upstream?


0008-libtool.patch
--

Would probably need to go to libtool first.

0020-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch
---

Check whether we still need it? (i686 musl?)


0018-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch
---

Check whether we still need it? (musl related?)
  


0006-cpp-honor-sysroot.patch


reproduce original issue, if still present submit upsteam, or drop



So in summary, there are a few issues we probably reproduce and discuss
with upstream.

Cheers,

Richard



--
# Randy MacLeod
# Wind River Linux


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#174293): 
https://lists.openembedded.org/g/openembedded-core/message/174293
Mute This Topic: https://lists.openembedded.org/mt/95468728/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/buildstats: fix parsing of trees with reduced_proc_pressure directories

2022-12-05 Thread Ross Burton
The /proc/pressure support in buildstats is creating directories in the
buildstats tree called reduced_proc_pressure, which confuses the parsing
logic as that cannot be parsed as a name-epoc-version-revision tuple.

Explicitly skip this directory to solve the problem.

Signed-off-by: Ross Burton 
---
 scripts/lib/buildstats.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/lib/buildstats.py b/scripts/lib/buildstats.py
index c69b5bf4d75..3b76286ba57 100644
--- a/scripts/lib/buildstats.py
+++ b/scripts/lib/buildstats.py
@@ -8,7 +8,7 @@ import json
 import logging
 import os
 import re
-from collections import namedtuple,OrderedDict
+from collections import namedtuple
 from statistics import mean
 
 
@@ -238,7 +238,7 @@ class BuildStats(dict):
 subdirs = os.listdir(path)
 for dirname in subdirs:
 recipe_dir = os.path.join(path, dirname)
-if not os.path.isdir(recipe_dir):
+if dirname == "reduced_proc_pressure" or not 
os.path.isdir(recipe_dir):
 continue
 name, epoch, version, revision = cls.split_nevr(dirname)
 bsrecipe = BSRecipe(name, epoch, version, revision)
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#174292): 
https://lists.openembedded.org/g/openembedded-core/message/174292
Mute This Topic: https://lists.openembedded.org/mt/95470205/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] kernel.bbclass: remove empty module directories to prevent QA issues

2022-12-05 Thread Ovidiu Panait
From: Ovidiu Panait 

Currently, allyesconfig test runs for x86_64 fail with:
ERROR: linux-yocto-5.19.17+gitAUTOINC+0cba9aa404_aaf4490d18-r0 do_package:
QA Issue: linux-yocto: Files/directories were installed but not shipped in any
package:
  /lib/modules/5.19.17/kernel/drivers/nvdimm

With CONFIG_NVDIMM_TEST_BUILD=m, an empty nvdimm directory is created during
modules_install, which triggers the QA issue.

Extend kernel_do_install() to also remove inner empty directories that might
get created by modules_install.

Signed-off-by: Ovidiu Panait 
---
 meta/classes-recipe/kernel.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes-recipe/kernel.bbclass 
b/meta/classes-recipe/kernel.bbclass
index 3f6b40907f..553e17bb4e 100644
--- a/meta/classes-recipe/kernel.bbclass
+++ b/meta/classes-recipe/kernel.bbclass
@@ -450,8 +450,8 @@ kernel_do_install() {
oe_runmake DEPMOD=echo 
MODLIB=${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION} 
INSTALL_FW_PATH=${D}${nonarch_base_libdir}/firmware modules_install
rm "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/build"
rm "${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/source"
-   # If the kernel/ directory is empty remove it to prevent QA 
issues
-   rmdir --ignore-fail-on-non-empty 
"${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel"
+   # Remove empty module directories to prevent QA issues
+   find 
"${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel" -type d -empty 
-delete
else
bbnote "no modules to install"
fi
-- 
2.38.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#174291): 
https://lists.openembedded.org/g/openembedded-core/message/174291
Mute This Topic: https://lists.openembedded.org/mt/95470162/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] [dunfell][PATCHv2] xserver-xorg: backport fixes for CVE-2022-3550, CVE-2022-3551 and CVE-2022-3553

2022-12-05 Thread Steve Sakoman
On Sun, Dec 4, 2022 at 8:40 AM Minjae Kim  wrote:
>
> 
> xkb: proof GetCountedString against request length attacks
> Upstream-Status: Backport 
> [https://cgit.freedesktop.org/xorg/xserver/commit/?id=11beef0b7f1ed290348e45618e5fa0d2bffcb72e]
>
> 
> xkb: fix some possible memleaks in XkbGetKbdByName
> Upstream-Status: Backport 
> [https://cgit.freedesktop.org/xorg/xserver/commit/?id=18f91b950e22c2a342a4fbc55e9ddf7534a707d2]
>
> 
> xquartz: Fix a possible crash when editing the Application
> menu due to mutaing immutable arrays
> Upstream-Status: 
> Backport[https://cgit.freedesktop.org/xorg/xserver/commit/?id=dfd057996b26420309c324ec844a5ba6dd07eda3]
>
> Signed-off-by:Minjae Kim 
> ---
>  .../xserver-xorg/CVE-2022-3550.patch  | 40 
>  .../xserver-xorg/CVE-2022-3551.patch  | 64 +++
>  .../xserver-xorg/CVE-2022-3553.patch  | 49 ++
>  .../xorg-xserver/xserver-xorg_1.20.14.bb  |  3 +
>  4 files changed, 156 insertions(+)
>  create mode 100644 
> meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2022-3550.patch
>  create mode 100644 
> meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2022-3551.patch
>  create mode 100644 
> meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2022-3553.patch
>
> diff --git 
> a/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2022-3550.patch 
> b/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2022-3550.patch
> new file mode 100644
> index 00..9674b548d9
> --- /dev/null
> +++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2022-3550.patch
> @@ -0,0 +1,40 @@
> +From d2dcbdc67c96c84dff301505072b0b7b022f1a14 Mon Sep 17 00:00:00 2001
> +From: Peter Hutterer 
> +Date: Sun, 4 Dec 2022 17:40:21 +
> +Subject: [PATCH 1/3] xkb: proof GetCountedString against request length
> + attacks
> +
> +GetCountedString did a check for the whole string to be within the
> +request buffer but not for the initial 2 bytes that contain the length
> +field. A swapped client could send a malformed request to trigger a
> +swaps() on those bytes, writing into random memory.
> +
> +Signed-off-by: Peter Hutterer 
> +
> +Ustream-Status: Backport
> +[https://cgit.freedesktop.org/xorg/xserver/commit/?id=11beef0b7f1ed290348e45618e5fa0d2bffcb72e]

The above line can go on the same line as Upstream-Status (same
comment for the other two patches)

> +Signed-off-by:Minjae Kim 

MIssing CVE: tag

I'll fix these issues, so no need for V3, but please keep in mind for
future submissions.

Thanks for helping with CVE reduction!

Steve

> +---
> + xkb/xkb.c | 5 +
> + 1 file changed, 5 insertions(+)
> +
> +diff --git a/xkb/xkb.c b/xkb/xkb.c
> +index 68c59df..bf8aaa3 100644
> +--- a/xkb/xkb.c
>  b/xkb/xkb.c
> +@@ -5138,6 +5138,11 @@ _GetCountedString(char **wire_inout, ClientPtr 
> client, char **str)
> + CARD16 len;
> +
> + wire = *wire_inout;
> ++
> ++if (client->req_len <
> ++bytes_to_int32(wire + 2 - (char *) client->requestBuffer))
> ++  return BadValue;
> ++
> + len = *(CARD16 *) wire;
> + if (client->swapped) {
> + swaps();
> +--
> +2.17.1
> +
> diff --git 
> a/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2022-3551.patch 
> b/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2022-3551.patch
> new file mode 100644
> index 00..c1313b5ad6
> --- /dev/null
> +++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg/CVE-2022-3551.patch
> @@ -0,0 +1,64 @@
> +From d3787290f56165f5656ddd2123dbf676a32d0a68 Mon Sep 17 00:00:00 2001
> +From: Peter Hutterer 
> +Date: Sun, 4 Dec 2022 17:44:00 +
> +Subject: [PATCH 2/3] xkb: fix some possible memleaks in XkbGetKbdByName
> +
> +GetComponentByName returns an allocated string, so let's free that if we
> +fail somewhere.
> +
> +Signed-off-by: Peter Hutterer 
> +
> +Upstream-Status: Backport
> +[https://cgit.freedesktop.org/xorg/xserver/commit/?id=18f91b950e22c2a342a4fbc55e9ddf7534a707d2]
> +
> +Signed-off-by:Minjae Kim 
> +---
> + xkb/xkb.c | 26 +++---
> + 1 file changed, 19 insertions(+), 7 deletions(-)
> +
> +diff --git a/xkb/xkb.c b/xkb/xkb.c
> +index bf8aaa3..f79d306 100644
> +--- a/xkb/xkb.c
>  b/xkb/xkb.c
> +@@ -5908,19 +5908,31 @@ ProcXkbGetKbdByName(ClientPtr client)
> + xkb = dev->key->xkbInfo->desc;
> + status = Success;
> + str = (unsigned char *) [1];
> +-if (GetComponentSpec(, TRUE, ))  /* keymap, unsupported */
> +-return BadMatch;
> ++{
> ++char *keymap = GetComponentSpec(, TRUE, );  /* keymap, 
> unsupported */
> ++if (keymap) {
> ++free(keymap);
> ++return BadMatch;
> ++}
> ++}
> + names.keycodes = GetComponentSpec(, TRUE, );
> + names.types = GetComponentSpec(, TRUE, );
> + names.compat = GetComponentSpec(, TRUE, );
> + names.symbols = GetComponentSpec(, TRUE, );
> + names.geometry = GetComponentSpec(, TRUE, );
> +-if (status != Success)
> +-return status;
> +-len = str - 

Re: [oe-core][PATCH] mesa: update 22.2.3 -> 22.3.0

2022-12-05 Thread Alexandre Belloni via lists.openembedded.org
Hello,

This caused:

| FAILED: gst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p/gstvaapidisplay_egl.c.o
| x86_64-poky-linux-gcc -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse 
-fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security 
-Werror=format-security 
--sysroot=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot
 -Igst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p -Igst-libs/gst/vaapi 
-I../gstreamer-vaapi-1.20.4/gst-libs/gst/vaapi -I. -I../gstreamer-vaapi-1.20.4 
-Igst-libs -I../gstreamer-vaapi-1.20.4/gst-libs 
-I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/gstreamer-1.0
 
-I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/glib-2.0
 
-I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/lib/glib-2.0/include
 
-I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/orc-0.4
 
-I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/lib/gstreamer-1.0/include
 
-I/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/libdrm
 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch 
-fvisibility=hidden -fno-strict-aliasing -O2 -pipe -g 
-feliminate-unused-debug-types 
-fmacro-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/gstreamer-vaapi-1.20.4=/usr/src/debug/gstreamer1.0-vaapi/1.20.4-r0
 
-fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/gstreamer-vaapi-1.20.4=/usr/src/debug/gstreamer1.0-vaapi/1.20.4-r0
 
-fmacro-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/build=/usr/src/debug/gstreamer1.0-vaapi/1.20.4-r0
 
-fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/build=/usr/src/debug/gstreamer1.0-vaapi/1.20.4-r0
 
-fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot=
 
-fmacro-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot=
 
-fdebug-prefix-map=/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot-native=
 -fPIC -pthread -DHAVE_CONFIG_H -DGST_USE_UNSTABLE_API 
'-DGST_VAAPI_VERSION_ID="1.20.4"' -MD -MQ 
gst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p/gstvaapidisplay_egl.c.o -MF 
gst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p/gstvaapidisplay_egl.c.o.d -o 
gst-libs/gst/vaapi/libgstlibvaapi-1.0.a.p/gstvaapidisplay_egl.c.o -c 
../gstreamer-vaapi-1.20.4/gst-libs/gst/vaapi/gstvaapidisplay_egl.c
| In file included from 
/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/EGL/egl.h:20,
|  from 
../gstreamer-vaapi-1.20.4/gst-libs/gst/vaapi/gstvaapidisplay_egl.h:26,
|  from 
../gstreamer-vaapi-1.20.4/gst-libs/gst/vaapi/gstvaapidisplay_egl.c:24:
| 
/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/recipe-sysroot/usr/include/EGL/eglplatform.h:109:10:
 fatal error: X11/Xlib.h: No such file or directory
|   109 | #include 
|   |  ^~~~
| compilation terminated.
| ninja: build stopped: subcommand failed.
| WARNING: 
/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/temp/run.do_compile.281472:153
 exit 1 from 'ninja -v -j 16 -l 52'
| WARNING: Backtrace (BB generated script):
|   #1: meson_do_compile, 
/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/temp/run.do_compile.281472,
 line 153
|   #2: do_compile, 
/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/temp/run.do_compile.281472,
 line 148
|   #3: main, 
/home/pokybuild/yocto-worker/no-x11/build/build/tmp/work/core2-64-poky-linux/gstreamer1.0-vaapi/1.20.4-r0/temp/run.do_compile.281472,
 line 157
NOTE: recipe gstreamer1.0-vaapi-1.20.4-r0: task do_compile: Failed
ERROR: Task 
(/home/pokybuild/yocto-worker/no-x11/build/meta/recipes-multimedia/gstreamer/gstreamer1.0-vaapi_1.20.4.bb:do_compile)
 failed with exit code '1'


https://autobuilder.yoctoproject.org/typhoon/#builders/40/builds/6280/steps/11/logs/stdio

On 01/12/2022 18:39:42+0100, Markus 

Re: [oe-core][PATCH] mesa: update 22.2.3 -> 22.3.0

2022-12-05 Thread Otavio Salvador
Em seg., 5 de dez. de 2022 às 02:52, Markus Volk 
escreveu:

> Am So, 4. Dez 2022 um 09:23:49 -0800 schrieb Khem Raj  >:
>
> Not sure if this is related but I think its somewhere in egl headers
> provided by mesa.
>
>
> This is related to an update of the egl headers in Mesa, just as you
> thought:
> https://github.com/meta-qt5/meta-qt5/pull/491
>

It looks fine for me. @Martin Jansa  could you
check the PR above and merge if fine with it?

-- 
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

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#174288): 
https://lists.openembedded.org/g/openembedded-core/message/174288
Mute This Topic: https://lists.openembedded.org/mt/95388063/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] GCC Patch Tracking

2022-12-05 Thread Randy MacLeod
Let's keep the discussion on the list to give everyone a chance to know 
what's going on and to contribute.

Oh and please use in-line email instead of attachments when possible.

Also add Khem who is the author of many of these patches. Hopefully he can
help us clean-up the status and advise about which 'Pending' patches are
candidates to send upstream.

On 2022-12-05 08:06, Shinde, Yash wrote:


Hi Richard,

PFA  document for GCC patch analysis. There were about 28 patches in 
GCC sources out of which 3 patches are with the upstream status of 
‘Submitted’ and other 10 are ‘Pending’.  I had analysed the current 
status of these patches by checking them with the GCC patch list and 
archive list and documented the same in the attached document.


Out of the 3 patches with ‘submitted’ as the status,

- The 1st patch is submitted but changes are not reflected in the 
upstream. (hardcoded-paths.patch)


- The 2nd patch is not found in the upstream 
(0014-Don-t-search-host-directory-during-relink-if-inst_pr.patch), was 
not found in patch list or archive list and


- For the 3rd patch 1 hunk taken to upstream and can be marked as 
'backported' and the other hunk is not taken to upstream yet. 
(prefix-map-realpath.patch)


All the patch links are given in the doc.




GCC 12.2 Patch Analysis

hardcoded-paths.patch:Upstream-Status: Submitted 
[https://gcc.gnu.org/pipermail/gcc-patches/2022-August/599882.html]

->Patch is submitted but changes not reflected in upstream





0014-Don-t-search-host-directory-during-relink-if-inst_pr.patch:Upstream-Status: 
Submitted
->not yet submitted to upstream but link provided here- 
http://lists.gnu.org/archive/html/libtool-patches/2011-01/msg00026.html


prefix-map-realpath.patch:Upstream-Status: Submitted 
[https://gcc.gnu.org/pipermail/gcc-patches/2022-August/599885.html]
->1 of the 2 hunks of patch send to upstream and other is not 
included. Link- 
https://www.mail-archive.com/gcc-patches@gcc.gnu.org/msg294480.html


0013-Ensure-target-gcc-headers-can-be-included.patch:Upstream-Status: 
Pending

->not yet submitted to upstream

0005-Use-the-defaults.h-in-B-instead-of-S-and-t-oe-in-B.patch:Upstream-Status: 
Pending

->not yet submitted to upstream

0004-Pass-CXXFLAGS_FOR_BUILD-in-a-couple-of-places-to-avo.patch:Upstream-Status: 
Pending [should be submittable]

->not yet submitted to upstream

0002-gcc-poison-system-directories.patch:Upstream-Status: Pending
->not yet submitted to upstream

0009-gcc-armv4-pass-fix-v4bx-to-linker-to-support-EABI.patch:Upstream-Status: 
Pending

->not yet submitted to upstream

0017-Search-target-sysroot-gcc-version-specific-dirs-with.patch:Upstream-Status: 
Pending

->not yet submitted to upstream

0008-libtool.patch:Upstream-Status: Pending
->not yet submitted to upstream

0020-libgcc_s-Use-alias-for-__cpu_indicator_init-instead-.patch:Upstream-Status: 
Pending

->not yet submitted to upstream

0018-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch:Upstream-Status: 
Pending

->not yet submitted to upstream

0006-cpp-honor-sysroot.patch:Upstream-Status: Pending
->not yet submitted to upstream






For the patches with ‘pending’ as the status, they are pending from 
quite some time. Should we contact the author of the patch or the 
community for these patches?


Please guide me on how to proceed further in GCC patch analysis and 
what are the next steps.



Let's see what Khem has to say about his collection of 'Pending' patches.


Thanks Yash,

../Randy



Regards,
Yash Shinde



--
# Randy MacLeod
# Wind River Linux

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#174287): 
https://lists.openembedded.org/g/openembedded-core/message/174287
Mute This Topic: https://lists.openembedded.org/mt/95468728/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][master][PATCH] externalsrc: fix lookup for .gitmodules

2022-12-05 Thread Ross Burton
On 1 Dec 2022, at 14:04, Peter Marko via lists.openembedded.org 
 wrote:
> 
> Commit 0533edac277080e1bd130c14df0cbac61ba01a0c broke
> bitbake parsing when bitbake is executed from directory with existing 
> .gitmodules
> and the recipe in externalsrc does not have .gitmodules
> 
> The check needs to search for .gitmodules in sources path, not cwd.
> 
> iParsing recipes...ERROR: ExpansionError during parsing 
> ...
> bb.data_smart.ExpansionError: Failure expanding variable 
> do_compile[file-checksums], expression was ${@srctree_hash_files(d)} which 
> triggered exception CalledProcessError: Command '['git', 'config', '--file', 
> '.gitmodules', '--get-regexp', 'path']' returned non-zero exit status 1.

There’s been a series of commits now “fixing” the lookup logic, can you write a 
small test case to exercise this path?

Ross
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#174286): 
https://lists.openembedded.org/g/openembedded-core/message/174286
Mute This Topic: https://lists.openembedded.org/mt/95382667/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][master,langdale][PATCH] libdrm: Remove libdrm-kms package

2022-12-05 Thread Ross Burton
It doesn’t look like this patch was ever sent to the list, at least 
https://lists.openembedded.org/g/openembedded-core/search?p=%2C%2C%2C20%2C0%2C0%2C0=libdrm-kms
 doesn’t show it.

Can you post it please?

Ross

> On 2 Dec 2022, at 18:24, Sandeep Gundlupet Raju via lists.openembedded.org 
>  wrote:
> 
> Hi Alex, Richard,
> 
> Any updates on reviewing this patch?
> 
> Thanks,
> 
> Sandeep
> 
> On 11/3/2022 2:09 PM, Gundlupet Raju, Sandeep wrote:
>> Hello,
>> 
>> Any updates on reviewing this patch?
>> 
>> Thanks,
>> 
>> Sandeep
>> 
>> On 10/27/2022 8:17 PM, Sandeep Gundlupet Raju wrote:
>>> libkms library is deprecated in 2.4.111 version. Hence remove
>>> libdrm-kms package.
>>> 
>>> Signed-off-by: Sandeep Gundlupet Raju 
>>> ---
>>>   meta/recipes-graphics/drm/libdrm_2.4.113.bb | 3 +--
>>>   1 file changed, 1 insertion(+), 2 deletions(-)
>>> 
>>> diff --git a/meta/recipes-graphics/drm/libdrm_2.4.113.bb 
>>> b/meta/recipes-graphics/drm/libdrm_2.4.113.bb
>>> index 959ef68032..613d3430ce 100644
>>> --- a/meta/recipes-graphics/drm/libdrm_2.4.113.bb
>>> +++ b/meta/recipes-graphics/drm/libdrm_2.4.113.bb
>>> @@ -39,7 +39,7 @@ PACKAGECONFIG[manpages] = 
>>> "-Dman-pages=enabled,-Dman-pages=disabled,libxslt-nati
>>> ALLOW_EMPTY:${PN}-drivers = "1"
>>>   PACKAGES =+ "${PN}-tests ${PN}-drivers ${PN}-radeon ${PN}-nouveau 
>>> ${PN}-omap \
>>> - ${PN}-intel ${PN}-exynos ${PN}-kms ${PN}-freedreno 
>>> ${PN}-amdgpu \
>>> + ${PN}-intel ${PN}-exynos ${PN}-freedreno ${PN}-amdgpu \
>>>${PN}-etnaviv"
>>> RRECOMMENDS:${PN}-drivers = "${PN}-radeon ${PN}-nouveau ${PN}-omap 
>>> ${PN}-intel \
>>> @@ -52,7 +52,6 @@ FILES:${PN}-nouveau = "${libdir}/libdrm_nouveau.so.*"
>>>   FILES:${PN}-omap = "${libdir}/libdrm_omap.so.*"
>>>   FILES:${PN}-intel = "${libdir}/libdrm_intel.so.*"
>>>   FILES:${PN}-exynos = "${libdir}/libdrm_exynos.so.*"
>>> -FILES:${PN}-kms = "${libdir}/libkms*.so.*"
>>>   FILES:${PN}-freedreno = "${libdir}/libdrm_freedreno.so.*"
>>>   FILES:${PN}-amdgpu = "${libdir}/libdrm_amdgpu.so.* 
>>> ${datadir}/${PN}/amdgpu.ids"
>>>   FILES:${PN}-etnaviv = "${libdir}/libdrm_etnaviv.so.*"
> 
> 
> 


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



Re: [yocto] [OE-core] [Openembedded-architecture] Y2038 proposal

2022-12-05 Thread Ola x Nilsson

On Mon, Dec 05 2022, Richard Purdie wrote:

> On Mon, 2022-12-05 at 11:00 +0100, Ola x Nilsson wrote:
>> On Wed, Nov 30 2022, Richard Purdie wrote:
>> 
>> > On Wed, 2022-11-30 at 17:56 +0100, Alexandre Belloni wrote:
>> > > On 30/11/2022 16:46:17+, Ross Burton wrote:
>> > > > On 30 Nov 2022, at 14:20, Richard Purdie via
>> > > > lists.yoctoproject.org
>> > > >  wrote:
>> > > > > > > * Could we optionally disable some of the glibc 32 bit function 
>> > > > > > > calls
>> > > > > > > to ensure they're not being used? 
>> > > > > > 
>> > > > > > Could you be more specific here? Would you like to disable some
>> > > > > > syscalls?
>> > > > > 
>> > > > > I'm meaning disabling the 32 bit glibc time functions.
>> > > > 
>> > > > Some time ago I filed
>> > > > https://bugzilla.yoctoproject.org/show_bug.cgi?id=6803 as Debian
>> > > > has a nice sanity check where it warns if non-LFS glibc functions
>> > > > are used.  I imagine the same logic could be used to check for 32-
>> > > > bit time_t use.
>> > 
>> > That sounds interesting and something we should probably look into for
>> > both issues...
>> 
>> I have a working sanity checker that checks for any glibc functions
>> affected by -D_FILE_OFFSET_BITS=64 or -D_TIME_BITS=64.
>> The INSANE_SKIP functionality needs some more polish but I'd be happy to
>> contribute it.
>> 
>> Some libraries use both 32 and 64 bit APIs to glibc and needs exceptions
>> in the checker.
>> 
>> I have not run any world builds with this checker, I've focused on the
>> recipes we actually use so far so we could get to a testable system.  My
>> biggest worry at the moment is rust, I know to little to know if it is
>> an actual problem and how to fix it.
>> 
>> I would like to be part of any "y2038 team" for Yocto.
>
> That does sound useful, perhaps sharing it as an RFC patch might be a
> good place to start? We might be able to run one of the autobuilder
> world targets against it, see how it looks for our core recipes?

That works for me.  I've started preparing a patch for oe-core.

-- 
Ola x Nilsson

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



Re: [yocto] [OE-core] [Openembedded-architecture] Y2038 proposal

2022-12-05 Thread Richard Purdie
On Mon, 2022-12-05 at 11:00 +0100, Ola x Nilsson wrote:
> On Wed, Nov 30 2022, Richard Purdie wrote:
> 
> > On Wed, 2022-11-30 at 17:56 +0100, Alexandre Belloni wrote:
> > > On 30/11/2022 16:46:17+, Ross Burton wrote:
> > > > On 30 Nov 2022, at 14:20, Richard Purdie via
> > > > lists.yoctoproject.org
> > > >  wrote:
> > > > > > > * Could we optionally disable some of the glibc 32 bit function 
> > > > > > > calls
> > > > > > > to ensure they're not being used? 
> > > > > > 
> > > > > > Could you be more specific here? Would you like to disable some
> > > > > > syscalls?
> > > > > 
> > > > > I'm meaning disabling the 32 bit glibc time functions.
> > > > 
> > > > Some time ago I filed
> > > > https://bugzilla.yoctoproject.org/show_bug.cgi?id=6803 as Debian
> > > > has a nice sanity check where it warns if non-LFS glibc functions
> > > > are used.  I imagine the same logic could be used to check for 32-
> > > > bit time_t use.
> > 
> > That sounds interesting and something we should probably look into for
> > both issues...
> 
> I have a working sanity checker that checks for any glibc functions
> affected by -D_FILE_OFFSET_BITS=64 or -D_TIME_BITS=64.
> The INSANE_SKIP functionality needs some more polish but I'd be happy to
> contribute it.
> 
> Some libraries use both 32 and 64 bit APIs to glibc and needs exceptions
> in the checker.
> 
> I have not run any world builds with this checker, I've focused on the
> recipes we actually use so far so we could get to a testable system.  My
> biggest worry at the moment is rust, I know to little to know if it is
> an actual problem and how to fix it.
> 
> I would like to be part of any "y2038 team" for Yocto.

That does sound useful, perhaps sharing it as an RFC patch might be a
good place to start? We might be able to run one of the autobuilder
world targets against it, see how it looks for our core recipes?

Cheers,

Richard




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



Re: [yocto] [OE-core] [Openembedded-architecture] Y2038 proposal

2022-12-05 Thread Ola x Nilsson

On Wed, Nov 30 2022, Richard Purdie wrote:

> On Wed, 2022-11-30 at 17:56 +0100, Alexandre Belloni wrote:
>> On 30/11/2022 16:46:17+, Ross Burton wrote:
>> > On 30 Nov 2022, at 14:20, Richard Purdie via
>> > lists.yoctoproject.org
>> >  wrote:
>> > > > > * Could we optionally disable some of the glibc 32 bit function calls
>> > > > > to ensure they're not being used? 
>> > > > 
>> > > > Could you be more specific here? Would you like to disable some
>> > > > syscalls?
>> > > 
>> > > I'm meaning disabling the 32 bit glibc time functions.
>> > 
>> > Some time ago I filed
>> > https://bugzilla.yoctoproject.org/show_bug.cgi?id=6803 as Debian
>> > has a nice sanity check where it warns if non-LFS glibc functions
>> > are used.  I imagine the same logic could be used to check for 32-
>> > bit time_t use.
>
> That sounds interesting and something we should probably look into for
> both issues...

I have a working sanity checker that checks for any glibc functions
affected by -D_FILE_OFFSET_BITS=64 or -D_TIME_BITS=64.
The INSANE_SKIP functionality needs some more polish but I'd be happy to
contribute it.

Some libraries use both 32 and 64 bit APIs to glibc and needs exceptions
in the checker.

I have not run any world builds with this checker, I've focused on the
recipes we actually use so far so we could get to a testable system.  My
biggest worry at the moment is rust, I know to little to know if it is
an actual problem and how to fix it.

I would like to be part of any "y2038 team" for Yocto.

-- 
Ola x Nilsson

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#174282): 
https://lists.openembedded.org/g/openembedded-core/message/174282
Mute This Topic: https://lists.openembedded.org/mt/95361986/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 1/2] xorg-driver-common: add opengl to REQUIRED_DISTRO_FEATURES

2022-12-05 Thread Alexander Kanavin
Both of these patches seem very wrong. X11 definitely does not require
opengl. I just confirmed it by building xf86-input-synaptics without
opengl in DISTRO_FEATURES.

Can you show how the issue can be reproduced on plain poky? It seems
like your local config or distro or BSP layer does something which
triggers this.

Alex



On Mon, 5 Dec 2022 at 10:51, Yu, Mingli  wrote:
>
> From: Mingli Yu 
>
> xf86-input-synaptics depends on virtual/xserver which needs opengl
> DISTRO_FEATURES, so add opengl distro check also for xf86-input-synaptics.
>
> Signed-off-by: Mingli Yu 
> ---
>  meta/recipes-graphics/xorg-driver/xorg-driver-common.inc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc 
> b/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc
> index 8b3f19426b..3fc54af3e4 100644
> --- a/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc
> +++ b/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc
> @@ -17,7 +17,7 @@ XORGBUILDCLASS ??= "autotools"
>  inherit ${XORGBUILDCLASS} pkgconfig features_check
>
>  # depends on virtual/xserver
> -REQUIRED_DISTRO_FEATURES = "x11"
> +REQUIRED_DISTRO_FEATURES = "x11 opengl"
>
>  # FIXME: We don't want to include the libtool archives (*.la) from modules
>  # directory, as they serve no useful purpose. Upstream should fix Makefile.am
> --
> 2.25.1
>
>
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#174281): 
https://lists.openembedded.org/g/openembedded-core/message/174281
Mute This Topic: https://lists.openembedded.org/mt/95465698/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 2/2] packagegroup-core-x11-xserver: add opengl to REQUIRED_DISTRO_FEATURES

2022-12-05 Thread Yu, Mingli
From: Mingli Yu 

Fixes:
  ERROR: Nothing RPROVIDES 'xf86-video-vesa' (but 
/build/layers/oe-core/meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb
 RDEPENDS on or otherwise requires it)
  xf86-video-vesa was skipped: missing required distro feature 'opengl' (not in 
DISTRO_FEATURES)
  NOTE: Runtime target 'xf86-video-vesa' is unbuildable, removing...
  Missing or unbuildable dependency chain was: ['xf86-video-vesa']
  ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
  Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 
'packagegroup-core-x11-xserver', 'xf86-video-vesa']

Signed-off-by: Mingli Yu 
---
 .../packagegroups/packagegroup-core-x11-base.bb | 2 +-
 .../packagegroups/packagegroup-core-x11-xserver.bb  | 2 +-
 meta/recipes-graphics/packagegroups/packagegroup-core-x11.bb| 2 +-
 meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb   | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-graphics/packagegroups/packagegroup-core-x11-base.bb 
b/meta/recipes-graphics/packagegroups/packagegroup-core-x11-base.bb
index 0185c93354..042b8cb30e 100644
--- a/meta/recipes-graphics/packagegroups/packagegroup-core-x11-base.bb
+++ b/meta/recipes-graphics/packagegroups/packagegroup-core-x11-base.bb
@@ -4,7 +4,7 @@ PR = "r1"
 
 inherit packagegroup features_check
 # rdepends on matchbox-wm
-REQUIRED_DISTRO_FEATURES = "x11"
+REQUIRED_DISTRO_FEATURES = "x11 opengl"
 
 RDEPENDS:${PN} = "\
 packagegroup-core-x11-xserver \
diff --git 
a/meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb 
b/meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb
index 3bb308fbba..32cecfb8a1 100644
--- a/meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb
+++ b/meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb
@@ -9,7 +9,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 inherit packagegroup features_check
 # rdepends on XSERVER
-REQUIRED_DISTRO_FEATURES = "x11"
+REQUIRED_DISTRO_FEATURES = "x11 opengl"
 
 XSERVER ?= "xserver-xorg xf86-video-fbdev"
 XSERVERCODECS ?= ""
diff --git a/meta/recipes-graphics/packagegroups/packagegroup-core-x11.bb 
b/meta/recipes-graphics/packagegroups/packagegroup-core-x11.bb
index 9ca058b38b..341a76a02b 100644
--- a/meta/recipes-graphics/packagegroups/packagegroup-core-x11.bb
+++ b/meta/recipes-graphics/packagegroups/packagegroup-core-x11.bb
@@ -5,7 +5,7 @@
 PR = "r40"
 
 inherit packagegroup features_check
-REQUIRED_DISTRO_FEATURES = "x11"
+REQUIRED_DISTRO_FEATURES = "x11 opengl"
 
 PACKAGES = "${PN} ${PN}-utils"
 
diff --git a/meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb 
b/meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb
index 6866a4d738..aa850ce955 100644
--- a/meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb
+++ b/meta/recipes-sato/packagegroups/packagegroup-core-x11-sato.bb
@@ -10,7 +10,7 @@ PR = "r33"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 inherit packagegroup features_check
-REQUIRED_DISTRO_FEATURES = "x11"
+REQUIRED_DISTRO_FEATURES = "x11 opengl"
 
 PACKAGES = "${PN} ${PN}-base ${PN}-apps ${PN}-games"
 
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#174280): 
https://lists.openembedded.org/g/openembedded-core/message/174280
Mute This Topic: https://lists.openembedded.org/mt/95465699/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 1/2] xorg-driver-common: add opengl to REQUIRED_DISTRO_FEATURES

2022-12-05 Thread Yu, Mingli
From: Mingli Yu 

xf86-input-synaptics depends on virtual/xserver which needs opengl
DISTRO_FEATURES, so add opengl distro check also for xf86-input-synaptics.

Signed-off-by: Mingli Yu 
---
 meta/recipes-graphics/xorg-driver/xorg-driver-common.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc 
b/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc
index 8b3f19426b..3fc54af3e4 100644
--- a/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc
+++ b/meta/recipes-graphics/xorg-driver/xorg-driver-common.inc
@@ -17,7 +17,7 @@ XORGBUILDCLASS ??= "autotools"
 inherit ${XORGBUILDCLASS} pkgconfig features_check
 
 # depends on virtual/xserver
-REQUIRED_DISTRO_FEATURES = "x11"
+REQUIRED_DISTRO_FEATURES = "x11 opengl"
 
 # FIXME: We don't want to include the libtool archives (*.la) from modules
 # directory, as they serve no useful purpose. Upstream should fix Makefile.am
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#174279): 
https://lists.openembedded.org/g/openembedded-core/message/174279
Mute This Topic: https://lists.openembedded.org/mt/95465698/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] gnu-config: upgrade to latest revision

2022-12-05 Thread Alexander Kanavin
On Mon, 5 Dec 2022 at 03:25, wangmy  wrote:
> -SRCREV = "20403c5701973a4cbd7e0b4bbeb627fcd424a0f1"
> +SRCREV = "f992bcc08219edb283d2ab31dd3871a4a0e8220e"
>  PV = "20220927+git${SRCPV}"

The date in PV should also be updated to the current date.

Alex

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