From 2a949d17338ad161641e70e7ce648de1f7b3a58a Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Thu, 6 Feb 2003 04:06:15 +0000 Subject: - Fix build under CURRENT - Fix PLIST - no objection from maintainer in 5 days --- devel/mipsel-linux-gcc/Makefile | 4 +++- .../files/patch-gcc-config-fp-bit.h | 22 ++++++++++++++++++++++ .../files/patch-gcc::config::fp-bit.h | 22 ---------------------- .../files/patch-libiberty-strerror.c | 13 +++++++++++++ .../files/patch-libiberty-strsignal.c | 11 +++++++++++ devel/mipsel-linux-gcc/pkg-plist | 5 +++++ 6 files changed, 54 insertions(+), 23 deletions(-) create mode 100644 devel/mipsel-linux-gcc/files/patch-gcc-config-fp-bit.h delete mode 100644 devel/mipsel-linux-gcc/files/patch-gcc::config::fp-bit.h create mode 100644 devel/mipsel-linux-gcc/files/patch-libiberty-strerror.c create mode 100644 devel/mipsel-linux-gcc/files/patch-libiberty-strsignal.c (limited to 'devel') diff --git a/devel/mipsel-linux-gcc/Makefile b/devel/mipsel-linux-gcc/Makefile index 3d0d650132b2..a3ea110fd3f2 100644 --- a/devel/mipsel-linux-gcc/Makefile +++ b/devel/mipsel-linux-gcc/Makefile @@ -7,6 +7,7 @@ PORTNAME= gcc PORTVERSION= 2.97 +PORTREVISION= 1 CATEGORIES= devel #MASTER_SITES= ftp://ftp.agendacomputing.com/pub/dev/snow/snap-02212000/src/ MASTER_SITES= ${MASTER_SITE_LOCAL} @@ -32,11 +33,12 @@ CONFIGURE_ARGS= --target=${PKGNAMEPREFIX:S/-$//} \ --enable-multilib \ --disable-shared +ONLY_FOR_ARCHS= i386 alpha MAKE_ENV= PATH=${PREFIX}/bin:${PATH} USE_GMAKE= yes USE_LIBTOOL= yes LIBTOOLFILES= configure gcc/configure -MAN1= ${PKGNAMEPREFIX}g++.1 ${PKGNAMEPREFIX}gcc.1 +MAN1= ${PKGNAMEPREFIX}g++.1 ${PKGNAMEPREFIX}gcc.1 cpp.1 gcov.1 GCC_REV= 2.97 diff --git a/devel/mipsel-linux-gcc/files/patch-gcc-config-fp-bit.h b/devel/mipsel-linux-gcc/files/patch-gcc-config-fp-bit.h new file mode 100644 index 000000000000..69f81099ee05 --- /dev/null +++ b/devel/mipsel-linux-gcc/files/patch-gcc-config-fp-bit.h @@ -0,0 +1,22 @@ +*** gcc/config/fp-bit.h.orig Thu Oct 18 22:57:05 2001 +--- gcc/config/fp-bit.h Thu Oct 18 22:58:46 2001 +*************** +*** 164,169 **** +--- 164,170 ---- + # define divide fpdiv + # define compare fpcmp + # define si_to_float sitofp ++ # define usi_to_float uitofp + # define float_to_si fptosi + # define float_to_usi fptoui + # define negate __negsf2 +*************** +*** 176,181 **** +--- 177,183 ---- + # define divide dpdiv + # define compare dpcmp + # define si_to_float litodp ++ # define usi_to_float ultodp + # define float_to_si dptoli + # define float_to_usi dptoul + # define negate __negdf2 diff --git a/devel/mipsel-linux-gcc/files/patch-gcc::config::fp-bit.h b/devel/mipsel-linux-gcc/files/patch-gcc::config::fp-bit.h deleted file mode 100644 index 69f81099ee05..000000000000 --- a/devel/mipsel-linux-gcc/files/patch-gcc::config::fp-bit.h +++ /dev/null @@ -1,22 +0,0 @@ -*** gcc/config/fp-bit.h.orig Thu Oct 18 22:57:05 2001 ---- gcc/config/fp-bit.h Thu Oct 18 22:58:46 2001 -*************** -*** 164,169 **** ---- 164,170 ---- - # define divide fpdiv - # define compare fpcmp - # define si_to_float sitofp -+ # define usi_to_float uitofp - # define float_to_si fptosi - # define float_to_usi fptoui - # define negate __negsf2 -*************** -*** 176,181 **** ---- 177,183 ---- - # define divide dpdiv - # define compare dpcmp - # define si_to_float litodp -+ # define usi_to_float ultodp - # define float_to_si dptoli - # define float_to_usi dptoul - # define negate __negdf2 diff --git a/devel/mipsel-linux-gcc/files/patch-libiberty-strerror.c b/devel/mipsel-linux-gcc/files/patch-libiberty-strerror.c new file mode 100644 index 000000000000..e6532458c516 --- /dev/null +++ b/devel/mipsel-linux-gcc/files/patch-libiberty-strerror.c @@ -0,0 +1,13 @@ +--- libiberty/strerror.c.orig Mon May 29 13:45:32 2000 ++++ libiberty/strerror.c Wed Dec 11 21:03:00 2002 +@@ -465,8 +465,8 @@ + + #else + +-extern int sys_nerr; +-extern char *sys_errlist[]; ++extern const int sys_nerr; ++extern const char *sys_errlist[]; + + #endif + diff --git a/devel/mipsel-linux-gcc/files/patch-libiberty-strsignal.c b/devel/mipsel-linux-gcc/files/patch-libiberty-strsignal.c new file mode 100644 index 000000000000..fa635baf14b1 --- /dev/null +++ b/devel/mipsel-linux-gcc/files/patch-libiberty-strsignal.c @@ -0,0 +1,11 @@ +--- libiberty/strsignal.c.orig Mon May 29 13:45:32 2000 ++++ libiberty/strsignal.c Wed Dec 11 21:04:43 2002 +@@ -247,7 +247,7 @@ + #else + + #ifdef NSIG +-static int sys_nsig = NSIG; ++static const int sys_nsig = NSIG; + #else + #ifdef _NSIG + static int sys_nsig = _NSIG; diff --git a/devel/mipsel-linux-gcc/pkg-plist b/devel/mipsel-linux-gcc/pkg-plist index 296cc5d8dc3f..c222c3669c2a 100644 --- a/devel/mipsel-linux-gcc/pkg-plist +++ b/devel/mipsel-linux-gcc/pkg-plist @@ -3,9 +3,12 @@ %%GCC_TARG%%/bin/g++ %%GCC_TARG%%/bin/gcc bin/%%GCC_TARG%%-c++ +bin/%%GCC_TARG%%-c++filt bin/%%GCC_TARG%%-cpp bin/%%GCC_TARG%%-g++ bin/%%GCC_TARG%%-gcc +bin/gccbug +bin/gcov lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/cc1 lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/cc1plus lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/collect2 @@ -28,6 +31,8 @@ lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/libgcc.a lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/single/libgcc.a lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/specs lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/tradcpp0 +lib/libiberty.a +share/locale/sv/LC_MESSAGES/gcc.mo @dirrm lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/single @dirrm lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%%/include @dirrm lib/gcc-lib/%%GCC_TARG%%/%%GCC_REV%% -- cgit v1.2.3