Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/net
In directory vz-cvs-3.sog:/tmp/cvs-serv20375/stable/main/finkinfo/net
Added Files:
bing.info bing.patch
Log Message:
bing to stable with xcode4.2 macro-expansion fix
--- NEW FILE: bing.info ---
Package: bing
Version: 1.1.3
Revision: 1003
Source: mirror:debian:pool/main/b/%n/%n_%v.orig.tar.gz
Maintainer: Jack Fink <[email protected]>
Homepage: http://www.mygale.org/~fgouget/apps/index_uk.shtml
License: GPL
Description: Empirical stochastic bandwidth tester
Source-MD5: fc19049101d37a6d24d883082ca25eb1
SourceDirectory: %n-%v
SetCPPFLAGS: -D_FORTIFY_SOURCE=0
PatchFile: %n.patch
PatchFile-MD5: 7ee78f015eb8f026c08dc39f5b349b3c
PatchScript: <<
%{default_script}
perl -pi -e
"s,-O2,-Os,g;s,BINDIR=/usr/bin,BINDIR=%p/bin,g;s,MANDIR=/usr/man,MANDIR=%p/share/man,g;s,-o
man -g man,,g;s,-o root -g staff,,g" Makefile
<<
CompileScript: make
InstallScript: mkdir -p %i/share/man/man8 %i/bin && make install BINDIR=%i/bin
MANDIR=%i/share/man
DocFiles: ChangeLog Readme.1st Readme.txt
DescPort: <<
OS X has snprintf but it's a macro. Compiler's macro-expansion
can't cope with later-defined macro (in bing.c) as parameterq
to previously-defined macro and local macro is a no-op wrapper
anyway, so just omit using it. Fixes build failure on xcode4.2
<<
--- NEW FILE: bing.patch ---
diff -Nurd -x'*~' bing-1.1.3.orig/Makefile bing-1.1.3/Makefile
--- bing-1.1.3.orig/Makefile 2000-07-20 10:01:19.000000000 -0400
+++ bing-1.1.3/Makefile 2012-03-17 14:50:05.000000000 -0400
@@ -37,7 +37,7 @@
# Define to use srandom/random rather than srand/rand
# -> required on SunOS 4.1.3, SunOS 5, AIX 2 (BOSX 2 really), OSF1 V2.0
-NO_SNPRINTF = -DNO_SNPRINTF=1
+#NO_SNPRINTF = -DNO_SNPRINTF=1
# Define if you lack strerror()
#NO_STRERROR = -DNO_STRERROR=1
diff -Nurd -x'*~' bing-1.1.3.orig/bing.c bing-1.1.3/bing.c
--- bing-1.1.3.orig/bing.c 1997-06-06 01:35:20.000000000 -0400
+++ bing-1.1.3/bing.c 2012-03-17 14:46:27.000000000 -0400
@@ -682,10 +682,10 @@
if ((options & F_NUMERIC) ||
!(hp = gethostbyaddr((char *)&l, 4, AF_INET)))
- (void)snprintf(snfargs(buf, sizeof(buf), "%s"),
+ (void)snprintf(buf, sizeof(buf), "%s",
inet_ntoa(*(struct in_addr *)&l));
else
- (void)snprintf(snfargs(buf, sizeof(buf), "%s (%s)"),
+ (void)snprintf(buf, sizeof(buf), "%s (%s)",
hp->h_name,
inet_ntoa(*(struct in_addr *)&l));
return(buf);
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs