pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/gcc3-ada mktemp->mkstemp, by John R. Shannon, per PM
details: https://anonhg.NetBSD.org/pkgsrc/rev/2e392ecc93ab
branches: trunk
changeset: 464415:2e392ecc93ab
user: drochner <drochner%pkgsrc.org@localhost>
date: Mon Dec 08 18:42:23 2003 +0000
description:
mktemp->mkstemp, by John R. Shannon, per PM
diffstat:
lang/gcc3-ada/distinfo | 4 +++-
lang/gcc3-ada/patches/patch-ag | 22 ++++++++++++++++++++++
lang/gcc3-ada/patches/patch-ah | 36 ++++++++++++++++++++++++++++++++++++
3 files changed, 61 insertions(+), 1 deletions(-)
diffs (81 lines):
diff -r b2200241ce66 -r 2e392ecc93ab lang/gcc3-ada/distinfo
--- a/lang/gcc3-ada/distinfo Mon Dec 08 18:33:52 2003 +0000
+++ b/lang/gcc3-ada/distinfo Mon Dec 08 18:42:23 2003 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2003/12/08 18:33:53 drochner Exp $
+$NetBSD: distinfo,v 1.8 2003/12/08 18:42:23 drochner Exp $
SHA1 (gcc-3.3.2.tar.bz2) = 8750024a3e5a79d17a610d93cb5f171097e3ffee
Size (gcc-3.3.2.tar.bz2) = 23585904 bytes
@@ -6,3 +6,5 @@
SHA1 (patch-ad) = 80fead3fdfba3f93a89a7294b45f9633454d35fb
SHA1 (patch-ae) = 9df2be9ed9f92218efce073ed0a727c0311630d0
SHA1 (patch-af) = 6294061358e2b618a980e77cbf7bad6231feacbe
+SHA1 (patch-ag) = 8eff72d76b135a9b0318de651341cb08976758b5
+SHA1 (patch-ah) = c0795339102b4608a3813c3a2d488c71ea972d6f
diff -r b2200241ce66 -r 2e392ecc93ab lang/gcc3-ada/patches/patch-ag
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc3-ada/patches/patch-ag Mon Dec 08 18:42:23 2003 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-ag,v 1.1 2003/12/08 18:42:23 drochner Exp $
+
+--- gcc/ada/adaint.c.orig 2002-11-18 07:39:46.000000000 -0700
++++ gcc/ada/adaint.c
+@@ -636,6 +636,8 @@ __gnat_open_new_temp (path, fmode)
+ return mkstemp (path);
+ #elif defined (__Lynx__)
+ mktemp (path);
++#elif defined(__NetBSD__)
++ return mkstemp (path);
+ #else
+ if (mktemp (path) == NULL)
+ return -1;
+@@ -703,7 +705,7 @@ __gnat_tmp_name (tmp_filename)
+ free (pname);
+ }
+
+-#elif defined (linux)
++#elif defined (linux) || defined (__NetBSD__)
+ char *tmpdir = getenv ("TMPDIR");
+
+ if (tmpdir == NULL)
diff -r b2200241ce66 -r 2e392ecc93ab lang/gcc3-ada/patches/patch-ah
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc3-ada/patches/patch-ah Mon Dec 08 18:42:23 2003 +0000
@@ -0,0 +1,36 @@
+$NetBSD: patch-ah,v 1.1 2003/12/08 18:42:23 drochner Exp $
+
+--- gcc/ada/i-cstrea.ads.orig 2002-10-23 01:33:26.000000000 -0600
++++ gcc/ada/i-cstrea.ads
+@@ -179,9 +179,6 @@ package Interfaces.C_Streams is
+
+ function isatty (handle : int) return int;
+
+- procedure mktemp (template : chars);
+- -- The return value (which is just a pointer to template) is discarded
+-
+ procedure rewind (stream : FILEs);
+
+ function setvbuf
+@@ -191,11 +188,6 @@ package Interfaces.C_Streams is
+ size : size_t)
+ return int;
+
+- procedure tmpnam (string : chars);
+- -- The parameter must be a pointer to a string buffer of at least L_tmpnam
+- -- bytes (the call with a null parameter is not supported). The returned
+- -- value, which is just a copy of the input argument, is discarded.
+-
+ function tmpfile return FILEs;
+
+ function ungetc (c : int; stream : FILEs) return int;
+@@ -270,9 +262,7 @@ private
+ pragma Import (C, fseek);
+ pragma Import (C, ftell);
+ pragma Import (C, isatty);
+- pragma Import (C, mktemp);
+ pragma Import (C, rewind);
+- pragma Import (C, tmpnam);
+ pragma Import (C, tmpfile);
+ pragma Import (C, ungetc);
+ pragma Import (C, unlink);
Home |
Main Index |
Thread Index |
Old Index