View | Details | Raw Unified | Return to bug 246700 | Differences between
and this patch

Collapse All | Expand All

(-)Mk/bsd.default-versions.mk (-1 / +1 lines)
Lines 51-57 Link Here
51
.if ${ARCH} == "powerpcspe"
51
.if ${ARCH} == "powerpcspe"
52
GCC_DEFAULT?=		8
52
GCC_DEFAULT?=		8
53
.else
53
.else
54
GCC_DEFAULT?=		9
54
GCC_DEFAULT?=		10
55
.endif
55
.endif
56
# Possible values: 7, 8, 9, agpl
56
# Possible values: 7, 8, 9, agpl
57
GHOSTSCRIPT_DEFAULT?=	agpl
57
GHOSTSCRIPT_DEFAULT?=	agpl
(-)audio/lsp-plugins-lv2/Makefile (-1 / +3 lines)
Lines 22-28 Link Here
22
USES=		compiler:c11 gmake gl gnome iconv:wchar_t pkgconfig xorg
22
USES=		compiler:c11 gmake gl gnome iconv:wchar_t pkgconfig xorg
23
USE_GITHUB=	yes
23
USE_GITHUB=	yes
24
GH_ACCOUNT=	sadko4u
24
GH_ACCOUNT=	sadko4u
25
USE_GCC=	any # clang breaks: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232911
25
# changed from yes to 9 due to:
26
# types.h:95:37: error: 'asm' operand has impossible constraints
27
USE_GCC=	9 # clang breaks: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232911
26
USE_GNOME=	cairo
28
USE_GNOME=	cairo
27
USE_XORG=	x11
29
USE_XORG=	x11
28
USE_GL=		gl
30
USE_GL=		gl
(-)biology/molden/Makefile (+7 lines)
Lines 39-44 Link Here
39
OPTIONS_DEFINE=		DATA DOCS
39
OPTIONS_DEFINE=		DATA DOCS
40
OPTIONS_DEFAULT=	DATA
40
OPTIONS_DEFAULT=	DATA
41
41
42
.include <bsd.port.pre.mk>
43
44
.if ${GCC_DEFAULT} >= 10
45
# workaround for Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/REAL(4)).
46
FFLAGS+=	-fallow-argument-mismatch
47
.endif
48
42
post-patch:
49
post-patch:
43
	@${REINPLACE_CMD} -e \
50
	@${REINPLACE_CMD} -e \
44
		's|^CC |#CC | ; \
51
		's|^CC |#CC | ; \
(-)biology/ncbi-blast+/Makefile (+4 lines)
Lines 58-63 Link Here
58
USE_GCC=	yes
58
USE_GCC=	yes
59
.endif
59
.endif
60
60
61
.if ${GCC_DEFAULT} >= 10
62
BROKEN=		fails to configure with GCC 10: configure: error: Do not know how to parse GCC version number 10.2.0
63
.endif
64
61
post-install:
65
post-install:
62
	@${RM} ${STAGEDIR}${PREFIX}/include/ncbi-tools++/*/*/.cvsignore.extra
66
	@${RM} ${STAGEDIR}${PREFIX}/include/ncbi-tools++/*/*/.cvsignore.extra
63
	@${RM} -rf ${STAGEDIR}${PREFIX}/lib/X11
67
	@${RM} -rf ${STAGEDIR}${PREFIX}/lib/X11
(-)cad/calculix-ccx/Makefile (+5 lines)
Lines 55-60 Link Here
55
FFLAGS+=	-fpic
55
FFLAGS+=	-fpic
56
.endif
56
.endif
57
57
58
.if ${GCC_DEFAULT} >= 10
59
# workaround for Missing actual argument for argument '_formal_15' at (1)
60
FFLAGS+=	-fallow-argument-mismatch
61
.endif
62
58
pre-build:
63
pre-build:
59
	@${REINPLACE_CMD} -e 's+%%FC%%+${FC}+g ; s+%%CC%%+${CC}+g ; \
64
	@${REINPLACE_CMD} -e 's+%%FC%%+${FC}+g ; s+%%CC%%+${CC}+g ; \
60
	s+%%BLAS_LIBS%%+${BLASLIB}+ ; \
65
	s+%%BLAS_LIBS%%+${BLASLIB}+ ; \
(-)comms/wsjtx/Makefile (+7 lines)
Lines 36-41 Link Here
36
36
37
_PATCHES=	wsjtx.patch hamlib.patch
37
_PATCHES=	wsjtx.patch hamlib.patch
38
38
39
.include <bsd.port.pre.mk>
40
41
.if ${GCC_DEFAULT} >= 10
42
# workaround for More actual than formal arguments in procedure call at (1)
43
FFLAGS+=	-fallow-argument-mismatch
44
.endif
45
39
post-patch:
46
post-patch:
40
.  for _patch in ${_PATCHES}
47
.  for _patch in ${_PATCHES}
41
	# Keep a copy of the blank patch for the post-build target below
48
	# Keep a copy of the blank patch for the post-build target below
(-)games/libretro-paralleln64/Makefile (-1 / +7 lines)
Lines 30-37 Link Here
30
30
31
PLIST_FILES=	lib/libretro/parallel_n64_libretro.so
31
PLIST_FILES=	lib/libretro/parallel_n64_libretro.so
32
32
33
.include <bsd.port.pre.mk>
34
35
.if ${GCC_DEFAULT} >= 10
36
BROKEN=		fails to link: ./mupen64plus-core/src/dd/dd_disk.o:(.bss+0xc): multiple definition of `CUR_BLOCK'
37
.endif
38
33
do-install:
39
do-install:
34
	${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro;
40
	${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro;
35
	${INSTALL_LIB} ${WRKSRC}/parallel_n64_libretro.so ${STAGEDIR}/${PREFIX}/lib/libretro;
41
	${INSTALL_LIB} ${WRKSRC}/parallel_n64_libretro.so ${STAGEDIR}/${PREFIX}/lib/libretro;
36
42
37
.include <bsd.port.mk>
43
.include <bsd.port.post.mk>
(-)math/blacs/Makefile (+5 lines)
Lines 35-40 Link Here
35
.include <bsd.port.pre.mk>
35
.include <bsd.port.pre.mk>
36
36
37
F77EXTRAFLAGS=	#-w -fno-globals -fugly-complex
37
F77EXTRAFLAGS=	#-w -fno-globals -fugly-complex
38
.if ${GCC_DEFAULT} >= 10
39
# workaround for Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
40
F77EXTRAFLAGS+=	-fallow-argument-mismatch
41
.endif
42
38
DEBUG_LEVEL=	0
43
DEBUG_LEVEL=	0
39
44
40
.if ${ARCH} == "sparc64" || ${ARCH} == "amd64"
45
.if ${ARCH} == "sparc64" || ${ARCH} == "amd64"
(-)math/coinmumps/Makefile (-1 / +9 lines)
Lines 29-34 Link Here
29
29
30
MUMPS_VERSION=	4.10.0
30
MUMPS_VERSION=	4.10.0
31
31
32
.include <bsd.port.pre.mk>
33
34
.if ${GCC_DEFAULT} >= 10
35
# workaround for Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
36
# in theory, this should set FCFLAGS, but the port does not conform
37
FFLAGS+=	-fallow-argument-mismatch
38
.endif
39
32
post-extract:
40
post-extract:
33
	@${RLN} ${WRKDIR}/MUMPS_${MUMPS_VERSION} ${WRKSRC}/MUMPS
41
	@${RLN} ${WRKDIR}/MUMPS_${MUMPS_VERSION} ${WRKSRC}/MUMPS
34
42
Lines 38-41 Link Here
38
		${PATCH} -p0 < mumps_mpi.patch && \
46
		${PATCH} -p0 < mumps_mpi.patch && \
39
		${MV} MUMPS/libseq/mpi.h MUMPS/libseq/mumps_mpi.h
47
		${MV} MUMPS/libseq/mpi.h MUMPS/libseq/mumps_mpi.h
40
48
41
.include <bsd.port.mk>
49
.include <bsd.port.post.mk>
(-)math/dbcsr/Makefile (+6 lines)
Lines 39-44 Link Here
39
C_API_DESC=		Build the C API library
39
C_API_DESC=		Build the C API library
40
C_API_CMAKE_BOOL=	WITH_C_API
40
C_API_CMAKE_BOOL=	WITH_C_API
41
41
42
.include <bsd.port.pre.mk>
43
44
.if ${GCC_DEFAULT} >= 10
45
BROKEN=		fails to build with GCC 10: Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
46
.endif
47
42
do-test: # tests are broken: https://github.com/cp2k/dbcsr/issues/150
48
do-test: # tests are broken: https://github.com/cp2k/dbcsr/issues/150
43
	@cd ${BUILD_WRKSRC} && \
49
	@cd ${BUILD_WRKSRC} && \
44
		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \
50
		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \
(-)math/gotoblas/Makefile (+4 lines)
Lines 78-83 Link Here
78
GOTOFLAGS+=	USE_OPENMP=1
78
GOTOFLAGS+=	USE_OPENMP=1
79
.endif
79
.endif
80
80
81
.if ${GCC_DEFAULT} >= 10
82
BROKEN=		fails to build with GCC 10: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/INTEGER(4)).
83
.endif
84
81
#.if ${PORT_OPTIONS:MQUAD_PRECISION}
85
#.if ${PORT_OPTIONS:MQUAD_PRECISION}
82
#BROKEN=	WITH_QUAD_PRECISION is broken; please disable this option
86
#BROKEN=	WITH_QUAD_PRECISION is broken; please disable this option
83
#GOTOFLAGS+=	QUAD_PRECISION=1
87
#GOTOFLAGS+=	QUAD_PRECISION=1
(-)math/hs-penrose/Makefile (-2 / +8 lines)
Lines 16-22 Link Here
16
16
17
LIB_DEPENDS=	libgfortran.so:lang/gcc${GCC_DEFAULT}
17
LIB_DEPENDS=	libgfortran.so:lang/gcc${GCC_DEFAULT}
18
18
19
USES=		blaslapack cabal
19
USES=		blaslapack cabal fortran
20
USE_GITHUB=	yes
20
USE_GITHUB=	yes
21
USE_CABAL=	MonadRandom-0.5.1.2 \
21
USE_CABAL=	MonadRandom-0.5.1.2 \
22
		SHA-1.6.4.4 \
22
		SHA-1.6.4.4 \
Lines 135-138 Link Here
135
		x509-1.7.5_1 \
135
		x509-1.7.5_1 \
136
		zlib-0.6.2.1_1
136
		zlib-0.6.2.1_1
137
137
138
.include <bsd.port.mk>
138
.include <bsd.port.pre.mk>
139
140
.if ${GCC_DEFAULT} >= 10
141
BROKEN=		fails to build with GCC 10: cabal: Missing dependency on a foreign library: Missing (or bad) C library: gfortran
142
.endif
143
144
.include <bsd.port.post.mk>
(-)math/ipopt/Makefile (+7 lines)
Lines 41-46 Link Here
41
41
42
PORTDOCS=		*
42
PORTDOCS=		*
43
43
44
.include <bsd.port.pre.mk>
45
46
.if ${GCC_DEFAULT} >= 10
47
# workaround for Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
48
FFLAGS+=	-fallow-argument-mismatch
49
.endif
50
44
post-extract:
51
post-extract:
45
	@(${ECHO} "Extracting Metis and Mumps ThirdParty libraries ..." )
52
	@(${ECHO} "Extracting Metis and Mumps ThirdParty libraries ..." )
46
	@(cd ${WRKSRC}/ThirdParty/Metis && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/metis-4.0.3.tar.gz ${EXTRACT_AFTER_ARGS});
53
	@(cd ${WRKSRC}/ThirdParty/Metis && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/metis-4.0.3.tar.gz ${EXTRACT_AFTER_ARGS});
(-)math/mumps/Makefile (+5 lines)
Lines 44-49 Link Here
44
.include <bsd.port.pre.mk>
44
.include <bsd.port.pre.mk>
45
.include "${.CURDIR}/../../french/aster/bsd.aster.mk"
45
.include "${.CURDIR}/../../french/aster/bsd.aster.mk"
46
46
47
.if ${GCC_DEFAULT} >= 10
48
# workaround for Type mismatch in argument 's' at (1); passed INTEGER(4) to LOGICAL(4)
49
FCFLAGS+=	-fallow-argument-mismatch
50
.endif
51
47
.ifdef WITH_MPI
52
.ifdef WITH_MPI
48
PKGNAMESUFFIX+=		-mpich
53
PKGNAMESUFFIX+=		-mpich
49
.endif
54
.endif
(-)math/mumps4/Makefile (+5 lines)
Lines 61-66 Link Here
61
#LAPACKLIB=	-llapack
61
#LAPACKLIB=	-llapack
62
.endif
62
.endif
63
63
64
.if ${GCC_DEFAULT} >= 10
65
# workaround for Type mismatch in argument 's' at (1); passed INTEGER(4) to LOGICAL(4)
66
FCFLAGS+=	-fallow-argument-mismatch
67
.endif
68
64
pre-configure:
69
pre-configure:
65
	${INSTALL_DATA} ${WRKSRC}/Make.inc/Makefile.inc.generic.SEQ \
70
	${INSTALL_DATA} ${WRKSRC}/Make.inc/Makefile.inc.generic.SEQ \
66
		${WRKSRC}/Makefile.inc
71
		${WRKSRC}/Makefile.inc
(-)math/octave-forge-optiminterp/Makefile (-1 / +9 lines)
Lines 24-31 Link Here
24
24
25
MAKE_ENV+=	MKOCTFILE_FORTRAN_90=yes MKOCTFILE=mkoctfile
25
MAKE_ENV+=	MKOCTFILE_FORTRAN_90=yes MKOCTFILE=mkoctfile
26
26
27
.include <bsd.port.pre.mk>
28
29
.if ${GCC_DEFAULT} >= 10
30
# workaround for Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-2)
31
# in theory, this should set FCFLAGS, but the port does not conform
32
FFLAGS+=	-fallow-argument-mismatch
33
.endif
34
27
post-build:
35
post-build:
28
	${RM} ${WRKSRC}/Makefile ${WRKSRC}/configure
36
	${RM} ${WRKSRC}/Makefile ${WRKSRC}/configure
29
	cd ${WRKDIR} && ${TAR} cfz ${DISTNAME}.tar.gz ${OCTSRC}
37
	cd ${WRKDIR} && ${TAR} cfz ${DISTNAME}.tar.gz ${OCTSRC}
30
38
31
.include <bsd.port.mk>
39
.include <bsd.port.post.mk>
(-)math/scalapack/Makefile (+5 lines)
Lines 75-80 Link Here
75
FFLAGS+=	${FPIC}
75
FFLAGS+=	${FPIC}
76
SVERSION=	2
76
SVERSION=	2
77
77
78
.if ${GCC_DEFAULT} >= 10
79
# workaround for Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
80
FFLAGS+=	-fallow-argument-mismatch
81
.endif
82
78
.if defined(WITH_OPTIMIZED_FLAGS)
83
.if defined(WITH_OPTIMIZED_FLAGS)
79
.if ${ARCH} == "amd64"
84
.if ${ARCH} == "amd64"
80
FFLAGS+=	-pipe -O3 -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time
85
FFLAGS+=	-pipe -O3 -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time
(-)math/scilab/Makefile (+7 lines)
Lines 130-135 Link Here
130
CONFIGURE_ARGS+=	--enable-debug
130
CONFIGURE_ARGS+=	--enable-debug
131
.endif
131
.endif
132
132
133
.include <bsd.port.pre.mk>
134
135
.if ${GCC_DEFAULT} >= 10
136
# workaround for Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
137
FFLAGS+=	-fallow-argument-mismatch
138
.endif
139
133
post-patch:
140
post-patch:
134
	@${REINPLACE_CMD} 's,/usr/local,${LOCALBASE},' ${WRKSRC}/etc/librarypath.xml
141
	@${REINPLACE_CMD} 's,/usr/local,${LOCALBASE},' ${WRKSRC}/etc/librarypath.xml
135
	@${REINPLACE_CMD} -e 's, gfortran, ${FC},' ${WRKSRC}/modules/dynamic_link/src/scripts/configure
142
	@${REINPLACE_CMD} -e 's, gfortran, ${FC},' ${WRKSRC}/modules/dynamic_link/src/scripts/configure
(-)math/sdpa/Makefile (-1 / +8 lines)
Lines 40-45 Link Here
40
40
41
MANUALFILE=		sdpa.7.1.1.manual.20080618.pdf
41
MANUALFILE=		sdpa.7.1.1.manual.20080618.pdf
42
42
43
.include <bsd.port.pre.mk>
44
45
.if ${GCC_DEFAULT} >= 10
46
# workaround for Type mismatch in argument 's' at (1); passed INTEGER(4) to LOGICAL(4)
47
CONFIGURE_ARGS+=	FCFLAGS=-fallow-argument-mismatch
48
.endif
49
43
post-extract:
50
post-extract:
44
	@(cd ${DISTDIR}/${DIST_SUBDIR} && ${PAX} -rw \
51
	@(cd ${DISTDIR}/${DIST_SUBDIR} && ${PAX} -rw \
45
		mumps_4.10.0.dfsg.orig.tar.gz ${WRKSRC}/mumps)
52
		mumps_4.10.0.dfsg.orig.tar.gz ${WRKSRC}/mumps)
Lines 62-65 Link Here
62
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
69
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
63
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${MANUALFILE} ${STAGEDIR}${DOCSDIR}
70
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${MANUALFILE} ${STAGEDIR}${DOCSDIR}
64
71
65
.include <bsd.port.mk>
72
.include <bsd.port.post.mk>
(-)net/iaxmodem/Makefile (-1 / +1 lines)
Lines 31-37 Link Here
31
31
32
.if ${ARCH} == i386 && ${CHOSEN_COMPILER_TYPE} == clang
32
.if ${ARCH} == i386 && ${CHOSEN_COMPILER_TYPE} == clang
33
# gsm0610_rpe.c:81:10: error: invalid operand for instruction
33
# gsm0610_rpe.c:81:10: error: invalid operand for instruction
34
USE_GCC=	yes
34
USE_GCC=	9
35
.endif
35
.endif
36
36
37
post-patch:
37
post-patch:
(-)science/berkeleygw/Makefile (-1 / +7 lines)
Lines 28-36 Link Here
28
28
29
PORTEXAMPLES=	*
29
PORTEXAMPLES=	*
30
30
31
.include <bsd.port.pre.mk>
32
33
.if ${ARCH} == i386 && ${GCC_DEFAULT} >= 10
34
BROKEN=		f951: internal compiler error: Segmentation fault
35
.endif
36
31
post-patch:
37
post-patch:
32
	@${LN} -s ${WRKSRC}/config/generic.serial.freebsd.mk ${WRKSRC}/arch.mk
38
	@${LN} -s ${WRKSRC}/config/generic.serial.freebsd.mk ${WRKSRC}/arch.mk
33
	@${LN} -s ${WRKSRC}/flavor_real.mk ${WRKSRC}/flavor.mk
39
	@${LN} -s ${WRKSRC}/flavor_real.mk ${WRKSRC}/flavor.mk
34
	@${FIND} ${WRKSRC} -name "script*" -o -name "*.scr" | ${XARGS} ${REINPLACE_CMD} -i '' 's|#! */bin/bash.*|#!/bin/sh|'
40
	@${FIND} ${WRKSRC} -name "script*" -o -name "*.scr" | ${XARGS} ${REINPLACE_CMD} -i '' 's|#! */bin/bash.*|#!/bin/sh|'
35
41
36
.include <bsd.port.mk>
42
.include <bsd.port.post.mk>
(-)science/cp2k/Makefile (+4 lines)
Lines 66-71 Link Here
66
	fi
66
	fi
67
.endif
67
.endif
68
68
69
.if ${GCC_DEFAULT} >= 10
70
BROKEN=		fails to build with GCC 10: Element of assumed-shape or pointer array as actual argument at (1) cannot correspond to actual argument at (2)
71
.endif
72
69
post-patch:
73
post-patch:
70
	@${REINPLACE_CMD} -i '' 's|LIBS.*=.*|& ${LDFLAGS}|; s|^FCFLAGS.*=.*|& -I${LOCALBASE}/include|; s| -march=native||' ${WRKSRC}/arch/FreeBSD-*
74
	@${REINPLACE_CMD} -i '' 's|LIBS.*=.*|& ${LDFLAGS}|; s|^FCFLAGS.*=.*|& -I${LOCALBASE}/include|; s| -march=native||' ${WRKSRC}/arch/FreeBSD-*
71
75
(-)science/dalton/Makefile (-1 / +7 lines)
Lines 29-34 Link Here
29
29
30
BINARY_ALIAS=	python=${PYTHON_CMD}
30
BINARY_ALIAS=	python=${PYTHON_CMD}
31
31
32
.include <bsd.port.pre.mk>
33
34
.if ${GCC_DEFAULT} >= 10
35
BROKEN=		fails to build with GCC 10: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/INTEGER(4)).
36
.endif
37
32
post-install:
38
post-install:
33
	@${MV} ${STAGEDIR}${PREFIX}/${PORTNAME} ${STAGEDIR}${DATADIR}
39
	@${MV} ${STAGEDIR}${PREFIX}/${PORTNAME} ${STAGEDIR}${DATADIR}
34
	@${REINPLACE_CMD} -i '' 's|%%SCRIPT_DIR%%|${DATADIR}|; s|%%PREFIX%%|${PREFIX}|' ${STAGEDIR}${DATADIR}/${PORTNAME}
40
	@${REINPLACE_CMD} -i '' 's|%%SCRIPT_DIR%%|${DATADIR}|; s|%%PREFIX%%|${PREFIX}|' ${STAGEDIR}${DATADIR}/${PORTNAME}
Lines 35-38 Link Here
35
	@${MV} ${STAGEDIR}${DATADIR}/${PORTNAME}* ${STAGEDIR}${PREFIX}/bin/
41
	@${MV} ${STAGEDIR}${DATADIR}/${PORTNAME}* ${STAGEDIR}${PREFIX}/bin/
36
	@cd ${STAGEDIR}${DATADIR} && ${RM} -r tools/CMakeFiles tools/Makefile tools/cmake_install.cmake
42
	@cd ${STAGEDIR}${DATADIR} && ${RM} -r tools/CMakeFiles tools/Makefile tools/cmake_install.cmake
37
43
38
.include <bsd.port.mk>
44
.include <bsd.port.post.mk>
(-)science/dftbplus/Makefile (-1 / +9 lines)
Lines 62-67 Link Here
62
62
63
MAKE_JOBS_UNSAFE=	yes # race conditions when some options are ON
63
MAKE_JOBS_UNSAFE=	yes # race conditions when some options are ON
64
64
65
.include <bsd.port.pre.mk>
66
67
.if ${GCC_DEFAULT} >= 10
68
# workaround for Type mismatch between actual argument at (1) and actual argument at (2) (COMPLEX(8)/CHARACTER(*)).
69
# in theory, this should set FCFLAGS, but the port does not conform
70
FFLAGS+=	-fallow-argument-mismatch
71
.endif
72
65
post-extract:
73
post-extract:
66
	@${RM} ${WRKSRC}/external/scalapackfx/origin/test/psyr_result.dat.orig
74
	@${RM} ${WRKSRC}/external/scalapackfx/origin/test/psyr_result.dat.orig
67
	@cd ${WRKSRC} && ${CP} sys/make.x86_64-linux-gnu make.arch
75
	@cd ${WRKSRC} && ${CP} sys/make.x86_64-linux-gnu make.arch
Lines 69-72 Link Here
69
post-install:
77
post-install:
70
	@cd ${STAGEDIR}${PREFIX}/bin && ${STRIP_CMD} dftb+ modes waveplot
78
	@cd ${STAGEDIR}${PREFIX}/bin && ${STRIP_CMD} dftb+ modes waveplot
71
79
72
.include <bsd.port.mk>
80
.include <bsd.port.post.mk>
(-)science/dlpoly-classic/Makefile (-2 / +6 lines)
Lines 36-41 Link Here
36
GUI_PLIST_FILES=	bin/dlpoly-gui \
36
GUI_PLIST_FILES=	bin/dlpoly-gui \
37
			${DATADIR_REL}/GUI.jar
37
			${DATADIR_REL}/GUI.jar
38
38
39
.include <bsd.port.options.mk>
40
41
.if ${GCC_DEFAULT} >= 10
42
BROKEN=		fails to build with GCC 10: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)).
43
.endif
44
39
post-patch:
45
post-patch:
40
	${CP} ${WRKSRC}/build/MakePAR ${WRKSRC}/build/MakeSEQ ${BUILD_WRKSRC}
46
	${CP} ${WRKSRC}/build/MakePAR ${WRKSRC}/build/MakeSEQ ${BUILD_WRKSRC}
41
	${REINPLACE_CMD} 's|gfortran|${FC}|g' ${BUILD_WRKSRC}/MakeSEQ
47
	${REINPLACE_CMD} 's|gfortran|${FC}|g' ${BUILD_WRKSRC}/MakeSEQ
Lines 54-61 Link Here
54
		${CP} -f MakePAR Makefile && \
60
		${CP} -f MakePAR Makefile && \
55
		${MAKE} gfortran)
61
		${MAKE} gfortran)
56
62
57
.include <bsd.port.options.mk>
58
59
do-install:
63
do-install:
60
	${INSTALL_PROGRAM} ${WRKSRC}/execute/dlpoly-classic ${STAGEDIR}${PREFIX}/bin
64
	${INSTALL_PROGRAM} ${WRKSRC}/execute/dlpoly-classic ${STAGEDIR}${PREFIX}/bin
61
	${INSTALL_PROGRAM} ${WRKSRC}/execute/dlpoly-classic-mpi ${STAGEDIR}${PREFIX}/bin
65
	${INSTALL_PROGRAM} ${WRKSRC}/execute/dlpoly-classic-mpi ${STAGEDIR}${PREFIX}/bin
(-)science/elk/Makefile (-2 / +11 lines)
Lines 39-46 Link Here
39
39
40
PLIST_FILES=		bin/${PORTNAME}
40
PLIST_FILES=		bin/${PORTNAME}
41
41
42
.include <bsd.port.pre.mk>
43
44
.if ${GCC_DEFAULT} >= 10
45
# workaround for Type mismatch in argument 'cc' at (1); passed COMPLEX(8) to REAL(8)
46
FCFLAGS+=	-fallow-argument-mismatch
47
.endif
48
42
post-patch:
49
post-patch:
43
	@${SED} 's|%%GMAKE%%|${GMAKE}|; s|%%FC%%|${FC}|; s|%%OPENMP_FLAGS%%|${OPENMP_FLAGS}|' \
50
	@${SED} 's|%%GMAKE%%|${GMAKE}|; s|%%FC%%|${FC}|; \
51
		s|%%FCFLAGS%%|${FCFLAGS}|; \
52
		s|%%OPENMP_FLAGS%%|${OPENMP_FLAGS}|' \
44
		< ${FILESDIR}/make.inc.in \
53
		< ${FILESDIR}/make.inc.in \
45
		> ${WRKSRC}/make.inc
54
		> ${WRKSRC}/make.inc
46
55
Lines 58-61 Link Here
58
do-test:
67
do-test:
59
	@cd ${WRKSRC}/tests && ./tests.sh
68
	@cd ${WRKSRC}/tests && ./tests.sh
60
69
61
.include <bsd.port.mk>
70
.include <bsd.port.post.mk>
(-)science/elk/files/make.inc.in (-1 / +1 lines)
Lines 1-7 Link Here
1
1
2
MAKE = %%GMAKE%%
2
MAKE = %%GMAKE%%
3
F90 = %%FC%%
3
F90 = %%FC%%
4
F90_OPTS = -O3 -ffast-math -funroll-loops %%OPENMP_FLAGS%%
4
F90_OPTS = -O3 -ffast-math -funroll-loops %%OPENMP_FLAGS%% %%FCFLAGS%%
5
F77 = %%FC%%
5
F77 = %%FC%%
6
F77_OPTS = -O3 -ffast-math -funroll-loops %%OPENMP_FLAGS%%
6
F77_OPTS = -O3 -ffast-math -funroll-loops %%OPENMP_FLAGS%%
7
AR = ar
7
AR = ar
(-)science/elmerfem/Makefile (+6 lines)
Lines 73-78 Link Here
73
FFLAGS+=	-fPIC
73
FFLAGS+=	-fPIC
74
.endif
74
.endif
75
75
76
.if ${GCC_DEFAULT} >= 10
77
# workaround for Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/COMPLEX(8)).
78
# in theory, this should set FCFLAGS, but the port does not conform
79
FFLAGS+=	-fallow-argument-mismatch
80
.endif
81
76
post-patch:
82
post-patch:
77
	@${RM} -r ${WRKSRC}/elmergrid/src/metis-5.1.0
83
	@${RM} -r ${WRKSRC}/elmergrid/src/metis-5.1.0
78
	@${REINPLACE_CMD} -e 's,"metis.*/metis\.h",<metis.h>,' \
84
	@${REINPLACE_CMD} -e 's,"metis.*/metis\.h",<metis.h>,' \
(-)science/getdp/Makefile (+7 lines)
Lines 20-25 Link Here
20
20
21
OPTIONS_DEFINE=	DOCS EXAMPLES
21
OPTIONS_DEFINE=	DOCS EXAMPLES
22
22
23
.include <bsd.port.pre.mk>
24
25
.if ${GCC_DEFAULT} >= 10
26
# workaround for Rank mismatch in argument 'lines' at (1) (rank-1 and scalar)
27
FFLAGS+=	-fallow-argument-mismatch
28
.endif
29
23
do-test:
30
do-test:
24
	cd ${WRKSRC}/demos && yes "" | ${STAGEDIR}${PREFIX}/bin/${PORTNAME} magnet.pro -solve MagSta_phi
31
	cd ${WRKSRC}/demos && yes "" | ${STAGEDIR}${PREFIX}/bin/${PORTNAME} magnet.pro -solve MagSta_phi
25
32
(-)science/hdf/Makefile (-1 / +9 lines)
Lines 31-36 Link Here
31
31
32
OPTIONS_DEFINE=	EXAMPLES
32
OPTIONS_DEFINE=	EXAMPLES
33
33
34
.include <bsd.port.pre.mk>
35
36
.if ${GCC_DEFAULT} >= 10
37
# workaround for Type mismatch between actual argument at (1) and actual argument at (2) (CHARACTER(0)/INTEGER(4)).
38
# in theory, this should set FCFLAGS, but the port does not conform
39
FFLAGS+=	-fallow-argument-mismatch
40
.endif
41
34
post-patch:
42
post-patch:
35
	@${REINPLACE_CMD} -e '/PROD_/ s|=.*|=""|' ${WRKSRC}/config/freebsd
43
	@${REINPLACE_CMD} -e '/PROD_/ s|=.*|=""|' ${WRKSRC}/config/freebsd
36
	@${REINPLACE_CMD} -e 's/ || (__APPLE__.*//' \
44
	@${REINPLACE_CMD} -e 's/ || (__APPLE__.*//' \
Lines 42-45 Link Here
42
	${INSTALL_MAN} ${WRKSRC}/man/gr_chunk.3 \
50
	${INSTALL_MAN} ${WRKSRC}/man/gr_chunk.3 \
43
		${STAGEDIR}${MAN3PREFIX}/man/man3
51
		${STAGEDIR}${MAN3PREFIX}/man/man3
44
52
45
.include <bsd.port.mk>
53
.include <bsd.port.post.mk>
(-)science/latte/Makefile (+8 lines)
Lines 40-43 Link Here
40
40
41
CONFLICTS_INSTALL=	latte-integrale
41
CONFLICTS_INSTALL=	latte-integrale
42
42
43
.include <bsd.port.pre.mk>
44
45
.if ${GCC_DEFAULT} >= 10
46
# workaround for Type mismatch between actual argument at (1) and actual argument at (2) (COMPLEX(8)/REAL(8)).
47
# in theory, this should set FCFLAGS, but the port does not conform
48
FFLAGS+=	-fallow-argument-mismatch
49
.endif
50
43
.include <bsd.port.mk>
51
.include <bsd.port.mk>
(-)science/libgridxc/Makefile (+6 lines)
Lines 37-42 Link Here
37
LIBXC_LIB_DEPENDS=	libxc.so:science/libxc
37
LIBXC_LIB_DEPENDS=	libxc.so:science/libxc
38
LIBXC_BROKEN=		Fails to build with libxc-5.0.0: https://bugs.launchpad.net/libgridxc/+bug/1899578
38
LIBXC_BROKEN=		Fails to build with libxc-5.0.0: https://bugs.launchpad.net/libgridxc/+bug/1899578
39
39
40
.include <bsd.port.pre.mk>
41
42
.if ${GCC_DEFAULT} >= 10
43
BROKEN=		fails to build with GCC 10: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(8)/INTEGER(4)).
44
.endif
45
40
post-patch:
46
post-patch:
41
	@${MKDIR} ${BUILD_WRKSRC}
47
	@${MKDIR} ${BUILD_WRKSRC}
42
	@${CAT} ${WRKSRC}/../extra/fortran.mk \
48
	@${CAT} ${WRKSRC}/../extra/fortran.mk \
(-)science/mbdyn/Makefile (-1 / +9 lines)
Lines 58-66 Link Here
58
REFERENCE_CONFIGURE_ON=	--with-blas=blas
58
REFERENCE_CONFIGURE_ON=	--with-blas=blas
59
REFERENCE_USES=	blaslapack:netlib
59
REFERENCE_USES=	blaslapack:netlib
60
60
61
.include <bsd.port.pre.mk>
62
63
.if ${GCC_DEFAULT} >= 10
64
# workaround for Type mismatch in argument 't' at (1); passed REAL(4) to INTEGER(4)
65
# in theory, this should set FCFLAGS, but the port does not conform
66
FFLAGS+=	-fallow-argument-mismatch
67
.endif
68
61
pre-configure:
69
pre-configure:
62
	${REINPLACE_CMD} -e '/try_lapack_LIBS=/s/-llapack/${LAPACKLIB}/' \
70
	${REINPLACE_CMD} -e '/try_lapack_LIBS=/s/-llapack/${LAPACKLIB}/' \
63
		-e 's/ -lxerbla//; s/-lcholmod/-lcholmod ${BLASLIB} ${LAPACKLIB} -lsuitesparseconfig/'	\
71
		-e 's/ -lxerbla//; s/-lcholmod/-lcholmod ${BLASLIB} ${LAPACKLIB} -lsuitesparseconfig/'	\
64
		${WRKSRC}/configure
72
		${WRKSRC}/configure
65
73
66
.include <bsd.port.mk>
74
.include <bsd.port.post.mk>
(-)science/mdynamix/Makefile (+8 lines)
Lines 26-29 Link Here
26
	${INSTALL_PROGRAM} ${WRKSRC}/md ${STAGEDIR}${PREFIX}/bin
26
	${INSTALL_PROGRAM} ${WRKSRC}/md ${STAGEDIR}${PREFIX}/bin
27
	${INSTALL_PROGRAM} ${WRKSRC}/mdp ${STAGEDIR}${PREFIX}/bin
27
	${INSTALL_PROGRAM} ${WRKSRC}/mdp ${STAGEDIR}${PREFIX}/bin
28
28
29
.include <bsd.port.pre.mk>
30
31
.if ${GCC_DEFAULT} >= 10
32
# workaround for Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)).
33
# in theory, this should set FCFLAGS, but the port does not conform
34
FFLAGS+=	-fallow-argument-mismatch
35
.endif
36
29
.include <bsd.port.mk>
37
.include <bsd.port.mk>
(-)science/octopus/Makefile (-1 / +9 lines)
Lines 41-47 Link Here
41
OPTIONS_DEFAULT=		OPENMP
41
OPTIONS_DEFAULT=		OPENMP
42
OPENMP_CONFIGURE_ENABLE=	openmp
42
OPENMP_CONFIGURE_ENABLE=	openmp
43
43
44
.include <bsd.port.pre.mk>
45
46
# workaround for:
47
# Error: BOZ literal constant at (1) is neither a data-stmt-constant nor an actual argument to INT, REAL, DBLE, or CMPLX intrinsic function [see '-fno-allow-invalid-boz']
48
.if ${GCC_DEFAULT} >= 10
49
FCFLAGS+=	-fallow-argument-mismatch -fallow-invalid-boz
50
.endif
51
44
post-stage: # https://gitlab.com/octopus-code/octopus/issues/108
52
post-stage: # https://gitlab.com/octopus-code/octopus/issues/108
45
	@${RM} ${STAGEDIR}${PREFIX}/include/yaml.h
53
	@${RM} ${STAGEDIR}${PREFIX}/include/yaml.h
46
54
47
.include <bsd.port.mk>
55
.include <bsd.port.post.mk>
(-)science/pnetcdf/Makefile (+7 lines)
Lines 37-42 Link Here
37
OPENMPI3_CONFIGURE_ON=	--with-mpi=${LOCALBASE}/mpi/openmpi3
37
OPENMPI3_CONFIGURE_ON=	--with-mpi=${LOCALBASE}/mpi/openmpi3
38
OPENMPI3_LIB_DEPENDS=	libmpi.so:net/openmpi3
38
OPENMPI3_LIB_DEPENDS=	libmpi.so:net/openmpi3
39
39
40
.include <bsd.port.pre.mk>
41
42
.if ${GCC_DEFAULT} >= 10
43
# workaround for Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(8)/CHARACTER(*)).
44
FCFLAGS+=	-fallow-argument-mismatch
45
.endif
46
40
post-patch:
47
post-patch:
41
	@${REINPLACE_CMD} -e '/$$(INSTALL.*$$(PREFIX)/ s|$$(PREFIX)|$$(DESTDIR)&|' ${WRKSRC}/Makefile.in
48
	@${REINPLACE_CMD} -e '/$$(INSTALL.*$$(PREFIX)/ s|$$(PREFIX)|$$(DESTDIR)&|' ${WRKSRC}/Makefile.in
42
49
(-)science/quantum-espresso/Makefile (+9 lines)
Lines 34-39 Link Here
34
34
35
MAKE_JOBS_UNSAFE=	yes # https://github.com/QEF/q-e/issues/9
35
MAKE_JOBS_UNSAFE=	yes # https://github.com/QEF/q-e/issues/9
36
36
37
.include <bsd.port.pre.mk>
38
39
.if ${GCC_DEFAULT} >= 10
40
# workaround for Error: Rank mismatch between actual argument at (1)
41
#   and actual argument at (2) (scalar and rank-1)
42
# in theory, this should set FCFLAGS, but the port does not conform
43
FFLAGS+=	-fallow-argument-mismatch
44
.endif
45
37
post-extract:
46
post-extract:
38
	@${RM} ${WRKSRC}/archive/lapack-3.6.1.tgz
47
	@${RM} ${WRKSRC}/archive/lapack-3.6.1.tgz
39
	@cd ${WRKSRC} && ${MKDIR} FoX && ${LN} -s ${LOCALBASE}/include FoX/finclude
48
	@cd ${WRKSRC} && ${MKDIR} FoX && ${LN} -s ${LOCALBASE}/include FoX/finclude
(-)science/siesta/Makefile (-1 / +8 lines)
Lines 26-31 Link Here
26
26
27
PLIST_FILES=	bin/${PORTNAME}
27
PLIST_FILES=	bin/${PORTNAME}
28
28
29
.include <bsd.port.pre.mk>
30
31
.if ${GCC_DEFAULT} >= 10
32
# workaround for Type mismatch between actual argument at (1) and actual argument at (2) (COMPLEX(8)/REAL(8)).
33
FCFLAGS+=	-fallow-argument-mismatch
34
.endif
35
29
pre-configure:
36
pre-configure:
30
	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SH} ../Src/obj_setup.sh
37
	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${SH} ../Src/obj_setup.sh
31
38
Lines 32-35 Link Here
32
do-install:
39
do-install:
33
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
40
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
34
41
35
.include <bsd.port.mk>
42
.include <bsd.port.post.mk>

Return to bug 246700