[libfile-counterfile-perl] 01/04: Change the fallback directory for counter files to /var/tmp. (Closes: #736755)

Niko Tyni ntyni at moszumanska.debian.org
Thu Jan 30 18:01:09 UTC 2014


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

ntyni pushed a commit to branch master
in repository libfile-counterfile-perl.

commit a2bb8b74a4eee000321b83d3ed29002a9090a258
Author: Niko Tyni <ntyni at debian.org>
Date:   Thu Jan 30 19:24:31 2014 +0200

    Change the fallback directory for counter files to /var/tmp. (Closes: #736755)
---
 debian/changelog                                   |  4 +++
 ...fallback-directory-for-counter-files-to-v.patch | 34 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 debian/source/format                               |  1 +
 4 files changed, 40 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 0a3f013..06120b1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -20,6 +20,10 @@ libfile-counterfile-perl (1.04-5) UNRELEASED; urgency=low
   * debian/copyright: migrate pre-1.0 format to 1.0 using "cme fix dpkg-
     copyright"
 
+  [ Niko Tyni ]
+  * Change the fallback directory for counter files to /var/tmp.
+    (Closes: #736755)
+
  -- Ryan Niebur <ryan at debian.org>  Fri, 25 Sep 2009 00:24:48 -0700
 
 libfile-counterfile-perl (1.04-4) unstable; urgency=low
diff --git a/debian/patches/0001-Change-the-fallback-directory-for-counter-files-to-v.patch b/debian/patches/0001-Change-the-fallback-directory-for-counter-files-to-v.patch
new file mode 100644
index 0000000..d7a119b
--- /dev/null
+++ b/debian/patches/0001-Change-the-fallback-directory-for-counter-files-to-v.patch
@@ -0,0 +1,34 @@
+From: Niko Tyni <ntyni at debian.org>
+Date: Thu, 30 Jan 2014 19:18:54 +0200
+Subject: Change the fallback directory for counter files to /var/tmp
+
+The upstream fallback, /usr/tmp, doesn't exist on Debian systems.
+
+Bug-Debian: http://bugs.debian.org/736755
+Forwarded: not-needed
+---
+ CounterFile.pm | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/CounterFile.pm b/CounterFile.pm
+index fa21c76..0fefed4 100644
+--- a/CounterFile.pm
++++ b/CounterFile.pm
+@@ -29,7 +29,7 @@ $MAGIC = "#COUNTER-1.0\n";             # first line in counter files
+ $DEFAULT_INITIAL = 0;                  # default initial counter value
+ 
+  # default location for counter files
+-$DEFAULT_DIR = $ENV{TMPDIR} || "/usr/tmp";
++$DEFAULT_DIR = $ENV{TMPDIR} || "/var/tmp";
+ 
+ # Experimental overloading.
+ use overload ('++'     => \&inc,
+@@ -220,7 +220,7 @@ constructor (C<new>).  The file is created if it does not exist.
+ If the file name does not start with "/" or ".", then it is
+ interpreted as a file relative to C<$File::CounterFile::DEFAULT_DIR>.
+ The default value for this variable is initialized from the
+-environment variable C<TMPDIR>, or F</usr/tmp> if no environment
++environment variable C<TMPDIR>, or F</var/tmp> if no environment
+ variable is defined.  You may want to assign a different value to this
+ variable before creating counters.
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ed42641
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Change-the-fallback-directory-for-counter-files-to-v.patch
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)

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



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