head	1.3;
access;
symbols
	RELEASE_6_0_0:1.2
	RELEASE_5_4_0:1.2
	RELEASE_4_11_0:1.2
	RELEASE_5_3_0:1.2
	RELEASE_4_10_0:1.2
	RELEASE_5_2_1:1.2
	RELEASE_5_2_0:1.2
	RELEASE_4_9_0:1.2
	RELEASE_5_1_0:1.2
	RELEASE_4_8_0:1.2
	RELEASE_5_0_0:1.2
	RELEASE_4_7_0:1.1
	RELEASE_4_6_2:1.1
	RELEASE_4_6_1:1.1
	RELEASE_4_6_0:1.1
	RELEASE_5_0_DP1:1.1;
locks; strict;
comment	@# @;


1.3
date	2005.11.29.00.01.24;	author deischen;	state dead;
branches;
next	1.2;

1.2
date	2002.12.01.19.10.48;	author deischen;	state Exp;
branches;
next	1.1;

1.1
date	2002.02.12.23.43.24;	author deischen;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Update the antiquated version of the GNAT compiler to the GPL-2005
version.

Note that this version now produces executables that are
covered by the GPL as opposed to the previous version which was
covered by the modified GPL.

Also note that the GNAT sources in the stock GCC-4 tree are
not under this restriction.  A new port based on the sources
in GCC-4 will come when I get the time.
@
text
@*** ada/a-adaint.c.orig	Thu Oct 24 04:02:15 2002
--- ada/a-adaint.c	Fri Nov 22 09:53:21 2002
***************
*** 605,610 ****
--- 605,612 ----
  
  #if defined (linux) && !defined (__vxworks)
    return mkstemp (path);
+ #elif defined (__FreeBSD__)
+   return mkstemp (path);
  #elif defined (__Lynx__)
    mktemp (path);
  #else
***************
*** 673,679 ****
  
      free (pname);
    }
! #elif defined (linux)
    char *tmpdir = getenv ("TMPDIR");
  
    if (tmpdir == NULL)
--- 675,681 ----
  
      free (pname);
    }
! #elif defined (linux) || defined (__FreeBSD__)
    char *tmpdir = getenv ("TMPDIR");
  
    if (tmpdir == NULL)
@


1.2
log
@Update to the latest released version of GNAT (3.15p).  Also use a
new bootstrap compiler and fix so that it builds under -current.

Approved by:	portmgr
@
text
@@


1.1
log
@Add a patch to replace tmpnam with mkstemp.

Submitted by:	Samuel Tardieu <sam@@ada.eu.org>
@
text
@d1 30
a30 20
--- ada/a-adaint.c.orig	Tue Feb 12 17:24:15 2002
+++ ada/a-adaint.c	Tue Feb 12 17:21:56 2002
@@@@ -590,6 +590,17 @@@@
     strcpy (tmp_filename, pname);
     free (pname);
   }
+#elif defined (__FreeBSD__)
+  {
+    int fd;
+
+    strcpy (tmp_filename, "/tmp/gnat-XXXXXX");
+    fd = mkstemp (tmp_filename);
+    if (fd < 0)
+      strcpy (tmp_filename, "");
+    else
+      close (fd);
+  }
 #else
   tmpnam (tmp_filename);
 #endif
@

