diff options
author | cheusov <cheusov@pkgsrc.org> | 2014-01-13 00:01:12 +0000 |
---|---|---|
committer | cheusov <cheusov@pkgsrc.org> | 2014-01-13 00:01:12 +0000 |
commit | da68f7b1d3ac44aef44bbfe1eb64625c153cb369 (patch) | |
tree | 9cee7639ef9d0a70032726b028859188eaf9a78d /devel/bmkdep | |
parent | de0eaa1db80ea003f7295b2b63965065c74b9076 (diff) | |
download | pkgsrc-da68f7b1d3ac44aef44bbfe1eb64625c153cb369.tar.gz |
Fix build failure on NetBSD-5.1
Diffstat (limited to 'devel/bmkdep')
-rw-r--r-- | devel/bmkdep/distinfo | 3 | ||||
-rw-r--r-- | devel/bmkdep/patches/patch-mkdep.c | 28 |
2 files changed, 30 insertions, 1 deletions
diff --git a/devel/bmkdep/distinfo b/devel/bmkdep/distinfo index 3cbccdcb410..f4558be9287 100644 --- a/devel/bmkdep/distinfo +++ b/devel/bmkdep/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.4 2014/01/02 00:19:22 cheusov Exp $ +$NetBSD: distinfo,v 1.5 2014/01/13 00:01:12 cheusov Exp $ SHA1 (bmkdep-20131215.tar.gz) = 6bfea86a97f71ec53374dcf9ca20e3785a468194 RMD160 (bmkdep-20131215.tar.gz) = 3834c6593c78e48e118390c465b02209cc252686 Size (bmkdep-20131215.tar.gz) = 7570 bytes +SHA1 (patch-mkdep.c) = cb6715b26d38d12929b118b68aa90e8914fe4564 diff --git a/devel/bmkdep/patches/patch-mkdep.c b/devel/bmkdep/patches/patch-mkdep.c new file mode 100644 index 00000000000..5c0fa3d1511 --- /dev/null +++ b/devel/bmkdep/patches/patch-mkdep.c @@ -0,0 +1,28 @@ +$NetBSD: patch-mkdep.c,v 1.5 2014/01/13 00:01:12 cheusov Exp $ + +Always use portable snprintf +--- mkdep.c.orig 2013-12-15 19:47:07.000000000 +0000 ++++ mkdep.c +@@ -52,7 +52,6 @@ __RCSID("$NetBSD: mkdep.c,v 1.43 2013/03 + + #ifndef __sun + #include <paths.h> +-#define _WITH_DPRINTF + #endif + + #include <stdio.h> +@@ -343,14 +342,9 @@ main(int argc, char **argv) + } else + fname = *argv++; + if (iflag) { +-#ifdef _WITH_DPRINTF +- if (dprintf(dependfile, ".-include \"%s\"\n", +- fname) < 0) +-#else + snprintf (incl, sizeof (incl), + ".-include \"%s\"\n", fname); + if (write(dependfile, incl, strlen(incl)) < 0) +-#endif + goto wrerror; + continue; + } |