pkgsrc-Bugs archive

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

Re: pkg/50753: pkg-config build failure with gcc6 defaults (linux)



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

From: Joerg Sonnenberger <joerg%britannica.bec.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: pkg-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, pkgsrc-bugs%netbsd.org@localhost,
	coypu%sdf.org@localhost
Subject: Re: pkg/50753: pkg-config build failure with gcc6 defaults (linux)
Date: Tue, 23 Feb 2016 13:21:34 +0100

 On Tue, Feb 09, 2016 at 08:15:01PM +0000, coypu wrote:
 >  --- /dev/null
 >  +++ b/devel/glib2/patches/patch-glib_gdate.c
 >  @@ -0,0 +1,18 @@
 >  +$NetBSD$
 >  +
 >  +https://git.gnome.org/browse/glib/commit/?id=0817af40e8c74c721c30f6ef482b1f53d12044c7
 >  +Merged upstream. Remove this in next release.
 >  +
 >  +--- glib/gdate.c.orig	2014-12-19 21:49:48.000000000 +0000
 >  ++++ glib/gdate.c
 >  +@@ -2494,7 +2494,10 @@ g_date_strftime (gchar       *s, 
 >  +        * recognize whether strftime actually failed or just returned "".
 >  +        */
 >  +       tmpbuf[0] = '\1';
 >  ++      #pragma GCC diagnostic push
 >  ++      #pragma GCC diagnostic ignored "-Wformat-nonliteral"
 >  +       tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm);
 >  ++      #pragma GCC diagnostic pop
 >  + 
 >  +       if (tmplen == 0 && tmpbuf[0] != '\0')
 >  +         {
 
 Please fill a GCC bug report for this. There is nothing unsafe about
 using non-literal format strings with strftime.
 
 Joerg
 


Home | Main Index | Thread Index | Old Index