pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang Retire gcc-ssp.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/03fb00b4a8a9
branches:  trunk
changeset: 571255:03fb00b4a8a9
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Feb 10 17:11:36 2010 +0000

description:
Retire gcc-ssp.

diffstat:

 lang/Makefile               |    3 +-
 lang/gcc-ssp/DESCR          |   23 -------
 lang/gcc-ssp/MESSAGE        |    9 --
 lang/gcc-ssp/Makefile       |  144 --------------------------------------------
 lang/gcc-ssp/PLIST          |    6 -
 lang/gcc-ssp/distinfo       |   19 -----
 lang/gcc-ssp/files/buffer.c |    9 --
 lang/gcc-ssp/files/gcc.mk   |    7 --
 8 files changed, 1 insertions(+), 219 deletions(-)

diffs (262 lines):

diff -r 2f30257c3b27 -r 03fb00b4a8a9 lang/Makefile
--- a/lang/Makefile     Wed Feb 10 17:10:52 2010 +0000
+++ b/lang/Makefile     Wed Feb 10 17:11:36 2010 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.282 2010/01/28 07:14:28 jnemeth Exp $
+# $NetBSD: Makefile,v 1.283 2010/02/10 17:11:36 joerg Exp $
 #
 
 COMMENT=       Programming languages
@@ -45,7 +45,6 @@
 SUBDIR+=       gauche
 SUBDIR+=       gawk
 SUBDIR+=       gcc
-SUBDIR+=       gcc-ssp
 SUBDIR+=       gcc3
 SUBDIR+=       gcc3-ada
 SUBDIR+=       gcc3-c
diff -r 2f30257c3b27 -r 03fb00b4a8a9 lang/gcc-ssp/DESCR
--- a/lang/gcc-ssp/DESCR        Wed Feb 10 17:10:52 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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 -r 2f30257c3b27 -r 03fb00b4a8a9 lang/gcc-ssp/MESSAGE
--- a/lang/gcc-ssp/MESSAGE      Wed Feb 10 17:10:52 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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 -r 2f30257c3b27 -r 03fb00b4a8a9 lang/gcc-ssp/Makefile
--- a/lang/gcc-ssp/Makefile     Wed Feb 10 17:10:52 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,144 +0,0 @@
-# $NetBSD: Makefile,v 1.50 2009/06/14 22:58:01 joerg 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@localhost
-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 DragonFly-*-*
-
-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 pax
-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}
-
-.include "../../mk/bsd.pkg.mk"
-
-# Make bootstrap with compiler != gcc possible.
-LDFLAGS=               ${_STRIPFLAG_CC}
diff -r 2f30257c3b27 -r 03fb00b4a8a9 lang/gcc-ssp/PLIST
--- a/lang/gcc-ssp/PLIST        Wed Feb 10 17:10:52 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-@comment $NetBSD: PLIST,v 1.8 2009/06/14 18:03:32 joerg 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
diff -r 2f30257c3b27 -r 03fb00b4a8a9 lang/gcc-ssp/distinfo
--- a/lang/gcc-ssp/distinfo     Wed Feb 10 17:10:52 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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 -r 2f30257c3b27 -r 03fb00b4a8a9 lang/gcc-ssp/files/buffer.c
--- a/lang/gcc-ssp/files/buffer.c       Wed Feb 10 17:10:52 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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 -r 2f30257c3b27 -r 03fb00b4a8a9 lang/gcc-ssp/files/gcc.mk
--- a/lang/gcc-ssp/files/gcc.mk Wed Feb 10 17:10:52 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -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++



Home | Main Index | Thread Index | Old Index