Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package sympow for openSUSE:Factory checked in at 2024-09-15 12:36:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/sympow (Old) and /work/SRC/openSUSE:Factory/.sympow.new.29891 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "sympow" Sun Sep 15 12:36:37 2024 rev:2 rq:1200912 version:2.023.7 Changes: -------- --- /work/SRC/openSUSE:Factory/sympow/sympow.changes 2020-10-26 16:14:44.390850230 +0100 +++ /work/SRC/openSUSE:Factory/.sympow.new.29891/sympow.changes 2024-09-15 12:40:44.399396017 +0200 @@ -1,0 +2,9 @@ +Fri Sep 13 20:31:46 UTC 2024 - Jan Engelhardt <[email protected]> + +- Update to release 2.023.7 + * fix a wild pointer issue; fix a wild string issue + * build reproducible datafiles + * rename the environment variable SYMPOW_PKGLIBDIR to + SYMPOW_PKGLIBEXECDIR + +------------------------------------------------------------------- Old: ---- sympow-v2.023.6.tar.bz2 New: ---- _scmsync.obsinfo build.specials.obscpio sympow-v2.023.7.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ sympow.spec ++++++ --- /var/tmp/diff_new_pack.KW4ug0/_old 2024-09-15 12:40:44.883416181 +0200 +++ /var/tmp/diff_new_pack.KW4ug0/_new 2024-09-15 12:40:44.887416348 +0200 @@ -1,7 +1,7 @@ # # spec file for package sympow # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: sympow -Version: 2.023.6 +Version: 2.023.7 Release: 0 Summary: Program to compute symmetric power elliptic curve L-functions License: BSD-2-Clause ++++++ _scmsync.obsinfo ++++++ mtime: 1726259680 commit: 51b0cc32522d162aa34bfd971f2f1944afa1bcb135065287d01b7e2e5f12b36b url: https://src.opensuse.org/jengelh/sympow revision: master ++++++ sympow-v2.023.6.tar.bz2 -> sympow-v2.023.7.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sympow-v2.023.6/Configure new/sympow-v2.023.7/Configure --- old/sympow-v2.023.6/Configure 2020-04-16 19:12:56.000000000 +0200 +++ new/sympow-v2.023.7/Configure 2024-05-20 20:41:54.000000000 +0200 @@ -19,7 +19,7 @@ fi $RM -f $FILE $RM -f $CONFIG -VERSION=2.023.6 +VERSION=2.023.7 echo "#define PREFIX \"$PREFIX\"" >> $CONFIG echo "#define VARPREFIX \"$VARPREFIX\"" >> $CONFIG echo "#define VERSION \"$VERSION\"" >> $CONFIG @@ -322,7 +322,8 @@ echo " \$(MKDIR) -p datafiles" >> $FILE echo " \$(TOUCH) datafiles/param_data" >> $FILE echo " \$(SH) armd.sh" >> $FILE -echo " \$(SED) -i -e '/logfile =/d' datafiles/*.txt" >> $FILE +echo " \$(SED) -i -e '/logfile =/d' datafiles/*.txt" >> $FILE +echo " \$(SED) -i -e '/logfile is/d' datafiles/*.txt" >> $FILE echo "sympow.1: sympow" >> $FILE echo " \$(HELP2MAN) \$(H2MFLAGS) -s 1 -n \"SYMPOW program\" -I sympow.h2m -o \$@ ./\$<" >> $FILE echo "clean:" >> $FILE @@ -338,10 +339,11 @@ echo " install -m 0755 sympow \$(DESTDIR)$PREFIX/bin" >> $FILE echo " install -m 0644 sympow.1 \$(DESTDIR)$PREFIX/share/man/man1" >> $FILE echo "install-indep: build-indep" >> $FILE -echo " install -d \$(DESTDIR)$PREFIX/lib/sympow" >> $FILE +echo " install -d \$(DESTDIR)$PREFIX/libexec/sympow" >> $FILE echo " install -d \$(DESTDIR)$PREFIX/share/sympow" >> $FILE echo " install -d \$(DESTDIR)$PREFIX/share/sympow/datafiles" >> $FILE -echo " install -m 0755 new_data \$(DESTDIR)$PREFIX/lib/sympow" >> $FILE +##echo " install -d \$(DESTDIR)$VARPREFIX/cache/sympow/datafiles" >> $FILE +echo " install -m 0755 new_data \$(DESTDIR)$PREFIX/libexec/sympow" >> $FILE echo " install -m 0644 standard1.gp standard2.gp standard3.gp \$(DESTDIR)$PREFIX/share/sympow" >> $FILE echo " install -m 0644 datafiles/*.txt datafiles/param_data \$(DESTDIR)$PREFIX/share/sympow/datafiles" >> $FILE echo "install: install-arch install-indep" >> $FILE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sympow-v2.023.6/HISTORY new/sympow-v2.023.7/HISTORY --- old/sympow-v2.023.6/HISTORY 2020-04-16 19:12:56.000000000 +0200 +++ new/sympow-v2.023.7/HISTORY 2024-05-20 20:41:54.000000000 +0200 @@ -51,3 +51,13 @@ * VERSION 2.023.6 --- fix linking with -fno-common (origin: Jerry James) render independent from Autotools [16 Apr 2020] +* VERSION 2.023.7 --- merge patches and address issues: + - fix wild pointer issue (origin: Dima Pasechnik) + - fix wild string issue (origin: Mauricio Collares) + - build reproducible datafiles (origin: Debian, Chris Lamb) + - move the new_data script from the lib hierachy to the libexec one + - rename the environment variable SYMPOW_PKGLIBDIR to SYMPOW_PKGLIBEXECDIR + - introduce SYMPOW_OPTS_GP self-explanatory environment-variable-gp-option + used by the new_data script (default: '-D debugmem=0') (see merge-request #2) + - minor improvements + [20 May 2024] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sympow-v2.023.6/README.md new/sympow-v2.023.7/README.md --- old/sympow-v2.023.6/README.md 2020-04-16 19:12:56.000000000 +0200 +++ new/sympow-v2.023.7/README.md 2024-05-20 20:41:54.000000000 +0200 @@ -223,10 +223,10 @@ are created on the fly and stored in the cache directory `/var/cache/sympow`; this default directory can be overrident through the environment variable SYMPOW_PKGCACHEDIR. The scripts effectivelly employed to compute data can be -found in `/usr/local/lib/sympow`; this default directory can be overridden through -the environment variable `SYMPOW_PKGLIBDIR`. Please note that the environment -variables introduced here (`SYMPOW_PKGDATADIR`, `SYMPOW_PKGLIBDIR`, and `SYMPOW_PKGCACHEDIR`) -are meant for advanced usage or debugging. +found in `/usr/local/libexec/sympow`; this default directory can be overridden +through the environment variable `SYMPOW_PKGLIBEXECDIR`. Please note that the +environment variables introduced here (`SYMPOW_PKGDATADIR`, `SYMPOW_PKGLIBEXECDIR`, +and `SYMPOW_PKGCACHEDIR`) are meant for advanced usage or debugging. The data in `SYMPOW_CACHEDIR` and `SYMPOW_CACHEDIR/sympow` are authoritative. @@ -313,5 +313,5 @@ ### forked code -Copyright: 2018-2020 Jerome G. M. Benoit <[email protected]> +Copyright: 2018-2024 Jerome G. M. Benoit <[email protected]> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sympow-v2.023.6/disk.c new/sympow-v2.023.7/disk.c --- old/sympow-v2.023.6/disk.c 2020-04-16 19:12:56.000000000 +0200 +++ new/sympow-v2.023.7/disk.c 2024-05-20 20:41:54.000000000 +0200 @@ -57,7 +57,7 @@ else if (((sp&3)==0) && CM_CASE) {if (2*ep==sp) S[3]='l'; else S[3]='h';} else {if (2*ep==sp) S[3]='L'; else S[3]='H';} if (HECKE && dv) {TACKS[which]=malloc(dv*sizeof(QD)); TACKON[which]=dv;} - else if (dv<=sp/2) TACKON[which]=0; + else if (dv<=sp/2) {TACKS[which]=NULL; TACKON[which]=0;} else {TACKS[which]=malloc((dv-sp/2)*sizeof(QD)); TACKON[which]=dv-sp/2;} S[4]=0; strcpy(U,S); if (ANAL_RANK) {if (dv>0) U[0]='A'; else U[0]='m';} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sympow-v2.023.6/main.c new/sympow-v2.023.7/main.c --- old/sympow-v2.023.6/main.c 2020-04-16 19:12:56.000000000 +0200 +++ new/sympow-v2.023.7/main.c 2024-05-20 20:41:54.000000000 +0200 @@ -37,7 +37,7 @@ gid_t datagid=0; char *invocationname=NULL; char *pkgdatadir=NULL; -char *pkglibdir=NULL; +char *pkglibexecdir=NULL; char *pkgcachedir=NULL; char *pkgdatafilesdir=NULL; char *pkgdatafilesbindir=NULL; @@ -92,25 +92,25 @@ char * foldername=NULL; if ((name != NULL) && (*name != '\0')) { const char *eofn=name+strlen(name); - /*while ((eofn!=name)&&(*(--eofn)=='/')) ;*/ while ((eofn!=name)&&(*eofn!='/')) --eofn; + const char * peofn=eofn; + while ((eofn!=name)&&(*(--peofn)=='/')) eofn=peofn; if (eofn!=name) { const size_t ublofn=eofn-name; size_t cdx=0; const char * dim=NULL; char * dam=NULL; int flag=0; - foldername=(char *)(malloc(ublofn)); memset(foldername,'\0',ublofn); + foldername=(char *)(malloc(ublofn+1)); memset(foldername,'\0',ublofn+1); for(cdx=0,dim=name,dam=foldername;cdx<ublofn;++dim,++cdx) { if (*dim == '/') flag=1; else {if (flag) {*dam='/'; ++dam; flag=0;} *dam=*dim; ++dam;}} - if (flag) *dam='/'; } else {foldername=strdup((*name != '/')?".":"/");}} - return foldername;} + return foldername;} static void prepare_main(char *argv0) {char *env_pkgdir; struct stat infod, infodb, infof; int flag; invocationname=argv0; env_pkgdir=getenv(SYMPOW_ENV_PKGDATADIR); pkgdatadir=(env_pkgdir!=NULL)?env_pkgdir:PKGDATADIR; - env_pkgdir=getenv(SYMPOW_ENV_PKGLIBDIR); pkglibdir=(env_pkgdir!=NULL)?env_pkgdir:PKGLIBDIR; + env_pkgdir=getenv(SYMPOW_ENV_PKGLIBEXECDIR); pkglibexecdir=(env_pkgdir!=NULL)?env_pkgdir:PKGLIBEXECDIR; env_pkgdir=getenv(SYMPOW_ENV_PKGCACHEDIR); pkgcachedir=(env_pkgdir!=NULL)?env_pkgdir:PKGCACHEDIR; datauid=getuid(); if ((cachedir=dupxgetxenvdir(SYMPOW_ENV_CACHEDIR,sizeof(PKGFOLDER),&flag))!=NULL) { @@ -151,7 +151,7 @@ else {pkgdatamode= infodb.st_mode & ~MASK;}} asprintf(&datafilesdir,"%s/datafiles",cachedir); asprintf(&datafilesbindir,"%s/"ENDIANTUPLE,datafilesdir); - asprintf(&newdatascript,"%s/new_data",pkglibdir); + asprintf(&newdatascript,"%s/new_data",pkglibexecdir); asprintf(¶mdatafile,"%s/param_data",datafilesdir); if (stat(datafilesdir,&infod)) {if (stat(cachedir,&infod)) {fprintf(stderr,"**ERROR** cache directory %s does not exist\n",cachedir); exit(-1);} @@ -209,7 +209,7 @@ free(datafilesbindir); free(datafilesdir); free(cachedir); free(pkgdatafilesbindir); if (pkgdatafilesdir) free(pkgdatafilesdir); - /* free(pkgcachedir); free(pkglibdir); free(pkgdatadir); */ + /* free(pkgcachedir); free(pkglibexecdir); free(pkgdatadir); */ /*free(invocationname);*/} int main(int argc,char **argv) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sympow-v2.023.6/new_data new/sympow-v2.023.7/new_data --- old/sympow-v2.023.6/new_data 2020-04-16 19:12:56.000000000 +0200 +++ new/sympow-v2.023.7/new_data 2024-05-20 20:41:54.000000000 +0200 @@ -26,7 +26,7 @@ echo "Running the new_data script for $3" SH=$1 -GP=$2 +GP="$2 ${SYMPOW_OPTS_GP--D debugmem=0}" echo "Making the datafiles for $3" echo "" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sympow-v2.023.6/sympow.h new/sympow-v2.023.7/sympow.h --- old/sympow-v2.023.6/sympow.h 2020-04-16 19:12:56.000000000 +0200 +++ new/sympow-v2.023.7/sympow.h 2024-05-20 20:41:54.000000000 +0200 @@ -17,7 +17,7 @@ /* mainly for developping usage */ #define SYMPOW_ENV_PKGDATADIR "SYMPOW_PKGDATADIR" -#define SYMPOW_ENV_PKGLIBDIR "SYMPOW_PKGLIBDIR" +#define SYMPOW_ENV_PKGLIBEXECDIR "SYMPOW_PKGLIBEXECDIR" #define SYMPOW_ENV_PKGCACHEDIR "SYMPOW_PKGCACHEDIR" /* internal usage */ @@ -38,8 +38,8 @@ #ifndef PKGDATADIR #define PKGDATADIR PREFIX "/share/" PKGFOLDER #endif -#ifndef PKGLIBDIR -#define PKGLIBDIR PREFIX "/lib/" PKGFOLDER +#ifndef PKGLIBEXECDIR +#define PKGLIBEXECDIR PREFIX "/libexec/" PKGFOLDER #endif #ifndef PKGCACHEDIR #define PKGCACHEDIR VARPREFIX "/cache/" PKGFOLDER @@ -105,7 +105,7 @@ extern gid_t datagid; extern char *invocationname; extern char *pkgdatadir; -extern char *pkglibdir; +extern char *pkglibexecdir; extern char *pkgcachedir; extern char *pkgdatafilesdir; extern char *pkgdatafilesbindir;
