Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package yascreen for openSUSE:Factory 
checked in at 2023-02-19 18:19:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yascreen (Old)
 and      /work/SRC/openSUSE:Factory/.yascreen.new.22824 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yascreen"

Sun Feb 19 18:19:00 2023 rev:2 rq:1066546 version:1.97

Changes:
--------
--- /work/SRC/openSUSE:Factory/yascreen/yascreen.changes        2023-02-07 
18:49:29.591263278 +0100
+++ /work/SRC/openSUSE:Factory/.yascreen.new.22824/yascreen.changes     
2023-02-19 18:19:06.769538547 +0100
@@ -1,0 +2,7 @@
+Sat Feb 18 14:03:13 UTC 2023 - Andreas Stieger <[email protected]>
+
+- yascreen 1.97:
+  * add yascreen_willto - allows to optimize polling in external
+    event loops
+
+-------------------------------------------------------------------

Old:
----
  yascreen-1.96.tar.xz
  yascreen-1.96.tar.xz.asc

New:
----
  yascreen-1.97.tar.xz
  yascreen-1.97.tar.xz.asc

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

Other differences:
------------------
++++++ yascreen.spec ++++++
--- /var/tmp/diff_new_pack.6tQtu9/_old  2023-02-19 18:19:07.285541826 +0100
+++ /var/tmp/diff_new_pack.6tQtu9/_new  2023-02-19 18:19:07.289541851 +0100
@@ -18,7 +18,7 @@
 
 %define sover 0
 Name:           yascreen
-Version:        1.96
+Version:        1.97
 Release:        0
 Summary:        A terminal control library (ncurses alternative)
 License:        LGPL-3.0-or-later

++++++ yascreen-1.96.tar.xz -> yascreen-1.97.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yascreen-1.96/.github/workflows/c-cpp.yml 
new/yascreen-1.97/.github/workflows/c-cpp.yml
--- old/yascreen-1.96/.github/workflows/c-cpp.yml       1970-01-01 
01:00:00.000000000 +0100
+++ new/yascreen-1.97/.github/workflows/c-cpp.yml       2023-02-05 
04:22:53.000000000 +0100
@@ -0,0 +1,63 @@
+name: C/C++ CI
+concurrency:
+  group: build-${{ github.ref }}
+  cancel-in-progress: true
+
+on:
+  push:
+    branches: master
+  pull_request:
+    branches: master
+
+jobs:
+  build:
+    strategy:
+      fail-fast: false
+      matrix:
+        os:  [ubuntu-20.04, ubuntu-22.04]
+        cc: [gcc, clang]
+        include:
+          - os: macos-latest
+          - os: ubuntu-20.04
+            cc: slackware
+            container: 'andy5995/slackware-build-essential:15.0'
+
+    runs-on: ${{ matrix.os }}
+    container: ${{ matrix.container }}
+    steps:
+    - uses: actions/checkout@v3
+
+    - if: ${{ matrix.cc == 'clang' }}
+      run: |
+        echo "CC=clang" >> $GITHUB_ENV
+        echo "CXX=clang++" >> $GITHUB_ENV
+
+    - name: Show info
+      run: |
+        export -p
+        echo '${{ toJSON(matrix) }}'
+
+    # If the build tools ever seem to be out of date, this can be uncommented
+    #
+    #- if: ${{ contains(matrix.os, 'ubuntu') && matrix.container == null }}
+      #run: |
+        #sudo apt-get update -qq
+        #sudo apt-get upgrade -y -qq
+
+    - name: Make
+      run: make
+
+  freebsd:
+    runs-on: macos-12
+    name: FreeBSD Test
+    steps:
+    - uses: actions/checkout@v3
+    - name: Test
+      uses: vmactions/freebsd-vm@v0
+      with:
+        usesh: true
+        prepare:  |
+          pkg install -y gmake
+        run: |
+          cc --version
+          gmake
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yascreen-1.96/Makefile.main 
new/yascreen-1.97/Makefile.main
--- old/yascreen-1.96/Makefile.main     2023-02-05 04:16:50.000000000 +0100
+++ new/yascreen-1.97/Makefile.main     2023-02-17 17:06:28.000000000 +0100
@@ -152,7 +152,8 @@
        tar \
                --xform 's,^[.],yascreen-$(VER),' \
                --exclude ./.git \
-               --exclude ./.github \
+               --exclude ./.github/CVS \
+               --exclude ./.github/workflows/CVS \
                --exclude ./.gitignore \
                --exclude ./.cvsignore \
                --exclude ./CVS \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yascreen-1.96/fedora/yascreen.spec 
new/yascreen-1.97/fedora/yascreen.spec
--- old/yascreen-1.96/fedora/yascreen.spec      2023-02-05 04:04:26.000000000 
+0100
+++ new/yascreen-1.97/fedora/yascreen.spec      2023-02-17 17:15:46.000000000 
+0100
@@ -1,9 +1,9 @@
 Name:           yascreen
-Version:        1.96
+Version:        1.97
 Release:        1%{?dist}
 Summary:        Yet Another Screen Library (lib(n)curses alternative)
 
-License:        LGPLv3
+License:        LGPL-3.0
 URL:            https://github.com/bbonev/yascreen/
 Source0:        %{url}releases/download/v%{version}/yascreen-%{version}.tar.xz
 Source1:        
%{url}releases/download/v%{version}/yascreen-%{version}.tar.xz.asc
@@ -58,7 +58,7 @@
 %install
 %make_install INSTALL+=" --strip-program=true" PREFIX=%{_prefix} 
LIBDIR=/%{_lib}/
 # allow debug info to be generated
-chmod +x $RPM_BUILD_ROOT%{_libdir}/libyascreen.so.1.0.0
+chmod +x $RPM_BUILD_ROOT%{_libdir}/libyascreen.so.0.0.0
 # remove unpackaged static library
 rm -f $RPM_BUILD_ROOT%{_libdir}/libyascreen.a
 
@@ -74,9 +74,18 @@
 %{_includedir}/yascreen.h
 
 %changelog
+* Fri Feb 17 2023 Boian Bonev <[email protected]> - 1.97-1
+- Update to latest ver 1.97
+
+* Tue Feb 14 2023 Boian Bonev <[email protected]> - 1.96-2
+- SPDX migration
+
 * Sun Feb 5 2023 Boian Bonev <[email protected]> - 1.96-1
 - Update to latest ver 1.96
 
+* Sat Jan 21 2023 Fedora Release Engineering <[email protected]> - 
1.92-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
+
 * Mon Jan 2 2023 Boian Bonev <[email protected]> - 1.92-1
 - Update to latest ver 1.92
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yascreen-1.96/yascreen.c new/yascreen-1.97/yascreen.c
--- old/yascreen-1.96/yascreen.c        2023-02-04 00:20:18.000000000 +0100
+++ new/yascreen-1.97/yascreen.c        2023-02-17 17:05:02.000000000 +0100
@@ -1,4 +1,4 @@
-// $Id: yascreen.c,v 1.96 2023/02/03 23:20:18 bbonev Exp $
+// $Id: yascreen.c,v 1.97 2023/02/16 04:40:29 bbonev Exp $
 //
 // Copyright © 2015-2023 Boian Bonev ([email protected]) {{{
 //
@@ -44,7 +44,7 @@
 #define PSIZE (sizeof(char *))
 // step to allocate key buffer
 #define KEYSTEP (4096/sizeof(int))
-// default timeout before escape is returned
+// default timeout in milliseconds before escape is returned
 #define YAS_DEFAULT_ESCTO 300
 
 // check if a given value is a valid simple color value
@@ -132,7 +132,7 @@
        cell *scr; // screen state
        struct termios *tsstack; // saved terminal state
        int tssize; // number of items in the stack
-       int escto; // single ESC key timeout
+       int escto; // single ESC key timeout (in milliseconds)
        int keysize; // saved key storage size
        int keycnt; // saved key count
        int *keys; // saved key array
@@ -313,7 +313,7 @@
        return s->phint;
 } // }}}
 
-static char myver[]="\0Yet another screen library 
(https://github.com/bbonev/yascreen) $Revision: 1.96 $\n\n"; // {{{
+static char myver[]="\0Yet another screen library 
(https://github.com/bbonev/yascreen) $Revision: 1.97 $\n\n"; // {{{
 // }}}
 
 inline const char *yascreen_ver(void) { // {{{
@@ -1449,6 +1449,22 @@
        }
 } // }}}
 
+inline uint64_t yascreen_willto(yascreen *s) { // {{{
+       int64_t now;
+
+       if (!s)
+               return 0;
+
+       if 
(s->state!=ST_ESC||s->ansipos!=1||s->ansibuf[0]!=YAS_K_ESC||!s->escto)
+               return 0; // no timeout pending
+
+       now=mytime();
+       if (s->escts+s->escto<=now)
+               return 1; // timeout already expired
+       else
+               return s->escts+s->escto-now;
+} // }}}
+
 static inline int yascreen_feed_telnet(yascreen *s,unsigned char c) { // {{{
        if (!s)
                return TELNET_NOOP;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yascreen-1.96/yascreen.h new/yascreen-1.97/yascreen.h
--- old/yascreen-1.96/yascreen.h        2023-01-31 19:04:15.000000000 +0100
+++ new/yascreen-1.97/yascreen.h        2023-02-17 17:05:02.000000000 +0100
@@ -1,4 +1,4 @@
-// $Id: yascreen.h,v 1.48 2023/01/02 11:35:04 bbonev Exp $
+// $Id: yascreen.h,v 1.49 2023/02/16 04:40:29 bbonev Exp $
 //
 // Copyright © 2015-2023 Boian Bonev ([email protected]) {{{
 //
@@ -406,13 +406,18 @@
 inline int yascreen_y(yascreen *s);
 
 // keyboard input
-// set timeout for single ESC key press
+// set timeout in milliseconds for single ESC key press
 inline void yascreen_esc_to(yascreen *s,int timeout);
 // in case of external event loop, this call will check for single ESC key
 // should be called regularly enough so that the above specified timeout is 
not extended too much
 // if not called often enough then single ESC will be yielded after longer 
timeout
 // if not called at all then single ESC will be yielded with next key press
 inline void yascreen_ckto(yascreen *s);
+// single ESC key and a timeout afterwards is quite the rare event
+// help the application to optimize its event loop by not constantly polling 
yascreen_ckto
+// yascreen_willto tells if there is a pending timeout and when
+// returns 0 if there is no pending timeout or the remaining time in 
milliseconds
+inline uint64_t yascreen_willto(yascreen *s);
 // wait for a key, return ASCII or extended keycode, wait no more than timeout 
in milliseconds
 inline int yascreen_getch_to(yascreen *s,int timeout);
 // zero timeout=wait forever
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yascreen-1.96/yascreen.vers 
new/yascreen-1.97/yascreen.vers
--- old/yascreen-1.96/yascreen.vers     2023-02-03 23:09:11.000000000 +0100
+++ new/yascreen-1.97/yascreen.vers     2023-02-17 17:05:02.000000000 +0100
@@ -66,3 +66,8 @@
                yascreen_ungetwch;
                yascreen_peekwch;
 } YASCREEN_1.83;
+YASCREEN_1.97 {
+       global:
+               # newly added
+               yascreen_willto;
+} YASCREEN_1.93;

Reply via email to