Bug #72843 out of source builds changes source dir for clusterj and ndbinfo_sql
Submitted: 2 Jun 2014 21:46 Modified: 20 Jun 2014 15:37
Reporter: Mauritz Sundell Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:7.2 OS:Any
Assigned to: CPU Architecture:Any

[2 Jun 2014 21:46] Mauritz Sundell
Description:
With out of source build, source directory should be untouched.  But some files are written to source dir instead of build dir.

1) manifest.mf files used for creating clusterj jars

2) pom.xml used by mvn_install_ndbjtie.sh

3) ndbinfo.sql are written to build dir, but marked as output to source dir in cmake file

How to repeat:
Build out of source.
Go to bzr cloned source dir and do 'bzr status' and 'bzr clean-tree --ignored', then the manifest.mf files, pom.xml files, and mvn_install_ndbjtie.sh shows up as unknown files to bzr.

For ndbinfo.sql read storage/ndb/tools/CMakeLists.txt.

Suggested fix:
Change CMake files so that files are created in build dir.
[20 Jun 2014 15:37] Jon Stephens
Documented fix in the NDB 7.2.17 and 7.3.6 changelogs, as follows:

      When building out of source, some files were written to the
      source directory instead of the build dir. Including the
      manifest.mf files used for creating ClusterJ jars and the
      pom.xml file used by mvn_install_ndbjtie.sh. In addition,
      ndbinfo.sql was written to the build directory, but marked as
      output to the source directory in CMakeLists.txt.
      
Closed.

Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release.

If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at

    http://dev.mysql.com/doc/en/installing-source.html