Your message dated Fri, 02 May 2014 13:18:37 +0000
with message-id <[email protected]>
and subject line Bug#746196: fixed in auto-multiple-choice 1.2.1-2
has caused the Debian Bug report #746196,
regarding auto-multiple-choice: FTBFS with clang instead of gcc
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
746196: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=746196
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: <pkg-name>
Severity: minor
Usertags: clang-ftbfs
User: [email protected]
Tag: patch


Hello,

Using the rebuild infrastructure, your package fails to build with clang 
(instead of gcc).

Thanks,
Arthur
diff -Naur auto-multiple-choice.orig/auto-multiple-choice-1.2.1/debian/changelog auto-multiple-choice/auto-multiple-choice-1.2.1/debian/changelog
--- auto-multiple-choice.orig/auto-multiple-choice-1.2.1/debian/changelog	2014-04-27 16:58:58.330365230 -0500
+++ auto-multiple-choice/auto-multiple-choice-1.2.1/debian/changelog	2014-04-27 17:19:46.342386963 -0500
@@ -1,3 +1,12 @@
+auto-multiple-choice (1.2.1-2) unstable; urgency=low
+
+  * Fix FTBFS with clang
+    - Fixed the Function definition is not allowed here error in
+      AMC-traitement-image.c: refactored code so functions can be
+      properly defined
+
+ -- Arthur Marble <[email protected]>  Sun, 27 Apr 2014 17:19:46 -0500
+
 auto-multiple-choice (1.2.1-1) unstable; urgency=low
 
   * New upstream release.
diff -Naur auto-multiple-choice.orig/auto-multiple-choice-1.2.1/debian/patches/clang-ftbfs.diff auto-multiple-choice/auto-multiple-choice-1.2.1/debian/patches/clang-ftbfs.diff 
--- auto-multiple-choice.orig/auto-multiple-choice-1.2.1/debian/patches/clang-ftbfs.diff	1969-12-31 18:00:00.000000000 -0600
+++ auto-multiple-choice/auto-multiple-choice-1.2.1/debian/patches/clang-ftbfs.diff	2014-04-27 17:16:54.786383976 -0500
@@ -0,0 +1,152 @@
+--- a/AMC-traitement-image.c
++++ b/AMC-traitement-image.c
+@@ -218,6 +218,19 @@ void comp_connexes(pixel **img,int tx,in
+   printf("CC %d %d\n",n,imax);
+ }
+ 
++void deplace(int i,int j, point *coins, double delta) {
++  coins[i].x+=delta*(coins[j].x-coins[i].x);
++  coins[i].y+=delta*(coins[j].y-coins[i].y);
++}
++
++
++void restreint(int *x,int *y, int tx, int ty) {
++  if(*x<0) *x=0;
++  if(*y<0) *y=0;
++  if(*x>=tx) *x=tx-1;
++  if(*y>=ty) *y=ty-1;
++}
++
+ void mesure_case(pixel **img,int tx,int ty,pixval maxval,
+ 		 double prop,point *coins) {
+   int npix,npixnoir,xmin,xmax,ymin,ymax,x,y;
+@@ -225,18 +238,6 @@ void mesure_case(pixel **img,int tx,int
+   int i,ok;
+   double delta;
+ 
+-  void deplace(int i,int j) {
+-    coins[i].x+=delta*(coins[j].x-coins[i].x);
+-    coins[i].y+=delta*(coins[j].y-coins[i].y);
+-  }
+-
+-  void restreint(int *x,int *y) {
+-    if(*x<0) *x=0;
+-    if(*y<0) *y=0;
+-    if(*x>=tx) *x=tx-1;
+-    if(*y>=ty) *y=ty-1;
+-  }
+-
+   npix=0;
+   npixnoir=0;
+   xmin=tx-1;
+@@ -246,8 +247,8 @@ void mesure_case(pixel **img,int tx,int
+ 
+   /* reduction de la case */
+   delta=(1-prop)/2;
+-  deplace(0,2);deplace(2,0);
+-  deplace(1,3);deplace(3,1);
++  deplace(0,2, coins, delta);deplace(2,0, coins, delta);
++  deplace(1,3, coins, delta);deplace(3,1, coins, delta);
+ 
+   /* sortie des points utilises pour la mesure */
+   for(i=0;i<4;i++) {
+@@ -268,8 +269,8 @@ void mesure_case(pixel **img,int tx,int
+   calcule_demi_plan(&coins[2],&coins[3],&lignes[2]);
+   calcule_demi_plan(&coins[3],&coins[0],&lignes[3]);
+       
+-  restreint(&xmin,&ymin);
+-  restreint(&xmax,&ymax);
++  restreint(&xmin,&ymin, tx, ty);
++  restreint(&xmax,&ymax, tx, ty);
+ 
+   for(x=xmin;x<=xmax;x++) {
+     for(y=ymin;y<=ymax;y++) {
+@@ -292,47 +293,46 @@ typedef struct {
+   int xmin,xmax,ymin,ymax;
+ } infocol;
+ 
+-void repere_magick(pixel **img,int tx,int ty,pixval maxval) {
+-  infocol *infos;
+-
+-  int ninfo,ninfo_alloc;
+-  int i,x,y,red;
+-  int en_couleur;
+-
+-  int trouve_id(int magick,int exo,int quest) {
+-    int i,ii;
+-    ii=-1;
+-    for(i=0;i<ninfo;i++) {
+-      if(infos[i].magick==magick 
++int trouve_id(int magick,int exo,int quest,int ninfo,int ninfo_alloc,infocol *infos) {
++  int i,ii;
++  ii=-1;
++  for(i=0;i<ninfo;i++) {
++    if(infos[i].magick==magick 
+ 	 && infos[i].exo==exo && infos[i].quest==quest) ii=i;
+-    }
+-    if(ii<0) {
+-      ii=ninfo;
++  }
++  if(ii<0) {
++    ii=ninfo;
+ 
+-      if(ninfo_alloc<ii+1) {
++    if(ninfo_alloc<ii+1) {
+ 	ninfo_alloc+=INFO_BLOC;
+ 	infos=(infocol*)realloc(infos,ninfo_alloc*sizeof(infocol));
+-      }
+-
+-      infos[ii].magick=magick;
+-      infos[ii].exo=exo;
+-      infos[ii].quest=quest;
+-      infos[ii].xmin=100000;
+-      infos[ii].ymin=100000;
+-      infos[ii].xmax=-1;
+-      infos[ii].ymax=-1;
+-      ninfo++;
+     }
+-    return(ii);
+-  }
+ 
+-  void ajoute(int id,int x,int y) {
+-    if(x > infos[id].xmax) infos[id].xmax=x;
+-    if(x < infos[id].xmin) infos[id].xmin=x;
+-    if(y > infos[id].ymax) infos[id].ymax=y;
+-    if(y < infos[id].ymin) infos[id].ymin=y;
++    infos[ii].magick=magick;
++    infos[ii].exo=exo;
++    infos[ii].quest=quest;
++    infos[ii].xmin=100000;
++    infos[ii].ymin=100000;
++    infos[ii].xmax=-1;
++    infos[ii].ymax=-1;
++    ninfo++;
+   }
++  return(ii);
++}
+ 
++void ajoute(int id,int x,int y, infocol *infos) {
++  if(x > infos[id].xmax) infos[id].xmax=x;
++  if(x < infos[id].xmin) infos[id].xmin=x;
++  if(y > infos[id].ymax) infos[id].ymax=y;
++  if(y < infos[id].ymin) infos[id].ymin=y;
++}
++
++void repere_magick(pixel **img,int tx,int ty,pixval maxval) {
++  infocol *infos;
++
++  int ninfo,ninfo_alloc;
++  int i,x,y,red;
++  int en_couleur;
+ 
+   infos=NULL;
+   ninfo_alloc=0;
+@@ -347,7 +347,7 @@ void repere_magick(pixel **img,int tx,in
+ 	if(red!=PPM_GETG(img[y][x])) en_couleur=1;
+ 	if(red!=PPM_GETB(img[y][x])) en_couleur=1;
+ 	if(en_couleur)
+-	  ajoute(trouve_id(red,PPM_GETG(img[y][x]),PPM_GETB(img[y][x])),x,y);
++	  ajoute(trouve_id(red,PPM_GETG(img[y][x]),PPM_GETB(img[y][x]),ninfo,ninfo_alloc,infos),x,y,infos);
+       }
+     }
+   }
diff -Naur auto-multiple-choice.orig/auto-multiple-choice-1.2.1/debian/patches/series auto-multiple-choice/auto-multiple-choice-1.2.1/debian/patches/series 
--- auto-multiple-choice.orig/auto-multiple-choice-1.2.1/debian/patches/series	2014-04-27 16:58:58.330365230 -0500
+++ auto-multiple-choice/auto-multiple-choice-1.2.1/debian/patches/series	2014-04-27 16:59:27.406365736 -0500
@@ -0,0 +1 @@
+clang-ftbfs.diff

--- End Message ---
--- Begin Message ---
Source: auto-multiple-choice
Source-Version: 1.2.1-2

We believe that the bug you reported is fixed in the latest version of
auto-multiple-choice, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
[email protected] (supplier of updated auto-multiple-choice package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Thu, 01 May 2014 21:26:06 +0200
Source: auto-multiple-choice
Binary: auto-multiple-choice auto-multiple-choice-common 
auto-multiple-choice-doc auto-multiple-choice-doc-pdf
Architecture: source amd64 all
Version: 1.2.1-2
Distribution: unstable
Urgency: low
Maintainer: Alexis Bienvenüe <[email protected]>
Changed-By: [email protected]
Description: 
 auto-multiple-choice - Auto Multiple Choice - multiple choice papers management
 auto-multiple-choice-common - Auto Multiple Choice - architecture independent 
files
 auto-multiple-choice-doc - Auto Multiple Choice - HTML documentation
 auto-multiple-choice-doc-pdf - Auto Multiple Choice - PDF documentation
Closes: 746196
Changes: 
 auto-multiple-choice (1.2.1-2) unstable; urgency=low
 .
   * [Arthur Marble] Fix FTBFS with clang; Closes: #746196
     - Fixed the Function definition is not allowed here error in
       AMC-traitement-image.c: refactored code so functions can be
       properly defined
 .
   * [Alexis Bienvenüe] Bumped Standards-Version to 3.9.5.
Checksums-Sha1: 
 cd29fcbd31e3c3ef3dcc001bb7892d07e6fd9e24 1763 auto-multiple-choice_1.2.1-2.dsc
 cc9518447ac6eae9f497156776f99fdee0b0b67a 8224 
auto-multiple-choice_1.2.1-2.debian.tar.xz
 7299f72515fd89d507519174283c34b844b5915d 24006 
auto-multiple-choice_1.2.1-2_amd64.deb
 616f679f7f8538b5f3d0e7a1d704c600267cedb4 349808 
auto-multiple-choice-common_1.2.1-2_all.deb
 5dd7d477850d5dd98f75dfb946e3fd30a0ec2a3e 133312 
auto-multiple-choice-doc_1.2.1-2_all.deb
 353dd22d2985cd13c63fc0f4085a1d0036052695 1661098 
auto-multiple-choice-doc-pdf_1.2.1-2_all.deb
Checksums-Sha256: 
 44996ed412b59be08f30381ceba6baea1f9cdb6f02d33f3f8743501ac357ce4b 1763 
auto-multiple-choice_1.2.1-2.dsc
 6f1ae905eb32b0f2f08759610ae8e55d00d8ac99de87d270bcf51158a8c34ea0 8224 
auto-multiple-choice_1.2.1-2.debian.tar.xz
 0d58be1889ced7e3e0e087b358cb12d41c8167c64492605e93ccfee982ea08a2 24006 
auto-multiple-choice_1.2.1-2_amd64.deb
 1128f0aa845edf9634e369daf70b1e26ebb9d2590e985393fa9e33557f16b031 349808 
auto-multiple-choice-common_1.2.1-2_all.deb
 2817326a57a84850c144de71890c2d19ea939612d0084b80c83f2d60fd5b7da8 133312 
auto-multiple-choice-doc_1.2.1-2_all.deb
 8db8c2844b9c0397aed6ae4bb61e07863a99753c5d1e9d499011eca41bc541ca 1661098 
auto-multiple-choice-doc-pdf_1.2.1-2_all.deb
Files: 
 981247195e3074dfa6bb53998e1f8af8 24006 education optional 
auto-multiple-choice_1.2.1-2_amd64.deb
 4276afdddbb1c8df5f6c595bdea0bf14 349808 education optional 
auto-multiple-choice-common_1.2.1-2_all.deb
 7d6917a9be2052ef22b0c5cedf1d64a5 133312 doc optional 
auto-multiple-choice-doc_1.2.1-2_all.deb
 2402579790d0a4492b798db91eef785c 1661098 doc optional 
auto-multiple-choice-doc-pdf_1.2.1-2_all.deb
 4926cf53d437acf6eb5e0af7f7be345c 1763 education optional 
auto-multiple-choice_1.2.1-2.dsc
 86c60ef8bbdab030844c599714332f91 8224 education optional 
auto-multiple-choice_1.2.1-2.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iD8DBQFTY5Sxnfmb2hFpETARAj4iAJ4mjRy85nIIXdrifEtxIPoXJ2l1xQCfSc7O
XKGE3YYfVzqoGS8P0WJnP4I=
=q4GD
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to