Fixes #3578: Move opal_datatype assert fix to v1.6

---svn-pre-commit-ignore-below---

r28398 [[BR]]
As initially reported by Eric Chamberland in
http://www.open-mpi.org/community/lists/users/2013/04/21689.php, the
assert in opal_datatype_is_contiguous_memory_layout() is not always
correct -- he supplied a test case where it was not valid,
essentially:

 1. Call MPI_Type_create_indexed_block(0, ..., &newtype) and commit newtype
 1. Call MPI_Type_create_resized(newtype, 0, nonzero_value, &resized) and commit resized
 1. Call MPI_File_set_view with resized

This will eventually call opal_datatype_is_contiguous_memory_layout(),
and the assert will fail.  After some consultation with George, it was
determined that the assert() is basically good, but it needs to also
check for (count != 0).
Fixes #3581: Move openib "no BTLs" fix to v1.6

---svn-pre-commit-ignore-below---

r28402 [[BR]]
If there are no BTLs, do ''not'' actually shut down the fd listener,
because a) it may still be needed to shut down the CPCs, and b) it
will be shut down during component_close().
Fixes #3596: Move hwloc dependency_lib fix to v1.6

---svn-pre-commit-ignore-below---

Custom patch from ticket based on:

r28457 [[BR]]
Fix issue raised by Stefan Friedel: remove an extraneous -L that is
added by hwloc's embedding so that it doesn't appear in
libhwloc_embedded.la (and therefore propogate all the way up to
libmpi.la). 

Committed upstream in hwloc SVN r5588.

r28458 [[BR]]
Update the list of post-1.5.2 r numbers from hwloc that we have
committed here.
Fixes #3603: Move r28489 to v1.6 branch (register MXM to memhooks)

---svn-pre-commit-ignore-below---

Custom patch from ticket based on:

r28489 [[BR]]
Fix data corruption in MXM by registering to OPAL memory release hooks and removing any mappings created by mxm
Bring over improvement from the trunk for the gkcommit script.
Fixes #3612: Add missing common sm help message to v1.6
Fixes #3617: btl_base_select() needs to close unselected components

Original patch from ticket, not based on any SVN trunk r number.
Fix typo in Linux RPM specfile (merge from trunk: r28562).  Packaging
fix; no	 need for RM approval.
Fixes #3586: Move r28432  max_mem_reg fix to 1.6

---svn-pre-commit-ignore-below---

r28432 [[BR]]
* btl_openib: fix total registered memory calculation for ConnectIB and Ofed 2.0
Fixes #3604: Move VT v5.14.4 changes to v1.6

---svn-pre-commit-ignore-below---

r28494 [[BR]]
Changes to VT:
	* general:
		* incremented version number to 5.14.4
		* fixed Coverity CIDs: 72002, 72099, 72273, 710580, 710664, 710665, 710666
	* VT libs:
		* fixed "incompatible declaration" errors when building against an MPI-3 implementation
		  Since MPI-3 the C keyword "const" is added to all relevant MPI API parameters
		  (e.g. MPI_Send(void* sendbuf, ...) -> MPI_Send(const void* sendbuf, ...)).
		  Prepending the macro CONST to these parameters which is defined either to "const" (if MPI-3) or to nothing (if MPI-1/2).
		* fixed potential buffer overflow when reading the filter file
		* CUDA tracing:
			* enabled access to CUPTI counters for CUDA tracing via CUPTI
			* enabled GPU memory usage tracing independent of the CUDA API
			* enabled recording of CUDA synchronization and implicit synchronization in blocking CUDA memory copies for CUDA tracing via CUPTI
			* enabled recording of synchronous peer-to-peer CUDA memory copies for CUDA tracing via CUPTI
			* consider CUDA data transfers as not idle for option 'pure_idle'
			* fixed identification of the CUDA device ID for CUDA tracing via CUPTI
			* fixed region filtering for applications using the CUDA runtime API wrapper
	* compiler wrappers: add path to mpi.h to the PDT parser command and preprocessor flags

r28524 [[BR]]
Changes to VT:
	* fixed compiler warnings when compiling for 32-bit
	* MPI wrapper generator scripts:
		* removed non-posix call to length(array)
		* exit scripts if any statement returns a non-true return value (set -e)
Fixes #3620: Move DDT fix to v1.6

---svn-pre-commit-ignore-below---

r28568 [[BR]]
Based on the MPI 3.0 count equal to zero has a clear meaning, no modification
of the original datatype are allowed (not in type map nor extent). Make it
clear in the code.
Allow 0-count cases to the contiguous memory check.
Update news for 1.6.5
Update shared library version numbers for the upcoming 1.6.5 release.

 * we changed the contents of a static inline function in
   opal/datatype/opal_datatype.h, which also changed:
   * libmpi_f77
   * libmpi_cxx
   * libmpi
   * libmca_common_sm
 * we also changed libmpi independently of this

All other changes were in components or non-code files.  Hence, all of
these libraries got a rev bump.
On to 1.6.5rc1
1.6.5rc1 has been released; on to 1.6.5rc2
Fixes #3622: Trivial debugger printf fix to v1.6

---svn-pre-commit-ignore-below---

r28577 [[BR]]
Fix typo (the debugger might not be TotalView).
Fixes #3618: Move DDT fix to v1.6

---svn-pre-commit-ignore-below---

Custom patch from ticket based on:

r28553 [[BR]]
Patch based on Takahiro Kawashima fixing the issues with some
of the Fortran datatypes. This patch prevent the copy of the
datatype description from the OPAL to the OMPI layer in order
to decrease the memory requirements.
r28585 failed to compile.  Reverted for now.  

Refs #3618.
Fixes #3618: Move DDT fix to v1.6

---svn-pre-commit-ignore-below---

Custom patch from ticket based on:

r28553 [[BR]]
Patch based on Takahiro Kawashima fixing the issues with some
of the Fortran datatypes. This patch prevent the copy of the
datatype description from the OPAL to the OMPI layer in order
to decrease the memory requirements.
Doh!  Back out r28590 (accidentally committed the wrong patch for #3618).

Refs #3618.