diff mbox series

[meta-oe] fftw_3.3.11.bb: Update version.

Message ID 20260422220922.1697938-1-philip@balister.org
State Under Review
Headers show
Series [meta-oe] fftw_3.3.11.bb: Update version. | expand

Commit Message

Philip Balister April 22, 2026, 10:09 p.m. UTC
Apr 21st, 2026
New API fftw_copy_plan()
Support for SVE SIMD instructions.
Support for LoongArch LSX and LASX SIMD instructions.
Support for Apple ARM, RISCV, and LoongArch cycle counters.

The patch is needed to remove build system paths creeping in
via the compiler define. Enabling the cycle counters needs a
kernel module to permit access from user space. We need to add
SVE (and other architectures) support to the recipe.

Signed-off-by: Philip Balister <philip@balister.org>
---
 ...ove-the-CC-and-CFLAGS-from-the-build.patch | 31 +++++++++++++++++++
 .../fftw/{fftw_3.3.10.bb => fftw_3.3.11.bb}   |  3 +-
 2 files changed, 33 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/recipes-support/fftw/fftw/0001-Remove-the-CC-and-CFLAGS-from-the-build.patch
 rename meta-oe/recipes-support/fftw/{fftw_3.3.10.bb => fftw_3.3.11.bb} (95%)

Comments

Khem Raj April 22, 2026, 11:02 p.m. UTC | #1
On Wed, Apr 22, 2026 at 3:09 PM Philip Balister via lists.openembedded.org
<philip=balister.org@lists.openembedded.org> wrote:

> Apr 21st, 2026
> New API fftw_copy_plan()
> Support for SVE SIMD instructions.
> Support for LoongArch LSX and LASX SIMD instructions.
> Support for Apple ARM, RISCV, and LoongArch cycle counters.
>
> The patch is needed to remove build system paths creeping in
> via the compiler define. Enabling the cycle counters needs a
> kernel module to permit access from user space. We need to add
> SVE (and other architectures) support to the recipe.
>
> Signed-off-by: Philip Balister <philip@balister.org>
> ---
>  ...ove-the-CC-and-CFLAGS-from-the-build.patch | 31 +++++++++++++++++++
>  .../fftw/{fftw_3.3.10.bb => fftw_3.3.11.bb}   |  3 +-
>  2 files changed, 33 insertions(+), 1 deletion(-)
>  create mode 100644
> meta-oe/recipes-support/fftw/fftw/0001-Remove-the-CC-and-CFLAGS-from-the-build.patch
>  rename meta-oe/recipes-support/fftw/{fftw_3.3.10.bb => fftw_3.3.11.bb}
> (95%)
>
> diff --git
> a/meta-oe/recipes-support/fftw/fftw/0001-Remove-the-CC-and-CFLAGS-from-the-build.patch
> b/meta-oe/recipes-support/fftw/fftw/0001-Remove-the-CC-and-CFLAGS-from-the-build.patch
> new file mode 100644
> index 0000000000..5b52377940
> --- /dev/null
> +++
> b/meta-oe/recipes-support/fftw/fftw/0001-Remove-the-CC-and-CFLAGS-from-the-build.patch
> @@ -0,0 +1,31 @@
> +From f65d89c082fa4b886f9f5aaa08f4defd5fd0e207 Mon Sep 17 00:00:00 2001
> +From: Philip Balister <philip@balister.org>
> +Date: Wed, 22 Apr 2026 16:52:47 -0400
> +Subject: [PATCH] Remove the CC and CFLAGS from the build.
> +
> +With 3.3.11, this started injecting build system paths into binaries.
> +
> +Upstream-Status: Inappropriate [I didn't try hard enough to figure out
> what changed]
>

ugh, can you try doing something like below instead of this patch.

diff --git a/meta-oe/recipes-support/fftw/fftw_3.3.11.bb
b/meta-oe/recipes-support/fftw/fftw_3.3.11.bb
index dd6dce206b..e33d12af10 100644
--- a/meta-oe/recipes-support/fftw/fftw_3.3.11.bb
+++ b/meta-oe/recipes-support/fftw/fftw_3.3.11.bb
@@ -58,7 +57,7 @@ do_configure() {
 do_compile() {
     for lib in fftw fftwl fftwf; do
         cd ${WORKDIR}/build-$lib
-        test -n "${TOOLCHAIN_OPTIONS}" && sed -i -e
's|${TOOLCHAIN_OPTIONS}||g' config.h
+        sed -i -e 's|${DEBUG_PREFIX_MAP}||g;
s|--sysroot=${STAGING_DIR_TARGET}||g' config.h
         autotools_do_compile
     done
 }


> +
> +Signed-off-by: Philip Balister <philip@balister.org>
> +
> +---
> + configure.ac | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/configure.ac b/configure.ac
> +index 616cdcc4..bd7edbf2 100644
> +--- a/configure.ac
> ++++ b/configure.ac
> +@@ -793,7 +793,7 @@ fi
> +
> + dnl
> -----------------------------------------------------------------------
> +
> +-AC_DEFINE_UNQUOTED(FFTW_CC, "$CC $CFLAGS", [C compiler name and flags])
> ++AC_DEFINE_UNQUOTED(FFTW_CC, "", [C compiler name and flags])
> +
> + AC_CONFIG_FILES([
> +    Makefile
> +--
> +2.53.0
> +
> diff --git a/meta-oe/recipes-support/fftw/fftw_3.3.10.bb
> b/meta-oe/recipes-support/fftw/fftw_3.3.11.bb
> similarity index 95%
> rename from meta-oe/recipes-support/fftw/fftw_3.3.10.bb
> rename to meta-oe/recipes-support/fftw/fftw_3.3.11.bb
> index 52122b9c0c..dd6dce206b 100644
> --- a/meta-oe/recipes-support/fftw/fftw_3.3.10.bb
> +++ b/meta-oe/recipes-support/fftw/fftw_3.3.11.bb
> @@ -6,10 +6,11 @@ LIC_FILES_CHKSUM =
> "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
>  SRC_URI = " \
>      http://www.fftw.org/fftw-${PV}.tar.gz \
>      file://0001-NEON-autodetection-segfaults-assume-neon-present.patch \
> +    file://0001-Remove-the-CC-and-CFLAGS-from-the-build.patch \
>      file://install-bench.patch \
>      file://run-ptest \
>  "
> -SRC_URI[sha256sum] =
> "56c932549852cddcfafdab3820b0200c7742675be92179e59e6215b340e26467"
> +SRC_URI[sha256sum] =
> "5630c24cdeb33b131612f7eb4b1a9934234754f9f388ff8617458d0be6f239a1"
>
>  UPSTREAM_CHECK_URI = "http://www.fftw.org/download.html"
>
> --
> 2.53.0
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#126559):
> https://lists.openembedded.org/g/openembedded-devel/message/126559
> Mute This Topic: https://lists.openembedded.org/mt/118963268/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
> raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
Philip Balister April 22, 2026, 11:07 p.m. UTC | #2
OK, I'll give that a try.

On 4/22/26 7:02 PM, Khem Raj wrote:
> 
> 
> On Wed, Apr 22, 2026 at 3:09 PM Philip Balister via 
> lists.openembedded.org <http://lists.openembedded.org> 
> <philip=balister.org@lists.openembedded.org 
> <mailto:balister.org@lists.openembedded.org>> wrote:
> 
>     Apr 21st, 2026
>     New API fftw_copy_plan()
>     Support for SVE SIMD instructions.
>     Support for LoongArch LSX and LASX SIMD instructions.
>     Support for Apple ARM, RISCV, and LoongArch cycle counters.
> 
>     The patch is needed to remove build system paths creeping in
>     via the compiler define. Enabling the cycle counters needs a
>     kernel module to permit access from user space. We need to add
>     SVE (and other architectures) support to the recipe.
> 
>     Signed-off-by: Philip Balister <philip@balister.org
>     <mailto:philip@balister.org>>
>     ---
>       ...ove-the-CC-and-CFLAGS-from-the-build.patch | 31 +++++++++++++++++++
>       .../fftw/{fftw_3.3.10.bb <http://fftw_3.3.10.bb> => fftw_3.3.11.bb
>     <http://fftw_3.3.11.bb>}   |  3 +-
>       2 files changed, 33 insertions(+), 1 deletion(-)
>       create mode 100644 meta-oe/recipes-support/fftw/fftw/0001-Remove-
>     the-CC-and-CFLAGS-from-the-build.patch
>       rename meta-oe/recipes-support/fftw/{fftw_3.3.10.bb <http://
>     fftw_3.3.10.bb> => fftw_3.3.11.bb <http://fftw_3.3.11.bb>} (95%)
> 
>     diff --git a/meta-oe/recipes-support/fftw/fftw/0001-Remove-the-CC-
>     and-CFLAGS-from-the-build.patch b/meta-oe/recipes-support/fftw/
>     fftw/0001-Remove-the-CC-and-CFLAGS-from-the-build.patch
>     new file mode 100644
>     index 0000000000..5b52377940
>     --- /dev/null
>     +++ b/meta-oe/recipes-support/fftw/fftw/0001-Remove-the-CC-and-
>     CFLAGS-from-the-build.patch
>     @@ -0,0 +1,31 @@
>     +From f65d89c082fa4b886f9f5aaa08f4defd5fd0e207 Mon Sep 17 00:00:00 2001
>     +From: Philip Balister <philip@balister.org
>     <mailto:philip@balister.org>>
>     +Date: Wed, 22 Apr 2026 16:52:47 -0400
>     +Subject: [PATCH] Remove the CC and CFLAGS from the build.
>     +
>     +With 3.3.11, this started injecting build system paths into binaries.
>     +
>     +Upstream-Status: Inappropriate [I didn't try hard enough to figure
>     out what changed]
> 
> 
> ugh, can you try doing something like below instead of this patch.
> 
> diff --git a/meta-oe/recipes-support/fftw/fftw_3.3.11.bb <http:// 
> fftw_3.3.11.bb> b/meta-oe/recipes-support/fftw/fftw_3.3.11.bb <http:// 
> fftw_3.3.11.bb>
> index dd6dce206b..e33d12af10 100644
> --- a/meta-oe/recipes-support/fftw/fftw_3.3.11.bb <http://fftw_3.3.11.bb>
> +++ b/meta-oe/recipes-support/fftw/fftw_3.3.11.bb <http://fftw_3.3.11.bb>
> @@ -58,7 +57,7 @@ do_configure() {
>   do_compile() {
>       for lib in fftw fftwl fftwf; do
>           cd ${WORKDIR}/build-$lib
> -        test -n "${TOOLCHAIN_OPTIONS}" && sed -i -e 's| 
> ${TOOLCHAIN_OPTIONS}||g' config.h
> +        sed -i -e 's|${DEBUG_PREFIX_MAP}||g; s|-- 
> sysroot=${STAGING_DIR_TARGET}||g' config.h
>           autotools_do_compile
>       done
>   }
> 
>     +
>     +Signed-off-by: Philip Balister <philip@balister.org
>     <mailto:philip@balister.org>>
>     +
>     +---
>     + configure.ac <http://configure.ac> | 2 +-
>     + 1 file changed, 1 insertion(+), 1 deletion(-)
>     +
>     +diff --git a/configure.ac <http://configure.ac> b/configure.ac
>     <http://configure.ac>
>     +index 616cdcc4..bd7edbf2 100644
>     +--- a/configure.ac <http://configure.ac>
>     ++++ b/configure.ac <http://configure.ac>
>     +@@ -793,7 +793,7 @@ fi
>     +
>     + dnl
>     -----------------------------------------------------------------------
>     +
>     +-AC_DEFINE_UNQUOTED(FFTW_CC, "$CC $CFLAGS", [C compiler name and
>     flags])
>     ++AC_DEFINE_UNQUOTED(FFTW_CC, "", [C compiler name and flags])
>     +
>     + AC_CONFIG_FILES([
>     +    Makefile
>     +--
>     +2.53.0
>     +
>     diff --git a/meta-oe/recipes-support/fftw/fftw_3.3.10.bb <http://
>     fftw_3.3.10.bb> b/meta-oe/recipes-support/fftw/fftw_3.3.11.bb
>     <http://fftw_3.3.11.bb>
>     similarity index 95%
>     rename from meta-oe/recipes-support/fftw/fftw_3.3.10.bb <http://
>     fftw_3.3.10.bb>
>     rename to meta-oe/recipes-support/fftw/fftw_3.3.11.bb <http://
>     fftw_3.3.11.bb>
>     index 52122b9c0c..dd6dce206b 100644
>     --- a/meta-oe/recipes-support/fftw/fftw_3.3.10.bb <http://
>     fftw_3.3.10.bb>
>     +++ b/meta-oe/recipes-support/fftw/fftw_3.3.11.bb <http://
>     fftw_3.3.11.bb>
>     @@ -6,10 +6,11 @@ LIC_FILES_CHKSUM = "file://
>     COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
>       SRC_URI = " \
>     http://www.fftw.org/fftw-${PV}.tar.gz <http://www.fftw.org/fftw-$
>     %7BPV%7D.tar.gz> \
>           file://0001-NEON-autodetection-segfaults-assume-neon-
>     present.patch \
>     +    file://0001-Remove-the-CC-and-CFLAGS-from-the-build.patch \
>           file://install-bench.patch \
>           file://run-ptest \
>       "
>     -SRC_URI[sha256sum] =
>     "56c932549852cddcfafdab3820b0200c7742675be92179e59e6215b340e26467"
>     +SRC_URI[sha256sum] =
>     "5630c24cdeb33b131612f7eb4b1a9934234754f9f388ff8617458d0be6f239a1"
> 
>       UPSTREAM_CHECK_URI = "http://www.fftw.org/download.html <http://
>     www.fftw.org/download.html>"
> 
>     -- 
>     2.53.0
> 
> 
>     -=-=-=-=-=-=-=-=-=-=-=-
>     Links: You receive all messages sent to this group.
>     View/Reply Online (#126559): https://lists.openembedded.org/g/
>     openembedded-devel/message/126559 <https://lists.openembedded.org/g/
>     openembedded-devel/message/126559>
>     Mute This Topic: https://lists.openembedded.org/mt/118963268/1997914
>     <https://lists.openembedded.org/mt/118963268/1997914>
>     Group Owner: openembedded-devel+owner@lists.openembedded.org
>     <mailto:openembedded-devel%2Bowner@lists.openembedded.org>
>     Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/
>     unsub <https://lists.openembedded.org/g/openembedded-devel/unsub>
>     [raj.khem@gmail.com <mailto:raj.khem@gmail.com>]
>     -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/fftw/fftw/0001-Remove-the-CC-and-CFLAGS-from-the-build.patch b/meta-oe/recipes-support/fftw/fftw/0001-Remove-the-CC-and-CFLAGS-from-the-build.patch
new file mode 100644
index 0000000000..5b52377940
--- /dev/null
+++ b/meta-oe/recipes-support/fftw/fftw/0001-Remove-the-CC-and-CFLAGS-from-the-build.patch
@@ -0,0 +1,31 @@ 
+From f65d89c082fa4b886f9f5aaa08f4defd5fd0e207 Mon Sep 17 00:00:00 2001
+From: Philip Balister <philip@balister.org>
+Date: Wed, 22 Apr 2026 16:52:47 -0400
+Subject: [PATCH] Remove the CC and CFLAGS from the build.
+
+With 3.3.11, this started injecting build system paths into binaries.
+
+Upstream-Status: Inappropriate [I didn't try hard enough to figure out what changed]
+
+Signed-off-by: Philip Balister <philip@balister.org>
+
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 616cdcc4..bd7edbf2 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -793,7 +793,7 @@ fi
+ 
+ dnl -----------------------------------------------------------------------
+ 
+-AC_DEFINE_UNQUOTED(FFTW_CC, "$CC $CFLAGS", [C compiler name and flags])
++AC_DEFINE_UNQUOTED(FFTW_CC, "", [C compiler name and flags])
+ 
+ AC_CONFIG_FILES([
+    Makefile
+-- 
+2.53.0
+
diff --git a/meta-oe/recipes-support/fftw/fftw_3.3.10.bb b/meta-oe/recipes-support/fftw/fftw_3.3.11.bb
similarity index 95%
rename from meta-oe/recipes-support/fftw/fftw_3.3.10.bb
rename to meta-oe/recipes-support/fftw/fftw_3.3.11.bb
index 52122b9c0c..dd6dce206b 100644
--- a/meta-oe/recipes-support/fftw/fftw_3.3.10.bb
+++ b/meta-oe/recipes-support/fftw/fftw_3.3.11.bb
@@ -6,10 +6,11 @@  LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
 SRC_URI = " \
     http://www.fftw.org/fftw-${PV}.tar.gz \
     file://0001-NEON-autodetection-segfaults-assume-neon-present.patch \
+    file://0001-Remove-the-CC-and-CFLAGS-from-the-build.patch \
     file://install-bench.patch \
     file://run-ptest \
 "
-SRC_URI[sha256sum] = "56c932549852cddcfafdab3820b0200c7742675be92179e59e6215b340e26467"
+SRC_URI[sha256sum] = "5630c24cdeb33b131612f7eb4b1a9934234754f9f388ff8617458d0be6f239a1"
 
 UPSTREAM_CHECK_URI = "http://www.fftw.org/download.html"