pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/netatalk30 When a compiler complains about a missi...
details: https://anonhg.NetBSD.org/pkgsrc/rev/3081d63f1ab6
branches: trunk
changeset: 365361:3081d63f1ab6
user: hauke <hauke%pkgsrc.org@localhost>
date: Fri Jul 14 13:08:31 2017 +0000
description:
When a compiler complains about a missing prototype for a libc
function, just inserting one for what you think the interface might be
is probably not a good idea. (Same patch as for netatalk22, btw.)
diffstat:
net/netatalk30/Makefile | 8 +++---
net/netatalk30/distinfo | 3 +-
net/netatalk30/patches/patch-libatalk_bstring_bstrlib.c | 22 +++++++++++++++++
3 files changed, 28 insertions(+), 5 deletions(-)
diffs (67 lines):
diff -r ec7e16e5ab98 -r 3081d63f1ab6 net/netatalk30/Makefile
--- a/net/netatalk30/Makefile Fri Jul 14 12:59:23 2017 +0000
+++ b/net/netatalk30/Makefile Fri Jul 14 13:08:31 2017 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.12 2017/05/19 13:29:03 prlw1 Exp $
+# $NetBSD: Makefile,v 1.13 2017/07/14 13:08:31 hauke Exp $
DISTNAME= netatalk-3.0.8
PKGNAME= ${DISTNAME:C/-/30-/}
-PKGREVISION= 8
+PKGREVISION= 9
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=netatalk/}
EXTRACT_SUFX= .tar.bz2
@@ -21,8 +21,8 @@
PKG_SYSCONFSUBDIR= netatalk
EGDIR= ${PREFIX}/share/examples/netatalk
-CONF_FILES= ${EGDIR}/afp.conf ${PKG_SYSCONFDIR}/afp.conf
-CONF_FILES+= ${EGDIR}/extmap.conf ${PKG_SYSCONFDIR}/extmap.conf
+CONF_FILES= ${EGDIR}/afp.conf ${PKG_SYSCONFDIR}/afp.conf
+CONF_FILES+= ${EGDIR}/extmap.conf ${PKG_SYSCONFDIR}/extmap.conf
RCD_SCRIPTS= netatalk
RCD_SCRIPT_SRC.netatalk= ${WRKSRC}/distrib/initscripts/rc.netbsd
diff -r ec7e16e5ab98 -r 3081d63f1ab6 net/netatalk30/distinfo
--- a/net/netatalk30/distinfo Fri Jul 14 12:59:23 2017 +0000
+++ b/net/netatalk30/distinfo Fri Jul 14 13:08:31 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2015/11/04 00:35:15 agc Exp $
+$NetBSD: distinfo,v 1.5 2017/07/14 13:08:31 hauke Exp $
SHA1 (netatalk-3.0.8.tar.bz2) = 4956d0991ae09e6c5336980b0c9d92afe8153f5f
RMD160 (netatalk-3.0.8.tar.bz2) = 61b8b5a43985b8a5441867cb96b9de5aeba324fb
@@ -16,5 +16,6 @@
SHA1 (patch-etc_uams_uams__randnum.c) = 51e8b4a0c77f732423be9406c9f47d004403080a
SHA1 (patch-include_atalk_util.h) = 5fe41720bf82980f6d5965f76d34e1703e541047
SHA1 (patch-libatalk_adouble_ad_flush.c) = d4df84d2786bf392a5113b4867d955098c0c1da9
+SHA1 (patch-libatalk_bstring_bstrlib.c) = f43818328237b908166f956de464f532d578d2c4
SHA1 (patch-libatalk_util_getiface.c) = fe4aba6080f6308866bedb3d96ccc2b034836d3e
SHA1 (patch-macros_quota-check.m4) = aa8a053b83bc4579ca0a8f66f43226ead8e79696
diff -r ec7e16e5ab98 -r 3081d63f1ab6 net/netatalk30/patches/patch-libatalk_bstring_bstrlib.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/netatalk30/patches/patch-libatalk_bstring_bstrlib.c Fri Jul 14 13:08:31 2017 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-libatalk_bstring_bstrlib.c,v 1.1 2017/07/14 13:08:31 hauke Exp $
+
+When a compiler complains about a missing prototype for a libc
+function, just inserting one for what you think the interface might be
+is probably not a good idea.
+
+--- libatalk/bstring/bstrlib.c.orig 2013-03-05 06:24:48.000000000 +0000
++++ libatalk/bstring/bstrlib.c
+@@ -2736,13 +2736,6 @@ struct genBstrList g;
+ #define exvsnprintf(r,b,n,f,a) {vsprintf (b,f,a); r = -1;}
+ #define START_VSNBUFF (256)
+ #else
+-
+-#ifdef __GNUC__
+-/* Something is making gcc complain about this prototype not being here, so
+- I've just gone ahead and put it in. */
+-extern int vsnprintf (char *buf, size_t count, const char *format, va_list arg);
+-#endif
+-
+ #define exvsnprintf(r,b,n,f,a) {r = vsnprintf (b,n,f,a);}
+ #endif
+ #endif
Home |
Main Index |
Thread Index |
Old Index