[med-svn] [Git][med-team/emmax][master] Add patch to fix autopkgtest failures

Mohd Bilal (@rmb) gitlab at salsa.debian.org
Tue Sep 20 09:19:30 BST 2022



Mohd  Bilal pushed to branch master at Debian Med / emmax


Commits:
f522fbe1 by Mohammed Bilal at 2022-09-20T13:48:29+05:30
Add patch to fix autopkgtest failures

- - - - -


2 changed files:

- + debian/patches/fix-autopkgtest.patch
- debian/patches/series


Changes:

=====================================
debian/patches/fix-autopkgtest.patch
=====================================
@@ -0,0 +1,34 @@
+Description: Fixes autopkgtest on other archs
+ There seems to be an issue with comparing a char and an int with the
+ value -1. Using an int to store the parameter of getopt fixes the
+ problems with the switch statement always hitting the default case.
+Author: Mohammed Bilal <mdbilal at disroot.org>
+Forwarded: not-needed
+Last-Update: 2022-09-20
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/emmax-kin.c
++++ b/emmax-kin.c
+@@ -61,7 +61,8 @@
+   int i, j, k, n, ac0, ac1,  nmiss, nelems, nex, *nexes;
+   int verbose, ndigits, tped_nheadercols, tfam_nheadercols, flag_autosomal, rand_fill_flag, ibs_flag, gz_flag, hetero_division_flag;
+   unsigned char *snprow;
+-  char buf[SZBUF], c;
++  char buf[SZBUF];
++  int c;
+   double f, denom;
+   //long *fibs_sums, *scores, mean_score;
+   double *fibs_sums, *scores, mean_score;
+--- a/emmax.c
++++ b/emmax.c
+@@ -100,8 +100,8 @@
+ 
+ int main(int argc, char** argv) {
+   int i, j, k, l, n, nf, q0, ngrids, ndigits, istart, iend, nelems, nmiss, *wids;
+-  char *kinf, *phenof, *tpedf, *covf, *outf, *inf, *delims, *lbuf, c;
+-  int mphenoflag, write_eig_flag, gz_flag, tped_nheadercols, tfam_nheadercols, zero_miss_flag, isnpid, gen_kin_method, dosage_flag, gls_flag;
++  char *kinf, *phenof, *tpedf, *covf, *outf, *inf, *delims, *lbuf;
++  int mphenoflag, write_eig_flag, gz_flag, tped_nheadercols, tfam_nheadercols, zero_miss_flag, isnpid, gen_kin_method, dosage_flag, gls_flag, c;
+   double *phenos, *covs, *kins, *snps;
+   double sum, llim, ulim, stat, p;
+   clock_t cstart, cend, sum0, sum1, sum2, clapstart, clapend;


=====================================
debian/patches/series
=====================================
@@ -6,3 +6,4 @@ clean.patch
 logfile.patch
 atlas.patch
 hardening.patch
+fix-autopkgtest.patch



View it on GitLab: https://salsa.debian.org/med-team/emmax/-/commit/f522fbe19e07ee53fa14975466212fb70f012e24

-- 
View it on GitLab: https://salsa.debian.org/med-team/emmax/-/commit/f522fbe19e07ee53fa14975466212fb70f012e24
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/20220920/26944bf5/attachment-0001.htm>


More information about the debian-med-commit mailing list