~ubuntu-branches/ubuntu/trusty/bioperl/trusty

« back to all changes in this revision

Viewing changes to debian/patches/fix_berkeleydb3_temp_file_creation

  • Committer: Package Import Robot
  • Author(s): Charles Plessy
  • Date: 2013-09-22 13:39:48 UTC
  • mfrom: (3.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20130922133948-c6z62zegjyp7ztou
Tags: 1.6.922-1
* New upstream release.
* Replaces and Breaks grinder (<< 0.5.3-3~) because of overlaping contents.
  Closes: #722910
* Stop Replacing and Breaking bioperl ( << 1.6.9 ): not needed anymore. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Subject: wrong order in file creation
2
 
Description: tie operation has flags and mode in the wrong order.
3
 
 Fixed upstream with commit 2b0daf196e0f2acf373c2bc8f0bf2449c36edf40.
4
 
 Patch should be removed with next upstream release.
5
 
Author: Olivier Sallou <olivier.sallou@irisa.fr
6
 
Last-Updated: 02/03/2012
7
 
--- a/Bio/DB/SeqFeature/Store/berkeleydb3.pm
8
 
+++ b/Bio/DB/SeqFeature/Store/berkeleydb3.pm
9
 
@@ -497,7 +497,7 @@
10
 
     my $numeric_cmp         = DB_File::BTREEINFO->new;
11
 
     $numeric_cmp->{compare} = sub { $_[0] <=> $_[1] };
12
 
     $numeric_cmp->{flags}   = R_DUP;
13
 
-    my $s = tie %sort,'DB_File',$name,0666,O_CREAT|O_RDWR,$numeric_cmp 
14
 
+    my $s = tie %sort,'DB_File',$name,O_CREAT|O_RDWR,0666,$numeric_cmp 
15
 
        or $self->throw("Couldn't create temporary file for sorting: $!");
16
 
 
17
 
     my $index    = $self->index_db('locations');