Skip to contentSkip to conversation

glibc-locale: work around host-user-contaminated QA failure

PATCH In review Muhammad Hamza 3 participants 4 messages Jun 16, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 glibc-locale: work around host-user-contaminated QA failure

Work around long standing periodic host-user-contaminated QA failure by explicitly correcting the ownership.

See glibc-locale: Rewrite do_install using install utility instead of cp on the oe-core mailing list for discussion. This should be dropped when a real fix is implemented.

Explicitly disable host-user-contaminated to further work around the pseudo bug. With pseudo acting up, even if the ownership is correct, it may well think it is not, so just sidestep the issue until upstream fixes the root cause.

---
 meta/recipes-core/glibc/glibc-locale.inc | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
meta/recipes-core/glibc/glibc-locale.inc +17 -0
index b8de7d3192..34c178268b 100644
@@ -69,6 +69,23 @@ FILES:localedef = "${bindir}/localedef"
 
 LOCALETREESRC = "${COMPONENTS_DIR}/${PACKAGE_ARCH}/glibc-stash-locale"
 
+# Work around long standing periodic host-user-contaminated QA failure by
+# explicitly correcting the ownership.
+#
+# See `glibc-locale: Rewrite do_install using install utility instead of cp`
+# on the oe-core mailing list for discussion. This should be dropped when
+# a real fix is implemented.
+
+do_prep_locale_tree_append () {
+	chown -R root:root $treedir
+}
+
+# Explicitly disable host-user-contaminated to further work around the
+# pseudo bug. With pseudo acting up, even if the ownership is correct,
+# it may well think it is not, so just sidestep the issue until upstream
+# fixes the root cause.
+ERROR_QA_remove = "host-user-contaminated"
+
 copy_locale_files() {
 	local dir=$1 mode=$2
 
Signature · 1 line
2.25.1
#1 lore raw
Quoted 38 lines · Muhammad Hamza

Work around long standing periodic host-user-contaminated QA failure by explicitly correcting the ownership.

See glibc-locale: Rewrite do_install using install utility instead of cp on the oe-core mailing list for discussion. This should be dropped when a real fix is implemented.

Explicitly disable host-user-contaminated to further work around the pseudo bug. With pseudo acting up, even if the ownership is correct, it may well think it is not, so just sidestep the issue until upstream fixes the root cause.

---
  meta/recipes-core/glibc/glibc-locale.inc | 17 +++++++++++++++++
  1 file changed, 17 insertions(+)
meta/recipes-core/glibc/glibc-locale.inc +10 -0
index b8de7d3192..34c178268b 100644
@@ -69,6 +69,23 @@ FILES:localedef = "${bindir}/localedef"
 
  LOCALETREESRC = "${COMPONENTS_DIR}/${PACKAGE_ARCH}/glibc-stash-locale"
 
+# Work around long standing periodic host-user-contaminated QA failure by
+# explicitly correcting the ownership.
+#
+# See `glibc-locale: Rewrite do_install using install utility instead of cp`
+# on the oe-core mailing list for discussion. This should be dropped when
+# a real fix is implemented.
+
+do_prep_locale_tree_append () {
+	chown -R root:root $treedir
+}

meta/recipes-core/glibc/glibc-locale.inc FILES:localedef = "${bindir}/localedef" · line 91

Quoted 10 lines
meta/recipes-core/glibc/glibc-locale.inc +7 -0
+
+# Explicitly disable host-user-contaminated to further work around the
+# pseudo bug. With pseudo acting up, even if the ownership is correct,
+# it may well think it is not, so just sidestep the issue until upstream
+# fixes the root cause.
+ERROR_QA_remove = "host-user-contaminated"
+
  copy_locale_files() {
  	local dir=$1 mode=$2
 

Given the append/remove override syntax used here, I guess this patch is aimed at an older Yocto release, and shouldn't be necessary for master ?

Jacob

#2 lore raw
In reply to Muhammad Hamza
Quoted 36 lines · Muhammad Hamza

Work around long standing periodic host-user-contaminated QA failure by explicitly correcting the ownership.

See glibc-locale: Rewrite do_install using install utility instead of cp on the oe-core mailing list for discussion. This should be dropped when a real fix is implemented.

Explicitly disable host-user-contaminated to further work around the pseudo bug. With pseudo acting up, even if the ownership is correct, it may well think it is not, so just sidestep the issue until upstream fixes the root cause.

---
 meta/recipes-core/glibc/glibc-locale.inc | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
meta/recipes-core/glibc/glibc-locale.inc +9 -0
index b8de7d3192..34c178268b 100644
@@ -69,6 +69,23 @@ FILES:localedef = "${bindir}/localedef"
 
 LOCALETREESRC = "${COMPONENTS_DIR}/${PACKAGE_ARCH}/glibc-stash-locale"
 
+# Work around long standing periodic host-user-contaminated QA failure by
+# explicitly correcting the ownership.
+#
+# See `glibc-locale: Rewrite do_install using install utility instead of cp`
+# on the oe-core mailing list for discussion. This should be dropped when
+# a real fix is implemented.
+
+do_prep_locale_tree_append () {
+	chown -R root:root $treedir

meta/recipes-core/glibc/glibc-locale.inc FILES:localedef = "${bindir}/localedef" · line 90

Quoted 10 lines
meta/recipes-core/glibc/glibc-locale.inc +8 -0
+}
+
+# Explicitly disable host-user-contaminated to further work around the
+# pseudo bug. With pseudo acting up, even if the ownership is correct,
+# it may well think it is not, so just sidestep the issue until upstream
+# fixes the root cause.
+ERROR_QA_remove = "host-user-contaminated"
+
 copy_locale_files() {
 	local dir=$1 mode=$2

At a quick search I couldn't find the email you reference so it probably isn't recent. As Jacob mentions, this syntax is invalid for master.

Was this not fixed properly by something like:

https://git.yoctoproject.org/poky/commit/?id=2e75c084f2cfe7617de3b9a4b006caa3fee687a6

?

We're definitely not taking this without more details on what is going on and a correct patch as this looks like a workaround.

Cheers,

Richard

#3 lore raw

Hello, my bad, yes these changes are on some older branch and don't need upstream.

Thanks,
Hamza

-----Original Message-----
From: Richard Purdie <[email protected]>
Sent: Thursday, June 16, 2022 3:23 PM
To: Hamza, Muhammad <[email protected]>; [email protected]
Cc: Larson, Chris <[email protected]>
Subject: Re: [OE-core] [PATCH v1] glibc-locale: work around host-user-contaminated QA failure

Quoted 37 lines · Muhammad Hamza

Work around long standing periodic host-user-contaminated QA failure by explicitly correcting the ownership.

See glibc-locale: Rewrite do_install using install utility instead of cp on the oe-core mailing list for discussion. This should be dropped when a real fix is implemented.

Explicitly disable host-user-contaminated to further work around the pseudo bug. With pseudo acting up, even if the ownership is correct, it may well think it is not, so just sidestep the issue until upstream fixes the root cause.

---
 meta/recipes-core/glibc/glibc-locale.inc | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
meta/recipes-core/glibc/glibc-locale.inc +9 -0
index b8de7d3192..34c178268b 100644
@@ -69,6 +69,23 @@ FILES:localedef = "${bindir}/localedef"
 
 LOCALETREESRC = "${COMPONENTS_DIR}/${PACKAGE_ARCH}/glibc-stash-locale"
 
+# Work around long standing periodic host-user-contaminated QA 
+failure by # explicitly correcting the ownership.
+#
+# See `glibc-locale: Rewrite do_install using install utility instead 
+of cp` # on the oe-core mailing list for discussion. This should be 
+dropped when # a real fix is implemented.
+
+do_prep_locale_tree_append () {
+	chown -R root:root $treedir

meta/recipes-core/glibc/glibc-locale.inc FILES:localedef = "${bindir}/localedef" · line 90

Quoted 10 lines
meta/recipes-core/glibc/glibc-locale.inc +8 -0
+}
+
+# Explicitly disable host-user-contaminated to further work around 
+the # pseudo bug. With pseudo acting up, even if the ownership is 
+correct, # it may well think it is not, so just sidestep the issue 
+until upstream # fixes the root cause.
+ERROR_QA_remove = "host-user-contaminated"
+
 copy_locale_files() {
 	local dir=$1 mode=$2

At a quick search I couldn't find the email you reference so it probably isn't recent. As Jacob mentions, this syntax is invalid for master.

Was this not fixed properly by something like:

https://git.yoctoproject.org/poky/commit/?id=2e75c084f2cfe7617de3b9a4b006caa3fee687a6

?

We're definitely not taking this without more details on what is going on and a correct patch as this looks like a workaround.

Cheers,

Richard