diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-libs/libmems/files | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-libs/libmems/files')
-rw-r--r-- | sci-libs/libmems/files/libmems-1.6_p1-boost.patch | 120 | ||||
-rw-r--r-- | sci-libs/libmems/files/libmems-1.6_p1-build.patch | 19 | ||||
-rw-r--r-- | sci-libs/libmems/files/libmems-1.6_p1-gcc-4.7.patch | 71 |
3 files changed, 210 insertions, 0 deletions
diff --git a/sci-libs/libmems/files/libmems-1.6_p1-boost.patch b/sci-libs/libmems/files/libmems-1.6_p1-boost.patch new file mode 100644 index 000000000000..4f0c775a6d9c --- /dev/null +++ b/sci-libs/libmems/files/libmems-1.6_p1-boost.patch @@ -0,0 +1,120 @@ + libMems/Backbone.cpp | 2 +- + libMems/Files.h | 64 +++++++++++++++++++++--------------------- + libMems/ProgressiveAligner.cpp | 2 +- + 3 files changed, 34 insertions(+), 34 deletions(-) + +diff --git a/libMems/Backbone.cpp b/libMems/Backbone.cpp +index 86698a9..0025cd8 100644 +--- a/libMems/Backbone.cpp ++++ b/libMems/Backbone.cpp +@@ -15,7 +15,7 @@ + #include "libMems/Islands.h"
+ #include "libMems/CompactGappedAlignment.h"
+
+-#include <boost/property_map.hpp>
++#include <boost/property_map/property_map.hpp>
+ #include <boost/graph/graph_traits.hpp>
+ #include <boost/graph/adjacency_list.hpp>
+ #include <boost/graph/topological_sort.hpp>
+diff --git a/libMems/Files.h b/libMems/Files.h +index 8d6e9be..8191065 100644 +--- a/libMems/Files.h ++++ b/libMems/Files.h +@@ -22,44 +22,44 @@ + + #include "boost/filesystem/operations.hpp" + #include "boost/filesystem/exception.hpp" +-#include "boost/algorithm/string.hpp"
++#include "boost/algorithm/string.hpp" + #include <string> + #include <sstream> + #include <iostream> + #include <iomanip> + + +-/**
+- * Register a file name to be deleted before the process exits
+- * When passed an empty string, it does not add to the list of files to delete
+- * @param fname The name of a file to delete, empty strings are ignored
+- * @return A vector of file names registered for deletion
+- */
+-std::vector< std::string >& registerFileToDelete( std::string fname = "" );
+-
+-inline
+-std::vector< std::string >& registerFileToDelete( std::string fname ) {
+- // since this vector is needed when atexit() is called we allocate it
+- // on the heap so its destructor won't get called
+- static std::vector< std::string >* files = new std::vector< std::string >();
+-#pragma omp critical
+-{
+- if( fname != "" )
+- files->push_back( fname );
+-}
+- return *files;
+-}
++/** ++ * Register a file name to be deleted before the process exits ++ * When passed an empty string, it does not add to the list of files to delete ++ * @param fname The name of a file to delete, empty strings are ignored ++ * @return A vector of file names registered for deletion ++ */ ++std::vector< std::string >& registerFileToDelete( std::string fname = "" ); + +-void deleteRegisteredFiles();
+-inline
+-void deleteRegisteredFiles() {
+- // don't be a slob, clean up after yourself:
+- // delete any files that are laying around
+- std::vector< std::string >& del_files = registerFileToDelete();
+- for( int fileI = 0; fileI < del_files.size(); fileI++ )
+- boost::filesystem::remove( del_files[ fileI ] );
+- del_files.clear(); // clear the deleted files from the list
+-}
++inline ++std::vector< std::string >& registerFileToDelete( std::string fname ) { ++ // since this vector is needed when atexit() is called we allocate it ++ // on the heap so its destructor won't get called ++ static std::vector< std::string >* files = new std::vector< std::string >(); ++#pragma omp critical ++{ ++ if( fname != "" ) ++ files->push_back( fname ); ++} ++ return *files; ++} ++ ++void deleteRegisteredFiles(); ++inline ++void deleteRegisteredFiles() { ++ // don't be a slob, clean up after yourself: ++ // delete any files that are laying around ++ std::vector< std::string >& del_files = registerFileToDelete(); ++ for( int fileI = 0; fileI < del_files.size(); fileI++ ) ++ boost::filesystem::remove( del_files[ fileI ] ); ++ del_files.clear(); // clear the deleted files from the list ++} + + + /** +@@ -80,7 +80,7 @@ std::string CreateTempFileName(const std::string& prefix) + #endif + boost::filesystem::path path( prefix ); + dir = path.branch_path().string(); +- name = path.leaf(); ++ name = path.filename().string(); + if( name == "/" ) + { + dir += name; +diff --git a/libMems/ProgressiveAligner.cpp b/libMems/ProgressiveAligner.cpp +index 3be5fe0..5667a9e 100644 +--- a/libMems/ProgressiveAligner.cpp ++++ b/libMems/ProgressiveAligner.cpp +@@ -27,7 +27,7 @@ +
+ #include <boost/dynamic_bitset.hpp>
+ #include <boost/tuple/tuple.hpp>
+-#include <boost/property_map.hpp>
++#include <boost/property_map/property_map.hpp>
+ #include <boost/graph/graph_traits.hpp>
+ #include <boost/graph/adjacency_list.hpp>
+ #include <boost/graph/johnson_all_pairs_shortest.hpp>
diff --git a/sci-libs/libmems/files/libmems-1.6_p1-build.patch b/sci-libs/libmems/files/libmems-1.6_p1-build.patch new file mode 100644 index 000000000000..63e5f1216756 --- /dev/null +++ b/sci-libs/libmems/files/libmems-1.6_p1-build.patch @@ -0,0 +1,19 @@ + libMems/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libMems/Makefile.am b/libMems/Makefile.am +index 6101f71..d66053d 100644 +--- a/libMems/Makefile.am ++++ b/libMems/Makefile.am +@@ -2,10 +2,10 @@ + if DEBUG + D_CXXFLAGS = -Wall -g -D__GNDEBUG__ + endif +-OPTIMIZATION = -O2 -Wall -funroll-loops -fomit-frame-pointer -ftree-vectorize + AM_CFLAGS = $(OPTIMIZATION) @DEPS_CFLAGS@ -DUSE_POSIX_AIO @OPENMP_CFLAGS@ + AM_CXXFLAGS = $(OPTIMIZATION) @DEPS_CFLAGS@ @BOOST_CPPFLAGS@ $(D_CXXFLAGS) @EXTRA_CXX_FLAGS@ @OPENMP_CXXFLAGS@ + AM_LDFLAGS = $(OPTIMIZATION) ++AM_CPPFLAGS=-I$(top_srcdir) + + LIBMEMS_H = \ + RepeatHash.h MatchHashEntry.h \ diff --git a/sci-libs/libmems/files/libmems-1.6_p1-gcc-4.7.patch b/sci-libs/libmems/files/libmems-1.6_p1-gcc-4.7.patch new file mode 100644 index 000000000000..ec620ebb35aa --- /dev/null +++ b/sci-libs/libmems/files/libmems-1.6_p1-gcc-4.7.patch @@ -0,0 +1,71 @@ + libMems/CompactGappedAlignment.h | 36 ++++++++++++++++++------------------ + 1 file changed, 18 insertions(+), 18 deletions(-) + +diff --git a/libMems/CompactGappedAlignment.h b/libMems/CompactGappedAlignment.h +index bf78477..942d4aa 100644 +--- a/libMems/CompactGappedAlignment.h ++++ b/libMems/CompactGappedAlignment.h +@@ -13,7 +13,7 @@ + #include "config.h"
+ #endif
+
+-#include "libGenome/gnDebug.h" ++#include "libGenome/gnDebug.h"
+ #include "libGenome/gnFilter.h"
+ #include "libGenome/gnSequence.h"
+ #include "libMems/SparseAbstractMatch.h"
+@@ -103,15 +103,15 @@ public: + /** Eliminates any columns that contain only gap characters */
+ void CondenseGapColumns();
+
+- void swap( CompactGappedAlignment& other ){ swap(&other); } +- +-protected: +- // for use by derived classes in order to swap contents +- void swap( CompactGappedAlignment* other ){ +- std::swap( align_matrix, other->align_matrix ); +- std::swap( bcount, other->bcount ); +- BaseType::swap( other ); +- } ++ void swap( CompactGappedAlignment& other ){ swap(&other); }
++
++protected:
++ // for use by derived classes in order to swap contents
++ void swap( CompactGappedAlignment* other ){
++ std::swap( align_matrix, other->align_matrix );
++ std::swap( bcount, other->bcount );
++ BaseType::swap( other );
++ }
+
+ std::vector< bitset_t > align_matrix; /**< aligned positions have true values, gaps are false */
+ std::vector< std::vector< size_t > > bcount;
+@@ -572,7 +572,7 @@ void CompactGappedAlignment<BaseType>::CropEnd(gnSeqI crop_amount){ + this->SetStart(i, 0);
+ }
+ }
+- SetAlignmentLength( this->AlignmentLength() - crop_amount );
++ this->SetAlignmentLength( this->AlignmentLength() - crop_amount );
+ this->create_bitcount();
+ if( !this->validate() )
+ std::cerr << "CropEnd error\n";
+@@ -806,13 +806,13 @@ void CompactGappedAlignment<BaseType>::CondenseGapColumns() +
+ }
+
+-namespace std { +-template<> inline +-void swap( mems::CompactGappedAlignment<>& a, mems::CompactGappedAlignment<>& b ) +-{ +- a.swap(b); +-} +-} ++namespace std {
++template<> inline
++void swap( mems::CompactGappedAlignment<>& a, mems::CompactGappedAlignment<>& b )
++{
++ a.swap(b);
++}
++}
+
+
+ #endif // __CompactGappedAlignment_h__
|