[libconfig-model-lcdproc-perl] 12/12: patch log2perl initialisation
dod at debian.org
dod at debian.org
Sat May 31 13:26:16 UTC 2014
This is an automated email from the git hooks/post-receive script.
dod pushed a commit to branch master
in repository libconfig-model-lcdproc-perl.
commit ba034ad10ebe7e8c56d38fd0a00470f53ef7577f
Author: Dominique Dumont <dod at debian.org>
Date: Sat May 31 14:56:59 2014 +0200
patch log2perl initialisation
---
debian/changelog | 1 +
debian/patches/fix-log4perl-init | 28 ++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 30 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index b20fd1e..b752a47 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ libconfig-model-lcdproc-perl (2.042-1) unstable; urgency=medium
* replaced patch tweak-defaults:
* tweak-lcdd-conf to tweak actual source files
* tweak-lcdconf2model which will be applied upstream
+ * Added patch to fix log4perl initialisation
* rules: touch LCDd.conf to trigger a rebuild of all models
* control:
+ added build dep on libconfig-model-itself-perl and libio-string-perl
diff --git a/debian/patches/fix-log4perl-init b/debian/patches/fix-log4perl-init
new file mode 100644
index 0000000..ee56d7c
--- /dev/null
+++ b/debian/patches/fix-log4perl-init
@@ -0,0 +1,28 @@
+Description: Fix log4perl init
+Forwarded: yes
+Author: dod
+--- a/examples/lcdproc/lcdconf2model.pl
++++ b/examples/lcdproc/lcdconf2model.pl
+@@ -44,8 +44,21 @@
+
+ # initialise logs for Config;:Model
+ use Log::Log4perl qw(:easy);
++
+ my $log4perl_user_conf_file = $ENV{HOME} . '/.log4config-model';
+-Log::Log4perl::init($log4perl_user_conf_file);
++my $fallback_conf = << 'EOC';
++log4perl.logger=WARN, Screen
++log4perl.appender.Screen = Log::Log4perl::Appender::Screen
++log4perl.appender.Screen.stderr = 0
++log4perl.appender.Screen.layout = Log::Log4perl::Layout::PatternLayout
++log4perl.appender.Screen.layout.ConversionPattern = %d %m %n
++EOC
++
++my $log4perl_conf =
++ -e $log4perl_user_conf_file ? $log4perl_user_conf_file
++ : \$fallback_conf;
++
++Log::Log4perl::init($log4perl_conf);
+
+ say "Building lcdproc model from upstream LCDd.conf file..." ;
+
diff --git a/debian/patches/series b/debian/patches/series
index ade6577..770b5ee 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
test-driver-path-default
tweak-lcdd-conf
tweak-lcdconf2model
+fix-log4perl-init
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libconfig-model-lcdproc-perl.git
More information about the Pkg-perl-cvs-commits
mailing list