Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package lastlog2 for openSUSE:Factory 
checked in at 2023-09-08 21:14:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lastlog2 (Old)
 and      /work/SRC/openSUSE:Factory/.lastlog2.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lastlog2"

Fri Sep  8 21:14:56 2023 rev:7 rq:1109699 version:1.2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/lastlog2/lastlog2.changes        2023-04-16 
16:06:44.376700863 +0200
+++ /work/SRC/openSUSE:Factory/.lastlog2.new.1766/lastlog2.changes      
2023-09-08 21:15:04.549473008 +0200
@@ -1,0 +2,8 @@
+Fri Sep  8 08:48:54 UTC 2023 - Thorsten Kukuk <ku...@suse.com>
+
+- Version 1.2.0
+  - show_lastlogin: Don't read if no database
+  - Fix -flto for clang
+  - Documentation fixes
+
+-------------------------------------------------------------------

Old:
----
  lastlog2-1.1.0.tar.xz

New:
----
  lastlog2-1.2.0.tar.xz

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

Other differences:
------------------
++++++ lastlog2.spec ++++++
--- /var/tmp/diff_new_pack.MCrZCs/_old  2023-09-08 21:15:05.641512037 +0200
+++ /var/tmp/diff_new_pack.MCrZCs/_new  2023-09-08 21:15:05.641512037 +0200
@@ -18,7 +18,7 @@
 
 %define lname   liblastlog2-1
 Name:           lastlog2
-Version:        1.1.0
+Version:        1.2.0
 Release:        0
 Summary:        Reports most recent login of users
 License:        BSD-2-Clause

++++++ lastlog2-1.1.0.tar.xz -> lastlog2-1.2.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lastlog2-1.1.0/.gitignore 
new/lastlog2-1.2.0/.gitignore
--- old/lastlog2-1.1.0/.gitignore       1970-01-01 01:00:00.000000000 +0100
+++ new/lastlog2-1.2.0/.gitignore       2023-09-08 10:46:34.000000000 +0200
@@ -0,0 +1,19 @@
+# Object files
+*.o
+*.ko
+*.obj
+*.elf
+
+# Libraries
+*.lib
+*.a
+*.la
+*.lo
+
+# Shared objects
+*.so
+*.so.*
+
+# Misc
+build
+*~
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lastlog2-1.1.0/include/lastlog2.h 
new/lastlog2-1.2.0/include/lastlog2.h
--- old/lastlog2-1.1.0/include/lastlog2.h       2023-04-11 11:55:40.000000000 
+0200
+++ new/lastlog2-1.2.0/include/lastlog2.h       2023-09-08 10:46:34.000000000 
+0200
@@ -31,6 +31,9 @@
 
 #include <stdint.h>
 
+/* Check if database file exists.
+   Returns 0 on success, -1 on failure. */
+extern int ll2_check_database (const char *lastlog2_path);
 /* Write a new entry. Returns 0 on success, -1 on failure. */
 extern int ll2_write_entry (const char *lastlog2_path, const char *user,
                            int64_t ll_time, const char *tty,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lastlog2-1.1.0/lib/lastlog2.c 
new/lastlog2-1.2.0/lib/lastlog2.c
--- old/lastlog2-1.1.0/lib/lastlog2.c   2023-04-11 11:55:40.000000000 +0200
+++ new/lastlog2-1.2.0/lib/lastlog2.c   2023-09-08 10:46:34.000000000 +0200
@@ -75,6 +75,14 @@
   return db;
 }
 
+/* Check if database file exists.
+   Returns 0 on success, -1 on failure. */
+int ll2_check_database (const char *lastlog2_path)
+{
+    struct stat st;
+    return stat(lastlog2_path, &st);
+}
+
 /* Reads one entry from database and returns that.
    Returns 0 on success, -1 on failure. */
 static int
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lastlog2-1.1.0/lib/liblastlog2.map 
new/lastlog2-1.2.0/lib/liblastlog2.map
--- old/lastlog2-1.1.0/lib/liblastlog2.map      2023-04-11 11:55:40.000000000 
+0200
+++ new/lastlog2-1.2.0/lib/liblastlog2.map      2023-09-08 10:46:34.000000000 
+0200
@@ -9,3 +9,8 @@
         ll2_import_lastlog;
   local: *;
 };
+
+LIBLASTLOG2_1.2 {
+  global:
+        ll2_check_database;
+} LIBLASTLOG2_1.0;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lastlog2-1.1.0/man/lastlog2.8.xml 
new/lastlog2-1.2.0/man/lastlog2.8.xml
--- old/lastlog2-1.1.0/man/lastlog2.8.xml       2023-04-11 11:55:40.000000000 
+0200
+++ new/lastlog2-1.2.0/man/lastlog2.8.xml       2023-09-08 10:46:34.000000000 
+0200
@@ -109,6 +109,16 @@
       </varlistentry>
       <varlistentry>
         <term>
+          <option>-s, --service</option>
+        </term>
+        <listitem>
+          <para>
+            Display PAM service used to login in the last column.
+          </para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term>
           <option>-S, --set</option>
         </term>
         <listitem>
@@ -141,6 +151,16 @@
           </para>
         </listitem>
       </varlistentry>
+      <varlistentry>
+        <term>
+          <option>-v, --version</option>
+        </term>
+        <listitem>
+          <para>
+            Print version number and exit.
+          </para>
+        </listitem>
+      </varlistentry>
     </variablelist>
     <para>
       If the user has never logged in the message
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lastlog2-1.1.0/meson.build 
new/lastlog2-1.2.0/meson.build
--- old/lastlog2-1.1.0/meson.build      2023-04-11 11:55:40.000000000 +0200
+++ new/lastlog2-1.2.0/meson.build      2023-09-08 10:46:34.000000000 +0200
@@ -11,7 +11,7 @@
                  'b_pie=true',
                  'warning_level=2',],
   license : ['BSD-2-Clause',],
-  version : '1.1.0',
+  version : '1.2.0',
 )
 
 cc = meson.get_compiler('c')
@@ -45,7 +45,11 @@
                  '-Wstrict-prototypes',
                  '-Wundef',
                  ]
+possible_ld_flags = [
+                  '-flto',
+                  ]
 add_project_arguments(cc.get_supported_arguments(possible_cc_flags), language 
: 'c')
+add_project_link_arguments(cc.get_supported_arguments(possible_ld_flags), 
language : 'c')
 
 fs = import('fs')
 if get_option('split-usr') == 'auto'
@@ -108,6 +112,7 @@
   link_depends : liblastlog2_map,
   dependencies : [libsqlite3],
   install : true,
+  version : meson.project_version(),
   soversion : '1'
 )
 install_headers('include/lastlog2.h')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lastlog2-1.1.0/src/lastlog2.c 
new/lastlog2-1.2.0/src/lastlog2.c
--- old/lastlog2-1.1.0/src/lastlog2.c   2023-04-11 11:55:40.000000000 +0200
+++ new/lastlog2-1.2.0/src/lastlog2.c   2023-09-08 10:46:34.000000000 +0200
@@ -105,7 +105,7 @@
   fputs ("  -h, --help            Display this help message and exit\n", 
output);
   fputs ("  -i, --import FILE     Import data from old lastlog file\n", 
output);
   fputs ("  -r, --rename NEWNAME  Rename existing user to NEWNAME (requires 
-u)\n", output);
-  fputs ("  -s, --service SERVICE Display PAM service\n", output);
+  fputs ("  -s, --service         Display PAM service\n", output);
   fputs ("  -S, --set             Set lastlog record to current time (requires 
-u)\n", output);
   fputs ("  -t, --time DAYS       Print only lastlog records more recent than 
DAYS\n", output);
   fputs ("  -u, --user LOGIN      Print lastlog record of the specified 
LOGIN\n", output);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lastlog2-1.1.0/src/pam_lastlog2.c 
new/lastlog2-1.2.0/src/pam_lastlog2.c
--- old/lastlog2-1.1.0/src/pam_lastlog2.c       2023-04-11 11:55:40.000000000 
+0200
+++ new/lastlog2-1.2.0/src/pam_lastlog2.c       2023-09-08 10:46:34.000000000 
+0200
@@ -239,7 +239,10 @@
   int retval = PAM_SUCCESS;
 
   if (ctrl & LASTLOG2_QUIET)
-    return PAM_SUCCESS;
+    return retval;
+
+  if (ll2_check_database (lastlog2_path) != 0)
+    return retval;
 
   if (ll2_read_entry (lastlog2_path, user, &ll_time, &tty, &rhost,
                      &service, &error) != 0)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lastlog2-1.1.0/tests/tst-pam_lastlog2-output.c 
new/lastlog2-1.2.0/tests/tst-pam_lastlog2-output.c
--- old/lastlog2-1.1.0/tests/tst-pam_lastlog2-output.c  2023-04-11 
11:55:40.000000000 +0200
+++ new/lastlog2-1.2.0/tests/tst-pam_lastlog2-output.c  2023-09-08 
10:46:34.000000000 +0200
@@ -66,6 +66,12 @@
       return 1;
     }
 
+  if (ll2_check_database (db_path) != 0)
+    {
+      fprintf(stderr, "ll2_check_database failed");
+      return 1;
+    }
+
   if (ll2_read_entry (db_path, user, &ll_time, &tty, &rhost,
                      NULL, &error) != 0)
     {

Reply via email to