Hello community, here is the log from the commit of package mythes for openSUSE:Factory checked in at 2014-11-24 11:10:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mythes (Old) and /work/SRC/openSUSE:Factory/.mythes.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mythes" Changes: -------- --- /work/SRC/openSUSE:Factory/mythes/mythes.changes 2013-12-11 16:15:54.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.mythes.new/mythes.changes 2014-11-24 11:11:02.000000000 +0100 @@ -1,0 +2,6 @@ +Thu Nov 13 12:18:08 UTC 2014 - [email protected] + +- Version bump to 1.2.4: + * Fix some clang build warnings + +------------------------------------------------------------------- Old: ---- mythes-1.2.3.tar.gz New: ---- mythes-1.2.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mythes.spec ++++++ --- /var/tmp/diff_new_pack.QqgPaf/_old 2014-11-24 11:11:03.000000000 +0100 +++ /var/tmp/diff_new_pack.QqgPaf/_new 2014-11-24 11:11:03.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package mythes # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 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 @@ -18,7 +18,7 @@ %define libname libmythes-1_2-0 Name: mythes -Version: 1.2.3 +Version: 1.2.4 Release: 0 Summary: A simple thesaurus for Libreoffice License: BSD-2-Clause and MIT ++++++ mythes-1.2.3.tar.gz -> mythes-1.2.4.tar.gz ++++++ ++++ 2256 lines of diff (skipped) ++++ retrying with extended exclude list diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/mythes-1.2.3/ChangeLog new/mythes-1.2.4/ChangeLog --- old/mythes-1.2.3/ChangeLog 2012-06-28 12:59:14.000000000 +0200 +++ new/mythes-1.2.4/ChangeLog 2014-06-27 10:16:01.000000000 +0200 @@ -1,3 +1,5 @@ +2014-06-27 Caolán McNamara <cmc at LibO>: + * fix some clang scan-build warnings 2012-06-28 Caolán McNamara <cmc at LibO>: * fix some cppcheck warnings * fix some parfait warnings diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/mythes-1.2.3/configure.ac new/mythes-1.2.4/configure.ac --- old/mythes-1.2.3/configure.ac 2012-06-28 12:57:11.000000000 +0200 +++ new/mythes-1.2.4/configure.ac 2014-06-27 10:23:58.000000000 +0200 @@ -4,12 +4,12 @@ m4_pattern_allow AC_PREREQ(2.59) -AC_INIT([mythes],[1.2.3],[[email protected]]) +AC_INIT([mythes],[1.2.4],[[email protected]]) AC_CANONICAL_SYSTEM AC_SUBST(XFAILED) -AM_INIT_AUTOMAKE(mythes, 1.2.3) +AM_INIT_AUTOMAKE(mythes, 1.2.4) MYTHES_VERSION_MAJOR=`echo $VERSION | cut -d"." -f1` MYTHES_VERSION_MINOR=`echo $VERSION | cut -d"." -f2` AC_SUBST(MYTHES_VERSION_MAJOR) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/mythes-1.2.3/example.cxx new/mythes-1.2.4/example.cxx --- old/mythes-1.2.3/example.cxx 2012-06-28 19:01:47.000000000 +0200 +++ new/mythes-1.2.4/example.cxx 2014-06-27 10:15:43.000000000 +0200 @@ -8,8 +8,6 @@ extern char * mystrdup(const char * s); -using namespace std; - void myfreelist(char *** list, int n) { if (list && (n > 0)) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/mythes-1.2.3/m4/libtool.m4 new/mythes-1.2.4/m4/libtool.m4 --- old/mythes-1.2.3/m4/libtool.m4 2012-01-05 07:16:33.000000000 +0100 +++ new/mythes-1.2.4/m4/libtool.m4 2014-01-23 13:34:44.000000000 +0100 @@ -1312,7 +1312,7 @@ rm -rf conftest* ;; -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext @@ -1326,7 +1326,10 @@ x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; - ppc64-*linux*|powerpc64-*linux*) + powerpc64le-*linux*) + LD="${LD-ld} -m elf32lppclinux" + ;; + powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) @@ -1345,7 +1348,10 @@ x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; - ppc*-*linux*|powerpc*-*linux*) + powerpcle-*linux*) + LD="${LD-ld} -m elf64lppc" + ;; + powerpc-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/mythes-1.2.3/makefile.mk new/mythes-1.2.4/makefile.mk --- old/mythes-1.2.3/makefile.mk 2010-06-17 16:00:48.000000000 +0200 +++ new/mythes-1.2.4/makefile.mk 2012-06-28 22:15:04.000000000 +0200 @@ -33,11 +33,12 @@ # #************************************************************************* -PRJ = ..$/..$/.. +PRJ = ../../../.. -PRJNAME = lingucomponent -TARGET = mythes -LIBTARGET=NO +PRJNAME=mythes +TARGET=mythes +LIBTARGET=YES +EXTERNAL_WARNINGS_NOT_ERRORS := TRUE #----- Settings --------------------------------------------------------- @@ -47,10 +48,8 @@ all_target: ALLTAR - - -SLOFILES= \ - $(SLO)$/mythes.obj +SLOFILES=\ + $(SLO)$/mythes.obj LIB1TARGET= $(SLB)$/lib$(TARGET).lib LIB1ARCHIV= $(LB)/lib$(TARGET).a @@ -59,4 +58,3 @@ # --- Targets ------------------------------------------------------ .INCLUDE : target.mk - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/mythes-1.2.3/mythes.cxx new/mythes-1.2.4/mythes.cxx --- old/mythes-1.2.3/mythes.cxx 2012-06-28 19:49:50.000000000 +0200 +++ new/mythes-1.2.4/mythes.cxx 2014-06-27 10:13:01.000000000 +0200 @@ -43,12 +43,12 @@ // parse in encoding and index size */ std::vector<char> buffer(MAX_WD_LEN); char * wrd = &buffer[0]; - int len = readLine(pifile,wrd,MAX_WD_LEN); + readLine(pifile,wrd,MAX_WD_LEN); encoding = mystrdup(wrd); - len = readLine(pifile,wrd,MAX_WD_LEN); + readLine(pifile,wrd,MAX_WD_LEN); int idxsz = atoi(wrd); - if (idxsz <= 0 || idxsz > std::numeric_limits<ssize_t>::max() / sizeof(sizeof(char*))) { + if (idxsz <= 0 || idxsz > std::numeric_limits<int>::max() / sizeof(sizeof(char*))) { fprintf(stderr,"Error - bad index %d\n", idxsz); fclose(pifile); return 0; @@ -65,7 +65,7 @@ } // now parse the remaining lines of the index - len = readLine(pifile,wrd,MAX_WD_LEN); + int len = readLine(pifile,wrd,MAX_WD_LEN); while (len > 0) { int np = mystr_indexOfChar(wrd,'|'); @@ -176,7 +176,7 @@ return 0; } int nmeanings = atoi(buf+np+1); - if (nmeanings < 0 || nmeanings > std::numeric_limits<ssize_t>::max() / sizeof(mentry)) + if (nmeanings < 0 || nmeanings > std::numeric_limits<int>::max() / sizeof(mentry)) nmeanings = 0; *pme = (mentry*)(nmeanings ? malloc(nmeanings * sizeof(mentry)) : NULL); if (!(*pme)) { @@ -237,16 +237,19 @@ } // add pos to first synonym to create the definition - int k = strlen(pos); - int m = strlen(pm->psyns[0]); - if ((k+m) < (MAX_WD_LEN - 1)) { - strncpy(dfn,pos,k); - *(dfn+k) = ' '; - strncpy((dfn+k+1),(pm->psyns[0]),m+1); - pm->defn = mystrdup(dfn); - } else { - pm->defn = mystrdup(pm->psyns[0]); - } + if (pm->psyns[0]) + { + int k = strlen(pos); + int m = strlen(pm->psyns[0]); + if ((k+m) < (MAX_WD_LEN - 1)) { + strncpy(dfn,pos,k); + *(dfn+k) = ' '; + strncpy((dfn+k+1),(pm->psyns[0]),m+1); + pm->defn = mystrdup(dfn); + } else { + pm->defn = mystrdup(pm->psyns[0]); + } + } free(pos); pm++; -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
