public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] llvm: extend llvm-config reproducivility fix to all classes
@ 2024-07-16  1:36 Denys Dmytriyenko
  2024-07-16  7:12 ` [OE-core] " Richard Purdie
  0 siblings, 1 reply; 4+ messages in thread
From: Denys Dmytriyenko @ 2024-07-16  1:36 UTC (permalink / raw)
  To: openembedded-core; +Cc: Denys Dmytriyenko

It's not limited to "target", but also happens to e.g. nativesdk:

ERROR: nativesdk-llvm-18.1.8-r0 do_package_qa: QA Issue: File /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/usr/bin/llvm-config in package nativesdk-llvm contains reference to TMPDIR [buildpaths]

Signed-off-by: Denys Dmytriyenko <denis@denix.org>
---
 meta/recipes-devtools/llvm/llvm_18.1.8.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/llvm/llvm_18.1.8.bb b/meta/recipes-devtools/llvm/llvm_18.1.8.bb
index 8dad952923..6afca9c7d7 100644
--- a/meta/recipes-devtools/llvm/llvm_18.1.8.bb
+++ b/meta/recipes-devtools/llvm/llvm_18.1.8.bb
@@ -95,7 +95,7 @@ EXTRA_OECMAKE:append:class-nativesdk = "\
                  "
 
 # patch out build host paths for reproducibility
-do_compile:prepend:class-target() {
+do_compile:prepend() {
         sed -i -e "s,${WORKDIR},,g" ${B}/tools/llvm-config/BuildVariables.inc
 }
 
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [OE-core] [PATCH] llvm: extend llvm-config reproducivility fix to all classes
  2024-07-16  1:36 [PATCH] llvm: extend llvm-config reproducivility fix to all classes Denys Dmytriyenko
@ 2024-07-16  7:12 ` Richard Purdie
  2024-07-16 22:11   ` Denys Dmytriyenko
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2024-07-16  7:12 UTC (permalink / raw)
  To: denis, openembedded-core

On Mon, 2024-07-15 at 21:36 -0400, Denys Dmytriyenko via
lists.openembedded.org wrote:
> It's not limited to "target", but also happens to e.g. nativesdk:
> 
> ERROR: nativesdk-llvm-18.1.8-r0 do_package_qa: QA Issue: File
> /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-
> linux/usr/bin/llvm-config in package nativesdk-llvm contains
> reference to TMPDIR [buildpaths]
> 
> Signed-off-by: Denys Dmytriyenko <denis@denix.org>
> ---
>  meta/recipes-devtools/llvm/llvm_18.1.8.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-devtools/llvm/llvm_18.1.8.bb
> b/meta/recipes-devtools/llvm/llvm_18.1.8.bb
> index 8dad952923..6afca9c7d7 100644
> --- a/meta/recipes-devtools/llvm/llvm_18.1.8.bb
> +++ b/meta/recipes-devtools/llvm/llvm_18.1.8.bb
> @@ -95,7 +95,7 @@ EXTRA_OECMAKE:append:class-nativesdk = "\
>                   "
>  
>  # patch out build host paths for reproducibility
> -do_compile:prepend:class-target() {
> +do_compile:prepend() {
>          sed -i -e "s,${WORKDIR},,g" ${B}/tools/llvm-
> config/BuildVariables.inc
>  }
>  


Do we need those buildpaths in llvm-native?

Cheers,

Richard


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OE-core] [PATCH] llvm: extend llvm-config reproducivility fix to all classes
  2024-07-16  7:12 ` [OE-core] " Richard Purdie
@ 2024-07-16 22:11   ` Denys Dmytriyenko
  2024-07-16 22:20     ` Richard Purdie
  0 siblings, 1 reply; 4+ messages in thread
From: Denys Dmytriyenko @ 2024-07-16 22:11 UTC (permalink / raw)
  To: Richard Purdie; +Cc: openembedded-core

On Tue, Jul 16, 2024 at 08:12:25AM +0100, Richard Purdie wrote:
> On Mon, 2024-07-15 at 21:36 -0400, Denys Dmytriyenko via
> lists.openembedded.org wrote:
> > It's not limited to "target", but also happens to e.g. nativesdk:
> > 
> > ERROR: nativesdk-llvm-18.1.8-r0 do_package_qa: QA Issue: File
> > /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-
> > linux/usr/bin/llvm-config in package nativesdk-llvm contains
> > reference to TMPDIR [buildpaths]
> > 
> > Signed-off-by: Denys Dmytriyenko <denis@denix.org>
> > ---
> >  meta/recipes-devtools/llvm/llvm_18.1.8.bb | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/meta/recipes-devtools/llvm/llvm_18.1.8.bb
> > b/meta/recipes-devtools/llvm/llvm_18.1.8.bb
> > index 8dad952923..6afca9c7d7 100644
> > --- a/meta/recipes-devtools/llvm/llvm_18.1.8.bb
> > +++ b/meta/recipes-devtools/llvm/llvm_18.1.8.bb
> > @@ -95,7 +95,7 @@ EXTRA_OECMAKE:append:class-nativesdk = "\
> >                   "
> >  
> >  # patch out build host paths for reproducibility
> > -do_compile:prepend:class-target() {
> > +do_compile:prepend() {
> >          sed -i -e "s,${WORKDIR},,g" ${B}/tools/llvm-
> > config/BuildVariables.inc
> >  }
> >  
> 
> 
> Do we need those buildpaths in llvm-native?

I'm not really sure, but I can spin up a v2.

-- 
Denys


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OE-core] [PATCH] llvm: extend llvm-config reproducivility fix to all classes
  2024-07-16 22:11   ` Denys Dmytriyenko
@ 2024-07-16 22:20     ` Richard Purdie
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2024-07-16 22:20 UTC (permalink / raw)
  To: denis; +Cc: openembedded-core

On Tue, 2024-07-16 at 18:11 -0400, Denys Dmytriyenko via
lists.openembedded.org wrote:
> On Tue, Jul 16, 2024 at 08:12:25AM +0100, Richard Purdie wrote:
> > On Mon, 2024-07-15 at 21:36 -0400, Denys Dmytriyenko via
> > lists.openembedded.org wrote:
> > > It's not limited to "target", but also happens to e.g. nativesdk:
> > > 
> > > ERROR: nativesdk-llvm-18.1.8-r0 do_package_qa: QA Issue: File
> > > /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-
> > > linux/usr/bin/llvm-config in package nativesdk-llvm contains
> > > reference to TMPDIR [buildpaths]
> > > 
> > > Signed-off-by: Denys Dmytriyenko <denis@denix.org>
> > > ---
> > >  meta/recipes-devtools/llvm/llvm_18.1.8.bb | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > 
> > > diff --git a/meta/recipes-devtools/llvm/llvm_18.1.8.bb
> > > b/meta/recipes-devtools/llvm/llvm_18.1.8.bb
> > > index 8dad952923..6afca9c7d7 100644
> > > --- a/meta/recipes-devtools/llvm/llvm_18.1.8.bb
> > > +++ b/meta/recipes-devtools/llvm/llvm_18.1.8.bb
> > > @@ -95,7 +95,7 @@ EXTRA_OECMAKE:append:class-nativesdk = "\
> > >                   "
> > >  
> > >  # patch out build host paths for reproducibility
> > > -do_compile:prepend:class-target() {
> > > +do_compile:prepend() {
> > >          sed -i -e "s,${WORKDIR},,g" ${B}/tools/llvm-
> > > config/BuildVariables.inc
> > >  }
> > >  
> > 
> > 
> > Do we need those buildpaths in llvm-native?
> 
> I'm not really sure, but I can spin up a v2.

I'm just not sure if that is going to break something or not in the
native case. I worry a bit that it might :(

Cheers,

Richard


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-07-16 22:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-16  1:36 [PATCH] llvm: extend llvm-config reproducivility fix to all classes Denys Dmytriyenko
2024-07-16  7:12 ` [OE-core] " Richard Purdie
2024-07-16 22:11   ` Denys Dmytriyenko
2024-07-16 22:20     ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox