Hello community,

here is the log from the commit of package tudu for openSUSE:Factory checked in 
at 2020-09-03 01:17:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/tudu (Old)
 and      /work/SRC/openSUSE:Factory/.tudu.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "tudu"

Thu Sep  3 01:17:06 2020 rev:3 rq:831375 version:0.10.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/tudu/tudu.changes        2019-10-21 
12:27:45.855917409 +0200
+++ /work/SRC/openSUSE:Factory/.tudu.new.3399/tudu.changes      2020-09-03 
01:18:00.208555483 +0200
@@ -1,0 +2,8 @@
+Mon Aug 31 13:57:22 UTC 2020 - Dirk Mueller <dmuel...@suse.com>
+
+- update to 0.10.4:
+  * Fixed a possible division by zero
+  * Silence a compilation warning
+- add configure-check.patch
+
+-------------------------------------------------------------------

Old:
----
  tudu-0.10.3.tar.gz

New:
----
  configure-check.patch
  tudu-0.10.4.tar.gz

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

Other differences:
------------------
++++++ tudu.spec ++++++
--- /var/tmp/diff_new_pack.wPrfm0/_old  2020-09-03 01:18:01.016555780 +0200
+++ /var/tmp/diff_new_pack.wPrfm0/_new  2020-09-03 01:18:01.020555781 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package tudu
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,13 +17,15 @@
 
 
 Name:           tudu
-Version:        0.10.3
+Version:        0.10.4
 Release:        0
 Summary:        A command line interface tasks manager
 License:        GPL-3.0-only
 Group:          Productivity/Office/Organizers
 URL:            https://code.meskio.net/tudu/
 Source:         https://code.meskio.net/%{name}/%{name}-%{version}.tar.gz
+# Fix configure check which fails due to openSUSE using -Werror=return-value
+Patch1:         configure-check.patch
 BuildRequires:  gcc-c++
 BuildRequires:  make
 BuildRequires:  ncurses-devel
@@ -35,6 +37,7 @@
 
 %prep
 %setup -q
+%patch1
 
 %build
 %configure

++++++ configure-check.patch ++++++
--- configure
+++ configure
@@ -22,7 +22,7 @@
 (exec ${HOST}-${CPP} --help >/dev/null 2>&1)
 [ $? = 0 ] && CPP="${HOST}-${CPP}"
 fi
-(echo "main(){}" | ${CPP}  >/dev/null 2>&1)
+(echo "int main(){}" | ${CPP}  >/dev/null 2>&1)
 if [ $? = 0 ]; then echo ${CPP}; else
 echo "ERROR: ${CPP} cannot parse sources"; fi
 
@@ -280,7 +280,7 @@
 if [ "$?" = 0 ]; then CXX="${HOST}-${CXX}"; fi
 fi
 echo "#include <iostream>" > test.cxx
-echo "main(){ std::cout << 1; }" >> test.cxx
+echo "int main(){ std::cout << 1; }" >> test.cxx
 (exec ${CXX} ${CXXFLAGS} ${LDFLAGS} test.cxx -lstdc++ >/dev/null 2>&1)
 if [ $? = 0 ]; then echo ${CXX}; else
 HAVE_LANG_CXX=0
@@ -300,7 +300,7 @@
 printf "checking for $2... "
 echo > test.c
 echo "#include <${INC}>" >>test.c
-echo "main(){}" >>test.c
+echo "int main(){}" >>test.c
 eval \$${COMPILER} ${CFLAGS} ${CPPFLAGS} ${CXXFLAGS} test.c >/dev/null 2>&1
 if [ $? = 0 ]; then
        eval ${VAR}=1
@@ -337,7 +337,7 @@
 _CHKLIB_NAME=$2
 _CHKLIB_LIBS=$(echo "-l${_CHKLIB_NAME}" | sed 's,\+, -l,g')
 printf "checking for lib${_CHKLIB_NAME} ... "
-echo "main(){ }" > test.c
+echo "int main(){ }" > test.c
 eval ${S}${COMPILER} ${CFLAGS} ${CPPFLAGS} ${CXXFLAGS} ${LDFLAGS} 
${_CHKLIB_LIBS} test.c >/dev/null 2>&1
 if [ $? = 0 ]; then
        eval ${VAR}=1
++++++ tudu-0.10.3.tar.gz -> tudu-0.10.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tudu-0.10.3/ChangeLog new/tudu-0.10.4/ChangeLog
--- old/tudu-0.10.3/ChangeLog   2019-07-18 12:29:20.000000000 +0200
+++ new/tudu-0.10.4/ChangeLog   2020-05-10 10:39:45.000000000 +0200
@@ -1,3 +1,7 @@
+0.10.4
+       * Fixed a possible division by zero
+       * Silence a compilation warning
+
 0.10.3
        * Fixed segfault on drawing window
        * Fixed out of bounds in xml save path
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tudu-0.10.3/README new/tudu-0.10.4/README
--- old/tudu-0.10.3/README      2019-07-18 12:29:19.000000000 +0200
+++ new/tudu-0.10.4/README      2020-05-10 10:39:45.000000000 +0200
@@ -1,3 +1,7 @@
+The development of this project is not active. I will be happy to review 
patches
+and to do releases, but I'm not sure if I will be able to do any active
+development myself.
+
 Install
 =======
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tudu-0.10.3/configure new/tudu-0.10.4/configure
--- old/tudu-0.10.3/configure   2019-07-18 12:29:19.000000000 +0200
+++ new/tudu-0.10.4/configure   2020-05-10 10:39:45.000000000 +0200
@@ -1,10 +1,9 @@
 #!/bin/sh
-# This script was automatically generated by ACR v1.7.2
-# @author: pancake <nopcode.org>
+# This script was automatically generated by ACR v0.9.4
+# @author: pancake <youterm.com>
 # @url:    http://www.nopcode.org
-# @repo:   git clone https://github.com/radare/acr
+# @repo:   hg clone http://hg.youterm.com/acr
 
-[ -z "${AWK}" ] && AWK=awk
 do_remove() {
 if [ "${ACR_RMFILES}" ]; then
   printf "cleaning temporally files... "
@@ -23,7 +22,7 @@
 (exec ${HOST}-${CPP} --help >/dev/null 2>&1)
 [ $? = 0 ] && CPP="${HOST}-${CPP}"
 fi
-(echo "int main(int ac, char **av){return 0;}" | ${CPP}  >/dev/null 2>&1)
+(echo "main(){}" | ${CPP}  >/dev/null 2>&1)
 if [ $? = 0 ]; then echo ${CPP}; else
 echo "ERROR: ${CPP} cannot parse sources"; fi
 
@@ -33,14 +32,7 @@
 ENVWORDS="${ENVWORDS} $1_CPU $1_OS"
 STR=`eval "echo ${S}$1"`
 SPLIT_CPU="`echo "$STR" | cut -d - -f 1`"
-SPLIT_OS="`echo "$STR" | $AWK -F - '{
-       if ($2=="unknown"){
-               if (NF<3) { print $2; } else { print $3; }
-       } else {
-               if ($2=="linux") { print $2; } else
-               if (NF<3) { print $2; } else { print $3; }
-       }
-}'`"
+SPLIT_OS="`echo "$STR" | awk -F - '{if(NF==4){print $4}else{print $2}}'`"
 eval "$1_CPU=\"$SPLIT_CPU\""
 eval "$1_OS=\"$SPLIT_OS\""
 shift
@@ -49,7 +41,7 @@
 }
 
 VPATH=`dirname ${0}`
-if [ "${VPATH}" = "." ]; then
+if [ "${VPATH}" = "." ]; then 
        WODIS=current
 else
        if [ "${VPATH}" = "${PWD}" ]; then
@@ -71,7 +63,6 @@
 fi
 CPU="`uname -m|sed -e 's, ,,g'|cut -d - -f 1`"
 OS="`uname -s|tr A-Z a-z`"
-uname -r | grep -qE "(Microsoft|WSL)" 2>/dev/null && OS="wsl"
 GNU="`uname --help 2>&1 | grep gnu`"
 [ "${GNU}" ] && OS="${OS}-gnu"
 [ "${CPU}" = ppc ] && CPU="powerpc"
@@ -88,22 +79,21 @@
 SYSCONFDIR=""
 
 create_environ() {
-: ${EPREFIX:="${PREFIX}"}
-: ${SPREFIX:="${PREFIX}"}
-: ${BINDIR:="${SPREFIX}/bin"}
-: ${SBINDIR:="${PREFIX}/sbin"}
-: ${SYSCONFDIR:="${SPREFIX}/etc"}
-: ${LIBDIR:="${SPREFIX}/lib"}
-: ${LIBEXECDIR:="${SPREFIX}/libexec"}
-: ${INCLUDEDIR:="${SPREFIX}/include"}
-: ${DATADIR:="${SPREFIX}/share"}
-: ${INFODIR:="${DATADIR}/info"}
-: ${MANDIR:="${DATADIR}/man"}
-: ${DOCDIR:="${DATADIR}/doc/tudu"}
-: ${LOCALSTATEDIR:="${SPREFIX}/var"}
+: ${EPREFIX:=${PREFIX}}
+: ${SPREFIX:=${PREFIX}}
+: ${BINDIR:=${SPREFIX}/bin}
+: ${SBINDIR:=${PREFIX}/sbin}
+: ${SYSCONFDIR:=${SPREFIX}/etc}
+: ${LIBDIR:=${SPREFIX}/lib}
+: ${LIBEXECDIR:=${SPREFIX}/libexec}
+: ${INCLUDEDIR:=${SPREFIX}/include}
+: ${DATADIR:=${SPREFIX}/share}
+: ${INFODIR:=${DATADIR}/info}
+: ${MANDIR:=${DATADIR}/man}
+: ${LOCALSTATEDIR:=${SPREFIX}/var}
 for A in `echo ${PATH} | sed -e 's,:, ,g'` ; do
-  [ -e "$A"/ginstall ] && : ${INSTALL:="$A"/ginstall} && break
-  [ -e "$A"/install ] && : ${INSTALL:="$A"/install} && break
+  [ -e $A/ginstall ] && : ${INSTALL:=$A/ginstall} && break
+  [ -e $A/install ] && : ${INSTALL:=$A/install} && break
 done
 : ${INSTALL_DIR:=${INSTALL} -d}
 : ${INSTALL_DATA:=${INSTALL} -m 644}
@@ -111,13 +101,13 @@
 : ${INSTALL_PROGRAM:=${INSTALL} -m 755}
 : ${INSTALL_PROGRAM_STRIP:=${INSTALL} -m 755 -s}
 : ${INSTALL_MAN:=${INSTALL} -m 444}
-: ${INSTALL_LIB:=${INSTALL} -m 755 -c}
- PKGNAME='tudu' ; VERSION='0.10.3' ; CONTACT_MAIL="mes...@sindominio.net" ; 
CONTACT_NAME="Ruben Pollan" ; CONTACT="Ruben Pollan <mes...@sindominio.net>" ;
+: ${INSTALL_LIB:=${INSTALL} -c}
+ PKGNAME='tudu' ; VERSION='0.10.4' ; CONTACT_MAIL="mes...@sindominio.net" ; 
CONTACT_NAME="Ruben Pollan" ; CONTACT="Ruben Pollan <mes...@sindominio.net>" ;
 }
-
+                
 show_usage() {
 cat <<EOF2
-'configure' configures tudu-0.10.3 to adapt to many kinds of systems.
+'configure' configures tudu-0.10.4 to adapt to many kinds of systems.
 
 Usage: ./configure [OPTION]... [VAR=VALUE]...
 
@@ -128,28 +118,26 @@
 
 Configuration:
   -h, --help              display this help and exit
-  -r, --report            show what libs/programs require to work
   -V, --version           display version information and exit
+  -r, --report            show what libs/programs require to work
 
 Installation directories:
-  --exec-prefix=EPREFIX  install arch-dependent files in EPREFIX [PREFIX]
   --prefix=PREFIX        install arch-independent files in PREFIX [/usr/local]
+  --exec-prefix=EPREFIX  install arch-dependent files in EPREFIX [PREFIX]
   --sandbox=SPREFIX      sandbox prefix directory: SPREFIX [PREFIX]
 
 Fine tuning of the installation directories:
   --bindir=DIR           user executables [EPREFIX/bin]
+  --sbindir=DIR          system admin executables [EPREFIX/sbin]
+  --libexecdir=DIR       program executables [EPREFIX/libexec]
   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
-  --docdir=DIR           documentation directory [DATADIR/doc/tudu]
+  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
+  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
+  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
+  --libdir=DIR           object code libraries [EPREFIX/lib]
   --includedir=DIR       C header files [PREFIX/include]
   --infodir=DIR          info documentation [DATADIR/info]
-  --libexecdir=DIR       program executables [EPREFIX/libexec]
-  --libdir=DIR           object code libraries [EPREFIX/lib]
-  --libpath=DIR          set rpath/libname-path to linker
-  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
   --mandir=DIR           man documentation [DATADIR/man]
-  --sbindir=DIR          system admin executables [EPREFIX/sbin]
-  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
-  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
 System types:
   --build=BUILD          configure for building on BUILD [guessed]
@@ -176,15 +164,15 @@
 }
 
 show_version() {
-echo "tudu-0.10.3 configuration script done with acr v1.7.2.
+echo "tudu-0.10.4 configuration script done with acr v0.9.4.
 The 'Free Software Foundation' message is only for autodetection.
-Originally written by pancake <nopcode.org>."
+Originally written by pancake <youterm.com>."
 exit 0
 }
 
 parse_options() {
 flag=`echo $1| cut -d = -f 1`
-value=`echo $1| $AWK 'BEGIN{FS="=";}{print $2}'`
+value=`echo $1| awk 'BEGIN{FS="=";}{print $2}'`
 flag2=`echo $flag|cut -f2- -d -| sed -e 's,-,_,g' -e 's,^_,,g'|tr '[a-z]' 
'[A-Z]'`
 
 if [ "${TARGET_OS}" = "darwin" ]; then
@@ -194,61 +182,57 @@
 fi
 
 case $flag in
--h|--help|--hel|--h|--he|-help)
+"-h"|"--help"|"--hel"|"--h"|"--he"|"-help")
        show_usage ; ;;
--V|-version|--version)
+"-V"|"-version"|"--version")
        show_version ; ;;
--r|--r|--report)
+"-r"|"--r"|"--report")
 echo "PKGNAME:   tudu"
-echo "VERSION:   0.10.3"
+echo "VERSION:   0.10.4"
 echo "LANGS:     c++"
-echo "OPTIONAL:  libncursesw libncurses libcurses"
+echo "OPTIONAL:  libncursesw"
        exit 0
        ;;
---cache-file)
+"--cache-file") 
        # ignored: acr have no cache
        ;;
---build)
+"--build")
        BUILD="$value"; split_host BUILD ; ;;
---host)
+"--host")
        CROSSBUILD=1 # XXX
        HOST="$value"; split_host HOST ; ;;
---target)
+"--target")
        TARGET="$value"; split_host TARGET ; ;;
---prefix)
+"--prefix")
        PREFIX="$value"; ;;
---exec-prefix)
+"--exec-prefix")
        EPREFIX="$value"; ;;
---sandbox|--sprefix)
+"--sandbox"|"--sprefix")
        SPREFIX="$value"; ;;
---bindir)
+"--bindir")
        BINDIR="$value"; ;;
---sbindir)
+"--sbindir")
        SBINDIR="$value"; ;;
---libexecdir)
+"--libexecdir")
        LIBEXECDIR="$value"; ;;
---docdir)
-       DOCDIR="$value"; ;;
---datadir)
+"--datadir")
        DATADIR="$value"; ;;
---sysconfdir)
+"--sysconfdir")
        SYSCONFDIR="$value"; ;;
---sharedstatedir)
+"--sharedstatedir")
        SHAREDSTATEDIR="$value"; ;;
---localstatedir)
+"--localstatedir")
        LOCALSTATEDIR="$value"; ;;
---libdir)
-       LIBDIR="$value"; ;;
---libpath)
-       LDFLAGS="${LDFLAGS} ${LIBPATH}$value"; ;;
---includedir)
+"--libdir")
+       LIBDIR="$value"; LDFLAGS="${LDFLAGS} -L$value ${LIBPATH}$value"; ;;
+"--includedir")
        INCLUDEDIR="$value"; CFLAGS="${CFLAGS} -I$value"; ;;
---infodir)
+"--infodir")
        INFODIR="$value"; ;;
---mandir)
+"--mandir")
        MANDIR="$value"; ;;
 
-*) if [ "$value" ]; then eval "`echo $flag2=$value`" ;
+*) if [ "$value" ]; then eval "`echo $flag2=$value`" ; 
 else echo ; echo "WARNING: Unknown flag '$flag'." >&2 ; echo ; fi ;;
 esac
 }
@@ -261,11 +245,11 @@
 
 while : ; do
 [ -z "$1" ] && break
-parse_options "$1"
+parse_options $1
 shift
 done
 
-ENVWORDS="MANDIR INFODIR LIBDIR INCLUDEDIR LOCALSTATEDIR SYSCONFDIR DATADIR 
DOCDIR LIBEXECDIR SBINDIR BINDIR EPREFIX PREFIX SPREFIX TARGET HOST BUILD 
INSTALL INSTALL_LIB INSTALL_MAN INSTALL_PROGRAM INSTALL_PROGRAM_STRIP 
INSTALL_DIR INSTALL_SCRIPT INSTALL_DATA HOST_OS HOST_CPU BUILD_OS BUILD_CPU 
TARGET_OS TARGET_CPU PKGNAME VPATH VERSION CONTACT CONTACT_NAME CONTACT_MAIL 
YEAR CXX CXXFLAGS LDFLAGS HAVE_LANG_CXX CPP CPPFLAGS SRCS HAVE_XCURSES_H 
HAVE_NCURSESW_CURSES_H HAVE_NCURSES_CURSES_H HAVE_NCURSES_H HAVE_CURSES_H 
CURSES_INCLUDE HAVE_LIB_NCURSESW HAVE_LIB_NCURSES HAVE_LIB_CURSES LD_CURSES 
WIDEC_CURSES HAVE_STRING HAVE_VECTOR HAVE_MAP HAVE_FSTREAM HAVE_LIST HAVE_STACK 
HAVE_ALGORITHM HAVE_SET HAVE_CTIME HAVE_CSTRING HAVE_CSIGNAL HAVE_CSTDIO 
HAVE_CSTDLIB HAVE_SYS_TYPES_H HAVE_SYS_WAIT_H HAVE_SYS_STAT_H HAVE_UNISTD_H 
HAVE_FCNTL_H HAVE_LOCALE HAVE_CWCHAR HAVE_CLOCALE HAVE_CLIMITS HAVE_IOSTREAM 
HAVE_IOMANIP HAVE_SSTREAM HAVE_CERRNO"
+ENVWORDS="MANDIR INFODIR LIBDIR INCLUDEDIR LOCALSTATEDIR SYSCONFDIR DATADIR 
LIBEXECDIR SBINDIR BINDIR EPREFIX PREFIX SPREFIX TARGET HOST BUILD INSTALL 
INSTALL_LIB INSTALL_MAN INSTALL_PROGRAM INSTALL_PROGRAM_STRIP INSTALL_DIR 
INSTALL_SCRIPT INSTALL_DATA HOST_OS HOST_CPU BUILD_OS BUILD_CPU TARGET_OS 
TARGET_CPU PKGNAME VPATH VERSION CONTACT CONTACT_NAME CONTACT_MAIL YEAR CXX 
CXXFLAGS LDFLAGS HAVE_LANG_CXX CPP CPPFLAGS SRCS HAVE_XCURSES_H 
HAVE_NCURSESW_CURSES_H HAVE_NCURSES_CURSES_H HAVE_NCURSES_H HAVE_CURSES_H 
CURSES_INCLUDE HAVE_LIB_NCURSESW HAVE_LIB_NCURSES HAVE_LIB_CURSES LD_CURSES 
WIDEC_CURSES HAVE_STRING HAVE_VECTOR HAVE_MAP HAVE_FSTREAM HAVE_LIST HAVE_STACK 
HAVE_ALGORITHM HAVE_SET HAVE_CTIME HAVE_CSTRING HAVE_CSIGNAL HAVE_CSTDIO 
HAVE_CSTDLIB HAVE_SYS_TYPES_H HAVE_SYS_WAIT_H HAVE_SYS_STAT_H HAVE_UNISTD_H 
HAVE_FCNTL_H HAVE_LOCALE HAVE_CWCHAR HAVE_CLOCALE HAVE_CLIMITS HAVE_IOSTREAM 
HAVE_IOMANIP HAVE_SSTREAM HAVE_CERRNO"
 
 create_environ
 
@@ -275,7 +259,7 @@
 [ "${CROSSBUILD}" = 1 ] && echo "using crosscompilation mode."
 
 #split_host BUILD HOST TARGET
-[ -n "${prefix}" ] && PREFIX="${prefix}"
+[ -n "${prefix}" ] && PREFIX=${prefix}
 echo "checking for working directories... ${WODIS}"
 echo "using prefix '${PREFIX}'"
 ACR_RMFILES=" test.c test.cxx a.out a.exe"
@@ -286,9 +270,8 @@
 
 
 
-
-
-YEAR="2019"
+: 
+YEAR="2020"
 COMPILER=CXX
 HAVE_LANG_CXX=1
 printf "checking for c++ compiler... "
@@ -297,7 +280,7 @@
 if [ "$?" = 0 ]; then CXX="${HOST}-${CXX}"; fi
 fi
 echo "#include <iostream>" > test.cxx
-echo "int main(){ std::cout << 1; return 0;}" >> test.cxx
+echo "main(){ std::cout << 1; }" >> test.cxx
 (exec ${CXX} ${CXXFLAGS} ${LDFLAGS} test.cxx -lstdc++ >/dev/null 2>&1)
 if [ $? = 0 ]; then echo ${CXX}; else
 HAVE_LANG_CXX=0
@@ -316,24 +299,15 @@
 _REQUIRED=$3
 printf "checking for $2... "
 echo > test.c
-
 echo "#include <${INC}>" >>test.c
-echo 'int main(int ac, char **av){return 0;}' >>test.c
+echo "main(){}" >>test.c
 eval \$${COMPILER} ${CFLAGS} ${CPPFLAGS} ${CXXFLAGS} test.c >/dev/null 2>&1
 if [ $? = 0 ]; then
        eval ${VAR}=1
        echo yes
 else
        eval ${VAR}=0
-       echo no
-       if [ 1 = "0" ]; then
-               echo 'ERROR: required include not found.' >&2
-               do_remove
-               exit 1
-       fi
-fi
-}
-
+       echo no ; fi }
 check_include HAVE_XCURSES_H xcurses.h 0
 
 check_include HAVE_NCURSESW_CURSES_H ncursesw/curses.h 0
@@ -361,27 +335,19 @@
 S="$"
 _REQUIRED=$3
 _CHKLIB_NAME=$2
-_CHKLIB_LIBS=$(echo "-l${_CHKLIB_NAME}" | sed 's,+, -l,g')
+_CHKLIB_LIBS=$(echo "-l${_CHKLIB_NAME}" | sed 's,\+, -l,g')
 printf "checking for lib${_CHKLIB_NAME} ... "
-echo "int main(int ac, char **av){return 0;}" > test.c
+echo "main(){ }" > test.c
 eval ${S}${COMPILER} ${CFLAGS} ${CPPFLAGS} ${CXXFLAGS} ${LDFLAGS} 
${_CHKLIB_LIBS} test.c >/dev/null 2>&1
 if [ $? = 0 ]; then
        eval ${VAR}=1
        echo yes
 else
        eval ${VAR}=0
-       echo no
-       if [ "${_REQUIRED}" = 1 ]; then
-         echo "this library is required."
-         do_remove
-         exit 1
-       fi
-fi
-}
-
-check_library HAVE_LIB_NCURSESW ncursesw 0
-check_library HAVE_LIB_NCURSES ncurses 0
-check_library HAVE_LIB_CURSES curses 0
+       echo no  ; fi }
+check_library HAVE_LIB_NCURSESW ncursesw 0 
+check_library HAVE_LIB_NCURSES ncurses 0 
+check_library HAVE_LIB_CURSES curses 0 
 if [ "$HAVE_LIB_NCURSESW" = "1" ]; then
 LD_CURSES="-lncursesw"; fi
 if [ "$HAVE_LIB_NCURSES" = "1" ]; then
@@ -392,7 +358,7 @@
 case "$undefined_variable" in 0|"") echo ; echo "ERROR: There is no curses 
installed!" >&2 ; echo ; exit 1 ;; esac; fi
 LDFLAGS="${LDFLAGS} $LD_CURSES"
 printf "checking for WIDEC_CURSES... "
- echo "#define _XOPEN_SOURCE_EXTENDED" > test.c ; echo 
"#include<$CURSES_INCLUDE>" >> test.c ; echo "int main(){ addwstr(L\"\"); }" >> 
test.c ; eval \$${COMPILER} ${CXXFLAGS} test.c ${LDFLAGS} >/dev/null 2>&1 ; 
WIDEC_CURSES=$? ; rm test.c
+echo "#define _XOPEN_SOURCE_EXTENDED" > test.c  ; echo 
"#include<$CURSES_INCLUDE>" >> test.c  ; echo "int main(){ addwstr(L\"\"); }" 
>> test.c  ; eval \$${COMPILER} ${CXXFLAGS} test.c ${LDFLAGS} >/dev/null 2>&1  
; WIDEC_CURSES=$?  ; rm test.c  
 if [ "$WIDEC_CURSES" = 0 ]; then
        WIDEC_CURSES=1
        echo yes
@@ -458,7 +424,7 @@
 COUNT=0
 for A in ${ENVWORDS} ; do
        [ "${A}" = VPATH ] && continue
-       [ "${A}" = srcdir ] && continue
+       [ "${A}" = srcdir ] && continue 
        eval "VAR=\$${A}"
        VAR="`echo ${VAR} | sed -e 's/\,/\\\,/g'`"
        [ $COUNT = 10 ] && COUNT=0 && SEDFLAGS="${SEDFLAGS}' -e '"
@@ -489,7 +455,7 @@
  MARK="##${A}##"
 if [ -n "`grep \"${MARK}\" ${SD_TARGET}.tmp`" ]; then
  mv ${SD_TARGET}.tmp ${SD_TARGET}.tmp2
- cat ${SD_TARGET}.tmp2 | MARK=$MARK $AWK 
'BEGIN{a=0;}{if($1==ENVIRON["MARK"]){if(a)a=0;else a=1}else{if(!a)print;}}' > 
${SD_TARGET}.tmp
+ cat ${SD_TARGET}.tmp2 | MARK=$MARK awk 
'BEGIN{a=0;}{if($1==ENVIRON["MARK"]){if(a)a=0;else a=1}else{if(!a)print;}}' > 
${SD_TARGET}.tmp
  fi
 fi
 done
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tudu-0.10.3/configure.acr 
new/tudu-0.10.4/configure.acr
--- old/tudu-0.10.3/configure.acr       2019-07-18 12:29:20.000000000 +0200
+++ new/tudu-0.10.4/configure.acr       2020-05-10 10:39:45.000000000 +0200
@@ -1,9 +1,9 @@
 REQUIRE_ACR_VERSION 0.8.2
 
 PKGNAME tudu
-VERSION 0.10.3
+VERSION 0.10.4
 CONTACT Ruben Pollan ; mes...@sindominio.net
-YEAR = 2019 ;
+YEAR = 2020 ;
 
 LANG_CXX!
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tudu-0.10.3/src/data.cc new/tudu-0.10.4/src/data.cc
--- old/tudu-0.10.3/src/data.cc 2019-07-18 12:29:19.000000000 +0200
+++ new/tudu-0.10.4/src/data.cc 2020-05-10 10:39:45.000000000 +0200
@@ -1,6 +1,6 @@
 
 /**************************************************************************
- * Copyright (C) 2007-2015 Ruben Pollan Bella <mes...@sindominio.net>     *
+ * Copyright (C) 2007-2020 Ruben Pollan Bella <mes...@sindominio.net>     *
  *                                                                        *
  *  This file is part of TuDu.                                            *
  *                                                                        *
@@ -152,7 +152,11 @@
                                        || !chinf.deadline.valid()))
                                chinf.deadline = aux.deadline;
                }
-               chinf.percent = sum_percent/j;
+               if (j == 0) {
+                       chinf.percent = _done? 100: 0;
+               } else {
+                       chinf.percent = sum_percent/j;
+               }
        }
 
        return chinf;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tudu-0.10.3/src/window.cc 
new/tudu-0.10.4/src/window.cc
--- old/tudu-0.10.3/src/window.cc       2019-07-18 12:29:19.000000000 +0200
+++ new/tudu-0.10.4/src/window.cc       2020-05-10 10:39:45.000000000 +0200
@@ -1,6 +1,6 @@
 
 /**************************************************************************
- * Copyright (C) 2007-2019 Ruben Pollan Bella <mes...@sindominio.net>     *
+ * Copyright (C) 2007-2020 Ruben Pollan Bella <mes...@sindominio.net>     *
  *                                                                        *
  *  This file is part of TuDu.                                            *
  *                                                                        *
@@ -175,6 +175,7 @@
 {
        int lines, cols;
        getmaxyx(win, lines, cols);
+       (void)cols;
        return lines;
 }
 
@@ -182,6 +183,7 @@
 {
        int lines, cols;
        getmaxyx(win, lines, cols);
+       (void)lines;
        return cols;
 }
 


Reply via email to