[libpdl-netcdf-perl] 04/09: Imported Debian patch 4.07-1

Bas Couwenberg sebastic at debian.org
Sun Jun 12 17:41:53 UTC 2016


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository libpdl-netcdf-perl.

commit 810f0290ad2982082763e9c388601572fe79d425
Merge: bcc372e df670d8
Author: Henning Glawe <glaweh at debian.org>
Date:   Wed Feb 2 11:46:59 2011 +0100

    Imported Debian patch 4.07-1

 Changes                                   | 19 ++++++++++
 META.yml                                  |  8 +++--
 Makefile.PL                               |  1 +
 debian/changelog                          |  8 +++++
 debian/control                            |  2 +-
 debian/patches/00list                     |  1 +
 debian/patches/010-OpenDAP_support.dpatch | 59 +++++++++++++++++++++++++++++++
 netcdf.pd                                 | 45 +++++++++++++----------
 t/01-Netcdf3.t                            | 14 +++++++-
 9 files changed, 135 insertions(+), 22 deletions(-)

diff --cc debian/changelog
index 7ea87db,0000000..c25c3c2
mode 100644,000000..100644
--- a/debian/changelog
+++ b/debian/changelog
@@@ -1,48 -1,0 +1,56 @@@
++libpdl-netcdf-perl (4.07-1) unstable; urgency=low
++
++  * new upstream version
++  * include patch to support OpenDAP URLs (closes: #611346).
++  * update standards version (no changes required)
++
++ -- Henning Glawe <glaweh at debian.org>  Wed, 02 Feb 2011 11:46:59 +0100
++
 +libpdl-netcdf-perl (4.03-1) unstable; urgency=low
 +
 +  * new upstream version
 +  * acknowledge NMU, thanks Gregor Herrmann (closes: #574217).
 +  * remove postinst/preinst script, documentation index updates are
 +    handled by dpkg triggers of PDL package now
 +  * update Standards-Version to 3.8.4
 +  * add misc:Depends to dependency list (needed due to debhelper)
 +
 + -- Henning Glawe <glaweh at debian.org>  Fri, 07 May 2010 23:15:05 +0200
 +
 +libpdl-netcdf-perl (4.02-1.1) unstable; urgency=low
 +
 +  * Non-maintainer upload.
 +  * Fix "package purge (after dependencies removal) fails": check for
 +    existence of used scripts in .postrm (closes: #574217).
 +
 + -- gregor herrmann <gregoa at debian.org>  Sat, 17 Apr 2010 14:54:00 +0200
 +
 +libpdl-netcdf-perl (4.02-1) unstable; urgency=low
 +
 +  * initial upload to debian (closes: #559476)
 +  * New upstream release
 +  * take over package for debian
 +  * register the documentation to pdldoc
 +  * recreate HTML docs on install, upgrade and uninstall
 +  * run test suite in verbose mode in separate debian/rules target
 +  * include dpatch in package build process, write appropriate README.source
 +  * update standards-version to 3.8.3
 +  * bump debhelper build-dep
 +  * repair POD docs to make them available in pdldoc
 +
 + -- Henning Glawe <glaweh at debian.org>  Sun, 06 Dec 2009 17:19:02 +0100
 +
 +libpdl-netcdf-perl (4.01-1) unstable; urgency=low
 +
 +  * New upstream release
 +  * Adding watch
 +  * Fixing dependencies for lintian
 +  * Fixing license for lintian
 +
 + -- Heiko Klein <heiko.klein at met.no>  Thu, 18 Jun 2009 11:08:06 +0200
 +
 +libpdl-netcdf-perl (0.94-1) unstable; urgency=low
 +
 +  * Initial Release.
 +
 + -- Heiko Klein <heiko.klein at met.no>  Thu, 16 Apr 2009 11:49:16 +0200
diff --cc debian/control
index f361382,0000000..72192ea
mode 100644,000000..100644
--- a/debian/control
+++ b/debian/control
@@@ -1,26 -1,0 +1,26 @@@
 +Source: libpdl-netcdf-perl
 +Section: perl
 +Priority: optional
 +Build-Depends: libnetcdf-dev, pdl, perl, debhelper (>=5), dpatch
 +Maintainer: Henning Glawe <glaweh at debian.org>
- Standards-Version: 3.8.4
++Standards-Version: 3.9.1
 +Homepage: http://search.cpan.org/dist/PDL-NetCDF/
 +
 +Package: libpdl-netcdf-perl
 +Architecture: any
 +Depends: pdl (>=2.4.6), ${shlibs:Depends}, ${perl:Depends}, ${misc:Depends}
 +Description: Netcdf-IO for PDL
 + This is the PDL interface to the Unidata NetCDF library.  It uses the
 + netCDF version 3 library to make a subset of netCDF functionality
 + available to PDL users in a clean, object-oriented interface.
 + .
 + Another NetCDF perl interface, which allows access to the entire range
 + of netCDF functionality (but in a non-object-oriented
 + style which uses perl arrays instead of PDLs) is available through Unidata at
 + http://www.unidata.ucar.edu/packages/netcdf/index.html.
 + .
 + The NetCDF standard allows N-dimensional binary data to be efficiently
 + stored, annotated and exchanged between many platforms.
 + .
 + When one creates a new netCDF object, this object is associated with one
 + netCDF file.
diff --cc debian/patches/00list
index 0000000,0000000..a3bf5db
new file mode 100644
--- /dev/null
+++ b/debian/patches/00list
@@@ -1,0 -1,0 +1,1 @@@
++010-OpenDAP_support.dpatch
diff --cc debian/patches/010-OpenDAP_support.dpatch
index 0000000,0000000..19be762
new file mode 100644
--- /dev/null
+++ b/debian/patches/010-OpenDAP_support.dpatch
@@@ -1,0 -1,0 +1,59 @@@
++#! /bin/sh /usr/share/dpatch/dpatch-run
++## 010-OpenDAP_support.dpatch by Henning Glawe <glaweh at debian.org>
++##
++## All lines beginning with `## DP:' are a description of the patch.
++## DP: No description.
++
++ at DPATCH@
++diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' libpdl-netcdf-perl-4.07~/netcdf.pd libpdl-netcdf-perl-4.07/netcdf.pd
++--- libpdl-netcdf-perl-4.07~/netcdf.pd	2010-12-31 00:01:19.000000000 +0100
+++++ libpdl-netcdf-perl-4.07/netcdf.pd	2011-02-02 11:39:35.096109611 +0100
++@@ -1136,6 +1136,8 @@
++   my $rc;
++   my $write;
++ 
+++  my $file_is_opendap_url=($file =~ m#^>?https?://#);
+++
++   if (exists($$opt{MODE})) { # write-mode
++       if ($file =~ s/^\s*>//) {
++ 	  carp "MODE set and $file starts with >: suppressing >";
++@@ -1146,21 +1148,21 @@
++ 	  croak "unknown mode, only defined: O_CREAT,O_RDONLY,O_RDWR,O_EXCL";
++       } elsif ($$opt{MODE} & O_EXCL) {
++ 	  croak "opening O_EXCL, but file $file exists"
++-	      if (-f $file);
+++	      if ((-f $file) and ! $file_is_opendap_url);
++       } elsif ($$opt{MODE} & O_CREAT) {
++ 	  my $create = 1;
++-	  if (-f $file) {
+++	  if ((-f $file) and ! $file_is_opendap_url) {
++ 	      unlink $file 
++ 		  or croak "Cannot remove $file: $!";
++ 	  }
++       } elsif ($$opt{MODE} & O_RDONLY) {
++ 	  $write = 0;
++-	  unless (-f $file) {
+++	  unless ((-f $file) or $file_is_opendap_url) {
++ 	      croak "Cannot open readonly! No such file: $file";
++ 	  }
++       } elsif ($$opt{MODE} & O_RDWR) {
++ 	  $write = 1;
++-	  unless (-f $file) {
+++	  unless ((-f $file) or $file_is_opendap_url) {
++ 	      unless ($create) {
++ 		  croak "Cannot open rdwr! No such file: $file";
++ 	      }
++@@ -1170,8 +1172,12 @@
++     $file = substr ($file, 1);      # chop off >
++     $write = 1;
++   }
+++
+++  if ($write and $file_is_opendap_url) {
+++	  croak "Writing to OpenDAP URL is not supported: $file";
+++  }
++     
++-  if (-e $file) {
+++  if ((-e $file) or $file_is_opendap_url) {
++ 
++     if ($write) {
++ 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libpdl-netcdf-perl.git



More information about the Pkg-perl-cvs-commits mailing list