pkgsrc-Bugs archive

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

pkg/47405: pkgsrc/devel/splint: another patch fixed to correctly involve sunstudio



>Number:         47405
>Category:       pkg
>Synopsis:       pkgsrc/devel/splint: another patch fixed to correctly involve 
>sunstudio
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 04 14:35:00 +0000 2013
>Originator:     Richard PALO
>Release:        pkgsrc trunk
>Organization:
>Environment:
SunOS devzone 5.11 oi_151a7 i86pc i386 i86pc Solaris

>Description:
Building devel/splint on solaris with gcc (4.7.2) bombs out with the following 
sort of errors:

Compiling cgrammar.c...
In file included from Headers/general.h:17:0,
                 from Headers/basic.h:42,
                 from cgrammar.c:553:
Headers/forwardTypes.h:97:15: error: expected declaration specifiers or '...' 
before '*' token
In file included from Headers/misc.h:15:0,
                 from Headers/general.h:25,
                 from Headers/basic.h:42,
                 from cgrammar.c:553:
Headers/lclMisc.h:6:1: error: unknown type name 'bool'

>How-To-Repeat:

>Fix:
patches/patch-aa excludes *all* solaris targets 
instead of _only_ sunstudio compilers on solaris.

richard@devzone:~/src/pkgsrc/devel/splint$ cvs diff
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/devel/splint/distinfo,v
retrieving revision 1.9
diff -u -p -r1.9 distinfo
--- distinfo    2 Jun 2012 05:43:07 -0000       1.9
+++ distinfo    4 Jan 2013 14:33:12 -0000
@@ -3,6 +3,6 @@ $NetBSD: distinfo,v 1.9 2012/06/02 05:43
 SHA1 (splint-3.1.2.src.tgz) = 0df489cb228dcfffb149b38c57614c2c3e200501
 RMD160 (splint-3.1.2.src.tgz) = 52e9786d3cbeaa437877a33b18e42b32dff3b96b
 Size (splint-3.1.2.src.tgz) = 2284033 bytes
-SHA1 (patch-aa) = 3324bff7178957f25bab17cb8ab4d3d25a2d0397
+SHA1 (patch-aa) = 569d0f6d0300b35dec72b4883c0478741e572274
 SHA1 (patch-src_Headers_scan_h) = 9d286990abcad9f3df49c19c6302f1a4a590ee1b
 SHA1 (patch-src_osd.c) = 84499ef0e9bd23ea89dcb14b8951fa0dfcfed198
Index: patches/patch-aa
===================================================================
RCS file: /cvsroot/pkgsrc/devel/splint/patches/patch-aa,v
retrieving revision 1.3
diff -u -p -r1.3 patch-aa
--- patches/patch-aa    3 Mar 2009 08:58:23 -0000       1.3
+++ patches/patch-aa    4 Jan 2013 14:33:12 -0000
@@ -9,7 +9,7 @@ Some systems don't have <stdbool.h>.
  # include <stdio.h>
  
 -# if !defined (WIN32) &&  !(defined (OS2) && defined (__IBMC__))
-+# if !defined (WIN32) &&  !(defined (OS2) && defined (__IBMC__)) && 
!(defined(__GNUC__) && (__GNUC__ == 2)) && !(defined(__sun) && 
!(__STDC_VERSION__ >= 199901L))
++# if !defined (WIN32) &&  !(defined (OS2) && defined (__IBMC__)) && 
!(defined(__GNUC__) && (__GNUC__ == 2)) && !(defined(__sun) && 
defined(__SUNPRO_C) && !(__STDC_VERSION__ >= 199901L))
  /* Microsoft VC++ still doesn't support ISO C99... */
  # include <stdbool.h>
  # endif



Home | Main Index | Thread Index | Old Index