Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package wtmpdb for openSUSE:Factory checked 
in at 2023-12-20 21:01:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/wtmpdb (Old)
 and      /work/SRC/openSUSE:Factory/.wtmpdb.new.9037 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "wtmpdb"

Wed Dec 20 21:01:07 2023 rev:12 rq:1134046 version:0.10.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/wtmpdb/wtmpdb.changes    2023-10-27 
22:27:50.726749226 +0200
+++ /work/SRC/openSUSE:Factory/.wtmpdb.new.9037/wtmpdb.changes  2023-12-20 
21:01:17.524362012 +0100
@@ -1,0 +2,6 @@
+Wed Dec 13 14:01:00 UTC 2023 - Thorsten Kukuk <[email protected]>
+
+- Update to version 0.10.0
+  - last: support matching for username and/or tty
+
+-------------------------------------------------------------------

Old:
----
  wtmpdb-0.9.3.tar.xz

New:
----
  wtmpdb-0.10.0.tar.xz

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

Other differences:
------------------
++++++ wtmpdb.spec ++++++
--- /var/tmp/diff_new_pack.95fgaU/_old  2023-12-20 21:01:18.212387043 +0100
+++ /var/tmp/diff_new_pack.95fgaU/_new  2023-12-20 21:01:18.212387043 +0100
@@ -18,12 +18,12 @@
 
 %define lname   libwtmpdb0
 Name:           wtmpdb
-Version:        0.9.3
+Version:        0.10.0
 Release:        0
 Summary:        Database for recording the last logged in users and system 
reboots
 License:        BSD-2-Clause
 URL:            https://github.com/thkukuk/wtmpdb
-Source:         
https://github.com/thkukuk/wtmpdb/releases/download/v0.7.1/%{name}-%{version}.tar.xz
+Source:         
https://github.com/thkukuk/wtmpdb/releases/download/v0.10.0/%{name}-%{version}.tar.xz
 BuildRequires:  docbook5-xsl-stylesheets
 BuildRequires:  meson
 BuildRequires:  pkgconfig

++++++ wtmpdb-0.9.3.tar.xz -> wtmpdb-0.10.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wtmpdb-0.9.3/NEWS new/wtmpdb-0.10.0/NEWS
--- old/wtmpdb-0.9.3/NEWS       2023-10-26 15:03:36.000000000 +0200
+++ new/wtmpdb-0.10.0/NEWS      2023-12-13 14:56:33.000000000 +0100
@@ -1,3 +1,6 @@
+Version 0.10.0
+* last: support matching for username and/or tty
+
 Version 0.9.3
 * wtmpdb last: don't print date in the future if there is no db entry
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wtmpdb-0.9.3/man/wtmpdb.8.xml 
new/wtmpdb-0.10.0/man/wtmpdb.8.xml
--- old/wtmpdb-0.9.3/man/wtmpdb.8.xml   2023-10-26 15:03:36.000000000 +0200
+++ new/wtmpdb-0.10.0/man/wtmpdb.8.xml  2023-12-13 14:56:33.000000000 +0100
@@ -40,7 +40,9 @@
     <variablelist>
       <varlistentry>
         <term><command>last</command>
-       <optional><replaceable>option</replaceable>…</optional></term>
+       <optional><replaceable>option</replaceable>…</optional>
+       <optional><replaceable>username</replaceable>…</optional>
+       <optional><replaceable>tty</replaceable>…</optional></term>
         <listitem>
           <para>
            <command>wtmpdb last</command> goes through the
@@ -48,8 +50,11 @@
            database designated by the <command>-f</command> option) and
            displays a list of of all users logged in and logged out. The
            output can be restricted to different patterns via various
-           options.
+           options. If one or more usernames and/or ttys are given
+           <command>wtmpdb last</command> will only show the entries matching
+           those arguments.
          </para>
+
          <para>
            The login and logout times of the special user
            <command>reboot</command> are the boot and shutdown times of the
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wtmpdb-0.9.3/meson.build 
new/wtmpdb-0.10.0/meson.build
--- old/wtmpdb-0.9.3/meson.build        2023-10-26 15:03:36.000000000 +0200
+++ new/wtmpdb-0.10.0/meson.build       2023-12-13 14:56:33.000000000 +0100
@@ -9,9 +9,10 @@
                   'buildtype=debugoptimized',
                  'default_library=shared',
                  'b_pie=true',
+                  'b_lto=true',
                  'warning_level=3',],
   license : ['BSD-2-Clause',],
-  version : '0.9.3',
+  version : '0.10.0',
 )
 
 conf = configuration_data()
@@ -28,8 +29,6 @@
                        '-D_TIME_BITS=64'], language : 'c')
 
 possible_cc_flags = [
-                  '-flto=auto',
-                  '-ffat-lto-objects',
                  '-fstack-protector-strong',
                  '-funwind-tables',
                  '-fasynchronous-unwind-tables',
@@ -47,11 +46,7 @@
                  '-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'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wtmpdb-0.9.3/src/wtmpdb.c 
new/wtmpdb-0.10.0/src/wtmpdb.c
--- old/wtmpdb-0.9.3/src/wtmpdb.c       2023-10-26 15:03:36.000000000 +0200
+++ new/wtmpdb-0.10.0/src/wtmpdb.c      2023-12-13 14:56:33.000000000 +0100
@@ -76,6 +76,7 @@
 static time_t present = 0; /* Who was present at the specified time */
 static time_t since = 0; /* Who was logged in after this time? */
 static time_t until = 0; /* Who was logged in until this time? */
+static char **match = NULL; /* user/tty to display only */
 
 
 /* isipaddr - find out if string provided is an IP address or not
@@ -304,6 +305,20 @@
   if (present && (present < (time_t)(login_t/USEC_PER_SEC)))
     return 0;
 
+  if (match)
+    {
+      char **walk;
+
+      for (walk = match; *walk; walk++)
+       {
+         if (strcmp (user, *walk) == 0 ||
+             strcmp(tty, *walk) == 0)
+           break;
+       }
+      if (*walk == NULL)
+       return 0;
+    }
+
   format_time (login_fmt, logintime, sizeof (logintime),
               login_t/USEC_PER_SEC);
 
@@ -473,6 +488,8 @@
   fputs ("  -t, --until TIME    Display who was logged in until TIME\n", 
output);
   fputs ("  -w, --fullnames     Display full IP addresses and user and domain 
names\n", output);
   fputs ("  -x, --system        Display system shutdown entries\n", output);
+  fputs ("  [username...]       Display only entries matching these 
arguments\n", output);
+  fputs ("  [tty...]            Display only entries matching these 
arguments\n", output);
   fputs ("TIME must be in the format \"YYYY-MM-DD HH:MM:SS\"\n", output);
   fputs ("\n", output);
 
@@ -649,10 +666,7 @@
     }
 
   if (argc > optind)
-    {
-      fprintf (stderr, "Unexpected argument: %s\n", argv[optind]);
-      usage (EXIT_FAILURE);
-    }
+    match = argv + optind;
 
   if (nohostname && hostlast)
     {

Reply via email to