Skip to contentSkip to conversation

time64.inc: Exclude pseudo from the 32bit-time warnings

PATCH New Richard Purdie 1 participant 2 messages Oct 23, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 time64.inc: Exclude pseudo from the 32bit-time warnings

pseudo has to wrap all glibc calls including the 32 bit ones so this warning is a false positive.

---
 meta/conf/distro/include/time64.inc | 4 ++++
 1 file changed, 4 insertions(+)
meta/conf/distro/include/time64.inc +4 -0
index f939f9b7c74..2200144719b 100644
@@ -39,6 +39,10 @@ INSANE_SKIP:append:pn-glibc-y2038-tests = " 32bit-time"
 # /usr/lib/strace/ptest/tests/ioctl_termios uses 32-bit api 'ioctl'
 INSANE_SKIP:append:pn-strace = " 32bit-time"
 
+# Pseudo has to wrap all glibc calls including the 32 bit ones even
+# if it doesn't use them itself
+INSANE_SKIP:append:pseudo = " 32bit-time"
+
 # Additionally cargo_common class (i.e. everything written in rust)
 # has the same INSANE_SKIP setting.
 # Please check the comment in meta/classes-recipe/cargo_common.bbclass
#1 lore raw

PATCH 2/2 insane: Ensure package_qa tasks run in builds when expected

Currently, if you "bitbake XXX" and XXX depends on something else, the do_package_qa teask for that something may not run. Users would generally expect it to have though.

Add in the missing dependency to ensure that do_build does trigger the right package_qa tasks.

---
 meta/classes-global/insane.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes-global/insane.bbclass +2 -0
index d97f21f8fdd..47c8b9be10a 100644
@@ -1192,6 +1192,8 @@ do_package_qa[vardepsexclude] = "BB_TASKDEPDATA"
 do_package_qa[rdeptask] = "do_packagedata"
 addtask do_package_qa after do_packagedata do_package before do_build
 
+do_build[rdeptask] += "do_package_qa"
+
 # Add the package specific INSANE_SKIPs to the sstate dependencies
 python() {
     pkgs = (d.getVar('PACKAGES') or '').split()