Skip to contentSkip to conversation

fb-test: include UPSTREAM_CHECK_COMMITS to fix UNKNOWN_BROKEN status

PATCH In review Gyorgy Sarvari 2 participants 13 messages Sep 18, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/10 fb-test: include UPSTREAM_CHECK_COMMITS to fix UNKNOWN_BROKEN status

From: Alexandre Truong <[email protected]>

When performing devtool check-upgrade-status, UNKNOWN_BROKEN status appears. On the upstream source repository, releases are not identified by tags. So, UPSTREAM_CHECK_COMMITS is set to 1, to find the latest upstream update.

(cherry picked from commit 16688b0f565badadace8732840f0ff01718cc87c)
---
 meta-oe/recipes-test/fbtest/fb-test_1.1.0.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-test/fbtest/fb-test_1.1.0.bb +3 -0
index 6082ea2574..b19bba0156 100644
@@ -6,6 +6,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a"
 SRCREV = "063ec650960c2d79ac51f5c5f026cb05343a33e2"
 SRC_URI = "git://github.com//ponty/fb-test-app.git;branch=master;protocol=https"
 
+# Upstream repo does not tag
+UPSTREAM_CHECK_COMMITS = "1"
+
 S = "${WORKDIR}/git"
 
 do_install() {
#1 lore raw

PATCH 2/10 pm-qa: fix build with gcc-15.0.1

From: "mark.yang" <[email protected]>

* fix following error:
http://errors.yoctoproject.org/Errors/Details/850314
utils/uevent_reader.c: In function 'main':
utils/uevent_reader.c:33:24: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types]
33 | signal(SIGINT, exit_handler);
| ^~~~~~~~~~~~
| |
| void (*)(void)
In file included from utils/uevent_reader.c:4:
TOPDIR/tmp/work/core2-64-oe-linux/pm-qa/0.5.2/recipe-sysroot/usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
| ~~~~~~~~~~~~~~~^~~~~~~~~
utils/uevent_reader.c:15:6: note: 'exit_handler' declared here
15 | void exit_handler()
| ^~~~~~~~~~~~
TOPDIR/tmp/work/core2-64-oe-linux/pm-qa/0.5.2/recipe-sysroot/usr/include/signal.h:72:16: note: '__sighandler_t' declared here
72 | typedef void (*__sighandler_t) (int);
| ^~~~~~~~~~~~~~
make: *** [<builtin>: utils/uevent_reader] Error 1

Set PATCHTOOL to git because this recipe compiles all .c files including those in .pc/ directory which causes build errors. .pc/0001-fix-build-with-gcc-15-Wincompatible-pointer-types-er.patch/utils/uevent_reader.c:15:6: note: 'exit_handler' declared here
15 | void exit_handler()

(cherry picked from commit a0b88afd798221b0751fc506e6ea224cd6745ec7)
---
 ...cc-15-Wincompatible-pointer-types-er.patch | 69 +++++++++++++++++++
 meta-oe/recipes-test/pm-qa/pm-qa_git.bb       |  7 +-
 2 files changed, 75 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/recipes-test/pm-qa/pm-qa/0001-fix-build-with-gcc-15-Wincompatible-pointer-types-er.patch
meta-oe/recipes-test/pm-qa/pm-qa/0001-fix-build-with-gcc-15-Wincompatible-pointer-types-er.patch new file +69 -0
new file mode 100644
index 0000000000..7efd8dd71a
@@ -0,0 +1,69 @@
+From b6b968d1c8fbba79b33d63874b551225e663435e Mon Sep 17 00:00:00 2001
+From: "mark.yang" <[email protected]>
+Date: Wed, 2 Apr 2025 16:59:00 +0900
+Subject: [PATCH] fix build with gcc-15 -Wincompatible-pointer-types error
+
+See more details: http://errors.yoctoproject.org/Errors/Details/850314
+utils/uevent_reader.c:33:24: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types]
+   33 |         signal(SIGINT, exit_handler);
+      |                        ^~~~~~~~~~~~
+      |                        |
+      |                        void (*)(void)
+In file included from utils/uevent_reader.c:4:
+TOPDIR/tmp/work/core2-64-oe-linux/pm-qa/0.5.2/recipe-sysroot/usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)'
+   88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
+      |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
+utils/uevent_reader.c:15:6: note: 'exit_handler' declared here
+   15 | void exit_handler()
+      |      ^~~~~~~~~~~~
+TOPDIR/tmp/work/core2-64-oe-linux/pm-qa/0.5.2/recipe-sysroot/usr/include/signal.h:72:16: note: '__sighandler_t' declared here
+   72 | typedef void (*__sighandler_t) (int);
+      |                ^~~~~~~~~~~~~~
+
+* Set the parameter of exit_handler() to int.
+  Changed to use exit_handler(0).
+  The parameter is not used inside exit_handler() anyway.
+
+Upstream-Status: Inactive-Upstream [lastrelease: 6 years ago]
+Signed-off-by: mark.yang <[email protected]>
+---
+ utils/uevent_reader.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/utils/uevent_reader.c b/utils/uevent_reader.c
+index afbb426..75d445c 100644
+--- a/utils/uevent_reader.c
++++ b/utils/uevent_reader.c
+@@ -12,7 +12,7 @@
+ 
+ FILE *fp;
+ 
+-void exit_handler()
++void exit_handler(int sig)
+ {
+ 	fprintf(stdout, "exiting from uevent reader...\n");
+ 	fclose(fp);
+@@ -42,20 +42,20 @@ int main(int argc, char *argv[])
+ 	pfd.fd = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT);
+ 	if (pfd.fd == -1) {
+ 		perror("error: socket()");
+-		exit_handler();
++		exit_handler(0);
+ 	}
+ 
+ 	if (bind(pfd.fd, (struct sockaddr *) &nls,
+ 				sizeof(struct sockaddr_nl))) {
+ 		perror("error : bind()");
+-		exit_handler();
++		exit_handler(0);
+ 	}
+ 
+ 	while (-1 != poll(&pfd, 1, -1)) {
+ 		int i, len = recv(pfd.fd, buf, sizeof(buf), MSG_DONTWAIT);
+ 		if (len == -1) {
+ 			perror("error : recv()");
+-			exit_handler();
++			exit_handler(0);
+ 		}
+ 
+ 		i = 0;
meta-oe/recipes-test/pm-qa/pm-qa_git.bb +6 -1
index fc21e6192e..5cb51cb9eb 100644
@@ -10,12 +10,17 @@ BRANCH ?= "master"
 
 SRCREV = "05710ec5032be4c8edafb4109d4d908d31243906"
 
-SRC_URI = "git://git.linaro.org/power/pm-qa.git;protocol=git;branch=${BRANCH}"
+SRC_URI = " \
+    git://git.linaro.org/power/pm-qa.git;protocol=git;branch=${BRANCH} \
+    file://0001-fix-build-with-gcc-15-Wincompatible-pointer-types-er.patch \
+"
 
 S = "${WORKDIR}/git"
 
 CFLAGS += "-pthread"
 
+PATCHTOOL = "git"
+
 do_compile () {
     # Find all the .c files in this project and build them.
     for x in `find . -name "*.c"`
#2 lore raw

Re: [oe] [meta-oe][kirkstone][PATCH 02/10] pm-qa: fix build with gcc-15.0.1

Do we need these fixed for gcc-15 in kirkstone? At least for target recipes which will use gcc from OE not the native from host. I've sent couple fixes for scarthgap and walnascar for components with native in BBCLASSEXTEND (which were failing on my host with gcc-15), but for target it isn't needed, right? Unless you did it just to more easily cherry-pick some later fixes which are needed in kirkstone.

Quoted 144 lines · Gyorgy Sarvari via lists.openembedded.org

From: "mark.yang" <[email protected]>

* fix following error:
http://errors.yoctoproject.org/Errors/Details/850314
utils/uevent_reader.c: In function 'main':
utils/uevent_reader.c:33:24: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types]
33 | signal(SIGINT, exit_handler);
| ^~~~~~~~~~~~
| |
| void (*)(void)
In file included from utils/uevent_reader.c:4:
TOPDIR/tmp/work/core2-64-oe-linux/pm-qa/0.5.2/recipe-sysroot/usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
| ~~~~~~~~~~~~~~~^~~~~~~~~
utils/uevent_reader.c:15:6: note: 'exit_handler' declared here
15 | void exit_handler()
| ^~~~~~~~~~~~
TOPDIR/tmp/work/core2-64-oe-linux/pm-qa/0.5.2/recipe-sysroot/usr/include/signal.h:72:16: note: '__sighandler_t' declared here
72 | typedef void (*__sighandler_t) (int);
| ^~~~~~~~~~~~~~
make: *** [<builtin>: utils/uevent_reader] Error 1

Set PATCHTOOL to git because this recipe compiles all .c files including those in .pc/ directory which causes build errors. .pc/0001-fix-build-with-gcc-15-Wincompatible-pointer-types-er.patch/utils/uevent_reader.c:15:6: note: 'exit_handler' declared here
15 | void exit_handler()

(cherry picked from commit a0b88afd798221b0751fc506e6ea224cd6745ec7)
---
 ...cc-15-Wincompatible-pointer-types-er.patch | 69 +++++++++++++++++++
 meta-oe/recipes-test/pm-qa/pm-qa_git.bb       |  7 +-
 2 files changed, 75 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/recipes-test/pm-qa/pm-qa/0001-fix-build-with-gcc-15-Wincompatible-pointer-types-er.patch
meta-oe/recipes-test/pm-qa/pm-qa/0001-fix-build-with-gcc-15-Wincompatible-pointer-types-er.patch new file +69 -0
new file mode 100644
index 0000000000..7efd8dd71a
@@ -0,0 +1,69 @@
+From b6b968d1c8fbba79b33d63874b551225e663435e Mon Sep 17 00:00:00 2001
+From: "mark.yang" <[email protected]>
+Date: Wed, 2 Apr 2025 16:59:00 +0900
+Subject: [PATCH] fix build with gcc-15 -Wincompatible-pointer-types error
+
+See more details: http://errors.yoctoproject.org/Errors/Details/850314
+utils/uevent_reader.c:33:24: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types]
+   33 |         signal(SIGINT, exit_handler);
+      |                        ^~~~~~~~~~~~
+      |                        |
+      |                        void (*)(void)
+In file included from utils/uevent_reader.c:4:
+TOPDIR/tmp/work/core2-64-oe-linux/pm-qa/0.5.2/recipe-sysroot/usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)'
+   88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
+      |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
+utils/uevent_reader.c:15:6: note: 'exit_handler' declared here
+   15 | void exit_handler()
+      |      ^~~~~~~~~~~~
+TOPDIR/tmp/work/core2-64-oe-linux/pm-qa/0.5.2/recipe-sysroot/usr/include/signal.h:72:16: note: '__sighandler_t' declared here
+   72 | typedef void (*__sighandler_t) (int);
+      |                ^~~~~~~~~~~~~~
+
+* Set the parameter of exit_handler() to int.
+  Changed to use exit_handler(0).
+  The parameter is not used inside exit_handler() anyway.
+
+Upstream-Status: Inactive-Upstream [lastrelease: 6 years ago]
+Signed-off-by: mark.yang <[email protected]>
+---
+ utils/uevent_reader.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/utils/uevent_reader.c b/utils/uevent_reader.c
+index afbb426..75d445c 100644
+--- a/utils/uevent_reader.c
++++ b/utils/uevent_reader.c
+@@ -12,7 +12,7 @@
+
+ FILE *fp;
+
+-void exit_handler()
++void exit_handler(int sig)
+ {
+       fprintf(stdout, "exiting from uevent reader...\n");
+       fclose(fp);
+@@ -42,20 +42,20 @@ int main(int argc, char *argv[])
+       pfd.fd = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT);
+       if (pfd.fd == -1) {
+               perror("error: socket()");
+-              exit_handler();
++              exit_handler(0);
+       }
+
+       if (bind(pfd.fd, (struct sockaddr *) &nls,
+                               sizeof(struct sockaddr_nl))) {
+               perror("error : bind()");
+-              exit_handler();
++              exit_handler(0);
+       }
+
+       while (-1 != poll(&pfd, 1, -1)) {
+               int i, len = recv(pfd.fd, buf, sizeof(buf), MSG_DONTWAIT);
+               if (len == -1) {
+                       perror("error : recv()");
+-                      exit_handler();
++                      exit_handler(0);
+               }
+
+               i = 0;
meta-oe/recipes-test/pm-qa/pm-qa_git.bb +6 -2
index fc21e6192e..5cb51cb9eb 100644
@@ -10,12 +10,17 @@ BRANCH ?= "master"
 
 SRCREV = "05710ec5032be4c8edafb4109d4d908d31243906"
 
-SRC_URI = "git://git.linaro.org/power/pm-qa.git;protocol=git;branch=${BRANCH}"
+SRC_URI = " \
+    git://git.linaro.org/power/pm-qa.git;protocol=git;branch=${BRANCH} \
+    file://0001-fix-build-with-gcc-15-Wincompatible-pointer-types-er.patch \
+"
 
 S = "${WORKDIR}/git"
 
 CFLAGS += "-pthread"
 
+PATCHTOOL = "git"
+
 do_compile () {
     # Find all the .c files in this project and build them.
     for x in `find . -name "*.c"`
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#119561): https://lists.openembedded.org/g/openembedded-devel/message/119561
Mute This Topic: https://lists.openembedded.org/mt/115308032/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

Re: [oe] [meta-oe][kirkstone][PATCH 02/10] pm-qa: fix build with gcc-15.0.1

Quoted 6 lines · Martin Jansa

Do we need these fixed for gcc-15 in kirkstone? At least for target recipes which will use gcc from OE not the native from host. I've sent couple fixes for scarthgap and walnascar for components with native in BBCLASSEXTEND (which were failing on my host with gcc-15), but for target it isn't needed, right? Unless you did it just to more easily cherry-pick some later fixes which are needed in kirkstone.

Thanks for reviewing.
Trying to bring some recipes gradually to be closer to master regarding fixes (within the frame of stable branch rules).
Mostly I'm trying to cherry pick useful commits bugfixes and version bumps that look useful and I can also at least test build.

This commit wasn't picked specifically to make later cherry-picking easier, it just looks like a generic fix, coming from upstream - but I can be convinced about this one if it should stay out of this branch.

Quoted 146 lines
Quoted 143 lines · Gyorgy Sarvari via lists.openembedded.org

From: "mark.yang" <[email protected]>

* fix following error:
http://errors.yoctoproject.org/Errors/Details/850314
utils/uevent_reader.c: In function 'main':
utils/uevent_reader.c:33:24: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types]
33 | signal(SIGINT, exit_handler);
| ^~~~~~~~~~~~
| |
| void (*)(void)
In file included from utils/uevent_reader.c:4:
TOPDIR/tmp/work/core2-64-oe-linux/pm-qa/0.5.2/recipe-sysroot/usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
| ~~~~~~~~~~~~~~~^~~~~~~~~
utils/uevent_reader.c:15:6: note: 'exit_handler' declared here
15 | void exit_handler()
| ^~~~~~~~~~~~
TOPDIR/tmp/work/core2-64-oe-linux/pm-qa/0.5.2/recipe-sysroot/usr/include/signal.h:72:16: note: '__sighandler_t' declared here
72 | typedef void (*__sighandler_t) (int);
| ^~~~~~~~~~~~~~
make: *** [<builtin>: utils/uevent_reader] Error 1

Set PATCHTOOL to git because this recipe compiles all .c files including those in .pc/ directory which causes build errors. .pc/0001-fix-build-with-gcc-15-Wincompatible-pointer-types-er.patch/utils/uevent_reader.c:15:6: note: 'exit_handler' declared here
15 | void exit_handler()

(cherry picked from commit a0b88afd798221b0751fc506e6ea224cd6745ec7)
---
 ...cc-15-Wincompatible-pointer-types-er.patch | 69 +++++++++++++++++++
 meta-oe/recipes-test/pm-qa/pm-qa_git.bb       |  7 +-
 2 files changed, 75 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/recipes-test/pm-qa/pm-qa/0001-fix-build-with-gcc-15-Wincompatible-pointer-types-er.patch
meta-oe/recipes-test/pm-qa/pm-qa/0001-fix-build-with-gcc-15-Wincompatible-pointer-types-er.patch new file +69 -0
new file mode 100644
index 0000000000..7efd8dd71a
@@ -0,0 +1,69 @@
+From b6b968d1c8fbba79b33d63874b551225e663435e Mon Sep 17 00:00:00 2001
+From: "mark.yang" <[email protected]>
+Date: Wed, 2 Apr 2025 16:59:00 +0900
+Subject: [PATCH] fix build with gcc-15 -Wincompatible-pointer-types error
+
+See more details: http://errors.yoctoproject.org/Errors/Details/850314
+utils/uevent_reader.c:33:24: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types]
+   33 |         signal(SIGINT, exit_handler);
+      |                        ^~~~~~~~~~~~
+      |                        |
+      |                        void (*)(void)
+In file included from utils/uevent_reader.c:4:
+TOPDIR/tmp/work/core2-64-oe-linux/pm-qa/0.5.2/recipe-sysroot/usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)'
+   88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
+      |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
+utils/uevent_reader.c:15:6: note: 'exit_handler' declared here
+   15 | void exit_handler()
+      |      ^~~~~~~~~~~~
+TOPDIR/tmp/work/core2-64-oe-linux/pm-qa/0.5.2/recipe-sysroot/usr/include/signal.h:72:16: note: '__sighandler_t' declared here
+   72 | typedef void (*__sighandler_t) (int);
+      |                ^~~~~~~~~~~~~~
+
+* Set the parameter of exit_handler() to int.
+  Changed to use exit_handler(0).
+  The parameter is not used inside exit_handler() anyway.
+
+Upstream-Status: Inactive-Upstream [lastrelease: 6 years ago]
+Signed-off-by: mark.yang <[email protected]>
+---
+ utils/uevent_reader.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/utils/uevent_reader.c b/utils/uevent_reader.c
+index afbb426..75d445c 100644
+--- a/utils/uevent_reader.c
++++ b/utils/uevent_reader.c
+@@ -12,7 +12,7 @@
+
+ FILE *fp;
+
+-void exit_handler()
++void exit_handler(int sig)
+ {
+       fprintf(stdout, "exiting from uevent reader...\n");
+       fclose(fp);
+@@ -42,20 +42,20 @@ int main(int argc, char *argv[])
+       pfd.fd = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_KOBJECT_UEVENT);
+       if (pfd.fd == -1) {
+               perror("error: socket()");
+-              exit_handler();
++              exit_handler(0);
+       }
+
+       if (bind(pfd.fd, (struct sockaddr *) &nls,
+                               sizeof(struct sockaddr_nl))) {
+               perror("error : bind()");
+-              exit_handler();
++              exit_handler(0);
+       }
+
+       while (-1 != poll(&pfd, 1, -1)) {
+               int i, len = recv(pfd.fd, buf, sizeof(buf), MSG_DONTWAIT);
+               if (len == -1) {
+                       perror("error : recv()");
+-                      exit_handler();
++                      exit_handler(0);
+               }
+
+               i = 0;
meta-oe/recipes-test/pm-qa/pm-qa_git.bb +6 -2
index fc21e6192e..5cb51cb9eb 100644
@@ -10,12 +10,17 @@ BRANCH ?= "master"
 
 SRCREV = "05710ec5032be4c8edafb4109d4d908d31243906"
 
-SRC_URI = "git://git.linaro.org/power/pm-qa.git;protocol=git;branch=${BRANCH}"
+SRC_URI = " \
+    git://git.linaro.org/power/pm-qa.git;protocol=git;branch=${BRANCH} \
+    file://0001-fix-build-with-gcc-15-Wincompatible-pointer-types-er.patch \
+"
 
 S = "${WORKDIR}/git"
 
 CFLAGS += "-pthread"
 
+PATCHTOOL = "git"
+
 do_compile () {
     # Find all the .c files in this project and build them.
     for x in `find . -name "*.c"`
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#119561): https://lists.openembedded.org/g/openembedded-devel/message/119561
Mute This Topic: https://lists.openembedded.org/mt/115308032/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw

Re: [oe] [meta-oe][kirkstone][PATCH 02/10] pm-qa: fix build with gcc-15.0.1

Quoted 13 lines · Gyorgy Sarvari
Quoted 6 lines · Martin Jansa

Do we need these fixed for gcc-15 in kirkstone? At least for target recipes which will use gcc from OE not the native from host. I've sent couple fixes for scarthgap and walnascar for components with native in BBCLASSEXTEND (which were failing on my host with gcc-15), but for target it isn't needed, right? Unless you did it just to more easily cherry-pick some later fixes which are needed in kirkstone.

Thanks for reviewing.
Trying to bring some recipes gradually to be closer to master regarding fixes (within the frame of stable branch rules).
Mostly I'm trying to cherry pick useful commits bugfixes and version bumps that look useful and I can also at least test build.

Quoted 3 lines

This commit wasn't picked specifically to make later cherry-picking easier, it just looks like a generic fix, coming from upstream - but I can be convinced about this one if it should stay out of this branch.

Thinking a bit more, actually I agree with you. Kirkstone doesn't need gcc15 class-target fixes, it doesn't make much sense. I will drop this, and the one I picked for avro-c too.

Thanks for noting!

#5 lore raw

PATCH 3/10 pm-qa: update git fetch protocol

In reply to Gyorgy Sarvari

Apparently the git repo in the SRC_URI stopped supporting git protocol. Switch to https to be able to fetch the source successfully.

---
 meta-oe/recipes-test/pm-qa/pm-qa_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-test/pm-qa/pm-qa_git.bb +1 -1
index 5cb51cb9eb..c638356369 100644
@@ -11,7 +11,7 @@ BRANCH ?= "master"
 SRCREV = "05710ec5032be4c8edafb4109d4d908d31243906"
 
 SRC_URI = " \
-    git://git.linaro.org/power/pm-qa.git;protocol=git;branch=${BRANCH} \
+    git://git.linaro.org/power/pm-qa.git;protocol=https;branch=${BRANCH} \
     file://0001-fix-build-with-gcc-15-Wincompatible-pointer-types-er.patch \
 "
 
#6 lore raw

PATCH 4/10 testfloat: update UPSTREAM_CHECK_* variables to fix devtool upgrades

In reply to Gyorgy Sarvari

From: Yoann Congal <[email protected]>

Update UPSTREAM_CHECK_* variables to fix UNKNOWN_BROKEN status with devtool check-upgrade-status.

(cherry picked from commit 21e3280fad93fc906aa9f488ea10adb71f7de86e)
---
 meta-oe/recipes-test/testfloat/testfloat_3e.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-test/testfloat/testfloat_3e.bb +1 -0
index 48f50d8274..cbf08539c0 100644
@@ -20,6 +20,7 @@ SRC_URI[SoftFloat.md5sum] = "7dac954ea4aed0697cbfee800ba4f492"
 SRC_URI[SoftFloat.sha256sum] = "21130ce885d35c1fe73fc1e1bf2244178167e05c6747cad5f450cc991714c746"
 
 S = "${WORKDIR}"
+UPSTREAM_CHECK_URI = "http://www.jhauser.us/arithmetic/TestFloat.html"
 
 do_compile(){
     oe_runmake -C SoftFloat-${PV}/build/Linux-Cross-Compile/
#7 lore raw

PATCH 5/10 augeas: Check for __GLIBC__ to use gnu extention for strerror_r

In reply to Gyorgy Sarvari

From: Khem Raj <[email protected]>

Merge .bb and .inc

(cherry picked from commit aca683fb18c3a62874e6687e36fb4c35a25d0615)
---
 meta-oe/recipes-support/augeas/augeas.inc     | 33 ------------------
 ...-__GLIBC__-to-check-for-GNU-extentio.patch | 34 +++++++++++++++++++
 .../recipes-support/augeas/augeas_1.12.0.bb   | 34 ++++++++++++++++++-
 3 files changed, 67 insertions(+), 34 deletions(-)
 delete mode 100644 meta-oe/recipes-support/augeas/augeas.inc
 create mode 100644 meta-oe/recipes-support/augeas/augeas/0001-src-internal-Use-__GLIBC__-to-check-for-GNU-extentio.patch
meta-oe/recipes-support/augeas/augeas.inc deleted +0 -33
deleted file mode 100644
index d46f3888bd..0000000000
@@ -1,33 +0,0 @@
-SUMMARY = "Augeas configuration API"
-HOMEPAGE = "http://augeas.net/"
-BUGTRACKER = "https://fedorahosted.org/augeas/report/1"
-
-LICENSE = "LGPL-2.1-or-later"
-LIC_FILES_CHKSUM = "file://COPYING;md5=bbb461211a33b134d42ed5ee802b37ff"
-
-SRC_URI = "http://download.augeas.net/${BP}.tar.gz \
-           file://sepbuildfix.patch \
-          "
-
-DEPENDS = "readline libxml2"
-
-inherit autotools pkgconfig
-
-PACKAGES =+ "${PN}-lenses lib${BPN}"
-
-FILES:${PN}-lenses = "${datadir}/augeas/lenses"
-FILES:lib${BPN} = "${libdir}/lib*${SOLIBS}"
-
-RDEPENDS:lib${BPN} += "${PN}-lenses"
-RRECOMMENDS:lib${BPN} += "${PN}"
-
-LEAD_SONAME = "libaugeas.so"
-
-do_install:append() {
-    rm -fr ${D}${datadir}/vim
-}
-
-PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)}"
-PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
-
-EXTRA_AUTORECONF += "-I ${S}/gnulib/m4"
meta-oe/recipes-support/augeas/augeas/0001-src-internal-Use-__GLIBC__-to-check-for-GNU-extentio.patch new file +34 -0
new file mode 100644
index 0000000000..9424be2aa6
@@ -0,0 +1,34 @@
+From e5ccf769c2dc7283b56a597fffdb5dc1558e3ce8 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Sat, 3 Sep 2022 01:23:28 -0700
+Subject: [PATCH] src/internal: Use __GLIBC__ to check for GNU extention
+ implementation
+
+__USE_GNU is defined by _GNU_SOURCE and configure explicitly sets this
+macro and it does have meaning on musl too, where it may have some level
+of GNU compatibility but strerror_r is not one of them. Therefore we
+have to check for libc implementation for this to be sure.
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <[email protected]>
+---
+ src/internal.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/internal.c b/src/internal.c
+index ef83b71..fb326fa 100644
+--- a/src/internal.c
++++ b/src/internal.c
+@@ -431,7 +431,7 @@ char *cleanpath(char *path) {
+ 
+ const char *xstrerror(int errnum, char *buf, size_t len) {
+ #ifdef HAVE_STRERROR_R
+-# ifdef __USE_GNU
++# ifdef __GLIBC__
+     /* Annoying linux specific API contract */
+     return strerror_r(errnum, buf, len);
+ # else
+-- 
+2.37.3
+
meta-oe/recipes-support/augeas/augeas_1.12.0.bb +33 -1
index d32c4691d2..2c6d4cdc88 100644
@@ -1,4 +1,36 @@
-require augeas.inc
+SUMMARY = "Augeas configuration API"
+HOMEPAGE = "http://augeas.net/"
+BUGTRACKER = "https://fedorahosted.org/augeas/report/1"
 
+LICENSE = "LGPL-2.1-or-later"
+LIC_FILES_CHKSUM = "file://COPYING;md5=bbb461211a33b134d42ed5ee802b37ff"
+
+SRC_URI = "http://download.augeas.net/${BP}.tar.gz \
+           file://sepbuildfix.patch \
+           file://0001-src-internal-Use-__GLIBC__-to-check-for-GNU-extentio.patch \
+          "
 SRC_URI[md5sum] = "74f1c7b8550f4e728486091f6b907175"
 SRC_URI[sha256sum] = "321942c9cc32185e2e9cb72d0a70eea106635b50269075aca6714e3ec282cb87"
+
+DEPENDS = "readline libxml2"
+
+inherit autotools pkgconfig
+
+PACKAGES =+ "${PN}-lenses lib${BPN}"
+
+FILES:${PN}-lenses = "${datadir}/augeas/lenses"
+FILES:lib${BPN} = "${libdir}/lib*${SOLIBS}"
+
+RDEPENDS:lib${BPN} += "${PN}-lenses"
+RRECOMMENDS:lib${BPN} += "${PN}"
+
+LEAD_SONAME = "libaugeas.so"
+
+do_install:append() {
+    rm -fr ${D}${datadir}/vim
+}
+
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)}"
+PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
+
+EXTRA_AUTORECONF += "-I ${S}/gnulib/m4"
#8 lore raw

PATCH 6/10 avro-c: upgrade 1.11.0 -> 1.11.1

In reply to Gyorgy Sarvari

From: wangmy <[email protected]>

(cherry picked from commit d6a30ef441adfb4e92dbc689266b61192c4add3b)
---
 .../recipes-support/avro/{avro-c_1.11.0.bb => avro-c_1.11.1.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-support/avro/{avro-c_1.11.0.bb => avro-c_1.11.1.bb} (88%)
meta-oe/recipes-support/avro/avro-c_1.11.1.bb renamed from meta-oe/recipes-support/avro/avro-c_1.11.0.bb +1 -1
similarity index 88%
rename from meta-oe/recipes-support/avro/avro-c_1.11.0.bb
rename to meta-oe/recipes-support/avro/avro-c_1.11.1.bb
index 8558f75c50..bb0bd7d752 100644
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=6d502b41f76179fc84e536236f359cae"
 DEPENDS = "jansson zlib xz"
 
 BRANCH = "branch-1.11"
-SRCREV = "4e1fefca493029ace961b7ef8889a3722458565a"
+SRCREV = "3a9e5a789b5165e0c8c4da799c387fdf84bfb75e"
 SRC_URI = "git://github.com/apache/avro;branch=${BRANCH};protocol=https \
           "
 
#9 lore raw

PATCH 7/10 avro-c: upgrade 1.11.1 -> 1.11.2

In reply to Gyorgy Sarvari

From: Wang Mingyu <[email protected]>

(cherry picked from commit 52f35e40106858842c23c31169a98c8862c66e6d)
---
 .../recipes-support/avro/{avro-c_1.11.1.bb => avro-c_1.11.2.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-support/avro/{avro-c_1.11.1.bb => avro-c_1.11.2.bb} (88%)
meta-oe/recipes-support/avro/avro-c_1.11.2.bb renamed from meta-oe/recipes-support/avro/avro-c_1.11.1.bb +1 -1
similarity index 88%
rename from meta-oe/recipes-support/avro/avro-c_1.11.1.bb
rename to meta-oe/recipes-support/avro/avro-c_1.11.2.bb
index bb0bd7d752..9b6a52e2e2 100644
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=6d502b41f76179fc84e536236f359cae"
 DEPENDS = "jansson zlib xz"
 
 BRANCH = "branch-1.11"
-SRCREV = "3a9e5a789b5165e0c8c4da799c387fdf84bfb75e"
+SRCREV = "44d1c4f221ccc4571a4b4b9edb023ed1e89354b7"
 SRC_URI = "git://github.com/apache/avro;branch=${BRANCH};protocol=https \
           "
 
#10 lore raw

PATCH 8/10 avro-c: upgrade 1.11.2 -> 1.11.3

In reply to Gyorgy Sarvari

From: alperak <[email protected]>

Changelog:

* This is a minor release, specifically addressing known issues with the 1.11.2 release, but also contains version bumps and doc fixes.

(cherry picked from commit e1552304bf3cd1abc403dd8cd1b4ed5cd646c64b)
---
 .../recipes-support/avro/{avro-c_1.11.2.bb => avro-c_1.11.3.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-support/avro/{avro-c_1.11.2.bb => avro-c_1.11.3.bb} (88%)
meta-oe/recipes-support/avro/avro-c_1.11.3.bb renamed from meta-oe/recipes-support/avro/avro-c_1.11.2.bb +1 -1
similarity index 88%
rename from meta-oe/recipes-support/avro/avro-c_1.11.2.bb
rename to meta-oe/recipes-support/avro/avro-c_1.11.3.bb
index 9b6a52e2e2..14a3cbe462 100644
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=6d502b41f76179fc84e536236f359cae"
 DEPENDS = "jansson zlib xz"
 
 BRANCH = "branch-1.11"
-SRCREV = "44d1c4f221ccc4571a4b4b9edb023ed1e89354b7"
+SRCREV = "35ff8b997738e4d983871902d47bfb67b3250734"
 SRC_URI = "git://github.com/apache/avro;branch=${BRANCH};protocol=https \
           "
 
#11 lore raw

PATCH 9/10 avro-c: fix error with gcc-15

In reply to Gyorgy Sarvari

From: "mark.yang" <[email protected]>

* backport fix from:
https://github.com/apache/avro/pull/2795
https://github.com/apache/avro/pull/2798
to fix:
http://errors.yoctoproject.org/Errors/Details/851184/

  442 |         st_foreach(table, HASH_FUNCTION_CAST delete_never, never);
      |                                              ^~~~~~~~~~~~
      |                                              |
      |                                              int (*)(st_data_t,  st_data_t,  st_data_t) {aka int (*)(long unsigned int,  long unsigned int,  long unsigned int)}

TOPDIR/tmp/work/core2-64-oe-linux/avro-c/1.11.3/git/lang/c/src/st.c:442:46: warning: passing argument 2 of 'st_foreach' from incompatible pointer type [-Wincompatible-pointer-types]

(cherry picked from commit b63fe6f437407261788e749294659d49cd040e48)
---
 ...-Fix-typos-in-docs-and-examples-2795.patch |  59 +++
 ...O-3960-C-Fix-st-ANYARGS-warning-2798.patch | 386 ++++++++++++++++++
 meta-oe/recipes-support/avro/avro-c_1.11.3.bb |  10 +-
 3 files changed, 451 insertions(+), 4 deletions(-)
 create mode 100644 meta-oe/recipes-support/avro/avro-c/0001-AVRO-3957-C-Fix-typos-in-docs-and-examples-2795.patch
 create mode 100644 meta-oe/recipes-support/avro/avro-c/0001-AVRO-3960-C-Fix-st-ANYARGS-warning-2798.patch
meta-oe/recipes-support/avro/avro-c/0001-AVRO-3957-C-Fix-typos-in-docs-and-examples-2795.patch new file +59 -0
new file mode 100644
index 0000000000..bfe2ea6367
@@ -0,0 +1,59 @@
+From 52f051dbeefad0b7e73187becad6c33747b047d3 Mon Sep 17 00:00:00 2001
+From: Sahil Kang <[email protected]>
+Date: Mon, 11 Mar 2024 03:01:21 -0700
+Subject: [PATCH] AVRO-3957: [C] Fix typos in docs and examples (#2795)
+
+* AVRO-3957: [C] Fix misformatted type in docs
+
+Signed-off-by: Sahil Kang <[email protected]>
+Signed-off-by: Sahil Kang <[email protected]>
+
+* AVRO-3957: [C] Fix type in quickstop example
+
+This removes the following warning:
+
+  avro/lang/c/examples/quickstop.c:123:40: warning: incompatible pointer types passing 'int32_t **' (aka 'int **') to parameter of type
+        'const char **' [-Wincompatible-pointer-types]
+                          avro_value_get_string(&first_value, &p, &size);
+
+Signed-off-by: Sahil Kang <[email protected]>
+Signed-off-by: Sahil Kang <[email protected]>
+
+---------
+
+Signed-off-by: Sahil Kang <[email protected]>
+Signed-off-by: Sahil Kang <[email protected]>
+
+Upstream-Status: Backport [52f051dbee AVRO-3957: [C] Fix typos in docs and examples (#2795)]
+Signed-off-by: mark.yang <[email protected]>
+---
+ lang/c/docs/index.txt       | 2 +-
+ lang/c/examples/quickstop.c | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/lang/c/docs/index.txt b/lang/c/docs/index.txt
+index a439a0526..df16f9d96 100644
+--- a/lang/c/docs/index.txt
++++ b/lang/c/docs/index.txt
+@@ -178,7 +178,7 @@ different versions of the Avro library.  That means that it's really
+ only safe to use these hash values internally within the context of a
+ single execution of a single application.
+ 
+-The +reset+ method “clears out” an +avro_value_t instance, making sure
++The +reset+ method “clears out” an +avro_value_t+ instance, making sure
+ that it's ready to accept the contents of a new value.  For scalars,
+ this is usually a no-op, since the new value will just overwrite the old
+ one.  For arrays and maps, this removes any existing elements from the
+diff --git a/lang/c/examples/quickstop.c b/lang/c/examples/quickstop.c
+index ff9e97005..b26dad10c 100644
+--- a/lang/c/examples/quickstop.c
++++ b/lang/c/examples/quickstop.c
+@@ -107,7 +107,7 @@ int print_person(avro_file_reader_t db, avro_schema_t reader_schema)
+ 	if (rval == 0) {
+ 		int64_t id;
+ 		int32_t age;
+-		int32_t *p;
++		const char *p;
+ 		size_t size;
+ 		avro_value_t id_value;
+ 		avro_value_t first_value;
meta-oe/recipes-support/avro/avro-c/0001-AVRO-3960-C-Fix-st-ANYARGS-warning-2798.patch new file +386 -0

386 lines not on this page · raw message

meta-oe/recipes-support/avro/avro-c_1.11.3.bb +6 -4
index 14a3cbe462..dda7f2972a 100644
@@ -8,10 +8,12 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=6d502b41f76179fc84e536236f359cae"
 DEPENDS = "jansson zlib xz"
 
 BRANCH = "branch-1.11"
-SRCREV = "35ff8b997738e4d983871902d47bfb67b3250734"
-SRC_URI = "git://github.com/apache/avro;branch=${BRANCH};protocol=https \
-          "
-
+SRCREV = "579a36762293fa4c9f2831e27e7af7713a0838a0"
+SRC_URI = " \
+    git://github.com/apache/avro;branch=${BRANCH};protocol=https \
+    file://0001-AVRO-3960-C-Fix-st-ANYARGS-warning-2798.patch;patchdir=../.. \
+    file://0001-AVRO-3957-C-Fix-typos-in-docs-and-examples-2795.patch;patchdir=../.. \
+"
 S = "${WORKDIR}/git/lang/c"
 
 inherit cmake pkgconfig
#12 lore raw

PATCH 10/10 bdwgc: Fix typo in EXTRA_OECONF and remove unneeded extra CFLAGS

In reply to Gyorgy Sarvari

From: Ivan Maidanski <[email protected]>

* fix typo in "--enable-cplusplus"
* "-D_GNU_SOURCE -DNO_GETCONTEXT -DSEARCH_FOR_DATA_START -DUSE_MMAP -DHAVE_DL_ITERATE_PHDR" not needed any more

(cherry picked from commit d7d0d550d0874a5002e63a23804811a766f7a07b)
---
 meta-oe/recipes-support/bdwgc/bdwgc_8.2.0.bb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
meta-oe/recipes-support/bdwgc/bdwgc_8.2.0.bb +1 -3
index 7ee63b1332..f065246363 100644
@@ -30,9 +30,7 @@ S = "${WORKDIR}/git"
 
 inherit autotools pkgconfig
 
-EXTRA_OECONF += "--enable-cpluscplus"
-
-CFLAGS:append:libc-musl = " -D_GNU_SOURCE -DNO_GETCONTEXT -DSEARCH_FOR_DATA_START -DUSE_MMAP -DHAVE_DL_ITERATE_PHDR"
+EXTRA_OECONF += "--enable-cplusplus"
 
 FILES:${PN}-doc = "${datadir}"