debian/0000755000000000000000000000000012232036606007166 5ustar debian/watch0000644000000000000000000000035312203424450010214 0ustar version=3 # URL to the package page followed by a regex to search opts=dversionmangle=s/\+ds$// \ https://metacpan.org/release/MongoDB/ .*/MongoDB-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ \ debian sh debian/repack.stub debian/rules0000755000000000000000000000120212203741075010242 0ustar #!/usr/bin/make -f BUILDHOME = $(CURDIR)/debian/build PIDFILE = $(BUILDHOME)/mongod.pid %: dh $@ override_dh_auto_test: mkdir -p $(BUILDHOME) if [ -x /usr/bin/mongod ]; then \ mongod --dbpath $(BUILDHOME) --noprealloc --nojournal --quiet --fork --logpath $(BUILDHOME)/mongod.log --pidfilepath $(PIDFILE); \ sleep 10; \ fi dh_auto_test # The server process might not have actually started, since # the system one will already be running unless policy-rc.d # prevented it [ ! -s $(PIDFILE) ] || /bin/kill `cat $(PIDFILE)` || true override_dh_clean: # shipped upstream dh_clean -X t/lib/MongoDBTest.pm~ rm -rf $(BUILDHOME) debian/copyright0000644000000000000000000000470212203424450011120 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Contact: Kristina Chodorow Upstream-Name: MongoDB Source: https://metacpan.org/release/MongoDB/ Files: * Copyright: 2009-2013, 10gen, Inc. License: Apache-2.0 Files: inc/Module/* Copyright: 2002-2012, Adam Kennedy 2002-2012, Audrey Tang 2002-2012, Brian Ingerson License: Artistic or GPL-1+ Files: ppport.h Copyright: 2004-2009, Marcus Holland-Moritz 2001, Paul Marquess (Version 2.x) 1999, Kenneth Albanowski (Version 1.x) License: Artistic or GPL-1+ Files: debian/* Copyright: 2010, Stefan Hornburg (Racke) 2011, Dominic Hargreaves 2011-2012, gregor herrmann , 2013, Harlan Lieberman-Berg License: Artistic or GPL-1+ License: Apache-2.0 Licensed under Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License was distributed with this file or you may obtain a copy of the License from http://www.apache.org/licenses/LICENSE-2.0 . Files produced as output though the use of this software, shall not be considered Derivative Works, but shall be considered the original work of the Licensor. . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. . On Debian systems, the complete text of the Apache License, Version 2.0 can be found in `/usr/share/common-licenses/Apache-2.0'. License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. License: GPL-1+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. . On Debian systems, the complete text of version 1 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1'. debian/source/0000755000000000000000000000000012203424450010462 5ustar debian/source/format0000644000000000000000000000001412203424450011670 0ustar 3.0 (quilt) debian/repack.stub0000755000000000000000000000346412203424450011340 0ustar #!/bin/sh : <<=cut =pod =head1 NAME repack.stub - script to repack upstream tarballs from uscan =head1 INSTRUCTIONS put this in debian/repack.stub and add "debian sh debian/repack.stub" to the end of the line in debian/watch. you will also need to add a version mangle to debian/watch. then create a debian/repack.local. this is a shell script that is sourced under "set -e", so be careful to check returns codes. =head1 FUNCTIONS =over 4 =item rm rm is replaced by a function that does some magic ("rm -rv" by default), but also changes MANIFEST if $MANIFEST is 1 =item mv mv is replaced by a function that just does mv (by default), but also changes MANIFEST if $MANIFEST is 1 =item requires_version requires_version is there for future usage for requiring certain versions of the script =back =head1 VARIABLES =over 4 =item SUFFIX defaults to +dfsg what to append to the upstream version =item RM_OPTS defaults to -vrf options to pass to rm =item MANIFEST defaults to 0, set to 1 to turn on. this will manipulate MANIFEST files in CPAN tarballs. =item UP_BASE this is the directory where the upstream source is. =back =head1 COPYRIGHT AND LICENSE Copyright 2009, Ryan Niebur License: Artistic or GPL-1+ =cut if [ -z "$REPACK_SH" ]; then if [ -f ../../scripts/repack.sh ]; then REPACK_SH=../../scripts/repack.sh fi if [ -z "$REPACK_SH" ] && which repack.sh > /dev/null; then REPACK_SH=$(which repack.sh) fi fi if [ ! -f "$REPACK_SH" ]; then echo "Couldn't find a repack.sh. please put it in your PATH, put it at ../../scripts/repack.sh, or put it somewhere else and set the REPACK_SH variable" echo "You can get it from http://anonscm.debian.org/gitweb/?p=pkg-perl/scripts.git;a=blob_plain;f=repack.sh;hb=HEAD" exit 1 fi exec "$REPACK_SH" "$@" debian/patches/0000755000000000000000000000000012232036562010616 5ustar debian/patches/fix-manpage-spelling.patch0000644000000000000000000000340112203741433015642 0ustar Description: Fix minor spelling error Author: Harlan Lieberman-Berg Author: Dominic Hargreaves Bug: https://jira.mongodb.org/browse/PERL-239 Forwarded: yes --- a/lib/MongoDB/Connection.pm +++ b/lib/MongoDB/Connection.pm @@ -183,7 +183,7 @@ safe insert times out and croaks. I As of MongoDB 2.0+, the 'w' parameter can be passed strings. This can be done by passing it the string "majority" this will wait till the B of -of the nodes in the replica set have recieved the data. For more information see: http://www.mongodb.org/display/DOCS/getLastError+Command#getLastErrorCommand-majority +of the nodes in the replica set have received the data. For more information see: http://www.mongodb.org/display/DOCS/getLastError+Command#getLastErrorCommand-majority This can be useful for "Data Center Awareness." In v2.0+, you can "tag" replica members. With "tagging" you can specify a new "getLastErrorMode" where you can create new rules on how your data is replicated. To used you getLastErrorMode, you pass in the name of the mode to the 'w' parameter. For more infomation see: http://www.mongodb.org/display/DOCS/Data+Center+Awareness diff --git a/lib/MongoDB/OID.pm b/lib/MongoDB/OID.pm index fe24e8c..b1be426 100644 --- a/lib/MongoDB/OID.pm +++ b/lib/MongoDB/OID.pm @@ -96,7 +96,7 @@ C<_id> field will be added with a new C as its value. my $id = $collection->insert({'name' => 'Alice', age => 20}); -C<$id> will be a C that can be used to retreive or update the +C<$id> will be a C that can be used to retrieve or update the saved document: $collection->update({_id => $id}, {'age' => {'$inc' => 1}}); debian/patches/5.14-ccflags.patch0000644000000000000000000000144512203424450013625 0ustar Description: add $Config{ccflags} to CCFLAGS to fix FTBFS with perl 5.14 Origin: vendor Bug-Debian: http://bugs.debian.org/638894 Forwarded: not-needed Author: Dominic Hargreaves Reviewed-by: gregor herrmann Last-Update: 2011-09-23 --- a/ext/Module/Install/PRIVATE/Mongo.pm +++ b/ext/Module/Install/PRIVATE/Mongo.pm @@ -1,5 +1,6 @@ use strict; use warnings; +use Config; package Module::Install::PRIVATE::Mongo; @@ -18,6 +19,10 @@ my $custom_cflags = 0; my $ccflags = $self->makemaker_args->{CCFLAGS}; + # #638894 + $ccflags .= " $Config{ccflags}"); + $custom_cflags = 1; + if ($Config{osname} eq 'darwin') { my @arch = $Config::Config{ccflags} =~ m/-arch\s+(\S+)/g; my $archStr = join '', map { " -arch $_ " } @arch; debian/patches/disable-js-err-test.patch0000644000000000000000000000147212232036534015422 0ustar Description: Disable JS err report test for now Author: Mike Friedman Origin: upstream, https://github.com/mongodb/mongo-perl-driver/commit/dc4db9bf3807627828859bb630ff4e852d8d261b Forwarded: not-needed Last-Update: 2013-10-23 Index: b/t/db.t =================================================================== --- a/t/db.t +++ b/t/db.t @@ -26,7 +26,7 @@ use lib "t/lib"; use MongoDBTest '$conn'; -plan tests => 10; +plan tests => 9; my $db = $conn->get_database('test_database'); @@ -49,7 +49,9 @@ is('hello, world', $hello, 'db eval'); my $err = $db->eval('function(x) { xreturn "hello, "+x; }', ["world"]); -like($err, qr/(?:compile|execution) failed/, 'js err'); + +# skip until JS error reporting stabilizes +#like($err, qr/(?:compile|execution) failed/, 'js err'); # tie { debian/patches/series0000644000000000000000000000011012232036237012022 0ustar fix-manpage-spelling.patch 5.14-ccflags.patch disable-js-err-test.patch debian/compat0000644000000000000000000000000212203424450010360 0ustar 9 debian/control0000644000000000000000000000251612232036577010604 0ustar Source: libmongodb-perl Section: perl Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Perl Group Uploaders: Stefan Hornburg (Racke) , Dominic Hargreaves , gregor herrmann , Harlan Lieberman-Berg Build-Depends: debhelper (>= 9.20120312), libboolean-perl, libclass-method-modifiers-perl, libdata-dump-perl, libdata-types-perl, libdatetime-perl, libdatetime-tiny-perl, libfile-slurp-perl, libjson-perl, libmoose-perl, libtest-exception-perl, libtie-ixhash-perl, libtry-tiny-perl, libtest-warn-perl, mongodb-server [i386 amd64], procps Standards-Version: 3.9.4 Homepage: https://metacpan.org/release/MongoDB/ Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libmongodb-perl.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libmongodb-perl.gig Package: libmongodb-perl Architecture: any Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends}, libboolean-perl, libdatetime-perl, libmoose-perl, libtie-ixhash-perl Description: Mongo Driver for Perl MongoDB is a high-performance, open source, schema-free document-oriented data store. The MongoDB module provides an interface to easily access it from Perl. debian/changelog0000644000000000000000000000550712232036606011047 0ustar libmongodb-perl (0.702.1+ds-1ubuntu1) trusty; urgency=low * Cherry-pick from upstream to fix test failure during build: - Disable JS err report test for now. -- Colin Watson Wed, 23 Oct 2013 22:20:05 +0100 libmongodb-perl (0.702.1+ds-1) unstable; urgency=low * Only depend on mongod on i386 and amd64 (the only architectures the test suite is available on). Patch from Niko Tyni (Closes: #719593) * Ignore failures to stop the test mongod process, since it may have not started up successfully if mongod was started from an init script (see: #719641) * Remove editor backup files * Add repacking to remove mongo-meta-driver director, which has unclear licensing in parts and isn't needed * New upstream release (Closes: #719591) * Don't delete a shipped editor backup file * Rebase spelling patch, drop fix-broken-test patch (applied upstream) -- Dominic Hargreaves Sat, 17 Aug 2013 21:06:11 +0200 libmongodb-perl (0.700.0-1) unstable; urgency=low [ Harlan Lieberman-Berg ] * New upstream release. * Bump debhelper compatibility level to 9 for hardening support. * debian/copyright: Update formatting to v1.0 format. * Enable test suite, and fix test errors. * Fix minor spelling errors. [ gregor herrmann ] * New upstream release. * Update build/runtime dependencies. * Update years of packaging copyright. [ Salvatore Bonaccorso ] * Change Vcs-Git to canonical URI (git://anonscm.debian.org) * Change search.cpan.org based URIs to metacpan.org based URIs -- gregor herrmann Sat, 15 Dec 2012 22:14:03 +0100 libmongodb-perl (0.45-1) unstable; urgency=low * New upstream release. * Rename source package to libmongodb-perl. * Update 5.14-ccflags.patch (CCFLAGS are now set in ext/Module/Install/PRIVATE/Mongo.pm). * debian/copyright: update formatting, add info about third-party files, add Apache-2.0 license stanza. * Bump debhelper compatibility level to 8. * Add /me to Uploaders. * Add a patch to fix a spelling mistake. -- gregor herrmann Fri, 23 Sep 2011 22:46:29 +0200 mongodb-perl (0.44-2) unstable; urgency=low * Add patch adding $Config{ccflags} to CCFLAGS to fix FTBFS with perl 5.14 (Closes: #638894) -- Dominic Hargreaves Wed, 24 Aug 2011 19:28:12 +0100 mongodb-perl (0.44-1) unstable; urgency=low * Add Vcs-* control fields * New upstream release (Closes: #614020) - fixes FTBFS with perl 5.14 (Closes: #637602) * Update Standards-Version (no changes) * Add watch file * Switch to dpkg-source 3.0 (quilt) format -- Dominic Hargreaves Sun, 21 Aug 2011 12:29:30 +0100 mongodb-perl (0.39-1) unstable; urgency=low * Initial release (Closes: #599219) -- Stefan Hornburg (Racke) Fri, 19 Nov 2010 11:18:38 +0100 debian/repack.local0000644000000000000000000000014612203424450011444 0ustar MANIFEST=1 SUFFIX=+ds # Not needed by package build; unclear licensing in places rm mongo-meta-driver