Skip to contentSkip to conversation

fftw: Check for TOOLCHAIN_OPTIONS to be non-empty before sed ops

PATCH In review Khem Raj 2 participants 2 messages May 23, 2023 – Jun 7, 2023

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 fftw: Check for TOOLCHAIN_OPTIONS to be non-empty before sed ops

Ensures that we do not apply empty sed expression which might happen when building native recipe

Cc jan vermaete <[email protected]>
---
 meta-oe/recipes-support/fftw/fftw_3.3.10.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/fftw/fftw_3.3.10.bb +1 -1
index 1fead4d029..33e8279880 100644
@@ -55,7 +55,7 @@ do_configure() {
 do_compile() {
     for lib in fftw fftwl fftwf; do
         cd ${WORKDIR}/build-$lib
-        sed -i -e 's|${TOOLCHAIN_OPTIONS}||g' config.h
+        test -n "${TOOLCHAIN_OPTIONS}" && sed -i -e 's|${TOOLCHAIN_OPTIONS}||g' config.h
         autotools_do_compile
     done
 }
Signature · 1 line
2.40.1
#1 lore raw

Please backport this to mickledore ASAP.

2023. 05. 23. 6:51 keltezéssel, Khem Raj írta:

Quoted 31 lines

Ensures that we do not apply empty sed expression which might happen when building native recipe

Cc jan vermaete <[email protected]>
---
  meta-oe/recipes-support/fftw/fftw_3.3.10.bb | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/fftw/fftw_3.3.10.bb +1 -2
index 1fead4d029..33e8279880 100644
@@ -55,7 +55,7 @@ do_configure() {
  do_compile() {
      for lib in fftw fftwl fftwf; do
          cd ${WORKDIR}/build-$lib
-        sed -i -e 's|${TOOLCHAIN_OPTIONS}||g' config.h
+        test -n "${TOOLCHAIN_OPTIONS}" && sed -i -e 's|${TOOLCHAIN_OPTIONS}||g' config.h
          autotools_do_compile
      done
  }
 
-=-=-=-=-=-=-=-=-=-=-=-

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