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

Collapse All | Expand All

(-)net/mpich/Makefile (-7 / +13 lines)
Lines 1-8 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
PORTNAME=	mpich
3
PORTNAME=	mpich
4
PORTVERSION=	3.2.1
4
PORTVERSION=	3.4
5
PORTREVISION=	6
6
CATEGORIES=	net parallel
5
CATEGORIES=	net parallel
7
MASTER_SITES=	https://www.mpich.org/static/downloads/${DISTVERSION}/
6
MASTER_SITES=	https://www.mpich.org/static/downloads/${DISTVERSION}/
8
7
Lines 14-20 Link Here
14
LICENSE_FILE=	${WRKSRC}/COPYRIGHT
13
LICENSE_FILE=	${WRKSRC}/COPYRIGHT
15
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
14
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
16
15
17
LIB_DEPENDS=	libhwloc.so:devel/hwloc
16
LIB_DEPENDS=	libhwloc.so:devel/hwloc2	\
17
		libjson-c.so:devel/json-c	\
18
		libfabric.so:net/libfabric	\
19
		libslurm.so:sysutils/slurm-wlm	\
20
		libepoll-shim.so:devel/libepoll-shim
18
21
19
CONFLICTS=	lam-7.* mpd-[0-9]* mpiexec-0.* mpich2-[0-9]*
22
CONFLICTS=	lam-7.* mpd-[0-9]* mpiexec-0.* mpich2-[0-9]*
20
GNU_CONFIGURE=	yes
23
GNU_CONFIGURE=	yes
Lines 21-26 Link Here
21
INSTALL_TARGET=	install-strip
24
INSTALL_TARGET=	install-strip
22
USES=		compiler:c11 libtool perl5 pkgconfig
25
USES=		compiler:c11 libtool perl5 pkgconfig
23
USE_LDCONFIG=	yes
26
USE_LDCONFIG=	yes
27
TEST_TARGET=	check
24
28
25
OPTIONS_DEFINE=		DOCS FORTRAN
29
OPTIONS_DEFINE=		DOCS FORTRAN
26
OPTIONS_GROUP=		PM
30
OPTIONS_GROUP=		PM
Lines 48-62 Link Here
48
DHYDRA_DESC=	Make hydra the default process manager
52
DHYDRA_DESC=	Make hydra the default process manager
49
53
50
CONFIGURE_ARGS=	--enable-fast="" --with-hwloc-prefix=${LOCALBASE} \
54
CONFIGURE_ARGS=	--enable-fast="" --with-hwloc-prefix=${LOCALBASE} \
51
		ac_cv_path_BASH_SHELL="" \
55
		--with-libfabric=${LOCALBASE} ac_cv_path_BASH_SHELL="" \
52
		pkgconfigdir="${PREFIX}/libdata/pkgconfig" \
56
		pkgconfigdir="${PREFIX}/libdata/pkgconfig" \
53
		MPICHLIB_CFLAGS="${CFLAGS}" CFLAGS="" \
57
		MPICHLIB_CFLAGS="${CFLAGS}" \
58
		CFLAGS="-I${LOCALBASE}/include/json-c" \
54
		MPICHLIB_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="" \
59
		MPICHLIB_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="" \
55
		MPICHLIB_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="" \
60
		MPICHLIB_CXXFLAGS="${CXXFLAGS}" CXXFLAGS="" \
56
		MPICHLIB_FFLAGS="${FFLAGS}" FFLAGS="" \
61
		MPICHLIB_FFLAGS="${FFLAGS}" FFLAGS="" \
57
		MPICHLIB_FCFLAGS="${FCFLAGS}" FCFLAGS="" \
62
		MPICHLIB_FCFLAGS="${FCFLAGS}" FCFLAGS="" \
58
		MPICHLIB_LDFLAGS="${LDFLAGS}" LDFLAGS="" \
63
		MPICHLIB_LDFLAGS="${LDFLAGS}" LDFLAGS="" \
59
		MPICHLIB_LIBS="${LIBS}" LIBS=""
64
		MPICHLIB_LIBS="${LIBS}" \
65
		LIBS="-L${LOCALBASE}/lib -lepoll-shim -ljson-c -lm"
60
66
61
.include <bsd.port.options.mk>
67
.include <bsd.port.options.mk>
62
68
Lines 86-91 Link Here
86
.endif
92
.endif
87
93
88
post-patch:
94
post-patch:
89
	@${RM} -r ${WRKSRC}/www
95
	${RM} -r ${WRKSRC}/www
90
96
91
.include <bsd.port.mk>
97
.include <bsd.port.mk>
(-)net/mpich/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1528376124
1
TIMESTAMP = 1609947139
2
SHA256 (mpich-3.2.1.tar.gz) = 5db53bf2edfaa2238eb6a0a5bc3d2c2ccbfbb1badd79b664a1a919d2ce2330f1
2
SHA256 (mpich-3.4.tar.gz) = ce5e238f0c3c13ab94a64936060cff9964225e3af99df1ea11b130f20036c24b
3
SIZE (mpich-3.2.1.tar.gz) = 11908154
3
SIZE (mpich-3.4.tar.gz) = 30716482
(-)net/mpich/files/patch-Makefile.in (+26 lines)
Line 0 Link Here
1
--- Makefile.in.orig	2021-01-05 15:32:33 UTC
2
+++ Makefile.in
3
@@ -9967,8 +9967,6 @@ hwlocsrcdir = @hwlocsrcdir@
4
 includedir = @includedir@
5
 infodir = @infodir@
6
 install_sh = @install_sh@
7
-jsonlib = @jsonlib@
8
-jsonsrcdir = @jsonsrcdir@
9
 libdir = @libdir@
10
 libexecdir = @libexecdir@
11
 libmpi_so_version = @libmpi_so_version@
12
@@ -10237,12 +10235,12 @@ errnames_txt_files = src/mpi/errhan/errnames.txt \
13
 	src/mpid/ch3/errnames.txt $(am__append_52) $(am__append_63) \
14
 	$(am__append_66) $(am__append_77) $(am__append_82) \
15
 	src/pmi/errnames.txt
16
-external_subdirs = @mplsrcdir@ @zmsrcdir@ @hwlocsrcdir@ @jsonsrcdir@ \
17
+external_subdirs = @mplsrcdir@ @zmsrcdir@ @hwlocsrcdir@ \
18
 	@yaksasrcdir@ $(am__append_78) $(am__append_83)
19
 external_ldflags = @mpllibdir@ @zmlibdir@ @hwloclibdir@ @netloclibdir@ @yaksalibdir@
20
 external_libs = @WRAPPER_LIBS@
21
 mpi_convenience_libs = $(am__append_13)
22
-pmpi_convenience_libs = @mpllib@ @zmlib@ @hwloclib@ @jsonlib@ \
23
+pmpi_convenience_libs = @mpllib@ @zmlib@ @hwloclib@ \
24
 	@yaksalib@ $(am__append_5) $(am__append_14) $(am__append_79) \
25
 	$(am__append_84)
26
 
(-)net/mpich/files/patch-configure (-14 / +366 lines)
Lines 1-19 Link Here
1
--- configure.orig	2017-11-11 02:22:24 UTC
1
--- configure.orig	2021-01-05 15:32:39 UTC
2
+++ configure
2
+++ configure
3
@@ -32904,7 +32904,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$
3
@@ -1209,8 +1209,6 @@ HWLOC_top_builddir
4
 	# The best solution is to turn off errors on particular routines
4
 hwloclib
5
 	# if that isn't possible (e.g., too many of them), then
5
 hwloclibdir
6
 	# just try arguments that turn off all checking
6
 hwlocsrcdir
7
-	for flags in  "-mismatch" ; do
7
-jsonlib
8
+	for flags in  "-fallow-argument-mismatch" "-mismatch" ; do
8
-jsonsrcdir
9
             testok=no
9
 VISIBILITY_CFLAGS
10
             FFLAGS="$FFLAGS $flags"
10
 BUILD_PROFILING_LIB_FALSE
11
             cat > conftest.$ac_ext <<_ACEOF
11
 BUILD_PROFILING_LIB_TRUE
12
@@ -32946,17 +32946,7 @@ the same routine with arguments of different types." "
12
@@ -31186,336 +31184,9 @@ if test "$NEEDSPLIB" = "yes" ; then
13
 fi
13
 fi
14
 
14
 
15
 # json-c
16
+# We use the external port devel/json-c
17
 
18
-jsonsrcdir=""
19
 
20
-jsonlib=""
21
-
22
-
23
-
24
-
25
-	if test -z "${pac_save_CFLAGS_nesting}" ; then
26
-	   pac_save_CFLAGS_nesting=0
27
-	fi
28
-	eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"'
29
-	pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1`
30
-
31
-
32
-	if test -z "${pac_save_CPPFLAGS_nesting}" ; then
33
-	   pac_save_CPPFLAGS_nesting=0
34
-	fi
35
-	eval pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}='"$CPPFLAGS"'
36
-	pac_save_CPPFLAGS_nesting=`expr ${pac_save_CPPFLAGS_nesting} + 1`
37
-
38
-
39
-	if test -z "${pac_save_CXXFLAGS_nesting}" ; then
40
-	   pac_save_CXXFLAGS_nesting=0
41
-	fi
42
-	eval pac_save_CXXFLAGS_${pac_save_CXXFLAGS_nesting}='"$CXXFLAGS"'
43
-	pac_save_CXXFLAGS_nesting=`expr ${pac_save_CXXFLAGS_nesting} + 1`
44
-
45
-
46
-	if test -z "${pac_save_FFLAGS_nesting}" ; then
47
-	   pac_save_FFLAGS_nesting=0
48
-	fi
49
-	eval pac_save_FFLAGS_${pac_save_FFLAGS_nesting}='"$FFLAGS"'
50
-	pac_save_FFLAGS_nesting=`expr ${pac_save_FFLAGS_nesting} + 1`
51
-
52
-
53
-	if test -z "${pac_save_FCFLAGS_nesting}" ; then
54
-	   pac_save_FCFLAGS_nesting=0
55
-	fi
56
-	eval pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}='"$FCFLAGS"'
57
-	pac_save_FCFLAGS_nesting=`expr ${pac_save_FCFLAGS_nesting} + 1`
58
-
59
-
60
-	if test -z "${pac_save_LDFLAGS_nesting}" ; then
61
-	   pac_save_LDFLAGS_nesting=0
62
-	fi
63
-	eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}='"$LDFLAGS"'
64
-	pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} + 1`
65
-
66
-
67
-	if test -z "${pac_save_LIBS_nesting}" ; then
68
-	   pac_save_LIBS_nesting=0
69
-	fi
70
-	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
71
-	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
72
-
73
-
74
-
75
-	if test "$FROM_MPICH" = "yes" ; then
76
-	   CFLAGS="$USER_CFLAGS"
77
-	   CPPFLAGS="$USER_CPPFLAGS"
78
-	   CXXFLAGS="$USER_CXXFLAGS"
79
-	   FFLAGS="$USER_FFLAGS"
80
-	   FCFLAGS="$USER_FCFLAGS"
81
-	   LDFLAGS="$USER_LDFLAGS"
82
-	   LIBS="$USER_LIBS"
83
-	fi
84
-
85
-
86
-        pac_dir="modules/json-c"
87
-        { $as_echo "$as_me:${as_lineno-$LINENO}: ===== configuring modules/json-c =====" >&5
88
-$as_echo "$as_me: ===== configuring modules/json-c =====" >&6;}
89
-
90
-	pac_abs_srcdir=`(cd $srcdir && pwd)`
91
-
92
-	if test -f $pac_abs_srcdir/modules/json-c/setup ; then
93
-           { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/modules/json-c/setup" >&5
94
-$as_echo "$as_me: sourcing $pac_abs_srcdir/modules/json-c/setup" >&6;}
95
-	   . $pac_abs_srcdir/modules/json-c/setup
96
-	fi
97
-
98
-        # Adapted for MPICH from the autoconf-2.67 implementation of
99
-        # AC_CONFIG_SUBDIRS.  Search for "MPICH note:" for relevant commentary and
100
-        # local modifications.
101
-
102
-        # Remove --cache-file, --srcdir, and --disable-option-checking arguments
103
-        # so they do not pile up.  Otherwise relative paths (like --srcdir=.. from
104
-        # make distcheck) will be incorrect.
105
-        pac_sub_configure_args="--disable-werror"
106
-        pac_prev=
107
-        eval "set x $ac_configure_args"
108
-        shift
109
-        for pac_arg
110
-        do
111
-          if test -n "$pac_prev"; then
112
-            pac_prev=
113
-            continue
114
-          fi
115
-          case $pac_arg in
116
-          -cache-file | --cache-file | --cache-fil | --cache-fi \
117
-          | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
118
-            pac_prev=cache_file ;;
119
-          -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
120
-          | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
121
-          | --c=*)
122
-            ;;
123
-          --config-cache | -C)
124
-            ;;
125
-          -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
126
-            pac_prev=srcdir ;;
127
-          -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
128
-            ;;
129
-          -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
130
-            pac_prev=prefix ;;
131
-          -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
132
-            ;;
133
-          --disable-option-checking)
134
-            ;;
135
-          *)
136
-            # MPICH note: this is a more robust version of the "precious
137
-            # variable" propagation code that was present in the previous
138
-            # incarnation of this macro
139
-            for pac_pvar in $ac_precious_vars ; do
140
-                # check if configure argument token contains the
141
-                # precious variable, i.e. "name_of_prec_var=".
142
-                if ( echo $pac_arg | grep "^$pac_pvar=" >/dev/null 2>&1 ) ; then
143
-                    # check if current precious variable is set in env
144
-                    eval pvar_set=\${$pac_pvar+set}
145
-                    if test "$pvar_set" = "set" ; then
146
-                        # Append 'name_of_prec_var=value_of_prec_var'
147
-                        # to the subconfigure arguments list, where
148
-                        # value_of_prec_var is fetched from the env.
149
-                        # this also overrides any value set on the command line
150
-                        eval pac_pval=\${$pac_pvar}
151
-                        pac_arg="$pac_pvar=$pac_pval"
152
-                        break
153
-                    fi
154
-                fi
155
-            done
156
-            case $pac_arg in
157
-            *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
158
-            esac
159
-            as_fn_append pac_sub_configure_args " '$pac_arg'" ;;
160
-          esac
161
-        done
162
-
163
-        # Always prepend --prefix to ensure using the same prefix
164
-        # in subdir configurations.
165
-        # MPICH note: see tt#983 for an example of why this is necessary
166
-        pac_arg="--prefix=$prefix"
167
-        case $pac_arg in
168
-        *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
169
-        esac
170
-        pac_sub_configure_args="'$pac_arg' $pac_sub_configure_args"
171
-
172
-        # Pass --silent
173
-        if test "$silent" = yes; then
174
-          pac_sub_configure_args="--silent $pac_sub_configure_args"
175
-        fi
176
-
177
-        # Always prepend --disable-option-checking to silence warnings, since
178
-        # different subdirs can have different --enable and --with options.
179
-        pac_sub_configure_args="--disable-option-checking $pac_sub_configure_args"
180
-
181
-        pac_popdir=`pwd`
182
-
183
-        # Do not complain, so a configure script can configure whichever
184
-        # parts of a large source tree are present.
185
-        test -d "$srcdir/$pac_dir" || continue
186
-
187
-        # MPICH note: modified to remove the internal "_AS_*" macro usage, also
188
-        # msg is already printed at top
189
-        as_dir="$pac_dir"; as_fn_mkdir_p
190
-        # MPICH note: we leave this internal macro reference for now.  We can clone
191
-        # the macro locally if this turns out to be non-portable across several autoconf
192
-        # versions.  It sets the following variables: ac_builddir,
193
-        # ac_top_builddir_sub, ac_top_build_prefix, ac_srcdir, ac_top_srcdir,
194
-        # ac_abs_top_builddir, ac_abs_builddir, ac_abs_top_srcdir, ac_abs_srcdir
195
-        ac_builddir=.
196
-
197
-case "$pac_dir" in
198
-.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
199
-*)
200
-  ac_dir_suffix=/`$as_echo "$pac_dir" | sed 's|^\.[\\/]||'`
201
-  # A ".." for each directory in $ac_dir_suffix.
202
-  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
203
-  case $ac_top_builddir_sub in
204
-  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
205
-  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
206
-  esac ;;
207
-esac
208
-ac_abs_top_builddir=$ac_pwd
209
-ac_abs_builddir=$ac_pwd$ac_dir_suffix
210
-# for backward compatibility:
211
-ac_top_builddir=$ac_top_build_prefix
212
-
213
-case $srcdir in
214
-  .)  # We are building in place.
215
-    ac_srcdir=.
216
-    ac_top_srcdir=$ac_top_builddir_sub
217
-    ac_abs_top_srcdir=$ac_pwd ;;
218
-  [\\/]* | ?:[\\/]* )  # Absolute name.
219
-    ac_srcdir=$srcdir$ac_dir_suffix;
220
-    ac_top_srcdir=$srcdir
221
-    ac_abs_top_srcdir=$srcdir ;;
222
-  *) # Relative name.
223
-    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
224
-    ac_top_srcdir=$ac_top_build_prefix$srcdir
225
-    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
226
-esac
227
-ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
228
-
229
-
230
-        cd "$pac_dir"
231
-
232
-        # Check for guested configure; otherwise get Cygnus style configure.
233
-        if test -f "$ac_srcdir/configure.gnu"; then
234
-          pac_sub_configure=$ac_srcdir/configure.gnu
235
-        elif test -f "$ac_srcdir/configure"; then
236
-          pac_sub_configure=$ac_srcdir/configure
237
-        elif test -f "$ac_srcdir/configure.ac"; then
238
-          # This should be Cygnus configure.
239
-          pac_sub_configure=$ac_aux_dir/configure
240
-        else
241
-          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $pac_dir" >&5
242
-$as_echo "$as_me: WARNING: no configuration information is in $pac_dir" >&2;}
243
-          pac_sub_configure=
244
-        fi
245
-
246
-        # The recursion is here.
247
-        if test -n "$pac_sub_configure"; then
248
-          # MPICH note: overriding the cache file on purpose to prevent strange
249
-          # issues resulting from inter-dir caching
250
-          pac_sub_cache_file="/dev/null"
251
-
252
-          { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&5
253
-$as_echo "$as_me: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
254
-          # The eval makes quoting arguments work.
255
-          # MPICH note: we want to execute the provided actions, not be silent
256
-          # or error out if the subconfigure succeeded/failed
257
-          if eval "\$SHELL \"\$pac_sub_configure\" $pac_sub_configure_args \
258
-               --cache-file=\"\$pac_sub_cache_file\" --srcdir=\"\$ac_srcdir\""
259
-          then
260
-            # restore the current dir for the provided actions
261
-            cd "$pac_popdir"
262
-
263
-          else
264
-            # restore the current dir for the provided actions
265
-            cd "$pac_popdir"
266
-            as_fn_error $? "json-c configure failed" "$LINENO" 5
267
-          fi
268
-        fi
269
-
270
-        cd "$pac_popdir"
271
-
272
-        { $as_echo "$as_me:${as_lineno-$LINENO}: ===== done with modules/json-c configure =====" >&5
273
-$as_echo "$as_me: ===== done with modules/json-c configure =====" >&6;}
274
-
275
-	# Check for any localdefs files.  These may be created, so we
276
-	# look in the local directory first.
277
-	if test -f modules/json-c/localdefs ; then
278
-           { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing modules/json-c/localdefs" >&5
279
-$as_echo "$as_me: sourcing modules/json-c/localdefs" >&6;}
280
-	   . modules/json-c/localdefs
281
-	elif test -f $pac_abs_srcdir/modules/json-c/localdefs ; then
282
-           { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/modules/json-c/localdefs" >&5
283
-$as_echo "$as_me: sourcing $pac_abs_srcdir/modules/json-c/localdefs" >&6;}
284
-	   . $pac_abs_srcdir/modules/json-c/localdefs
285
-	fi
286
-
287
-
288
-
289
-	pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1`
290
-	eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}"
291
-	eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}=""
292
-
293
-
294
-	pac_save_CPPFLAGS_nesting=`expr ${pac_save_CPPFLAGS_nesting} - 1`
295
-	eval CPPFLAGS="\$pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}"
296
-	eval pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}=""
297
-
298
-
299
-	pac_save_CXXFLAGS_nesting=`expr ${pac_save_CXXFLAGS_nesting} - 1`
300
-	eval CXXFLAGS="\$pac_save_CXXFLAGS_${pac_save_CXXFLAGS_nesting}"
301
-	eval pac_save_CXXFLAGS_${pac_save_CXXFLAGS_nesting}=""
302
-
303
-
304
-	pac_save_FFLAGS_nesting=`expr ${pac_save_FFLAGS_nesting} - 1`
305
-	eval FFLAGS="\$pac_save_FFLAGS_${pac_save_FFLAGS_nesting}"
306
-	eval pac_save_FFLAGS_${pac_save_FFLAGS_nesting}=""
307
-
308
-
309
-	pac_save_FCFLAGS_nesting=`expr ${pac_save_FCFLAGS_nesting} - 1`
310
-	eval FCFLAGS="\$pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}"
311
-	eval pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}=""
312
-
313
-
314
-	pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} - 1`
315
-	eval LDFLAGS="\$pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}"
316
-	eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}=""
317
-
318
-
319
-	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
320
-	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
321
-	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
322
-
323
-
324
-jsonsrcdir="${main_top_builddir}/modules/json-c"
325
-jsonlib="${main_top_builddir}/modules/json-c/libjson-c.la"
326
-
327
-
328
-	if echo "$CPPFLAGS" | $FGREP -e "\<-I${use_top_srcdir}/modules/json-c\>" >/dev/null 2>&1; then :
329
-  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${use_top_srcdir}/modules/json-c', not appending" >&5
330
-else
331
-  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${use_top_srcdir}/modules/json-c', appending" >&5
332
-		CPPFLAGS="$CPPFLAGS -I${use_top_srcdir}/modules/json-c"
333
-
334
-fi
335
-
336
-
337
-
338
-	if echo "$CPPFLAGS" | $FGREP -e "\<-I${main_top_builddir}/modules/json-c\>" >/dev/null 2>&1; then :
339
-  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${main_top_builddir}/modules/json-c', not appending" >&5
340
-else
341
-  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${main_top_builddir}/modules/json-c', appending" >&5
342
-		CPPFLAGS="$CPPFLAGS -I${main_top_builddir}/modules/json-c"
343
-
344
-fi
345
-
346
-
347
 # ----------------------------------------------------------------------------
348
 # HWLOC
349
 # ----------------------------------------------------------------------------
350
@@ -45612,18 +45283,8 @@ the same routine with arguments of different types." "
351
 fi
352
 
15
 addarg=$pac_cv_prog_f77_mismatched_args_parm
353
 addarg=$pac_cv_prog_f77_mismatched_args_parm
16
-
354
+FFLAGS="$FFLAGS $addarg"
355
 
17
-    if test "X$addarg" != "X" ; then
356
-    if test "X$addarg" != "X" ; then
18
-        # We could add the names of all of the MPI routines that
357
-        # We could add the names of all of the MPI routines that
19
-        # accept different types.  Instead, we fail cleanly.
358
-        # accept different types.  Instead, we fail cleanly.
Lines 24-30 Link Here
24
-	# the instructions in the following error message.
363
-	# the instructions in the following error message.
25
-	as_fn_error $? "The Fortran compiler $F77 does not accept programs that call the same routine with arguments of different types without the option $addarg.  Rerun configure with FFLAGS=$addarg" "$LINENO" 5
364
-	as_fn_error $? "The Fortran compiler $F77 does not accept programs that call the same routine with arguments of different types without the option $addarg.  Rerun configure with FFLAGS=$addarg" "$LINENO" 5
26
-    fi
365
-    fi
27
+FFLAGS="$FFLAGS $addarg"
366
-
28
 
29
     bindings="$bindings f77"
367
     bindings="$bindings f77"
30
 
368
 
369
 $as_echo "#define HAVE_FORTRAN_BINDING 1" >>confdefs.h
370
@@ -51252,7 +50913,11 @@ $as_echo_n "checking alignment of wchar_t... " >&6; }
371
 if ${ac_cv_alignof_wchar_t+:} false; then :
372
   $as_echo_n "(cached) " >&6
373
 else
374
-  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_wchar_t"        "0
375
+  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_wchar_t"        "
376
+
377
+#ifdef STDC_HEADERS
378
+# include <stddef.h>
379
+#endif
380
 
381
 #ifndef offsetof
382
 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
(-)net/mpich/files/patch-src_binding_cxx_mpicxx.h.in (-18 lines)
Lines 1-18 Link Here
1
--- src/binding/cxx/mpicxx.h.in.orig	2018-12-17 19:36:19 UTC
2
+++ src/binding/cxx/mpicxx.h.in
3
@@ -16,6 +16,7 @@
4
 // GCC (specifically) g++ changed the calling convention
5
 // between 3.2.3 and 3.4.3 (!!)  Normally such changes
6
 // should only occur at major releases (e.g., version 3 to 4)
7
+#if 0 // FreeBSD: remove this version check that fails for no apparent reason
8
 #ifdef __GNUC__ 
9
 # if __GNUC__ >= @GNUCXX_VERSION@ 
10
 #  if __GNUC_MINOR__ > 2 && @GNUCXX_MINORVERSION@ == 2 
11
@@ -23,6 +24,7 @@
12
 #  endif
13
 # endif     
14
 #endif
15
+#endif
16
 
17
 /* 
18
  * Because the API is defined, some methods have parameters that are 
(-)net/mpich/files/patch-test_mpi_configure (-11 / +2 lines)
Lines 1-15 Link Here
1
--- test/mpi/configure.orig	2020-07-05 14:40:24 UTC
1
--- test/mpi/configure.orig	2021-01-05 15:32:00 UTC
2
+++ test/mpi/configure
2
+++ test/mpi/configure
3
@@ -9726,7 +9726,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$
3
@@ -10907,17 +10907,7 @@ the same routine with arguments of different types." "
4
 	# The best solution is to turn off errors on particular routines
5
 	# if that isn't possible (e.g., too many of them), then
6
 	# just try arguments that turn off all checking
7
-	for flags in  "-mismatch" ; do
8
+	for flags in  "-fallow-argument-mismatch" "-mismatch" ; do
9
             testok=no
10
             FFLAGS="$FFLAGS $flags"
11
             cat > conftest.$ac_ext <<_ACEOF
12
@@ -9768,17 +9768,7 @@ the same routine with arguments of different types." "
13
 fi
4
 fi
14
 
5
 
15
 addarg=$pac_cv_prog_f77_mismatched_args_parm
6
 addarg=$pac_cv_prog_f77_mismatched_args_parm
(-)net/mpich/pkg-plist (-22 / +5 lines)
Lines 23-51 Link Here
23
%%FORTRAN%%include/mpif.h
23
%%FORTRAN%%include/mpif.h
24
include/mpio.h
24
include/mpio.h
25
include/mpiof.h
25
include/mpiof.h
26
include/opa_config.h
27
include/opa_primitives.h
28
include/opa_queue.h
29
include/opa_util.h
30
include/primitives/opa_by_lock.h
31
include/primitives/opa_emulated.h
32
include/primitives/opa_gcc_ia64.h
33
include/primitives/opa_gcc_intel_32_64.h
34
include/primitives/opa_gcc_intel_32_64_barrier.h
35
include/primitives/opa_gcc_intel_32_64_ops.h
36
include/primitives/opa_gcc_intel_32_64_p3.h
37
include/primitives/opa_gcc_intel_32_64_p3barrier.h
38
include/primitives/opa_gcc_intrinsics.h
39
include/primitives/opa_gcc_ppc.h
40
include/primitives/opa_gcc_sicortex.h
41
include/primitives/opa_nt_intrinsics.h
42
include/primitives/opa_sun_atomic_ops.h
43
include/primitives/opa_unsafe.h
44
%%FORTRAN%%lib/libfmpich.so
26
%%FORTRAN%%lib/libfmpich.so
45
lib/libmpi.a
27
lib/libmpi.a
46
lib/libmpi.so
28
lib/libmpi.so
47
lib/libmpi.so.12
29
lib/libmpi.so.12
48
lib/libmpi.so.12.1.1
30
lib/libmpi.so.12.1.9
49
lib/libmpich.so
31
lib/libmpich.so
50
lib/libmpichcxx.so
32
lib/libmpichcxx.so
51
%%FORTRAN%%lib/libmpichf90.so
33
%%FORTRAN%%lib/libmpichf90.so
Lines 52-66 Link Here
52
lib/libmpicxx.a
34
lib/libmpicxx.a
53
lib/libmpicxx.so
35
lib/libmpicxx.so
54
lib/libmpicxx.so.12
36
lib/libmpicxx.so.12
55
lib/libmpicxx.so.12.1.1
37
lib/libmpicxx.so.12.1.9
56
%%FORTRAN%%lib/libmpifort.a
38
%%FORTRAN%%lib/libmpifort.a
57
%%FORTRAN%%lib/libmpifort.so
39
%%FORTRAN%%lib/libmpifort.so
58
%%FORTRAN%%lib/libmpifort.so.12
40
%%FORTRAN%%lib/libmpifort.so.12
59
%%FORTRAN%%lib/libmpifort.so.12.1.1
41
%%FORTRAN%%lib/libmpifort.so.12.1.9
60
lib/libmpl.so
42
lib/libmpl.so
61
lib/libopa.so
43
lib/libopa.so
62
libdata/pkgconfig/mpich.pc
44
libdata/pkgconfig/mpich.pc
63
libdata/pkgconfig/openpa.pc
45
libdata/pkgconfig/yaksa.pc
64
man/man1/hydra_nameserver.1.gz
46
man/man1/hydra_nameserver.1.gz
65
man/man1/hydra_persist.1.gz
47
man/man1/hydra_persist.1.gz
66
man/man1/hydra_pmi_proxy.1.gz
48
man/man1/hydra_pmi_proxy.1.gz
Lines 75-80 Link Here
75
man/man3/MPIX_Comm_failure_get_acked.3.gz
57
man/man3/MPIX_Comm_failure_get_acked.3.gz
76
man/man3/MPIX_Comm_revoke.3.gz
58
man/man3/MPIX_Comm_revoke.3.gz
77
man/man3/MPIX_Comm_shrink.3.gz
59
man/man3/MPIX_Comm_shrink.3.gz
60
man/man3/MPIX_GPU_query_support.3.gz
78
man/man3/MPI_Abort.3.gz
61
man/man3/MPI_Abort.3.gz
79
man/man3/MPI_Accumulate.3.gz
62
man/man3/MPI_Accumulate.3.gz
80
man/man3/MPI_Add_error_class.3.gz
63
man/man3/MPI_Add_error_class.3.gz

Return to bug 252494