Hello community,

here is the log from the commit of package at for openSUSE:Factory checked in 
at 2013-01-10 22:27:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/at (Old)
 and      /work/SRC/openSUSE:Factory/.at.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "at", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:Factory/at/at.changes    2012-11-30 12:19:49.000000000 
+0100
+++ /work/SRC/openSUSE:Factory/.at.new/at.changes       2013-01-10 
22:27:06.000000000 +0100
@@ -1,0 +2,6 @@
+Sun Jan  6 20:43:45 UTC 2013 - [email protected]
+
+- Use simpler HXmap_get in at-parse-suse-sysconfig.patch
+  (bnc#780259)
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ at.spec ++++++
--- /var/tmp/diff_new_pack.ex99Wx/_old  2013-01-10 22:27:11.000000000 +0100
+++ /var/tmp/diff_new_pack.ex99Wx/_new  2013-01-10 22:27:11.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package at
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           at
-BuildRequires:  autoconf
+BuildRequires:  autoconf >= 2.69
 BuildRequires:  automake
 BuildRequires:  bison
 BuildRequires:  flex
@@ -100,7 +100,7 @@
 %patch17 -p1
 %patch18
 %patch19
-%patch20
+%patch20 -p1
 %build
 rm -fv y.tab.c y.tab.h lex.yy.c lex.yy.o y.tab.o
 autoreconf -fiv

++++++ at-parse-suse-sysconfig.patch ++++++
--- /var/tmp/diff_new_pack.ex99Wx/_old  2013-01-10 22:27:11.000000000 +0100
+++ /var/tmp/diff_new_pack.ex99Wx/_new  2013-01-10 22:27:11.000000000 +0100
@@ -1,6 +1,41 @@
---- atd.c.orig
-+++ atd.c
-@@ -104,8 +104,15 @@ static pam_handle_t *pamh = NULL;
+From: Christian Boltz <[email protected]>
+Last updated by: Jan Engelhardt <[email protected]>
+
+http://bugzilla.novell.com/780259
+
+---
+ Makefile.in  |    4 ++--
+ atd.c        |   21 +++++++++++++++++++++
+ configure.in |   44 +++++++++++++++++++++++++++-----------------
+ 3 files changed, 50 insertions(+), 19 deletions(-)
+
+Index: at-3.1.8/Makefile.in
+===================================================================
+--- at-3.1.8.orig/Makefile.in
++++ at-3.1.8/Makefile.in
+@@ -31,7 +31,7 @@ SELINUXLIB   = @SELINUXLIB@
+ PAMLIB                = @PAMLIB@
+ 
+ CC            = @CC@
+-CFLAGS                = @CFLAGS@
++CFLAGS                = @CFLAGS@ @HX_CFLAGS@
+ LDFLAGS               = @LDFLAGS@
+ LFILE         = $(ATJOB_DIR)/.SEQ
+ DEFS          = @DEFS@ -DVERSION=\"$(VERSION)\" \
+@@ -39,7 +39,7 @@ DEFS                 = @DEFS@ -DVERSION=\"$(VERSION)\"
+               -DDAEMON_USERNAME=\"$(DAEMON_USERNAME)\" \
+               -DDAEMON_GROUPNAME=\"$(DAEMON_GROUPNAME)\" \
+               -DLFILE=\"$(LFILE)\" -Wall
+-LIBS          = @LIBS@
++LIBS          = @LIBS@ @HX_LIBS@
+ LIBOBJS               = @LIBOBJS@
+ INSTALL               = @INSTALL@
+ 
+Index: at-3.1.8/atd.c
+===================================================================
+--- at-3.1.8.orig/atd.c
++++ at-3.1.8/atd.c
+@@ -104,6 +104,10 @@ static pam_handle_t *pamh = NULL;
     }
  #endif
  
@@ -8,47 +43,44 @@
 +#include <libHX/map.h>
 +#include <libHX/option.h>
 +
-+
  /* Local headers */
  
-+#define streq(a, b) (strcmp((a), (b)) == 0)
-+
  #include "privs.h"
- #include "daemon.h"
- 
-@@ -996,6 +1003,30 @@ main(int argc, char *argv[])
+@@ -934,6 +938,7 @@ main(int argc, char *argv[])
+  * for execution and yet another one, optionally, for sending mail.
+  * Files which already have run are removed during the next invocation.
+  */
++    struct HXmap *sc_map;
+     int c;
+     time_t next_invocation;
+     struct sigaction act;
+@@ -996,6 +1001,22 @@ main(int argc, char *argv[])
        }
      }
  
-+    struct HXmap *sysconfigmap;
-+    const struct HXmap_node *node;
-+    struct HXmap_trav *trav;
-+
-+    sysconfigmap = HX_shconfig_map("/etc/sysconfig/atd");
-+
-+    if(sysconfigmap != NULL)
-+    {
-+          trav = HXmap_travinit(sysconfigmap, HXMAP_NOFLAGS);
-+          while ((node = HXmap_traverse(trav)) != NULL) {
-+                  if(streq(node->skey, "ATD_BATCH_INTERVAL") && 
strlen(node->sdata) != 0) {
-+                          batch_interval = atoi(node->sdata);
-+                          syslog(LOG_INFO, "sysconfig requested 
batch_interval to be set to %d\n", batch_interval);
-+                  }
-+                  if(streq(node->skey, "ATD_LOADAVG") && strlen(node->sdata) 
!= 0) {
-+                          load_avg = atof(node->sdata);
-+                          syslog(LOG_INFO, "sysconfig requested load_avg to 
be set to %lf\n", load_avg);
-+                  }
-+          }
-+
-+         HXmap_travfree(trav);
-+         HXmap_free(sysconfigmap); 
++    sc_map = HX_shconfig_map("/etc/sysconfig/atd");
++    if (sc_map != NULL) {
++      char *v;
++
++      v = HXmap_get(sc_map, "ATD_BATCH_INTERVAL");
++      if (v != NULL && strlen(v) > 0) {
++          batch_interval = strtol(v, NULL, 0);
++            syslog(LOG_INFO, "sysconfig requested batch_interval to be set to 
%d\n", batch_interval);
++        }
++        v = HXmap_get(sc_map, "ATD_LOADAVG");
++        if (v != NULL && strlen(v) > 0) {
++            load_avg = strtod(v, NULL);
++            syslog(LOG_INFO, "sysconfig requested load_avg to be set to 
%f\n", load_avg);
++        }
 +    }
 +
      namep = argv[0];
      if (chdir(ATJOB_DIR) != 0)
        perr("Cannot change to " ATJOB_DIR);
---- configure.in.orig
-+++ configure.in
+Index: at-3.1.8/configure.in
+===================================================================
+--- at-3.1.8.orig/configure.in
++++ at-3.1.8/configure.in
 @@ -1,9 +1,10 @@
  dnl Process this file with autoconf to produce a configure script.
  
@@ -138,23 +170,3 @@
 -AC_OUTPUT(Makefile atrun atd.8 atrun.8 at.1 batch)
 +AC_CONFIG_FILES([Makefile atrun atd.8 atrun.8 at.1 batch])
 +AC_OUTPUT
---- Makefile.in.orig
-+++ Makefile.in
-@@ -31,7 +31,7 @@ SELINUXLIB   = @SELINUXLIB@
- PAMLIB                = @PAMLIB@
- 
- CC            = @CC@
--CFLAGS                = @CFLAGS@
-+CFLAGS                = @CFLAGS@ @HX_CFLAGS@
- LDFLAGS               = @LDFLAGS@
- LFILE         = $(ATJOB_DIR)/.SEQ
- DEFS          = @DEFS@ -DVERSION=\"$(VERSION)\" \
-@@ -39,7 +39,7 @@ DEFS                 = @DEFS@ -DVERSION=\"$(VERSION)\"
-               -DDAEMON_USERNAME=\"$(DAEMON_USERNAME)\" \
-               -DDAEMON_GROUPNAME=\"$(DAEMON_GROUPNAME)\" \
-               -DLFILE=\"$(LFILE)\" -Wall
--LIBS          = @LIBS@
-+LIBS          = @LIBS@ @HX_LIBS@
- LIBOBJS               = @LIBOBJS@
- INSTALL               = @INSTALL@
- 

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to