Commit c212e29d authored by Thierry Thomas's avatar Thierry Thomas
Browse files

net/mpich2: remove

MPICH2 has been marked as deprecated since dec. 2020, and no port in the
tree depends on it anymore.

Upstream switched to MPICH3 (net/mpich) and MPICH4 (not yet in the ports
tree), and now it does not build with GCC-11: it’s time to remove it.

PR:		264366
Reported by:	salvadore
parent 57937c6d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -17183,3 +17183,4 @@ devel/autoconf213|devel/autoconf2.13|2022-05-27|Autoconf restructuring
math/py-cdecimal||2022-05-27|Has expired: upstream does not support it after Python-3.2
devel/py-meliae||2022-05-27|Has expired: does not build against Python-3.9
databases/R-cran-RSQLite.extfuns|databases/R-cran-RSQLite|2022-05-31|Has expired: RSQLite incorporates RSQLite.extfuns
net/mpich2|net/mpich|2022-05-31|Has been deprecrated for a long time and build fails with GCC 11
+0 −1
Original line number Diff line number Diff line
@@ -466,7 +466,6 @@
    SUBDIR += mpd-l2tp-ipv6pd-client
    SUBDIR += mpd5
    SUBDIR += mpich
    SUBDIR += mpich2
    SUBDIR += mpifx
    SUBDIR += mping
    SUBDIR += mptsd

net/mpich2/Makefile

deleted100644 → 0
+0 −189
Original line number Diff line number Diff line
# Created by: dbader@ece.unm.edu

PORTNAME=	mpich2
DISTVERSION=	1.5
PORTREVISION=	15
PORTEPOCH=	5
CATEGORIES=	net java parallel
MASTER_SITES=	http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/${DISTVERSION}/
DIST_SUBDIR=	mpich

MAINTAINER=	thierry@FreeBSD.org
COMMENT=	Portable implementation of MPI-1 and MPI-2

LICENSE=	MPICH
LICENSE_NAME=	MPICH
LICENSE_FILE=	${WRKSRC}/COPYRIGHT
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

DEPRECATED=	This is the legacy version, it is advised to use MPICH 3: net/mpich

BUILD_DEPENDS=	bash:shells/bash
RUN_DEPENDS=	bash:shells/bash

USES=		libtool:keepla localbase fortran perl5 \
		pkgconfig
GNU_CONFIGURE=	yes
USE_GCC=	yes
USE_LDCONFIG=	yes
USE_PERL5=	build
INSTALL_TARGET=	install-strip

OPTIONS_DEFINE_i386=	JAVA
OPTIONS_DEFINE_amd64=	JAVA
OPTIONS_DEFINE=	SMPD X11 DEBUG DOCS
OPTIONS_DEFAULT_i386=	JAVA
OPTIONS_DEFAULT_amd64=	JAVA
OPTIONS_DEFAULT=	X11
JAVA_DESC=	build MPE Jumpshot-4
SMPD_DESC=	use SMPD instead of MPD, for a mixed-OS cluster
X11_DESC=	build MPE graphics routines

CONFIGURE_ARGS=	--enable-romio --enable-shared	\
		--docdir="${DOCSDIR}" \
		--without-python
CONFIGURE_ENV=	FCFLAGS="${FFLAGS}" \
		MPI_CFLAGS="-I${LOCALBASE}/include" \
		PACKAGE="${PORTNAME}" \
		PTHREAD_LIBS="-lpthread" \
		BASH_SHELL="${LOCALBASE}/bin/bash"

.if ${FFLAGS} == "-O"
FFLAGS=		-O2
.endif
LDFLAGS+=	-lpthread -lexecinfo

MAKE_ENV=	CCACHE_DISABLE=yes PACKAGE=${PORTNAME}
NO_CCACHE=	yes

CONFLICTS=	mpd mpich-3.*

VERSO=		8.0.1
VERSOM=		${VERSO:R:R}
PLIST_SUB=	VER=${VERSO} VERM=${VERSOM}
SUB_FILES=	pkg-message

THREAD2FIX=	configure test/mpi/threads/comm/Makefile.in	\
		test/mpi/threads/pt2pt/Makefile.in		\
		src/mpe2/src/logging/configure			\
		src/mpi/romio/configure src/openpa/configure	\
		src/pm/hydra/configure
LOCALBASE2FIX=	src/mpe2/src/slog2sdk/trace_rlog/configure	\
		src/mpe2/src/slog2sdk/trace_sample/configure	\
		src/mpe2/src/graphics/configure
STAGE2FIX=	bin/mpicc bin/mpicxx bin/mpif77 bin/mpif90	\
		etc/mpicc.conf etc/mpicxx.conf etc/mpif77.conf	\
		etc/mpif90.conf sbin/mpeuninstall
DOC2PATCH=	Makefile.in src/mpe2/sbin/mpeinstall.in		\
		src/openpa/Makefile.in src/mpi/romio/util/romioinstall.in
CONFPFX2FIX1=	src/pm/mpd/mpd.py
CONFPFX2FIX2=	doc/installguide/install.tex.vin		\
		src/pm/mpd/mpdroot.c
BIN2STRIP=	check_callstack clog2_join clog2_print clog2_repair

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDEBUG}
MAKE_ENV+=	VERBOSE=1
.endif

.if ! ${PORT_OPTIONS:MJAVA}
CONFIGURE_ARGS+=	--without-java
PLIST_SUB+=	JAVA="@comment "
PLX11=		"@comment "
.else
.if ! ${PORT_OPTIONS:MX11}
IGNORE=		WITH_JAVA requires WITH_X11
.endif
CONFIGURE_ARGS+=	--with-java="${JAVA_HOME}"
USE_JAVA=	yes
PLIST_SUB+=	JAVA=""
PLX11=		""
BIN2STRIP+=	rlog_check_timeorder rlog_print
.endif

#define WITH_RECV_TIMEOUT to be an appropriate value (>20 for slow machines),
#in order to set a different default MPIEXEC_RECV_TIMEOUT
.if defined(MAINTAINER_MODE)
WITH_RECV_TIMEOUT?=	100
.else
WITH_RECV_TIMEOUT?=	20
.endif

.if ${PORT_OPTIONS:MSMPD}
CONFIGURE_ARGS+=	--with-pmi=smpd --with-pm=smpd
PLIST_SUB+=	PM_MPD="@comment " PM_SMPD=""
.else
CONFIGURE_ARGS+=	--with-pmi=simple --with-pm=mpd
PLIST_SUB+=	PM_MPD="" PM_SMPD="@comment "
BIN2STRIP+=	mpdroot
.endif

.if ! ${PORT_OPTIONS:MX11}
CONFIGURE_ARGS+=	--disable-graphics
PLIST_SUB+=	X11="@comment "
.else
CONFIGURE_ARGS+=	--x-includes=${LOCALBASE}/include --x-libraries==${LOCALBASE}/lib
USES+=		xorg
USE_XORG=	x11 xt
PLIST_SUB+=	X11=${PLX11}
.endif

.include <bsd.port.pre.mk>

pre-configure:
	${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${LOCALBASE2FIX:S|^|${WRKSRC}/|}
	${FIND} ${WRKSRC} -name configure | ${XARGS}	\
		${REINPLACE_CMD} -e 's|doc/$${PACKAGE}|doc/${PORTNAME}|'
.for fin in ${DOC2PATCH}
. if ${PORT_OPTIONS:MDOCS}
	${REINPLACE_CMD} -e 's|%%PORTDOCS%%||' ${WRKSRC}/${fin}
. else
	${REINPLACE_CMD} -e 's|%%PORTDOCS%%|#|' ${WRKSRC}/${fin}
. endif
.endfor
.if ! ${PORT_OPTIONS:MDOCS}
	${REINPLACE_CMD} -e 's|lib doc share|lib share|'	\
		${WRKSRC}/src/mpe2/src/slog2sdk/sbin/install-package.in
.endif
	${REINPLACE_CMD} -e '/MPIEXEC_RECV_TIMEOUT/s|20,|${WITH_RECV_TIMEOUT},|' \
		${WRKSRC}/src/pm/mpd/mpiexec.py
	${REINPLACE_CMD} -e 's|%%SRCDIR%%|${WRKSRC}|' ${WRKSRC}/${CONFIGURE_SCRIPT}
.for cnf in ${CONFPFX2FIX1}
	${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' ${WRKSRC}/${cnf}
.endfor
.for cnf in ${CONFPFX2FIX2}
	${REINPLACE_CMD} -e 's|/etc/mpd.conf|${PREFIX}/etc/mpd.conf|'	\
		${WRKSRC}/${cnf}
.endfor

post-install:
	@${ECHO_CMD} "MPD_SECRETWORD=change_on_install" > ${WRKDIR}/mpd.conf.dist
	${INSTALL_DATA} ${WRKDIR}/mpd.conf.dist ${STAGEDIR}${PREFIX}/etc/
.for pg in ${STAGE2FIX}
	${REINPLACE_CMD} -e '/${STAGEDIR:C|/|\/|g}/s|${STAGEDIR}||'	\
		${STAGEDIR}${PREFIX}/${pg}
	${RM} ${STAGEDIR}${PREFIX}/${pg}.bak
.endfor
.for pg in ${BIN2STRIP}
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${pg}
.endfor
.if ${PORT_OPTIONS:MJAVA}
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/trace_rlog/libTraceInput.so
.endif

.if defined(MAINTAINER_MODE)
regression-test:	install
.if !exists(${HOME}/.mpd.conf)
	@${ECHO_CMD} "MPD_SECRETWORD=change_on_install" > ${HOME}/.mpd.conf
	${CHMOD} go-r ${HOME}/.mpd.conf
	@${ECHO_MSG} "${HOME}/.mpd.conf has been generated - please change the secret word!"
.endif
	@${ECHO_MSG} "Increase MPIEXEC_RECV_TIMEOUT if needed!"
	${PREFIX}/bin/mpd &
	(cd ${WRKSRC} && \
	PATH=${PATH}:${PREFIX}/bin VERBOSE=1 ${MAKE} testing)
	${PREFIX}/bin/mpdallexit
.endif

.include <bsd.port.post.mk>

net/mpich2/distinfo

deleted100644 → 0
+0 −2
Original line number Diff line number Diff line
SHA256 (mpich/mpich2-1.5.tar.gz) = 7175926fc2e4230f00201e880318c08de4f949c0dbe167fe1b2e256ac79d5f66
SIZE (mpich/mpich2-1.5.tar.gz) = 22826035
+0 −11
Original line number Diff line number Diff line
--- Makefile.in.orig	2012-10-08 21:02:46.000000000 +0200
+++ Makefile.in	2014-08-31 22:55:10.000000000 +0200
@@ -6153,7 +6153,7 @@
 CLEAN_LOCAL_TARGETS = test-clean $(am__append_125)
 
 # used by nodist_pkgconfig_DATA
-pkgconfigdir = $(libdir)/pkgconfig
+pkgconfigdir = $(libdir)data/pkgconfig
 
 # contains all of the "errnames.txt" files that are used by maint/extracterrmsgs
 # to build src/mpi/errhan/defmsg.h
Loading