[med-svn] [Git][med-team/vmatch][master] improve reproducibility

Sascha Steinbiss gitlab at salsa.debian.org
Thu Jan 23 21:31:15 GMT 2020



Sascha Steinbiss pushed to branch master at Debian Med / vmatch


Commits:
351f8b51 by Sascha Steinbiss at 2020-01-23T22:30:50+01:00
improve reproducibility

- - - - -


2 changed files:

- debian/changelog
- debian/patches/reproducible-build.patch


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+vmatch (2.3.1+dfsg-4) unstable; urgency=medium
+
+  * Pass CFLAGS and friends to SELECT shared object building.
+
+ -- Sascha Steinbiss <satta at debian.org>  Thu, 23 Jan 2020 22:14:29 +0100
+
 vmatch (2.3.1+dfsg-3) unstable; urgency=medium
 
   * Fix check for SOURCE_DATE_EPOCH.


=====================================
debian/patches/reproducible-build.patch
=====================================
@@ -29,3 +29,113 @@ Last-Update: 2020-01-20
 +#define ${PROGRAM}COMPILEHOST "${HOSTNAME}"
  #endif
  ENDOFRELEASEPOST
+--- a/src/Vmatch/SELECT/makefile
++++ b/src/Vmatch/SELECT/makefile
+@@ -1,11 +1,11 @@
+ # makefile to compile shared objects using the gnu C compiler
+ # Stefan Kurtz, October 2000
+ 
+-CC=gcc
++#CC=gcc
+ 
+ # in 64-bit mode add -m64
+ 
+-CFLAGS=-Wall -Werror -O3 -g
++CFLAGS+=-Wall -Werror -O3 -g
+ 
+ ifneq ($(SYSTEM),Windows)
+ CFLAGS+=-fPIC
+@@ -43,15 +43,15 @@
+ # on most platforms the shared objects have a suffix .so
+ 
+ %.so:%.c Shareddef
+-	${CC} ${CFLAGS} ${CPPFLAGS} ${SHARED} $< -o $@
++	${CC} ${CFLAGS} ${CPPFLAGS} ${SHARED} $< -o $@ ${LDFLAGS}
+ 
+ mergematches-dbg.so:mergematches.c Shareddef
+-	${CC} ${CFLAGS} ${CPPFLAGS} -DDEBUG ${SHARED} $< -o $@
++	${CC} ${CFLAGS} ${CPPFLAGS} -DDEBUG ${SHARED} $< -o $@ ${LDFLAGS}
+ 
+ # on HP-UX the shared objects have a suffix .sl
+ 
+ %.sl:%.c Shareddef
+-	@${CC} ${CFLAGS} ${CPPFLAGS} ${SHARED} $< -o $@
++	@${CC} ${CFLAGS} ${CPPFLAGS} ${SHARED} $< -o $@ ${LDFLAGS}
+ 
+ # the following goal generates the output of the C-preprocessor
+ # applied to the given C-file.
+--- a/src/Vmatch/SELECT/mstat.c
++++ b/src/Vmatch/SELECT/mstat.c
+@@ -87,20 +87,20 @@
+   and \(iend\). The following function reports such section.
+ */
+ 
+-static void showsection(ArrayMstatvalue *mstat,Uint istart,Uint iend)
++static void showsection(ArrayMstatvalue *mmstat,Uint istart,Uint iend)
+ {
+   Uint i;
+   Mstatvalue *mstatptr;
+ 
+-  printf("%lu:\n",(Showuint) mstat->spaceMstatvalue[istart].seqnum1);
++  printf("%lu:\n",(Showuint) mmstat->spaceMstatvalue[istart].seqnum1);
+   for(i=istart; i<=iend; i++)
+   {
+-    mstatptr = mstat->spaceMstatvalue + i;
+-    if(mstatptr->seqnum1 != mstat->spaceMstatvalue[istart].seqnum1)
++    mstatptr = mmstat->spaceMstatvalue + i;
++    if(mstatptr->seqnum1 != mmstat->spaceMstatvalue[istart].seqnum1)
+     {
+       fprintf(stderr,"seqnum1 =%lu != %lu\n",
+               (Showuint) mstatptr->seqnum1,
+-              (Showuint) mstat->spaceMstatvalue[istart].seqnum1);
++              (Showuint) mmstat->spaceMstatvalue[istart].seqnum1);
+       exit(EXIT_FAILURE);
+     }
+     printf("     %lu %lu %lu %lu\n",
+@@ -117,27 +117,27 @@
+   function \texttt{showsection} is applied.
+ */
+ 
+-static void splitMstatvalues(ArrayMstatvalue *mstat)
++static void splitMstatvalues(ArrayMstatvalue *mmstat)
+ {
+   Uint i, lastseqnum, istart;
+ 
+-  if(mstat->nextfreeMstatvalue == 0)
++  if(mmstat->nextfreeMstatvalue == 0)
+   {
+     fprintf(stderr,"no matches available\n");
+     exit(EXIT_FAILURE);
+   }
+-  lastseqnum = mstat->spaceMstatvalue[0].seqnum1;
++  lastseqnum = mmstat->spaceMstatvalue[0].seqnum1;
+   istart = 0;
+-  for(i=1; i<mstat->nextfreeMstatvalue; i++)
++  for(i=1; i<mmstat->nextfreeMstatvalue; i++)
+   {
+-    if(lastseqnum < mstat->spaceMstatvalue[i].seqnum1)
++    if(lastseqnum < mmstat->spaceMstatvalue[i].seqnum1)
+     {
+-      showsection(mstat,istart,i-1);
+-      lastseqnum = mstat->spaceMstatvalue[i].seqnum1;
++      showsection(mmstat,istart,i-1);
++      lastseqnum = mmstat->spaceMstatvalue[i].seqnum1;
+       istart = i;
+     }
+   }
+-  showsection(mstat,istart,i-1);
++  showsection(mmstat,istart,i-1);
+ }
+ 
+ /*
+--- a/src/Vmatch/SELECT/cgvizout.c
++++ b/src/Vmatch/SELECT/cgvizout.c
+@@ -99,7 +99,7 @@
+ static ArrayConnectdata *edges;
+ 
+ /*Sorting and grouping of matches. Returns number of generated groups*/
+-static Uint multmatchesCountingSort ()
++static Uint multmatchesCountingSort (void)
+ {
+   Uint maxmatchlen = 0,
+        nof_matches,



View it on GitLab: https://salsa.debian.org/med-team/vmatch/commit/351f8b51366f7d0bb22e20696bfe1bb88b0106fc

-- 
View it on GitLab: https://salsa.debian.org/med-team/vmatch/commit/351f8b51366f7d0bb22e20696bfe1bb88b0106fc
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20200123/66a406e2/attachment-0001.html>


More information about the debian-med-commit mailing list