Build of math/fftw3 failed with the following error:
Error:
/usr/ports/pobj/fftw3-3.3.8-float/fake-octeon-float/usr/local/lib/cmake/fftw3/FFTW3Config.cmake
does not exist
Error:
/usr/ports/pobj/fftw3-3.3.8-float/fake-octeon-float/usr/local/lib/cmake/fftw3/FFTW3ConfigVersion.cmake
does not exist
Fatal error: can't continue
at /usr/libdata/perl5/OpenBSD/PkgCreate.pm line 1674.
*** Error 1 in math/fftw3 (/usr/ports/infrastructure/mk/bsd.port.mk:2041
'/usr/ports/packages/mips64/no-arch/fftw3-common-3.3.8p0.tgz')
*** Error 1 in math/fftw3 (/usr/ports/infrastructure/mk/bsd.port.mk:2502
'_internal-package')
*** Error 1 in math/fftw3 (/usr/ports/infrastructure/mk/bsd.port.mk:2481
'package')
===> Exiting math/fftw3,float with an error
I guess this came up because the "float" flavor was built before
"double". The "double" flavor installs the above mentioned cmake files,
whereas "float" installs these:
lib/cmake/fftw3/FFTW3fConfig.cmake
lib/cmake/fftw3/FFTW3fConfigVersion.cmake
This makes me think that the cmake files should be mentioned in the
corresponding PLIST fragment files instead of PLIST-common.
OK?
Index: Makefile
===================================================================
RCS file: ports/math/fftw3/Makefile,v
retrieving revision 1.35
diff -u -p -r1.35 Makefile
--- Makefile 20 Apr 2019 07:20:07 -0000 1.35
+++ Makefile 10 Jul 2019 12:04:17 -0000
@@ -16,8 +16,8 @@ SHARED_LIBS= fftw3 7.1 \
fftw3f_threads 1.1
CATEGORIES= math
-REVISION-main= 0
-REVISION-common= 0
+REVISION-main= 1
+REVISION-common= 1
HOMEPAGE= http://www.fftw.org/
Index: pkg/PFRAG.double-main
===================================================================
RCS file: ports/math/fftw3/pkg/PFRAG.double-main,v
retrieving revision 1.4
diff -u -p -r1.4 PFRAG.double-main
--- pkg/PFRAG.double-main 23 Mar 2016 21:14:58 -0000 1.4
+++ pkg/PFRAG.double-main 10 Jul 2019 12:04:17 -0000
@@ -2,6 +2,10 @@
@pkgpath math/fftw3
@pkgpath math/fftw3,double
@bin bin/fftw-wisdom
+lib/cmake/
+lib/cmake/fftw3/
+lib/cmake/fftw3/FFTW3Config.cmake
+lib/cmake/fftw3/FFTW3ConfigVersion.cmake
lib/libfftw3.a
lib/libfftw3.la
@lib lib/libfftw3.so.${LIBfftw3_VERSION}
Index: pkg/PFRAG.float-main
===================================================================
RCS file: ports/math/fftw3/pkg/PFRAG.float-main,v
retrieving revision 1.4
diff -u -p -r1.4 PFRAG.float-main
--- pkg/PFRAG.float-main 23 Mar 2016 21:14:58 -0000 1.4
+++ pkg/PFRAG.float-main 10 Jul 2019 12:04:17 -0000
@@ -1,6 +1,10 @@
@comment $OpenBSD: PFRAG.float-main,v 1.4 2016/03/23 21:14:58 naddy Exp $
@pkgpath math/fftw3,float
@bin bin/fftwf-wisdom
+lib/cmake/
+lib/cmake/fftw3/
+lib/cmake/fftw3/FFTW3fConfig.cmake
+lib/cmake/fftw3/FFTW3fConfigVersion.cmake
lib/libfftw3f.a
lib/libfftw3f.la
@lib lib/libfftw3f.so.${LIBfftw3f_VERSION}
Index: pkg/PLIST-common
===================================================================
RCS file: ports/math/fftw3/pkg/PLIST-common,v
retrieving revision 1.4
diff -u -p -r1.4 PLIST-common
--- pkg/PLIST-common 18 Apr 2019 15:11:55 -0000 1.4
+++ pkg/PLIST-common 10 Jul 2019 12:04:17 -0000
@@ -11,7 +11,3 @@ include/fftw3q.f03
@man man/man1/fftw-wisdom-to-conf.1
share/doc/fftw3/
share/doc/fftw3/fftw3.pdf
-lib/cmake/
-lib/cmake/fftw3/
-lib/cmake/fftw3/FFTW3Config.cmake
-lib/cmake/fftw3/FFTW3ConfigVersion.cmake