pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/45210: bootstrap fails with gcc-4.6 in libfetch (debian wheezy)



The following reply was made to PR pkg/45210; it has been noted by GNATS.

From: Joerg Sonnenberger <joerg%britannica.bec.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/45210: bootstrap fails with gcc-4.6 in libfetch (debian
 wheezy)
Date: Sun, 2 Oct 2011 19:52:29 +0200

 Fine with me.
 
 Joerg
 
 On Sun, Oct 02, 2011 at 05:10:06PM +0000, Thomas Klausner wrote:
 > The following reply was made to PR pkg/45210; it has been noted by GNATS.
 > 
 > From: Thomas Klausner <wiz%NetBSD.org@localhost>
 > To: NetBSD bugtracking <gnats-bugs%NetBSD.org@localhost>
 > Cc: netbsd%marino.st@localhost, Alistair Crooks <agc%pkgsrc.org@localhost>
 > Subject: Re: pkg/45210: bootstrap fails with gcc-4.6 in libfetch (debian
 >  wheezy)
 > Date: Sun, 2 Oct 2011 19:08:46 +0200
 > 
 >  Please go ahead and apply this before the freeze.
 >  
 >  Thanks,
 >   Thomas
 >  
 >  On Sun, Oct 02, 2011 at 05:05:52PM +0200, John Marino wrote:
 >  > On 10/1/2011 11:13 PM, Alistair Crooks wrote:
 >  > > 
 >  > > Indeed - so line 687 should go in #ifdef IPV6_PORTRANGE/#endif guards, 
 > too.
 >  > > 
 >  > > Or move line 687 closer to where the variable is used, such as around 
 > line
 >  > > 861.
 >  > > 
 >  > > Regards,
 >  > > Alistair
 >  > 
 >  > Okay, I revised the patch along these lines.
 >  > It's probably a moot point anyway; I can't find IPV6_PORTRANGE and
 >  > friends defined anywhere, so the code between the macros doesn't build
 >  > in any case.
 >  > 
 >  > If Joerg is okay with it, I would be willing to take over PR/45210 and
 >  > commit this patch once the freeze lifts.
 >  > 
 >  > Regards,
 >  > John
 >  > 
 >  > 
 >  > --- files/ftp.c.orig      2011-10-01 17:08:28.658519066 +0200
 >  > +++ files/ftp.c   2011-10-02 16:56:35.040791739 +0200
 >  > @@ -619,7 +619,6 @@
 >  >  ftp_closefn(void *v)
 >  >  {
 >  >   struct ftpio *io;
 >  > - int r;
 >  > 
 >  >   io = (struct ftpio *)v;
 >  >   if (io == NULL) {
 >  > @@ -635,7 +634,7 @@
 >  >   fetch_close(io->dconn);
 >  >   io->dconn = NULL;
 >  >   io->dir = -1;
 >  > - r = ftp_chkerr(io->cconn);
 >  > + ftp_chkerr(io->cconn);
 >  >   fetch_cache_put(io->cconn, ftp_disconnect);
 >  >   free(io);
 >  >   return;
 >  > @@ -677,14 +676,13 @@
 >  >   const char *bindaddr;
 >  >   const char *filename;
 >  >   int filenamelen, type;
 >  > - int low, pasv, verbose;
 >  > + int pasv, verbose;
 >  >   int e, sd = -1;
 >  >   socklen_t l;
 >  >   char *s;
 >  >   fetchIO *df;
 >  > 
 >  >   /* check flags */
 >  > - low = CHECK_FLAG('l');
 >  >   pasv = !CHECK_FLAG('a');
 >  >   verbose = CHECK_FLAG('v');
 >  > 
 >  > @@ -850,6 +848,7 @@
 >  >           uint16_t p;
 >  >  #if defined(IPV6_PORTRANGE) || defined(IP_PORTRANGE)
 >  >           int arg;
 >  > +         int low = CHECK_FLAG('l');
 >  >  #endif
 >  >           int d;
 >  >           char hname[INET6_ADDRSTRLEN];
 >  > 
 >  
 


Home | Main Index | Thread Index | Old Index