- add two patches from j@bitminer.ca to quieten openmpi a bit
about v4-mapped addresses read good to maintainer
This commit is contained in:
parent
2d90b4385a
commit
ebfcf1062c
@ -1,9 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.4 2010/03/21 10:45:19 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.5 2010/04/04 15:49:06 jasper Exp $
|
||||
|
||||
COMMENT = open source MPI-2 implementation
|
||||
|
||||
V= 1.4.1
|
||||
DISTNAME = openmpi-$V
|
||||
PKGNAME = ${DISTNAME}p0
|
||||
|
||||
SHARED_LIBS = mca_common_sm 1.0 \
|
||||
mpi 0.1 \
|
||||
|
@ -0,0 +1,22 @@
|
||||
$OpenBSD: patch-ompi_mca_btl_tcp_btl_tcp_component_c,v 1.3 2010/04/04 15:49:06 jasper Exp $
|
||||
|
||||
Quieten IPv4 usage.
|
||||
|
||||
--- ompi/mca/btl/tcp/btl_tcp_component.c.orig Sun Apr 4 17:35:30 2010
|
||||
+++ ompi/mca/btl/tcp/btl_tcp_component.c Sun Apr 4 17:36:10 2010
|
||||
@@ -562,6 +562,7 @@ static int mca_btl_tcp_component_create_listen(uint16_
|
||||
freeaddrinfo (res);
|
||||
|
||||
#ifdef IPV6_V6ONLY
|
||||
+#ifndef __OpenBSD__
|
||||
/* in case of AF_INET6, disable v4-mapped addresses */
|
||||
if (AF_INET6 == af_family) {
|
||||
int flg = 0;
|
||||
@@ -571,6 +572,7 @@ static int mca_btl_tcp_component_create_listen(uint16_
|
||||
"mca_btl_tcp_create_listen: unable to disable v4-mapped addresses\n");
|
||||
}
|
||||
}
|
||||
+#endif /* __OpenBSD__ */
|
||||
#endif /* IPV6_V6ONLY */
|
||||
}
|
||||
#else
|
22
devel/openmpi/patches/patch-orte_mca_oob_tcp_oob_tcp_c
Normal file
22
devel/openmpi/patches/patch-orte_mca_oob_tcp_oob_tcp_c
Normal file
@ -0,0 +1,22 @@
|
||||
$OpenBSD: patch-orte_mca_oob_tcp_oob_tcp_c,v 1.3 2010/04/04 15:49:06 jasper Exp $
|
||||
|
||||
Quieten IPv4 usage.
|
||||
|
||||
--- orte/mca/oob/tcp/oob_tcp.c.orig Sun Apr 4 17:36:24 2010
|
||||
+++ orte/mca/oob/tcp/oob_tcp.c Sun Apr 4 17:37:25 2010
|
||||
@@ -514,6 +514,7 @@ mca_oob_tcp_create_listen(int *target_sd, unsigned sho
|
||||
freeaddrinfo (res);
|
||||
|
||||
#ifdef IPV6_V6ONLY
|
||||
+#ifndef __OpenBSD__
|
||||
/* in case of AF_INET6, disable v4-mapped addresses */
|
||||
if (AF_INET6 == af_family) {
|
||||
int flg = 0;
|
||||
@@ -523,6 +524,7 @@ mca_oob_tcp_create_listen(int *target_sd, unsigned sho
|
||||
"mca_oob_tcp_create_listen: unable to disable v4-mapped addresses\n");
|
||||
}
|
||||
}
|
||||
+#endif /* __OpenBSD__ */
|
||||
#endif /* IPV6_V6ONLY */
|
||||
}
|
||||
#else
|
Loading…
Reference in New Issue
Block a user