git: b23ffb8dccae - main - lang/icc: Remove expired port

From: Rene Ladan <rene_at_FreeBSD.org>
Date: Mon, 01 Jul 2024 20:22:43 UTC
The branch main has been updated by rene:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b23ffb8dccae4d2db9fa69aed242f64e5a0867b3

commit b23ffb8dccae4d2db9fa69aed242f64e5a0867b3
Author:     Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2024-07-01 20:22:23 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2024-07-01 20:22:23 +0000

    lang/icc: Remove expired port
    
    2024-07-01 lang/icc: This version is EOL since a long time, i386 only, and the current clang based Intel oneAPI DPC++/C++ seems to work
---
 MOVED                                      |   1 +
 lang/Makefile                              |   1 -
 lang/icc/Makefile                          | 196 ------
 lang/icc/distinfo                          |   2 -
 lang/icc/files/_types.h                    |  49 --
 lang/icc/files/assert_fail.c               |  38 --
 lang/icc/files/cdefs.h                     |  20 -
 lang/icc/files/cxa_atexit.c                | 213 -------
 lang/icc/files/errno_location.c            |  35 --
 lang/icc/files/exclude                     |  78 ---
 lang/icc/files/exclude_noportdocs          |   7 -
 lang/icc/files/ld.c                        | 342 -----------
 lang/icc/files/mcount.S                    |  32 -
 lang/icc/files/patch-bin__icc              |  65 --
 lang/icc/files/patch-bin__icpc             |  68 ---
 lang/icc/files/patch-include__c++__cstdio  |  67 ---
 lang/icc/files/patch-include__c++__cstdlib |  11 -
 lang/icc/files/patch-include__c++__cwchar  |  61 --
 lang/icc/files/patch-include__c++__yvals.h | 392 ------------
 lang/icc/files/patch-include__dvec.h       |  24 -
 lang/icc/files/patch-include__fvec.h       |  24 -
 lang/icc/files/patch-include__ivec.h       |  24 -
 lang/icc/files/patch-include__mathimf.h    | 348 -----------
 lang/icc/files/patch-include__xmmintrin.h  |  11 -
 lang/icc/files/pkg-message.in              |  36 --
 lang/icc/files/stdarg.h                    |  13 -
 lang/icc/files/stderr.c                    |  30 -
 lang/icc/files/stdin.c                     |  30 -
 lang/icc/files/stdout.c                    |  30 -
 lang/icc/pkg-descr                         |   1 -
 lang/icc/pkg-plist                         | 916 -----------------------------
 31 files changed, 1 insertion(+), 3164 deletions(-)

diff --git a/MOVED b/MOVED
index b68ad9a489e3..65facdca92cf 100644
--- a/MOVED
+++ b/MOVED
@@ -3373,3 +3373,4 @@ security/p5-Protocol-ACME||2024-06-30|Has expired: upstream maintainer indicated
 graphics/wdune||2024-06-30|Has expired: upstream no longer maintained
 www/zend-framework||2024-06-30|Has expired: Deprecated by upstream, and moved to Laminas Project
 sysutils/torque||2024-06-30|Has expired: unfetchable, upstream no longer open source
+lang/icc||2024-07-01|Has expired: This version is EOL since a long time, i386 only, and the current clang based Intel oneAPI DPC++/C++ seems to work
diff --git a/lang/Makefile b/lang/Makefile
index 94ebd533414e..7a8e3173eb9b 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -145,7 +145,6 @@
     SUBDIR += hs-koka
     SUBDIR += hs-unlambda
     SUBDIR += huc
-    SUBDIR += icc
     SUBDIR += inko
     SUBDIR += intel-compute-runtime
     SUBDIR += intercal
diff --git a/lang/icc/Makefile b/lang/icc/Makefile
deleted file mode 100644
index b59eb68cd226..000000000000
--- a/lang/icc/Makefile
+++ /dev/null
@@ -1,196 +0,0 @@
-PORTNAME=	icc
-PORTVERSION=	8.1.038
-PORTREVISION=	3
-CATEGORIES=	lang linux devel
-MASTER_SITES=	#empty
-DISTNAME=	l_cc_pc_${PORTVERSION:C/p.+$//}
-DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
-
-# netchild@FreeBSD.org is willing to review patches and to provide background
-# infos regarding this port
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	Intel C/C++ compiler, set up to produce native FreeBSD binaries
-WWW=		https://software.intel.com/en-us/c-compilers
-
-LICENSE=	EPL LGPL21 INTEL
-LICENSE_COMB=	multi
-LICENSE_NAME_INTEL=	Intel
-LICENSE_TEXT_INTEL=	Intel forbids any redistribution.
-LICENSE_PERMS_INTEL=	auto-accept
-
-DEPRECATED=	This version is EOL since a long time, i386 only, and the current clang based Intel oneAPI DPC++/C++ seems to work.
-EXPIRATION_DATE=2024-07-01
-
-EXTRACT_DEPENDS=	rpm2cpio.pl:archivers/rpm2cpio
-
-USES=		linux
-USE_LINUX=	base
-
-PATCHLEVEL=	${PORTVERSION:C/(.+p)(.+)$/pe\2/}
-.if ${PORTVERSION} != ${PATCHLEVEL}
-DISTFILES+=	${DISTNAME} ${PATCHLEVEL}${EXTRACT_SUFX}
-USE_LINUX+=	base:patch
-.endif
-
-ONLY_FOR_ARCHS=	i386
-
-USE_LDCONFIG=	yes
-
-COMPILERDIR=	intel_cc_80
-PLIST_SUB=	COMPILERDIR=${COMPILERDIR}
-PATCH_WRKSRC=	${WRKSRC}/opt/${COMPILERDIR}
-
-OPTIONS_DEFINE=	DOCS
-
-DOCS=	BEA_License_Agreement.txt Disclaimer.txt flex_ug.pdf
-ICC_SITE=	https://software.intel.com/en-us/intel-compilers/
-
-SUB_FILES=	pkg-message
-SUB_LIST+=	PKGNAME=${PKGNAME} \
-		COMPILERDIR=${COMPILERDIR} \
-		MAINTAINER=${MAINTAINER}
-
-.include <bsd.port.pre.mk>
-
-EXTRACT_AFTER_ARGS=	--exclude cdt-\*.zip \
-			--exclude eclipse-platform\*.zip \
-			--exclude intel-icc_ide\*.rpm \
-			--exclude intel-iidb\*.rpm \
-			--exclude intel-isubh\*.rpm \
-			--exclude sdp-core-\*.zip \
-			--exclude \*ia64.rpm \
-			--exclude flexlm64
-
-ICCCFGVAL_CMD=	${UNAME} -r | ${SED} -e 's/\..*//'
-
-GCCCOMPATVER=	340
-GXXINCLUDE=	/usr/include/c++/${GCCCOMPATVER:C/([0-9])([0-9]).+/\1.\2/}
-
-.for f in ${DISTFILES}
-.if !exists(${DISTDIR}/${f})
-IGNORE=	go to Intel Premier Support \(https://premier.intel.com/\) to obtain ${DISTFILES}. Product updates such as this compiler are posted regularly on Premier Support. You must have a license to obtain access to Premier Support. If you do not already have a license go to ${ICC_SITE} to review licensing options \(evaluation, commercial, and free non-commercial\) and obtain a license. Put ${DISTFILES} into ${DISTDIR} and run make again
-.endif
-.endfor
-
-.if exists(${LINUXBASE}/boot/kernel.h)
-BROKEN=	cannot coexist with linux_devtools
-.endif
-
-post-extract:
-	cd ${WRKSRC} && rpm2cpio.pl 2>/dev/null *.rpm | ${CPIO} -idu --quiet
-
-intel-patch: extract
-# Apply patches from Intel.
-.if ${PORTVERSION} != ${PATCHLEVEL}
-	${BRANDELF} -t Linux ${WRKSRC}_${PATCHLEVEL}/papply
-	${WRKSRC}_${PATCHLEVEL}/papply ${WRKSRC}_${PATCHLEVEL}/icc.rtp \
-		${WRKSRC}/opt/${COMPILERDIR}
-.endif
-
-pre-patch: intel-patch
-# Remove files we do not need on FreeBSD.
-	for i in `${CAT} ${FILESDIR}/exclude`; do \
-		${RM} -r ${WRKSRC}/opt/${COMPILERDIR}/$$i; done
-.if ! ${PORT_OPTIONS:MDOCS}
-# Remove docs.
-	for i in `${CAT} ${FILESDIR}/exclude_noportdocs`; do \
-		${RM} -r ${WRKSRC}/opt/${COMPILERDIR}/$$i; done
-.endif
-# Remove unneeded/unsafe access rights.
-.for i in doc include lib
-	${FIND} ${WRKSRC}/opt/${COMPILERDIR}/${i} -type f -print0 | \
-		${XARGS} -0 ${CHMOD} a-x,og-w
-.endfor
-	${FIND} ${WRKSRC}/opt -type d -print0 | ${XARGS} -0 ${CHMOD} go-w
-	${CHMOD} a-x ${WRKSRC}/opt/${COMPILERDIR}/bin/Errormatch.txt
-
-post-patch:
-# Correct some paths and patch some files
-.for i in icc iccvars.csh iccvars.sh icpc
-	${REINPLACE_CMD} -i "" -e 's:%%ICC_LOCALBASE%%:${LOCALBASE}:g; \
-		s:\<INSTALLDIR\>:${PREFIX}/${COMPILERDIR}:g; \
-		s:%%GXX_INCLUDE%%:${GXXINCLUDE}:g; \
-		s:man -w:manpath -q:g' ${WRKSRC}/opt/${COMPILERDIR}/bin/${i}
-	${CHMOD} 755 ${WRKSRC}/opt/${COMPILERDIR}/bin/${i}
-.endfor
-.if ${PORTVERSION} != ${PATCHLEVEL}
-	${REINPLACE_CMD} -i "" -e \
-		's:\<installpackageid\>:${DISTNAME}_${PATCHLEVEL}:g' \
-		${WRKSRC}/opt/${COMPILERDIR}/doc/csupport
-.else
-	${REINPLACE_CMD} -i "" -e 's:\<installpackageid\>:${DISTNAME}:g' \
-		${WRKSRC}/opt/${COMPILERDIR}/doc/csupport
-.endif
-	${RM} ${WRKSRC}/opt/${COMPILERDIR}/include/*.orig
-	${RM} ${WRKSRC}/opt/${COMPILERDIR}/include/c++/*.orig
-.for i in icc.orig icpc.orig
-	${RM} ${WRKSRC}/opt/${COMPILERDIR}/bin/${i}
-.endfor
-# Provide a more FreeBSD'ish compile environment
-.for i in icc.cfg icpc.cfg
-	${ECHO_CMD} -e "-Qlocation,ld,${PREFIX}/${COMPILERDIR}/bin/ldwrapper\n\n-wr1125\n-we140\n\n-Ulinux\n-U__linux__\n-U__linux\n-U__gnu_linux__\n\n-D__FreeBSD__=$$(${ICCCFGVAL_CMD})\n\n" >>${WRKSRC}/opt/${COMPILERDIR}/bin/${i}
-	${ECHO_CMD} -e "-D__wchar_t=__ct_rune_t\n" >>${WRKSRC}/opt/${COMPILERDIR}/bin/${i}
-	${ECHO_CMD} -e "-restrict\n" >>${WRKSRC}/opt/${COMPILERDIR}/bin/${i}
-	${CHMOD} a-x,g-w ${WRKSRC}/opt/${COMPILERDIR}/bin/${i}
-.endfor
-# C++ hack for icpc
-	${ECHO_CMD} -e "-gcc-version=${GCCCOMPATVER}\n-cxxlib-gcc\n" \
-		>>${WRKSRC}/opt/${COMPILERDIR}/bin/icpc.cfg
-	cd ${WRKSRC}/opt/${COMPILERDIR}/bin/ && ${LN} -s icc.cfg iccbin.cfg \
-		&& ${LN} -s icpc.cfg icpcbin.cfg
-
-OBJCOPY_OPS=	--redefine-sym stdin=__stdinp \
-		--redefine-sym stdout=__stdoutp \
-		--redefine-sym stderr=__stderrp
-
-do-build:
-# Use the Linux ABI for the binaries
-.for i in codecov iccbin iccfilt icpcbin icpi mcpcom prelink profmerge \
-	proforder profrun pronto_tool tselect xiar xild
-	${BRANDELF} -t Linux ${WRKSRC}/opt/${COMPILERDIR}/bin/${i}
-.endfor
-# Fix unresolved references
-	cd ${WRKSRC} && ${CC} ${CFLAGS} -c ${FILESDIR}/assert_fail.c \
-		${FILESDIR}/errno_location.c ${FILESDIR}/mcount.S
-.for i in libcxa.a libcxaguard.a libimf.a libirc.a libirc_s.a libsvml.a \
-	libunwind.a
-	${OBJCOPY} --redefine-sym __sigsetjmp=sigsetjmp \
-		${OBJCOPY_OPS} \
-		${WRKSRC}/opt/${COMPILERDIR}/lib/${i}
-.endfor
-	${AR} cr ${WRKSRC}/opt/${COMPILERDIR}/lib/libiccfbsd.a ${WRKSRC}/*.o
-# Some magic to be able to link
-	${MKDIR} ${WRKSRC}/opt/${COMPILERDIR}/bin/ldwrapper
-	${CC} ${CFLAGS} -o \
-		${WRKSRC}/opt/${COMPILERDIR}/bin/ldwrapper/ld \
-		${FILESDIR}/ld.c
-	${STRIP_CMD} ${WRKSRC}/opt/${COMPILERDIR}/bin/ldwrapper/ld
-	${CHMOD} 755 ${WRKSRC}/opt/${COMPILERDIR}/bin/ldwrapper/ld
-# Make ICC happy with regards to crtbegin.o, crtend.o and libgcc.a which it
-# expects to find in GXX_ROOT.
-.for f in crtbegin.o crtend.o libgcc.a
-	cd ${WRKSRC}/opt/${COMPILERDIR}/lib && ${LN} -s /usr/lib/${f} ${f}
-.endfor
-# The static linking case expects a crtbeginT.o. Based upon inspection of
-# /usr/src/contrib/gnu/crtstuff.c it seems it's the same as crtbegin.o.
-	cd ${WRKSRC}/opt/${COMPILERDIR}/lib && ${LN} -s crtbegin.o crtbeginT.o
-
-do-install:
-	cd ${WRKSRC}/opt && ${FIND} . -print | \
-		${CPIO} -pdu --quiet ${STAGEDIR}${PREFIX}
-
-	${MV} ${STAGEDIR}${PREFIX}/${COMPILERDIR}/man/man1/icc.1 ${STAGEDIR}${PREFIX}/man/man1
-	${RM} -r ${STAGEDIR}${PREFIX}/${COMPILERDIR}/man
-
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${STAGEDIR}${DOCSDIR}
-	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
-	${MV} ${STAGEDIR}${PREFIX}/${COMPILERDIR}/doc/* ${STAGEDIR}${DOCSDIR}
-	${RM} -r ${STAGEDIR}${PREFIX}/${COMPILERDIR}/doc
-.else
-	${MKDIR} ${STAGEDIR}${DOCSDIR}
-	${MV} ${STAGEDIR}${PREFIX}/${COMPILERDIR}/doc/* ${STAGEDIR}${DOCSDIR}
-	${RM} -r ${STAGEDIR}${PREFIX}/${COMPILERDIR}/doc
-.endif
-
-.include <bsd.port.post.mk>
diff --git a/lang/icc/distinfo b/lang/icc/distinfo
deleted file mode 100644
index 8623c121fd26..000000000000
--- a/lang/icc/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (l_cc_pc_8.1.038.tar.gz) = e5e725d0563e702ca5ceb80fad42bbca15ce4ccd53f8fa32ef689d856605d0dd
-SIZE (l_cc_pc_8.1.038.tar.gz) = 137698940
diff --git a/lang/icc/files/_types.h b/lang/icc/files/_types.h
deleted file mode 100644
index b14b9ed70e02..000000000000
--- a/lang/icc/files/_types.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/*-
- * Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
- * Copyright (c) 1990, 1993
- *	The Regents of the University of California.  All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *	This product includes software developed by the University of
- *	California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- *	From: @(#)ansi.h	8.2 (Berkeley) 1/4/94
- *	From: @(#)types.h	8.3 (Berkeley) 1/5/94
- *	From: FreeBSD: src/sys/i386/include/_types.h,v 1.9 2004/03/20 20:41:40 marcel Exp
- */
-
-#ifndef __INTEL_COMPILER_MACHINE__TYPES_H_
-#define	__INTEL_COMPILER_MACHINE__TYPES_H_
-
-#include_next <machine/_types.h>
-
-#if defined(__GNUC__) && !defined(__GNUC_VA_LIST) && !defined(__NO_GNUC_VA_LIST)
-#define __GNUC_VA_LIST
-typedef __va_list		__gnuc_va_list;	/* compatibility w/GNU headers*/
-#endif
-
-#endif /* !__INTEL_COMPILER_MACHINE__TYPES_H_ */
diff --git a/lang/icc/files/assert_fail.c b/lang/icc/files/assert_fail.c
deleted file mode 100644
index 1aa74794e02c..000000000000
--- a/lang/icc/files/assert_fail.c
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (c) 2002 Marius Strobl
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#include <err.h>
-#include <stdlib.h>
-
-void
-__assert_fail(const char *failedexpr, const char *file, unsigned int line,
-    const char *fn)
-{
-	warnx("assertion \"%s\" failed: file \"%s\", line %u%s%s%s", failedexpr,
-	    file, line, fn ? ", function: \"" : "", fn ? fn : "",
-	    fn ? "\"" : "");
-	abort();
-}
diff --git a/lang/icc/files/cdefs.h b/lang/icc/files/cdefs.h
deleted file mode 100644
index bbf776dc3c72..000000000000
--- a/lang/icc/files/cdefs.h
+++ /dev/null
@@ -1,20 +0,0 @@
-#ifndef	__INTEL_COMPILER_SYS_CDEFS_H_
-#define	__INTEL_COMPILER_SYS_CDEFS_H_
-
-#ifndef	__GNUC__
-#define	__INTEL_COMPILER_NO_GNUC_DEFINED
-#define	__GNUC__		3
-#define	__GNUC_MINOR__		2
-#define	__GNUC_PATCHLEVEL__	0
-#endif
-
-#include_next <sys/cdefs.h>
-
-#ifdef	__INTEL_COMPILER_NO_GNUC_DEFINED
-#undef	__GNUC__
-#undef	__GNUC_MINOR__
-#undef	__GNUC_PATCHLEVEL__
-#undef	__INTEL_COMPILER_NO_GNUC_DEFINED
-#endif
-
-#endif /* !__INTEL_COMPILER_SYS_CDEFS_H_ */
diff --git a/lang/icc/files/cxa_atexit.c b/lang/icc/files/cxa_atexit.c
deleted file mode 100644
index 85aa199603d2..000000000000
--- a/lang/icc/files/cxa_atexit.c
+++ /dev/null
@@ -1,213 +0,0 @@
-/* Based on code marked: */
-
-/*-
- * Copyright (c) 1990, 1993
- *	The Regents of the University of California.  All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * Chris Torek.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *	This product includes software developed by the University of
- *	California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
- *    may be used to endorse or promote products derived from this software
- *    without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * from: FreeBSD: src/lib/libc/stdlib/atexit.c,v 1.7 2003/12/19 17:11:20 kan Exp
- *
- */
-
-/*
- * Copyright (c) 2004 Marius Strobl <marius@alchemy.franken.de>.
- * All rights reserved.
- *
- * The same license as above applies. If clause 3 of the license in the
- * above mentioned file gets removed this file should follow and this
- * sentence should get removed.
- *
- */
-
-#include <sys/cdefs.h>
-
-#include <stddef.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <osreldate.h>
-
-#if __FreeBSD_version >= 502101
-	#error "Not required on this version of FreeBSD."
-#endif
-
-#define	ATEXIT_FN_EMPTY	0
-#define	ATEXIT_FN_STD	1
-#define	ATEXIT_FN_CXA	2
-
-/* must be at least 32 to guarantee ANSI conformance */
-#define	ATEXIT_SIZE	32
-
-extern int __isthreaded;
-
-#if __FreeBSD_version < 500016
-typedef struct {
-	volatile long	access_lock;
-	volatile long	lock_owner;
-	volatile char	*fname;
-	volatile int	lineno;
-} spinlock_t;
-
-#define	_SPINLOCK_INITIALIZER	{ 0, 0, 0, 0 }
-
-#define	_SPINUNLOCK(_lck)	(_lck)->access_lock = 0
-#ifdef	_LOCK_DEBUG
-#define	_SPINLOCK(_lck)		_spinlock_debug(_lck, __FILE__, __LINE__)
-#else
-#define	_SPINLOCK(_lck)		_spinlock(_lck)
-#endif
-
-static spinlock_t thread_lock = _SPINLOCK_INITIALIZER;
-
-#define _ATEXIT_LOCK()		if (__isthreaded) _SPINLOCK(&thread_lock);
-#define _ATEXIT_UNLOCK()	if (__isthreaded) _SPINUNLOCK(&thread_lock);
-#else
-#include <pthread.h>
-
-static pthread_mutex_t atexit_mutex = PTHREAD_MUTEX_INITIALIZER;
-
-#define _ATEXIT_LOCK()		if (__isthreaded) \
-				_pthread_mutex_lock(&atexit_mutex)
-#define _ATEXIT_UNLOCK()	if (__isthreaded) \
-				_pthread_mutex_unlock(&atexit_mutex)
-#endif
-
-struct atexit {
-	struct atexit *next;			/* next in list */
-	int ind;				/* next index in this table */
-	struct atexit_fn {
-		int fn_type;			/* ATEXIT_? from above */
-		union {
-			void (*std_func)(void);
-			void (*cxa_func)(void *);
-		} fn_ptr;			/* function pointer */
-		void *fn_arg;			/* argument for CXA callback */
-		void *fn_dso;			/* shared module handle */
-	} fns[ATEXIT_SIZE];			/* the table itself */
-};
-
-static struct atexit *__atexit;		/* points to head of LIFO stack */
-
-/*
- * Register the function described by 'fptr' to be called at application
- * exit or owning shared object unload time. This is a helper function
- * for atexit and __cxa_atexit.
- */
-static int
-atexit_register(struct atexit_fn *fptr)
-{
-	static struct atexit __atexit0;	/* one guaranteed table */
-	struct atexit *p;
-
-	_ATEXIT_LOCK();
-	if ((p = __atexit) == NULL)
-		__atexit = p = &__atexit0;
-	else while (p->ind >= ATEXIT_SIZE) {
-		struct atexit *old__atexit;
-		old__atexit = __atexit;
-	        _ATEXIT_UNLOCK();
-		if ((p = (struct atexit *)malloc(sizeof(*p))) == NULL)
-			return (-1);
-		_ATEXIT_LOCK();
-		if (old__atexit != __atexit) {
-			/* Lost race, retry operation */
-			_ATEXIT_UNLOCK();
-			free(p);
-			_ATEXIT_LOCK();
-			p = __atexit;
-			continue;
-		}
-		p->ind = 0;
-		p->next = __atexit;
-		__atexit = p;
-	}
-	p->fns[p->ind++] = *fptr;
-	_ATEXIT_UNLOCK();
-	return 0;
-}
-
-/*
- * Register a function to be performed at exit or when an shared object
- * with given dso handle is unloaded dynamically.
- */
-int
-__cxa_atexit(void (*func)(void *), void *arg, void *dso)
-{
-	struct atexit_fn fn;
-	int error;
-
-	fn.fn_type = ATEXIT_FN_CXA;
-	fn.fn_ptr.cxa_func = func;;
-	fn.fn_arg = arg;
-	fn.fn_dso = dso;
-
- 	error = atexit_register(&fn);	
-	return (error);
-}
-
-/*
- * Call all handlers registered with __cxa_atexit for the shared
- * object owning 'dso'.  Note: if 'dso' is NULL, then all remaining
- * handlers are called.
- */
-void
-__cxa_finalize(void *dso)
-{
-	struct atexit *p;
-	struct atexit_fn fn;
-	int n;
-
-	_ATEXIT_LOCK();
-	for (p = __atexit; p; p = p->next) {
-		for (n = p->ind; --n >= 0;) {
-			if (p->fns[n].fn_type == ATEXIT_FN_EMPTY)
-				continue; /* already been called */
-			if (dso != NULL && dso != p->fns[n].fn_dso)
-				continue; /* wrong DSO */
-			fn = p->fns[n];
-			/*
-			  Mark entry to indicate that this particular handler
-			  has already been called.
-			*/
-			p->fns[n].fn_type = ATEXIT_FN_EMPTY;
-		        _ATEXIT_UNLOCK();
-		
-			/* Call the function of correct type. */
-			if (fn.fn_type == ATEXIT_FN_CXA)
-				fn.fn_ptr.cxa_func(fn.fn_arg);
-			else if (fn.fn_type == ATEXIT_FN_STD)
-				fn.fn_ptr.std_func();
-			_ATEXIT_LOCK();
-		}
-	}
-	_ATEXIT_UNLOCK();
-}
diff --git a/lang/icc/files/errno_location.c b/lang/icc/files/errno_location.c
deleted file mode 100644
index fbc8b45159d2..000000000000
--- a/lang/icc/files/errno_location.c
+++ /dev/null
@@ -1,35 +0,0 @@
-/*-
- * Copyright (c) 2000 Andrew Gallatin and David O'Brien
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * copied over from: FreeBSD: ports/lang/compaq-cc/files/errno_location.c,v 1.1 2000/12/08 13:27:29 obrien Exp
- */
-
-#include <errno.h>
-
-int *
-__errno_location(void)
-{
-	return &errno;
-}
diff --git a/lang/icc/files/exclude b/lang/icc/files/exclude
deleted file mode 100644
index 40278da8a9ce..000000000000
--- a/lang/icc/files/exclude
+++ /dev/null
@@ -1,78 +0,0 @@
-bin/uninstall.sh
-include/c++/algorithm
-include/c++/alt
-include/c++/backward
-include/c++/bitset
-include/c++/complex
-include/c++/deque
-include/c++/ext
-include/c++/fstream
-include/c++/functional
-include/c++/iomanip
-include/c++/ios
-include/c++/iosfwd
-include/c++/iostream
-include/c++/istream
-include/c++/iterator
-include/c++/limits
-include/c++/list
-include/c++/locale
-include/c++/map
-include/c++/memory
-include/c++/numeric
-include/c++/ostream
-include/c++/queue
-include/c++/set
-include/c++/sstream
-include/c++/stack
-include/c++/stdexcept
-include/c++/streambuf
-include/c++/string
-include/c++/utility
-include/c++/valarray
-include/c++/vector
-include/c++/xcomplex
-include/c++/xdebug
-include/c++/xhash
-include/c++/xiosbase
-include/c++/xlocale
-include/c++/xlocinfo
-include/c++/xlocinfo.h
-include/c++/xlocmes
-include/c++/xlocmon
-include/c++/xlocnum
-include/c++/xloctime
-include/c++/xmemory
-include/c++/xstring
-include/c++/xthreads
-include/c++/xtree
-include/c++/xutility
-include/c++/ymath.h
-include/c++/xmtx.h
-include/float.h
-include/iso646.h
-include/limits.h
-include/mathf.h
-include/omp.h
-include/stdarg.h
-include/stdbool.h
-include/stddef.h
-include/syslimits.h
-include/varargs.h
-include/xarg.h
-lib/libcprts.a
-lib/libcprts.so
-lib/libcprts.so.5
-lib/libcxa.so
-lib/libcxa.so.5
-lib/libcxaguard.so
-lib/libcxaguard.so.5
-lib/libguide.a
-lib/libguide.so
-lib/libguide_stats.a
-lib/libguide_stats.so
-lib/libompstub.a
-lib/libsvml.so
-lib/libunwind.so
-lib/libunwind.so.5
-man/man1/icpc.1
diff --git a/lang/icc/files/exclude_noportdocs b/lang/icc/files/exclude_noportdocs
deleted file mode 100644
index f66878f3a50a..000000000000
--- a/lang/icc/files/exclude_noportdocs
+++ /dev/null
@@ -1,7 +0,0 @@
-doc/C++ReleaseNotes.htm
-doc/c_ug
-doc/c_ug_lnx.pdf
-doc/ccompindex.htm
-doc/flex_ug.pdf
-doc/icpi.htm
-doc/training
diff --git a/lang/icc/files/ld.c b/lang/icc/files/ld.c
deleted file mode 100644
index a6e3c5907c23..000000000000
--- a/lang/icc/files/ld.c
+++ /dev/null
@@ -1,342 +0,0 @@
-/*
- * Copyright (c) 2002-2004 Marius Strobl
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * Wrapper for Intel(R) C/C++ Compiler for Linux to allow linking of native
- * FreeBSD binaries.
- * Based on a shell-script written by Dan Nelson <dnelson@allantgroup.com>
- * with some modifications by Alexander Leidinger <netchild@FreeBSD.org>.
- *
- */
-
-#include <sys/cdefs.h>
-
-#include <err.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <osreldate.h>
-
-#define	PATH_LD	"/usr/bin/ld"
-
-#define	LDW_CXXICC	(1<<0)
-#define	LDW_DYN		(1<<1)
-#define	LDW_GPROF	(1<<2)
-#define	LDW_PIC		(1<<3)
-#define	LDW_STLP	(1<<4)
-#define	LDW_THR		(1<<5)
-
-struct arglist {
-	size_t argc;
-	const char **argv;
-};
-
-static void addarg(struct arglist *al, const char *arg);
-int main(int argc, char *argv[], char *envp[]);
-
-static void
-addarg(struct arglist *al, const char *arg)
-{
-	const char **argv2;
-
-	argv2 = realloc(al->argv, (al->argc + 1) * sizeof(al->argv[0]));
-
-	if (argv2 == NULL)
-		err(1, NULL);
-
-	al->argv = argv2;
-
-	al->argv[al->argc++] = arg;
-}
-
-int
-main(int argc, char *argv[], char *envp[])
-{
-	size_t i;
-	u_int flags;
-	const char *libc, *libthr, *icc_localbase;
-	struct arglist al = { 0, NULL };
-
-	flags = 0;
-
-	if (argc == 1)
-		errx(1, "no input files");
-
-	if ((icc_localbase = getenv("ICC_LOCALBASE")) == NULL)
-		errx(1, "can't get ICC_LOCALBASE");
-
-#ifdef DEBUG
-	printf("input: ");
-#endif
-
-#define	ARGCMP(i, x)	!strcmp(argv[i], (x))
-
-	/*
-	 * XXX This doesn't deal with whitespace but a) the output of the
-	 *     compiler should be fixed and b) the real linker is also picky
-	 *     about whitespace.
-	 */
-	for (i = 0; i < argc; i++) {
-#ifdef DEBUG
-		printf("%s ", argv[i]);
-#endif
-
-	 	if (ARGCMP(i, "-CPLUSPLUS")) {
-			flags |= LDW_CXXICC;
-			continue;
-	    	}
-
-	 	if (ARGCMP(i, "-MT")) {
-			flags |= LDW_THR;
-			continue;
-	    	}
-
-	 	if (ARGCMP(i, "-PIC")) {
-			flags |= LDW_PIC;
-			continue;
-	    	}
-
-		/*
-		 * Check if the compiler wants us to do dynamic linking, i.e.
-		 * the compiler was called with -shared or without -static.
-		 * If the compiler was called with -static we shouldn't see
-		 * "--dynamic-linker" here.
-		 * Note: According to ld(1) this is "--dynamic-linker" but
-		 *	 ICC passes "-dynamic-linker" to it.
-		 */
-		if (ARGCMP(i, "--dynamic-linker") ||
-		    ARGCMP(i, "-dynamic-linker") || ARGCMP(i, "-shared")) {
-			flags |= LDW_DYN;
-			continue;
-		}
-
-		/*
-		 * The STLport library just can be linked once otherwise
-		 * we get problems with constructors and destructors of
-		 * global instances.
-		 */
-		if (!strncmp(argv[i], "-lstlport_icc",
-		    sizeof("-lstlport_icc") - 1)) {
-			flags |= LDW_STLP;
-			continue;
-		}
-
-		/*
-		 * Link against libc_p when "-qp" or "-p" were given,
-		 * "/usr/lib/gcrt1.o" indicates this.
-		 */
-		if (ARGCMP(i, "/usr/lib/gcrt1.o")) {
-			flags |= LDW_GPROF;
-			continue;
-		}
-	}
-
-	/*
-	 * Allow the user to specify an alternative threads library
-	 * implementation, such as -lthr, or whatever.
-	 */
-#if __FreeBSD_version >= 500016
-	if ((libthr = getenv("PTHREAD_LIBS")) == NULL)
-#if __FreeBSD_version >= 502102
-		libthr = "-lpthread";
-#else
-		libthr = "-lc_r";
-#endif
-#else
-	libthr = "-lc_r";
-#endif
-	/*
-	 * Use the appropriate libs for libc and libthr when linking static
-	 * and "-KPIC" or "-pg" where given.
-	 */
-	if (!(flags & LDW_DYN) && flags & (LDW_PIC | LDW_GPROF)) {
-		/*
-		 * Let libc_p win above libc_pic when both, "-KPIC" and "-pg",
-		 * where given, GCC does the same.
-		 */
-		if (!(flags & LDW_GPROF))
-			libc = "-lc_pic";
-		else {
-			char *p;
-
-			libc = "-lc_p";
-			asprintf(&p, "%s_p", libthr);
-			if (p == NULL)
-				err(1, NULL);
-			libthr = p;
-		}
-	} else
-		libc = "-lc";
-
-#ifdef DEBUG
-	printf("\n");
-#endif
-
-	for (i = 0; i < argc; i++) {
-	 	if (ARGCMP(i, "-CPLUSPLUS") || ARGCMP(i, "-MT") ||
-		    ARGCMP(i, "-PIC"))
-			continue;
-
-		/*
-		 * Prepend "-melf_i386" and "-melf_i386_fbsd" respectively
-		 * to the commandline.
-		 */
-		if (i == 0) {
-			addarg(&al, argv[0]);
-#if __FreeBSD_version < 500042
-			addarg(&al, "-melf_i386");
-#else
-			addarg(&al, "-melf_i386_fbsd");
-#endif
-			continue;
-		}
-
-		/*
-		 * Don't add "-m elf_i386" ICC passed to us. Don't add
-		 * libgcc_eh, libgcc_s or libgcc_s_32, libdl.
-		 */
-		if ((ARGCMP(i, "-m") && i < argc - 1 && ARGCMP(i + 1,
-		    "elf_i386")) || (ARGCMP(i, "elf_i386") && i != 0 &&
*** 2418 LINES SKIPPED ***