Subject: Re: gcc34-ada build fails
To: None <john@johnrshannon.com>
From: Raymond Meyer <raymond.meyer@rambler.ru>
List: tech-pkg
Date: 07/10/2006 17:42:36
This is a multi-part message in MIME format.

--Multipart=_Mon__10_Jul_2006_17_42_36_+0100_dgi2pbMvCfLqurIi
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Speaking of lang/gcc34-ada, I've attached the patches that I used to build this
package on Sparc Solaris 10. Any chance you could review and commit them?

Thanks.

--Multipart=_Mon__10_Jul_2006_17_42_36_+0100_dgi2pbMvCfLqurIi
Content-Type: text/plain;
 name="gcc34-ada-patches.txt"
Content-Disposition: attachment;
 filename="gcc34-ada-patches.txt"
Content-Transfer-Encoding: 7bit

Fix for configure script on Solaris 10

--- gcc-3.4.6/gcc/config.gcc.orig	Tue Jul 19 22:08:48 2005
+++ gcc-3.4.6/gcc/config.gcc	Mon Jul 10 13:39:05 2006
@@ -1073,7 +1073,7 @@
 	extra_parts="crtbegin.o crtend.o"
 	use_fixproto=yes
 	;;
-i[34567]86-*-solaris2*)
+i[34567]86-*-solaris2* | i[34567]86-*-solaris5*)
 	xm_defines="SMALL_ARG_MAX"
 	tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h i386/sol2.h"
 	tmake_file="i386/t-sol2 t-svr4"
@@ -1083,7 +1083,7 @@
 		tmake_file="$tmake_file t-slibgcc-sld"
 	fi
 	case ${target} in
-	*-*-solaris2.[789] | *-*-solaris2.1[0-9])
+	*-*-solaris2.[789] | *-*-solaris2.1[0-9] | *-*-solaris5.1[0-9])
 		tm_file="$tm_file tm-dwarf2.h"
 		;;
 	esac
@@ -2045,7 +2045,7 @@
 	tmake_file="sparc/t-elf sparc/t-crtfm t-rtems"
 	extra_parts="crti.o crtn.o crtbegin.o crtend.o"
 	;;
-sparc64-*-solaris2* | sparcv9-*-solaris2*)
+sparc64-*-solaris2* | sparc64-*-solaris5* | sparcv9-*-solaris2* | sparcv9-*-solaris5*)
 	tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/sol2-64.h sparc/sol2-bi.h"
 	if test x$gnu_ld = xyes; then
 		tm_file="${tm_file} sparc/sol2-gld.h sparc/sol2-gld-bi.h"
@@ -2075,7 +2075,7 @@
 	fi
 	need_64bit_hwint=yes
 	;;
-sparc-*-solaris2*)
+sparc-*-solaris2* | sparc-*-solaris5*)
 	tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h"
 	if test x$gnu_ld = xyes; then
 		tm_file="${tm_file} sparc/sol2-gld.h"
@@ -2092,7 +2092,7 @@
 			tm_file="${tm_file} sparc/sol26-sld.h"
 		fi
 		;;
-	*-*-solaris2.[789] | *-*-solaris2.1[0-9])
+	*-*-solaris2.[789] | *-*-solaris2.1[0-9] | *-*-solaris5.1[0-9])
 		tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h"
 		if test x$gnu_ld = xyes; then
 			tm_file="${tm_file} sparc/sol2-gld-bi.h"


Fix for pkgsrc Makefile on Solaris 10

--- lang/gcc34-ada/Makefile.orig	Mon Jul 10 13:41:38 2006
+++ lang/gcc34-ada/Makefile	Mon Jul 10 13:32:09 2006
@@ -103,6 +103,9 @@
 CONFIGURE_ARGS+=	--with-system-zlib
 CONFIGURE_ARGS+=	--enable-long-long
 CONFIGURE_ARGS+=	--enable-threads=gnat
+CONFIGURE_ARGS+=        --with-libiconv-prefix=${BUILDLINK_PREFIX.iconv}
+MAKE_ENV+=              ICONVPREFIX=${BUILDLINK_PREFIX.iconv}
+CONFIGURE_ARGS+=	--disable-nls
 GCC_DIR=	${WRKDIR}/.gcc
 
 post-patch:

--Multipart=_Mon__10_Jul_2006_17_42_36_+0100_dgi2pbMvCfLqurIi--