[Lunar-commits] <moonbase> lard: fix deprecation warning

Paul Bredbury brebs at lunar-linux.org
Wed Mar 16 14:57:37 CET 2011


commit ef15e24bf232e2b3eae184093bb4b1e026b7b34a
Author: Paul Bredbury <brebs at lunar-linux.org>
Date:   Wed Mar 16 20:57:37 2011 +0700

    lard: fix deprecation warning
    
    This tedious message showed at every bootup:
    
    Starting lard: defined(%hash) is deprecated at /usr/sbin/lard line 758.
    	(Maybe you should just omit the defined()?)
---
 utils/lard/BUILD   |    3 +++
 utils/lard/DETAILS |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/utils/lard/BUILD b/utils/lard/BUILD
index 6242339..e3cec97 100644
--- a/utils/lard/BUILD
+++ b/utils/lard/BUILD
@@ -1,5 +1,8 @@
 (
 
+  # Remove deprecation warning at lard startup
+  sedit "758s/defined(%kmsg_buffer)/%kmsg_buffer/" lard &&
+
   prepare_install &&
   make install &&
 
diff --git a/utils/lard/DETAILS b/utils/lard/DETAILS
index 1e07197..4fc20e2 100644
--- a/utils/lard/DETAILS
+++ b/utils/lard/DETAILS
@@ -5,7 +5,7 @@
       SOURCE_VFY=sha1:015c378504d9bbc2e00e76d4c89a26a0ce1dc443
         WEB_SITE=http://lard.foo-projects.org
          ENTERED=20050306
-         UPDATED=20070124
+         UPDATED=20110315
            SHORT="Logging and Rotation Daemon"
 cat << EOF
 Lard is a Logging and Rotation Daemon, that can replace the


More information about the Lunar-commits mailing list