summaryrefslogtreecommitdiff
path: root/lang/gcc-ssp
diff options
context:
space:
mode:
Diffstat (limited to 'lang/gcc-ssp')
-rw-r--r--lang/gcc-ssp/DESCR23
-rw-r--r--lang/gcc-ssp/MESSAGE9
-rw-r--r--lang/gcc-ssp/Makefile147
-rw-r--r--lang/gcc-ssp/PLIST8
-rw-r--r--lang/gcc-ssp/distinfo19
-rw-r--r--lang/gcc-ssp/files/buffer.c9
-rw-r--r--lang/gcc-ssp/files/gcc.mk7
7 files changed, 0 insertions, 222 deletions
diff --git a/lang/gcc-ssp/DESCR b/lang/gcc-ssp/DESCR
deleted file mode 100644
index e0435a59503..00000000000
--- a/lang/gcc-ssp/DESCR
+++ /dev/null
@@ -1,23 +0,0 @@
-This directory contains the GNU Compiler Collection (GCC) version 2.95.
-It includes all of the support for compiling C, C++, Objective C, Fortran,
-Java, and Chill.
-
-The GNU Compiler Collection is free software. See the file COPYING for copying
-permission.
-
-See the file gcc.texi (together with other files that it includes) for
-installation and porting information. The file INSTALL contains a
-copy of the installation information, as plain ASCII.
-
-See the Bugs chapter of the GCC Manual for how to report bugs
-usefully. An online readable version of the manual is in the files
-gcc.info*.
-
----
-Stack-smashing protection
-
-This gcc supports runtime stack-smashing protection. An
-executables compiled with -fstack-protector flag are protected
-from buffer-overflow attacks.
-
-It can not compile the NetBSD kernel easily at this moment.
diff --git a/lang/gcc-ssp/MESSAGE b/lang/gcc-ssp/MESSAGE
deleted file mode 100644
index bb6b91a8cab..00000000000
--- a/lang/gcc-ssp/MESSAGE
+++ /dev/null
@@ -1,9 +0,0 @@
-===========================================================================
-$NetBSD: MESSAGE,v 1.3 2003/08/09 12:43:01 seb Exp $
-
-To use ${PKGNAME} include
-"${PREFIX}/share/examples/${PKGNAME_NOREV}/mk.conf"
-in your BSD style makefile.
-
-This compiler can not compile the NetBSD kernel easily at this moment.
-===========================================================================
diff --git a/lang/gcc-ssp/Makefile b/lang/gcc-ssp/Makefile
deleted file mode 100644
index ca1aec9a421..00000000000
--- a/lang/gcc-ssp/Makefile
+++ /dev/null
@@ -1,147 +0,0 @@
-# $NetBSD: Makefile,v 1.47 2006/09/27 15:46:11 abs Exp $
-
-DISTNAME= gcc-2.95.3
-PKGNAME= gcc-ssp-2.95.3.13
-PKGREVISION= 4
-CATEGORIES= lang security
-MASTER_SITES= ${MASTER_SITE_GNU:=gcc/}
-
-MAINTAINER= pkgsrc-users@NetBSD.org
-HOMEPAGE= http://www.trl.ibm.com/projects/security/ssp/
-COMMENT= GNU Compiler Collection with Stack-smashing protection
-
-PATCH_SITES= ${MASTER_SITE_LOCAL}
-PATCHFILES= gcc-2.95.3-diff-2002-08-29.gz
-
-SSP_PATCH= protector-2.95.3-13.tar.gz
-DISTFILES+= ${DISTNAME}.tar.gz ${SSP_PATCH}
-SITES.protector-2.95.3-13.tar.gz= http://www.trl.ibm.com/projects/security/ssp/gcc2_95_3/
-
-PATCHDIR= ${.CURDIR}/../gcc/patches
-GCC_FILESDIR= ${.CURDIR}/../gcc/files
-
-#ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-sparc
-#
-# Build error for NetBSD/alpha
-#NOT_FOR_PLATFORM= NetBSD-*-alpha \
-# NetBSD-*-powerpc NetBSD-*-macppc \
-# NetBSD-*-prep NetBSD-*-bebox NetBSD-*-ofppc \
-# NetBSD-*-amigappc NetBSD-*-sandpoint
-NOT_FOR_PLATFORM= Interix-*-* *-*-x86_64
-
-USE_TOOLS+= gmake
-
-HAS_CONFIGURE= YES
-CONFIGURE_SCRIPT= ${WRKSRC}/configure
-CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM:Q}
-CONFIGURE_ARGS+= --prefix=${GCC_PREFIX:Q}
-CONFIGURE_ARGS+= --enable-shared
-
-USE_TOOLS+= chmod
-MAKE_ENV+= ac_cv_prog_chmod=${TOOLS_CHMOD:Q}
-MAKE_ENV+= SHELL=${CONFIG_SHELL}
-
-CONFIGURE_DIRS= ${WRKDIR}/objdir
-BUILD_DIRS= ${CONFIGURE_DIRS}
-
-FILES_SUBST+= PKGNAME_NOREV=${PKGNAME_NOREV:Q} \
- GCC_PREFIX=${GCC_PREFIX:Q}
-PLIST_SUBST+= GCC_PREFIX=${GCC_PREFIX:S|^${PREFIX}/||:Q}
-MESSAGE_SUBST+= PKGNAME_NOREV=${PKGNAME_NOREV}
-
-INFO_FILES= # PLIST
-
-.include "../../mk/bsd.prefs.mk"
-
-.if ${OPSYS} == "SunOS"
-. if ${CC:M*gcc*} == ""
-BUILD_TARGET= bootstrap
-. endif
-# we know it's a GNU toolchain on Linux and the BSDs.
-.elif ${OPSYS:M*BSD} != "" || ${OPSYS} == "Linux"
-CONFIGURE_ARGS+= --with-gnu-as
-CONFIGURE_ARGS+= --with-gnu-ld
-.else
-# play it safe, force a bootstrap build if we don't know for sure it
-# is gcc.
-. if ${CC:M*gcc*} == ""
-BUILD_TARGET= bootstrap
-. endif
-.endif
-
-GCC_PREFIX= ${PREFIX}/${PKGNAME_NOREV}
-GCC_VERSION= ${DISTNAME:C/^.*-//}
-GCC_ARCHDIR= ${GCC_PREFIX}/lib/gcc-lib/${MACHINE_GNU_PLATFORM}/${GCC_VERSION}
-PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
-
-post-extract:
- ${MKDIR} ${WRKSRC}
- ${CP} ${GCC_FILESDIR}/xm-netbsd.h ${WRKSRC}/gcc/config
- ${CP} ${GCC_FILESDIR}/xm-target64.h ${WRKSRC}/gcc/config
- for file in ${GCC_FILESDIR}/*_* ; do \
- arch=`${BASENAME} $${file} | ${SED} -e "s/_.*//"`; \
- dest=`${BASENAME} $${file} | ${SED} -e "s/$${arch}_//"`; \
- ${MKDIR} ${WRKSRC}/gcc/config/$${arch}; \
- ${CP} $${file} ${WRKSRC}/gcc/config/$${arch}/$${dest}; \
- done; \
- ${RM} ${WRKSRC}/gcc/config/alpha/netbsd-elf.h
- ${RM} ${WRKSRC}/gcc/config/arm/t-netbsd
- ${RM} ${WRKSRC}/gcc/config/mips/x-netbsd
- ${RM} ${WRKSRC}/libf2c/libF77/dtime_.c
- ${RM} ${WRKSRC}/libf2c/libF77/etime_.c
-
-post-patch:
- cd ${WRKDIR} && ${PAX} -O -zrf ${_DISTDIR}/${SSP_PATCH}
- ${CP} ${WRKDIR}/protector.c ${WRKDIR}/protector.h ${WRKSRC}/gcc/
- ${PATCH} -p0 -d ${WRKSRC} --forward --quiet -E < ${WRKDIR}/protector.dif
- ${PATCH} -p0 -d ${WRKSRC} --forward --quiet -E < ${WRKDIR}/protectonly.dif
-
-pre-configure:
- ${MKDIR} ${BUILD_DIRS}
- cd ${WRKSRC} && contrib/egcs_update --touch
-
-post-build:
- @${SED} ${FILES_SUBST_SED} ${FILESDIR}/gcc.mk > ${WRKDIR}/gcc.mk
-.if ${OPSYS} != "SunOS"
- @${ECHO} "===> Check whether stack protection works or not"
- ${BUILD_DIRS}/gcc/xgcc -B${BUILD_DIRS}/gcc/ -O2 -o ${WRKDIR}/buffer ${FILESDIR}/buffer.c
- ulimit -c 0 && ${WRKDIR}/buffer abcdefghijklmnopqrstuvwxyz 2> ${WRKDIR}/output || ${TRUE}
- @if [ x"`${CAT} ${WRKDIR}/output`" = "x: stack smashing attack in function main" ]; then \
- ${ECHO} "===> Stack protection succeeded."; \
- exit 0; \
- else \
- ${ECHO} "**** Stack protection failed."; \
- exit 1; \
- fi
-.endif
-
-.if ${OPSYS} == "SunOS"
-#
-# remove empty file and directories that show up when one does:
-# make install; make deinstall; make install
-#
-post-install:
- -cd ${GCC_ARCHDIR}/include && ${RM} -f fixed && ${RMDIR} v7 v9
-.else
-post-install:
-. if exists(/usr/include/g++/FlexLexer.h)
- ${LN} -fs /usr/include/g++/FlexLexer.h \
- ${GCC_PREFIX}/include/g++-3/FlexLexer.h
-. endif
- ${RM} -f ${GCC_ARCHDIR}/include/curses.h ${GCC_PREFIX}/bin/cc
-.endif
- ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/${PKGNAME_NOREV}
- ${INSTALL_DATA} ${WRKDIR}/gcc.mk ${PREFIX}/share/examples/${PKGNAME_NOREV}/mk.conf
- ${LN} -s gcc ${GCC_PREFIX}/bin/cc
- ${CP} -f ${PKGDIR}/PLIST ${PLIST_SRC}
- ${FIND} ${GCC_PREFIX} \( -type f -o -type l \) -print \
- | ${SORT} | ${SED} -e "s,${PREFIX}/,,g" \
- >> ${PLIST_SRC}
- ${FIND} ${GCC_PREFIX} -type d -print \
- | ${SORT} -r | ${SED} -e "s,${PREFIX}/,@dirrm ,g" \
- >> ${PLIST_SRC}
-
-.include "../../mk/bsd.pkg.mk"
-
-# Make bootstrap with compiler != gcc possible.
-LDFLAGS= ${_STRIPFLAG_CC}
diff --git a/lang/gcc-ssp/PLIST b/lang/gcc-ssp/PLIST
deleted file mode 100644
index 32c8e9c3f5e..00000000000
--- a/lang/gcc-ssp/PLIST
+++ /dev/null
@@ -1,8 +0,0 @@
-@comment $NetBSD: PLIST,v 1.7 2006/03/20 18:15:38 jlam Exp $
-${GCC_PREFIX}/info/chill.info
-${GCC_PREFIX}/info/cpp.info
-${GCC_PREFIX}/info/g77.info
-${GCC_PREFIX}/info/gcc.info
-share/examples/${PKGNAME}/mk.conf
-@dirrm share/examples/${PKGNAME}
-@dirrm share/examples/${PKGNAME}
diff --git a/lang/gcc-ssp/distinfo b/lang/gcc-ssp/distinfo
deleted file mode 100644
index 2f07f58490c..00000000000
--- a/lang/gcc-ssp/distinfo
+++ /dev/null
@@ -1,19 +0,0 @@
-$NetBSD: distinfo,v 1.17 2005/02/24 09:03:07 agc Exp $
-
-SHA1 (gcc-2.95.3.tar.gz) = 535d27038d161c0e7c2662702e11a48aa97ef622
-RMD160 (gcc-2.95.3.tar.gz) = 2c506b7e80cb2b4d9953f4f9753d581cb885f610
-Size (gcc-2.95.3.tar.gz) = 12911721 bytes
-SHA1 (protector-2.95.3-13.tar.gz) = 22e3464d94eb864d1263a87c9158eb5e9311d33b
-RMD160 (protector-2.95.3-13.tar.gz) = c2ffdfa07b92f7881b877b3f4ad44c51243cfda0
-Size (protector-2.95.3-13.tar.gz) = 20858 bytes
-SHA1 (gcc-2.95.3-diff-2002-08-29.gz) = 9e54a31e78070cba3f6840275350bd0cbf20fe84
-RMD160 (gcc-2.95.3-diff-2002-08-29.gz) = cdfa97ed33ad01b5b33f745bdfacf26ec2568b53
-Size (gcc-2.95.3-diff-2002-08-29.gz) = 564720 bytes
-SHA1 (patch-aa) = 1d9db3e2fecfd3070abcc930dbe4b37669efb3a7
-SHA1 (patch-ab) = 0a9df2c9abb9a3965c085769eb09a6912f894388
-SHA1 (patch-ac) = f42b5ab389c3a51991e61cdb7533875003308001
-SHA1 (patch-ad) = 2fb8cda55220bd202a4b7948277d00f293718caf
-SHA1 (patch-ae) = b9721d3e89a93736b926e1efcfb9d0fb4904277f
-SHA1 (patch-af) = 72d27bfecb2633a1f184cfe9cc8b1194c0d57dfe
-SHA1 (patch-ag) = bb4d84561d20d2379a71a442b8711b2c54cf4bf2
-SHA1 (patch-ah) = 777b4c19c7d86007c69ec9b8c157c73294695241
diff --git a/lang/gcc-ssp/files/buffer.c b/lang/gcc-ssp/files/buffer.c
deleted file mode 100644
index 6ed98127938..00000000000
--- a/lang/gcc-ssp/files/buffer.c
+++ /dev/null
@@ -1,9 +0,0 @@
-/* $NetBSD: buffer.c,v 1.1 2001/06/30 16:16:11 kent Exp $ */
-
-#include <stdio.h>
-
-int main(int argc, char* argv[]) {
- char buffer[10];
- strcpy(buffer, argv[1]);
- return 0;
-}
diff --git a/lang/gcc-ssp/files/gcc.mk b/lang/gcc-ssp/files/gcc.mk
deleted file mode 100644
index 4d7d2ab586f..00000000000
--- a/lang/gcc-ssp/files/gcc.mk
+++ /dev/null
@@ -1,7 +0,0 @@
-# $NetBSD: gcc.mk,v 1.4 2003/08/09 12:43:03 seb Exp $
-#
-# make configuration file for @PKGNAME_NOREV@
-
-CC= @GCC_PREFIX@/bin/cc
-CPP= @GCC_PREFIX@/bin/cpp
-CXX= @GCC_PREFIX@/bin/c++