pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/ccache Add workaround for bin/47757 on NetBSD < ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c8fc4d588522
branches:  trunk
changeset: 648797:c8fc4d588522
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Thu Mar 19 18:09:17 2015 +0000

description:
Add workaround for bin/47757 on NetBSD < 7. Bump revision.

diffstat:

 devel/ccache/Makefile             |   3 ++-
 devel/ccache/distinfo             |   3 ++-
 devel/ccache/patches/patch-util.c |  26 ++++++++++++++++++++++++++
 3 files changed, 30 insertions(+), 2 deletions(-)

diffs (53 lines):

diff -r 19414c328fd2 -r c8fc4d588522 devel/ccache/Makefile
--- a/devel/ccache/Makefile     Thu Mar 19 16:17:12 2015 +0000
+++ b/devel/ccache/Makefile     Thu Mar 19 18:09:17 2015 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.25 2014/12/15 05:33:26 mef Exp $
+# $NetBSD: Makefile,v 1.26 2015/03/19 18:09:17 tnn Exp $
 
 DISTNAME=      ccache-3.2.1
+PKGREVISION=   1
 CATEGORIES=    devel
 MASTER_SITES=  http://samba.org/ftp/ccache/
 EXTRACT_SUFX=  .tar.xz
diff -r 19414c328fd2 -r c8fc4d588522 devel/ccache/distinfo
--- a/devel/ccache/distinfo     Thu Mar 19 16:17:12 2015 +0000
+++ b/devel/ccache/distinfo     Thu Mar 19 18:09:17 2015 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.15 2014/12/15 05:33:26 mef Exp $
+$NetBSD: distinfo,v 1.16 2015/03/19 18:09:17 tnn Exp $
 
 SHA1 (ccache-3.2.1.tar.xz) = cc34aa89802461a9742c42767f14c3eace1aafe8
 RMD160 (ccache-3.2.1.tar.xz) = 48a00126bd7760505d78a35ab5d72d1a53bbe03c
 Size (ccache-3.2.1.tar.xz) = 297868 bytes
+SHA1 (patch-util.c) = b56f7c348067bba472c4a9091f8d0f6b0a579263
diff -r 19414c328fd2 -r c8fc4d588522 devel/ccache/patches/patch-util.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ccache/patches/patch-util.c Thu Mar 19 18:09:17 2015 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-util.c,v 1.1 2015/03/19 18:09:17 tnn Exp $
+
+Workaround for bin/47757
+
+--- util.c.orig        2014-12-10 19:40:54.000000000 +0000
++++ util.c
+@@ -1063,6 +1063,9 @@ create_tmp_fd(char **fname)
+       char *template = format("%s.%s", *fname, tmp_string());
+       int fd = mkstemp(template);
+       if (fd == -1 && errno == ENOENT) {
++#if defined(__NetBSD__) && __NetBSD_Version__ < 700000000
++              reformat(&template, "%s.%s", *fname, tmp_string());
++#endif
+               if (create_parent_dirs(template) != 0) {
+                       fatal("Failed to create directory %s: %s",
+                             dirname(template), strerror(errno));
+@@ -1071,6 +1074,9 @@ create_tmp_fd(char **fname)
+               fd = mkstemp(template);
+       }
+       if (fd == -1) {
++#if defined(__NetBSD__) && __NetBSD_Version__ < 700000000
++              reformat(&template, "%s.%s", *fname, tmp_string());
++#endif
+               fatal("Failed to create file %s: %s", template, strerror(errno));
+       }
+ 



Home | Main Index | Thread Index | Old Index