ccache for 10.10 and 3.2.1 update

Jack Howarth <[email protected]>
Newsgroups gmane.os.apple.fink.devel
Message-ID <CAP5Ds0DGn92tJ7QCwC1F5gsjyAU6oFcST2pDX+yJvP+ZG+QZ5g@mail.gmail.com>
David,
     I noticed we are missing a 10.10 variant for ccache. Was this
intentional? The attached packaging updates ccache to the latest 3.2.1
release with a patch to eliminate the clang warnings about....

In file included from conf.c:200:
confitems.gperf:33:35: warning: static function 'parse_bool' is used
in an inline function with external linkage [-Wstatic-in-inline]
      {"stats",               23, ITEM(stats, bool)},
                                  ^
conf.c:196:2: note: expanded from macro 'ITEM'
        parse_##type, offsetof(struct conf, name), NULL
        ^
<scratch space>:70:1: note: expanded from here
parse_bool
^
confitems.gperf:54:1: note: use 'static' to give inline function
'confitems_get' internal linkage
__inline
^
static

However the InfoTest shows a cryptic failure of...

SUITE: "pch", TEST: "create .gch, -c, no -o" - Expected "cache miss"
to be 1, got 0
cache directory
/sw/src/fink.build/ccache-3.2.1-1/ccache-3.2.1/testdir.90933/.ccache
primary config
/sw/src/fink.build/ccache-3.2.1-1/ccache-3.2.1/testdir.90933/.ccache/ccache.conf
secondary config      (readonly)    /sw/etc/ccache.conf
cache hit (direct)                     0
cache hit (preprocessed)               0
cache miss                             0
can't use precompiled header           1
files in cache                         0
cache size                           0.0 kB
max cache size                       5.0 GB
TEST FAILED
Test data and log file have been left in testdir.90933
Makefile:84: recipe for target 'test' failed
make: *** [test] Error 1
make: Target 'check' not remade because of errors.

Any ideas on how to fix that?
         Jack
ps MacPorts has their ccache at 3.2.1 but don't have the tests enabled.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/

_______________________________________________
Fink-devel mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel
ccache.info (application/octet-stream, 4.2 KB) - not displayed
ccache-10.9.info (application/octet-stream, 4.1 KB) - not displayed
ccache-10.10.info (application/octet-stream, 4.1 KB) - not displayed
ccache.patch (application/octet-stream, 440 B)
diff -uNr ccache-3.2.1.orig/confitems_lookup.c ccache-3.2.1/confitems_lookup.c
--- ccache-3.2.1.orig/confitems_lookup.c	2014-12-10 14:40:54.000000000 -0500
+++ ccache-3.2.1/confitems_lookup.c	2015-04-02 09:58:09.000000000 -0400
@@ -75,6 +75,7 @@
   return len + asso_values[(unsigned char)str[1]] + asso_values[(unsigned char)str[0]];
 }
 
+static
 #ifdef __GNUC__
 __inline
 #if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.