[libgtk3-perl] 01/02: New patch: 0001-Use-a-temporary-directory-as-HOME.patch (Closes: #724103).

Intrigeri intrigeri at alioth.debian.org
Thu Oct 31 18:33:48 UTC 2013


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

intrigeri pushed a commit to branch master
in repository libgtk3-perl.

commit 897724e841be6e24063de0611e55e5564391ef5c
Author: intrigeri <intrigeri at boum.org>
Date:   Thu Oct 31 18:26:08 2013 +0000

    New patch: 0001-Use-a-temporary-directory-as-HOME.patch (Closes: #724103).
---
 .../0001-Use-a-temporary-directory-as-HOME.patch   |   48 ++++++++++++++++++++
 debian/patches/series                              |    1 +
 2 files changed, 49 insertions(+)

diff --git a/debian/patches/0001-Use-a-temporary-directory-as-HOME.patch b/debian/patches/0001-Use-a-temporary-directory-as-HOME.patch
new file mode 100644
index 0000000..6771474
--- /dev/null
+++ b/debian/patches/0001-Use-a-temporary-directory-as-HOME.patch
@@ -0,0 +1,48 @@
+From: intrigeri <intrigeri at boum.org>
+Date: Thu, 31 Oct 2013 18:21:11 +0000
+Subject: Use a temporary directory as $HOME.
+
+Debian-Bug: http://bugs.debian.org/724103
+Forwarded: no
+Last-Update: 2013-10-31
+
+Else, t/overrides.t and t/zz-GtkRecentChooserDialog.t fail with:
+(overrides.t:5041): Gtk-CRITICAL **: Unable to create user data directory
+'/sbuild-nonexistent/.local/share' for storing the recently used files list:
+Permission denied
+**
+Gtk:ERROR:/tmp/buildd/gtk+3.0-3.8.4/./gtk/gtkrecentmanager.c:622:gtk_recent_manager_set_filename:
+assertion failed: (priv->filename != NULL)
+---
+ t/overrides.t                 | 3 +++
+ t/zz-GtkRecentChooserDialog.t | 3 +++
+ 2 files changed, 6 insertions(+)
+
+diff --git a/t/overrides.t b/t/overrides.t
+index 02127b8..d013b16 100644
+--- a/t/overrides.t
++++ b/t/overrides.t
+@@ -7,6 +7,9 @@ use warnings;
+ use utf8;
+ use Encode;
+ 
++use File::Temp qw{tempdir};
++$ENV{HOME} = tempdir(CLEANUP => 1);
++
+ plan tests => 159;
+ 
+ # Gtk3::CHECK_VERSION and check_version
+diff --git a/t/zz-GtkRecentChooserDialog.t b/t/zz-GtkRecentChooserDialog.t
+index ec4938a..42d48c6 100644
+--- a/t/zz-GtkRecentChooserDialog.t
++++ b/t/zz-GtkRecentChooserDialog.t
+@@ -8,6 +8,9 @@ BEGIN { require './t/inc/setup.pl' }
+ use strict;
+ use warnings;
+ 
++use File::Temp qw{tempdir};
++$ENV{HOME} = tempdir(CLEANUP => 1);
++
+ plan tests => 14;
+ 
+ my $window = Gtk3::Window->new;
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..937ee11
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Use-a-temporary-directory-as-HOME.patch

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



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