Gentoo Archives: gentoo-commits

From: Justin Bronder <jsbronder@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sys-cluster/openmpi/files/, sys-cluster/openmpi/
Date: Mon, 02 May 2011 01:23:13
Message-Id: 15d2c6558b1bb9e8b9eeecaf93da55ab8d3e142f.jsbronder@gentoo
1 commit: 15d2c6558b1bb9e8b9eeecaf93da55ab8d3e142f
2 Author: Justin Bronder <jsbronder <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 28 16:59:58 2011 +0000
4 Commit: Justin Bronder <jsbronder <AT> gentoo <DOT> org>
5 CommitDate: Mon May 2 01:22:57 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=15d2c655
7
8 Fix hardened test failure (#360185) and cleanup.
9
10 (Portage version: 2.1.9.44/git/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 4D7043C9)
11
12 ---
13 sys-cluster/openmpi/ChangeLog | 5 ++
14 .../openmpi/files/openmpi-1.4.1-r22513.patch | 72 --------------------
15 sys-cluster/openmpi/files/openmpi-r24328.patch | 54 +++++++++++++++
16 sys-cluster/openmpi/openmpi-1.5.3.ebuild | 3 +
17 4 files changed, 62 insertions(+), 72 deletions(-)
18
19 diff --git a/sys-cluster/openmpi/ChangeLog b/sys-cluster/openmpi/ChangeLog
20 index c8d9a51..1a5a8ff 100644
21 --- a/sys-cluster/openmpi/ChangeLog
22 +++ b/sys-cluster/openmpi/ChangeLog
23 @@ -2,6 +2,11 @@
24 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
25 # $Header: $
26
27 + 28 Mar 2011; Justin Bronder <jsbronder@g.o>
28 + -files/openmpi-1.4.1-r22513.patch, +files/openmpi-r24328.patch,
29 + openmpi-1.5.3.ebuild:
30 + Fix hardened test failure (#360185) and cleanup.
31 +
32 22 Mar 2011; Justin Bronder <jsbronder@g.o> openmpi-1.5.3.ebuild:
33 Remove libtool if it was installed by USE=vt, bug #359917.
34
35
36 diff --git a/sys-cluster/openmpi/files/openmpi-1.4.1-r22513.patch b/sys-cluster/openmpi/files/openmpi-1.4.1-r22513.patch
37 deleted file mode 100644
38 index 128443b..0000000
39 --- a/sys-cluster/openmpi/files/openmpi-1.4.1-r22513.patch
40 +++ /dev/null
41 @@ -1,72 +0,0 @@
42 -From 9657a0fc671dd0987b6954932a08b680c35f480f Mon Sep 17 00:00:00 2001
43 -From: Justin Bronder <jsbronder@×××××.com>
44 -Date: Wed, 3 Feb 2010 17:13:13 -0500
45 -Subject: [PATCH] Backport r22513
46 -
47 -Per #2201, move the user arguments up to be the first set of argv
48 -after the compiler argv tokens.
49 -
50 -Not closing #2201 yet; there's still discussion on that ticket about
51 -whether we want to do more or not.
52 -
53 -Refs #2201
54 -cmr:v1.4.2
55 -cmr:v1.5
56 -
57 -Author: jsquyres
58 ----
59 - ompi/tools/wrappers/ompi_wrapper_script.in | 4 +++-
60 - opal/tools/wrappers/opal_wrapper.c | 9 +++++----
61 - 2 files changed, 8 insertions(+), 5 deletions(-)
62 -
63 -diff --git a/ompi/tools/wrappers/ompi_wrapper_script.in b/ompi/tools/wrappers/ompi_wrapper_script.in
64 -index 24726ad..87fd8a5 100644
65 ---- a/ompi/tools/wrappers/ompi_wrapper_script.in
66 -+++ b/ompi/tools/wrappers/ompi_wrapper_script.in
67 -@@ -140,13 +140,15 @@ my @exec_argv = ();
68 -
69 - # assemble command
70 - push(@exec_argv, split(' ', $comp));
71 -+# Per https://svn.open-mpi.org/trac/ompi/ticket/2201, add all the user
72 -+# arguments before anything else.
73 -+push(@exec_argv, @appargs);
74 - if ($want_preproc == 1) {
75 - push(@exec_argv, split(' ', $preproc_flags));
76 - }
77 - if ($want_compile == 1) {
78 - push(@exec_argv, split(' ', $comp_flags));
79 - }
80 --push(@exec_argv, @appargs);
81 - if ($want_link == 1) {
82 - push(@exec_argv, split(' ', $linker_flags));
83 - push(@exec_argv, split(' ', $libs));
84 -diff --git a/opal/tools/wrappers/opal_wrapper.c b/opal/tools/wrappers/opal_wrapper.c
85 -index 86ece5b..1b80f53 100644
86 ---- a/opal/tools/wrappers/opal_wrapper.c
87 -+++ b/opal/tools/wrappers/opal_wrapper.c
88 -@@ -712,6 +712,11 @@ main(int argc, char *argv[])
89 - exec_argc = 0;
90 - }
91 -
92 -+ /* Per https://svn.open-mpi.org/trac/ompi/ticket/2201, add all the
93 -+ user arguments before anything else. */
94 -+ opal_argv_insert(&exec_argv, exec_argc, user_argv);
95 -+ exec_argc = opal_argv_count(exec_argv);
96 -+
97 - /* preproc flags */
98 - if (flags & COMP_WANT_PREPROC) {
99 - opal_argv_insert(&exec_argv, exec_argc, options_data[user_data_idx].preproc_flags);
100 -@@ -732,10 +737,6 @@ main(int argc, char *argv[])
101 - exec_argc = opal_argv_count(exec_argv);
102 - }
103 -
104 -- /* add all the user arguments */
105 -- opal_argv_insert(&exec_argv, exec_argc, user_argv);
106 -- exec_argc = opal_argv_count(exec_argv);
107 --
108 - /* link flags and libs */
109 - if (flags & COMP_WANT_LINK) {
110 - opal_argv_insert(&exec_argv, exec_argc, options_data[user_data_idx].link_flags);
111 ---
112 -1.6.4.4
113 -
114
115 diff --git a/sys-cluster/openmpi/files/openmpi-r24328.patch b/sys-cluster/openmpi/files/openmpi-r24328.patch
116 new file mode 100644
117 index 0000000..bbd689d
118 --- /dev/null
119 +++ b/sys-cluster/openmpi/files/openmpi-r24328.patch
120 @@ -0,0 +1,54 @@
121 +From cf054cd92dfac55f3920e805d01c11dcfc2cd4fa Mon Sep 17 00:00:00 2001
122 +From: jsquyres <jsquyres@×××××.com>
123 +Date: Mon, 28 Mar 2011 12:44:06 -0400
124 +Subject: [PATCH] Fix some fairly-important typos (!)
125 +
126 +Upstream commit r24328.
127 +---
128 + test/datatype/ddt_lib.c | 2 +-
129 + test/datatype/ddt_raw.c | 2 +-
130 + test/datatype/opal_ddt_lib.c | 2 +-
131 + 3 files changed, 3 insertions(+), 3 deletions(-)
132 +
133 +diff --git a/test/datatype/ddt_lib.c b/test/datatype/ddt_lib.c
134 +index 015419d..c349384 100644
135 +--- a/test/datatype/ddt_lib.c
136 ++++ b/test/datatype/ddt_lib.c
137 +@@ -209,7 +209,7 @@ int mpich_typeub2( void )
138 +
139 + int mpich_typeub3( void )
140 + {
141 +- int blocklen[2], err = 0, idisp[3];
142 ++ int blocklen[3], err = 0, idisp[3];
143 + size_t sz;
144 + MPI_Aint disp[3], lb, ub, ex;
145 + ompi_datatype_t *types[3], *dt1, *dt2, *dt3, *dt4, *dt5;
146 +diff --git a/test/datatype/ddt_raw.c b/test/datatype/ddt_raw.c
147 +index eea9004..7effe65 100644
148 +--- a/test/datatype/ddt_raw.c
149 ++++ b/test/datatype/ddt_raw.c
150 +@@ -45,7 +45,7 @@ static int test_upper( unsigned int length )
151 + {
152 + ompi_datatype_t *pdt;
153 + opal_convertor_t * pConv;
154 +- int rc;
155 ++ int rc = OMPI_SUCCESS;
156 + unsigned int i, iov_count, split_chunk, total_length;
157 + size_t max_data;
158 + struct iovec iov[5];
159 +diff --git a/test/datatype/opal_ddt_lib.c b/test/datatype/opal_ddt_lib.c
160 +index e05bb06..dffd86c 100644
161 +--- a/test/datatype/opal_ddt_lib.c
162 ++++ b/test/datatype/opal_ddt_lib.c
163 +@@ -759,7 +759,7 @@ int mpich_typeub2( void )
164 +
165 + int mpich_typeub3( void )
166 + {
167 +- int blocklen[2], err = 0, idisp[3];
168 ++ int blocklen[3], err = 0, idisp[3];
169 + size_t sz;
170 + OPAL_PTRDIFF_TYPE disp[3], lb, ub, ex;
171 + opal_datatype_t *types[3], *dt1, *dt2, *dt3, *dt4, *dt5;
172 +--
173 +1.7.3.4
174 +
175
176 diff --git a/sys-cluster/openmpi/openmpi-1.5.3.ebuild b/sys-cluster/openmpi/openmpi-1.5.3.ebuild
177 index 971c5a3..16643c4 100644
178 --- a/sys-cluster/openmpi/openmpi-1.5.3.ebuild
179 +++ b/sys-cluster/openmpi/openmpi-1.5.3.ebuild
180 @@ -56,6 +56,9 @@ src_prepare() {
181 echo 'oob_tcp_listen_mode = listen_thread' \
182 >> opal/etc/openmpi-mca-params.conf
183 fi
184 +
185 + # Gentoo bug 360185
186 + epatch "${FILESDIR}"/openmpi-r24328.patch
187 }
188
189 src_configure() {