pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang lang: import gcc10-aux, the gcc10 ada compiler. f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/79d9682e6e89
branches:  trunk
changeset: 375373:79d9682e6e89
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Mar 13 08:34:04 2022 +0000

description:
lang: import gcc10-aux, the gcc10 ada compiler. from irvise in pkgsrc-wip.

diffstat:

 lang/Makefile                                                        |    3 +-
 lang/gcc10-aux/DESCR                                                 |    2 +
 lang/gcc10-aux/Makefile                                              |  210 +++
 lang/gcc10-aux/buildlink3.mk                                         |   24 +
 lang/gcc10-aux/distinfo                                              |   48 +
 lang/gcc10-aux/options.mk                                            |  166 ++
 lang/gcc10-aux/patches/patch-contrib_download__prerequisites         |   17 +
 lang/gcc10-aux/patches/patch-fixincludes_inclhack.def                |   36 +
 lang/gcc10-aux/patches/patch-gcc_Makefile.in                         |   15 +
 lang/gcc10-aux/patches/patch-gcc_ada_Makefile.rtl                    |  147 ++
 lang/gcc10-aux/patches/patch-gcc_ada_adaint.c                        |   88 +
 lang/gcc10-aux/patches/patch-gcc_ada_adaint.h                        |   37 +
 lang/gcc10-aux/patches/patch-gcc_ada_cstreams.c                      |   25 +
 lang/gcc10-aux/patches/patch-gcc_ada_libgnarl_s-osinte____netbsd.adb |  147 ++
 lang/gcc10-aux/patches/patch-gcc_ada_libgnarl_s-osinte____netbsd.ads |  670 ++++++++++
 lang/gcc10-aux/patches/patch-gcc_ada_libgnarl_s-taprop____posix.adb  |   27 +
 lang/gcc10-aux/patches/patch-gcc_ada_libgnat_g-socthi.ads            |   24 +
 lang/gcc10-aux/patches/patch-gcc_ada_libgnat_g-socthi____bsd.adb     |  363 +++++
 lang/gcc10-aux/patches/patch-gcc_ada_libgnat_s-osprim____posix.adb   |   24 +
 lang/gcc10-aux/patches/patch-gcc_ada_s-oscons-tmplt.c                |   94 +
 lang/gcc10-aux/patches/patch-gcc_ada_sysdep.c                        |   42 +
 lang/gcc10-aux/patches/patch-gcc_config.gcc                          |  247 +++
 lang/gcc10-aux/patches/patch-gcc_config.host                         |   15 +
 lang/gcc10-aux/patches/patch-gcc_config_aarch64_aarch64-builtins.c   |   18 +
 lang/gcc10-aux/patches/patch-gcc_config_aarch64_aarch64-netbsd.h     |   18 +
 lang/gcc10-aux/patches/patch-gcc_config_aarch64_driver-aarch64.c     |  184 ++
 lang/gcc10-aux/patches/patch-gcc_config_darwin-driver.c              |   15 +
 lang/gcc10-aux/patches/patch-gcc_config_sparc_sparc.c                |   18 +
 lang/gcc10-aux/patches/patch-gcc_configure                           |   15 +
 lang/gcc10-aux/patches/patch-gcc_ggc-common.c                        |   51 +
 lang/gcc10-aux/patches/patch-gcc_lto_lto.c                           |   19 +
 lang/gcc10-aux/patches/patch-gcc_targhooks.c                         |   17 +
 lang/gcc10-aux/patches/patch-gnattools_configure                     |   18 +
 lang/gcc10-aux/patches/patch-isl_configure                           |   26 +
 lang/gcc10-aux/patches/patch-libffi_configure                        |   16 +
 lang/gcc10-aux/patches/patch-libffi_testsuite_libffi.call_float2.c   |   15 +
 lang/gcc10-aux/patches/patch-libgcc_config.host                      |   15 +
 lang/gcc10-aux/patches/patch-libgcc_crtstuff.c                       |   15 +
 lang/gcc10-aux/patches/patch-libgfortran_io_format.c                 |   17 +
 lang/gcc10-aux/patches/patch-libgfortran_io_io.h                     |   18 +
 lang/gcc10-aux/patches/patch-libgfortran_io_list__read.c             |   17 +
 lang/gcc10-aux/patches/patch-libgfortran_io_read.c                   |   44 +
 lang/gcc10-aux/patches/patch-libgfortran_runtime_environ.c           |   26 +
 lang/gcc10-aux/patches/patch-libquadmath_printf_quadmath-printf.c    |   26 +
 lang/gcc10-aux/patches/patch-libquadmath_strtod_strtod__l.c          |   23 +
 lang/gcc10-aux/patches/patch-libstdc++-v3_libsupc++_new__opa.cc      |   17 +
 lang/gcc10-aux/version.mk                                            |    2 +
 47 files changed, 3120 insertions(+), 1 deletions(-)

diffs (truncated from 3319 to 300 lines):

diff -r 598cd7b69593 -r 79d9682e6e89 lang/Makefile
--- a/lang/Makefile     Sun Mar 13 08:20:03 2022 +0000
+++ b/lang/Makefile     Sun Mar 13 08:34:04 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.639 2022/03/08 00:09:46 wiz Exp $
+# $NetBSD: Makefile,v 1.640 2022/03/13 08:34:04 nia Exp $
 #
 
 COMMENT=       Programming languages
@@ -66,6 +66,7 @@
 SUBDIR+=       gawk
 SUBDIR+=       gcc-aux
 SUBDIR+=       gcc10
+SUBDIR+=       gcc10-aux
 SUBDIR+=       gcc10-libs
 SUBDIR+=       gcc2
 SUBDIR+=       gcc5-aux
diff -r 598cd7b69593 -r 79d9682e6e89 lang/gcc10-aux/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc10-aux/DESCR      Sun Mar 13 08:34:04 2022 +0000
@@ -0,0 +1,2 @@
+The GNU Compiler Collection (GCC) with Ada support. Includes front ends for Ada,
+C, C++ and Fortran.
diff -r 598cd7b69593 -r 79d9682e6e89 lang/gcc10-aux/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc10-aux/Makefile   Sun Mar 13 08:34:04 2022 +0000
@@ -0,0 +1,210 @@
+# $NetBSD: Makefile,v 1.1 2022/03/13 08:34:04 nia Exp $
+
+GCC_PKGNAME=           gcc10-aux
+.include               "version.mk"
+
+DISTNAME=      gcc-${GCC10_DIST_VERSION}
+PKGNAME=       ${GCC_PKGNAME}-${GCC10_DIST_VERSION}
+CATEGORIES=    lang
+MASTER_SITES=  ${MASTER_SITE_GNU:=gcc/gcc-${GCC10_DIST_VERSION}/}
+EXTRACT_SUFX=  .tar.xz
+
+MAINTAINER=    irvise%irvise.xyz@localhost
+HOMEPAGE=      https://gcc.gnu.org/
+COMMENT=       The GNU Compiler Collection (GCC) with Ada support v10
+LICENSE=       gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND gnu-lgpl-v3
+
+DISTFILES=             ${DEFAULT_DISTFILES}
+EXTRACT_ONLY=          ${DEFAULT_DISTFILES}
+
+# Relocations result in a linker error on AArch64, but not x86.
+MKPIE_SUPPORTED=       no
+
+CHECK_RELRO_SKIP+=     ${GCC_PKGNAME}/lib/*
+
+NOT_FOR_PLATFORM=      Interix-*-*
+
+USE_TOOLS+=            gmake makeinfo sed:run tar:build
+USE_TOOLS.NetBSD+=     gsed
+
+GNU_CONFIGURE=         yes
+GNU_CONFIGURE_STRICT=  no
+## Build outside ${WRKSRC}
+OBJDIR=                        ../build
+CONFIGURE_DIRS=                ${OBJDIR}
+CONFIGURE_SCRIPT=      ../${DISTNAME}/configure
+GCC_SUBPREFIX=         ${GCC_PKGNAME}
+GCC_PREFIX=            ${PREFIX}/${GCC_SUBPREFIX}
+GNU_CONFIGURE_PREFIX=  ${GCC_PREFIX}
+INFO_FILES=            yes
+CONFIGURE_ARGS+=       --disable-libstdcxx-pch
+
+UNLIMIT_RESOURCES+=    datasize
+UNLIMIT_RESOURCES+=    stacksize
+
+CHECK_PORTABILITY_SKIP+=       contrib/*
+
+.include "../../mk/bsd.prefs.mk"
+
+LANGS=                 c
+
+# In some cases LINKER_RPATH_FLAG needs a trailing space.
+LINKER_RPATH_FLAG:=    ${LINKER_RPATH_FLAG:S/-rpath/& /}
+
+## The Library rpath to use in end programs.
+LDFLAGS_FOR_TARGET=    ${LDFLAGS:M${COMPILER_RPATH_FLAG}*:N*/usr/lib*} ${LDFLAGS:M-Wl,-z*}
+
+# The "-static-libstdc++ -static-libgcc" flags are normally added to the
+# boot-ldflags by configure but because we are supply the boot-ldflags
+# we mash supply them.
+BOOT_LDFLAGS=          -static-libstdc++ -static-libgcc ${LDFLAGS_FOR_TARGET}
+# Needed on Darwin when LDFLAGS point to a SDK
+BOOT_LDFLAGS+=         ${LDFLAGS:M-Wl,-syslibroot*}
+# GCC does not understand this option; remove it, or stage build will fail
+BUILDLINK_TRANSFORM+=  rm:-stdlib=libc++
+
+# Disable fixincludes on SmartOS, header changes result in broken includes
+# being generated, see https://github.com/joyent/pkgsrc-legacy/issues/270
+.if ${OS_VARIANT} == "SmartOS"
+SUBST_CLASSES+=                fixinc
+SUBST_STAGE.fixinc=    pre-configure
+SUBST_FILES.fixinc=    gcc/Makefile.in
+SUBST_SED.fixinc=      -e "s,\./fixinc.sh,-c true,"
+.endif
+
+.include "options.mk"
+
+## Make gcc6-aux the compiler for the package since we need ada support.
+# This will allow the configure script to use the gnat* packages and gcc
+# with ada support
+PATH=  /sbin:/bin:/usr/sbin:/usr/bin:${PREFIX}/gcc6-aux/bin:${PREFIX}/sbin:${PREFIX}/bin
+CC=    ${PREFIX}/gcc6-aux/bin/gcc
+CXX=   ${PREFIX}/gcc6-aux/bin/g++
+
+## For graphite support.
+.if !empty(PKG_OPTIONS:Mgcc-graphite)
+
+post-extract:
+       ${TAR} -jxf ${DISTDIR}/${ISL16}.tar.bz2 -C ${WRKSRC}
+       ${MV} ${WRKSRC}/${ISL16} ${WRKSRC}/isl
+.endif
+
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-*)
+# on NetBSD, use the native SSP code in libc
+CONFIGURE_ARGS+=       --disable-libssp
+# Match base libstdc++ major
+SUBST_CLASSES+=                libstdc
+SUBST_STAGE.libstdc=   pre-configure
+SUBST_FILES.libstdc=   libstdc++-v3/configure
+SUBST_MESSAGE.libstdc= Bumping libstdc++ major to 7
+SUBST_SED.libstdc=     -e 's,libtool_VERSION=6:,libtool_VERSION=7:,g'
+.else
+CONFIGURE_ARGS+=       --enable-libssp
+.endif
+
+## For target librarys and libjava programs.
+CONFIGURE_ENV+=                LDFLAGS_FOR_TARGET=${LDFLAGS_FOR_TARGET:Q}
+
+CONFIGURE_ARGS+=       --enable-languages=${LANGS:Q}
+CONFIGURE_ARGS+=       --enable-shared
+CONFIGURE_ARGS+=       --enable-long-long
+CONFIGURE_ARGS+=       --with-local-prefix=${GCC_PREFIX:Q}
+CONFIGURE_ARGS+=       --enable-threads=posix
+CONFIGURE_ARGS+=       --with-boot-ldflags=${BOOT_LDFLAGS:Q}
+CONFIGURE_ARGS+=       --with-system-zlib
+CONFIGURE_ARGS+=       --without-zstd
+# multilib on Darwin requires fat-binaries
+CONFIGURE_ARGS.Darwin+=        --disable-multilib
+.if !empty(OSX_SDK_PATH)
+CONFIGURE_ARGS.Darwin+=        --with-sysroot=${OSX_SDK_PATH}
+.endif
+CONFIGURE_ARGS.NetBSD+=        --with-gnu-ld --with-ld=/usr/bin/ld
+CONFIGURE_ARGS.NetBSD+=        --with-gnu-as --with-as=/usr/bin/as
+MAKE_ENV.NetBSD+=      ac_cv_func_clock_gettime=yes
+MAKE_ENV.NetBSD+=      ac_cv_func_gethostbyname_r=no
+MAKE_ENV.NetBSD+=      ac_cv_func_freelocale=no
+MAKE_ENV.NetBSD+=      ac_cv_func_newlocale=no
+MAKE_ENV.NetBSD+=      ac_cv_func_uselocale=no
+MAKE_ENV.SunOS+=       ac_cv_func_mkostemp=no
+
+.if !empty(PKGSRC_COMPILER:Mclang) || ${OPSYS} == "DragonFly"
+CONFIGURE_ARGS+=       --disable-bootstrap
+.endif
+
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-i386) || !empty(MACHINE_PLATFORM:MLinux-*-i386)
+CONFIGURE_ARGS+=       --with-arch=i486 --with-tune=i486
+.endif
+
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-x86_64) || !empty(MACHINE_PLATFORM:MLinux-*-x86_64)
+CONFIGURE_ARGS+=       --with-arch=nocona --with-tune=nocona --with-fpmath=sse
+.endif
+
+.if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*)
+CONFIGURE_ARGS+=       --with-dwarf2
+.endif
+
+# ${WRKSRC}/fixincludes/ looks for sed and compiles the path to sed into
+# a binary so we need to make sure we give it the installed sed and not
+# the tool wrapped one.
+MAKE_ENV+=             ac_cv_path_SED=${TOOLS_SED}
+MAKE_ENV+=             lt_cv_path_SED=${TOOLS_SED}
+
+# Determine whether to use binutils
+.if ${OPSYS} == "SunOS"
+.  if exists(/usr/sfw/bin/gobjdump)
+CONFIGURE_ENV+=                OBJDUMP=/usr/sfw/bin/gobjdump
+.  endif
+.  if exists(/usr/bin/ld)
+CONFIGURE_ARGS+=       --without-gnu-ld --with-ld=/usr/bin/ld
+.  else
+CONFIGURE_ARGS+=       --without-gnu-ld --with-ld=/usr/ccs/bin/ld
+.  endif
+.  if exists(/usr/sfw/bin/gas)
+CONFIGURE_ARGS+=       --with-gnu-as --with-as=/usr/sfw/bin/gas
+.  elif exists(/usr/ccs/bin/as)
+CONFIGURE_ARGS+=       --without-gnu-as --with-as=/usr/ccs/bin/as
+.  else
+BUILDLINK_DEPMETHOD.binutils=  full
+.    include "../../devel/binutils/buildlink3.mk"
+CONFIGURE_ARGS+=       --with-gnu-as --with-as=${PREFIX}/bin/gas
+.  endif
+.endif
+
+.if ${OS_VARIANT} == "SmartOS"
+SUBST_CLASSES+=                ccs
+SUBST_STAGE.ccs=       pre-configure
+SUBST_FILES.ccs=       contrib/make_sunver.pl
+SUBST_SED.ccs=         -e 's,/usr/ccs/bin,/usr/bin,g'
+.endif
+
+CTF_FILES_SKIP+=       */gengtype      # CPU limit exceeded
+
+pre-configure:
+       ${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR}
+
+TEST_TARGET=   -j ${MAKE_JOBS} -k check || ${TRUE}
+TEST_DEPENDS+= dejagnu-[0-9]*:../../devel/dejagnu
+
+post-test:
+       ${RUN} cd ${WRKSRC} && cd ${OBJDIR} &&          \
+       ${SHELL} ${WRKSRC}/contrib/test_summary >${WRKDIR}/test_summary.log
+       ${INFO_MSG} "Test summary are available in ${WRKDIR}/test_summary.log"
+
+post-install:
+       ${TEST} -f ${DESTDIR}${GCC_PREFIX}/bin/cc || \
+               ( cd ${DESTDIR}${GCC_PREFIX}/bin ; ${LN} -f gcc cc )
+.if !empty(MACHINE_PLATFORM:MSunOS-*-*86*) && ${OS_VERSION} != "5.11"
+       ${SH} files/values.c ${DESTDIR}${GCC_PREFIX}/bin/gcc -m32 || ${TRUE}
+       ${SH} files/values.c ${DESTDIR}${GCC_PREFIX}/bin/gcc -m64 || ${TRUE}
+.endif
+
+GENERATE_PLIST+= \
+       cd ${DESTDIR}${PREFIX} && \
+       ${FIND} ${GCC_SUBPREFIX} \( -type f -o -type l \) -print | ${SORT};
+
+# Add gcc6-aux as an explicit dependency. It is needed to bootstrap.
+.include "../../lang/gcc6-aux/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 598cd7b69593 -r 79d9682e6e89 lang/gcc10-aux/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc10-aux/buildlink3.mk      Sun Mar 13 08:34:04 2022 +0000
@@ -0,0 +1,24 @@
+# $NetBSD: buildlink3.mk,v 1.1 2022/03/13 08:34:04 nia Exp $
+
+BUILDLINK_TREE+=       gcc10-aux
+
+.if !defined(GCC10_AUX_BUILDLINK3_MK)
+GCC10_AUX_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.gcc10-aux+=      gcc10-aux>=${_GCC_REQD}
+BUILDLINK_ABI_DEPENDS.gcc10-aux+=      gcc10-aux>=10.0
+BUILDLINK_PKGSRCDIR.gcc10-aux=         ../../lang/gcc10-aux
+BUILDLINK_DEPMETHOD.gcc10-aux?=                build
+
+BUILDLINK_PASSTHRU_DIRS+=      ${BUILDLINK_PREFIX.gcc10-aux}/gcc10-aux
+
+BUILDLINK_FILES.gcc10-aux=     # empty
+BUILDLINK_AUTO_VARS.gcc10-aux= no
+
+pkgbase := gcc10-aux
+.include "../../mk/pkg-build-options.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.endif
+
+BUILDLINK_TREE+=       -gcc10-aux
diff -r 598cd7b69593 -r 79d9682e6e89 lang/gcc10-aux/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc10-aux/distinfo   Sun Mar 13 08:34:04 2022 +0000
@@ -0,0 +1,48 @@
+$NetBSD: distinfo,v 1.1 2022/03/13 08:34:04 nia Exp $
+
+BLAKE2s (gcc-10.3.0.tar.xz) = 6d7c42f9386e5e32a3148122471cb207e5f65d7b5f53b3c9adba2d45a4f28715
+SHA512 (gcc-10.3.0.tar.xz) = 2b2dd7453d48a398c29eaebd1422b70341001b8c90a62aee51e83344e7fdd8a8e45f82a4a9165bd7edc76dada912c932f4b6632c5636760fec4c5d7e402b3f86
+Size (gcc-10.3.0.tar.xz) = 76692288 bytes
+BLAKE2s (isl-0.16.1.tar.bz2) = 01c3fc657326e81414986eb7ede6f73e540b97009745ced125cdf7f4a8d80f61
+SHA512 (isl-0.16.1.tar.bz2) = c188667a84dc5bdddb4ab7c35f89c91bf15a8171f4fcaf41301cf285fb7328846d9a367c096012fec4cc69d244f0bc9e95d84c09ec097394cd4093076f2a041b
+Size (isl-0.16.1.tar.bz2) = 1626446 bytes
+SHA1 (patch-contrib_download__prerequisites) = 9cdcde21ab174052911447d20762ddfd40aa8791
+SHA1 (patch-fixincludes_inclhack.def) = 7b00974d3f52a8364190a607f52a5d7e8a6db41a
+SHA1 (patch-gcc_Makefile.in) = c0f97c75ba1d37eae894141edd58bb36b734f651
+SHA1 (patch-gcc_ada_Makefile.rtl) = 1b6a18dce5ffe752be942f6e328d487692f3b33a
+SHA1 (patch-gcc_ada_adaint.c) = 465b3e3d6db193b2729f1d4e1c74eefcc3dc85bf
+SHA1 (patch-gcc_ada_adaint.h) = 57befa67b18f97345db05672f1e53e8ec70e1935
+SHA1 (patch-gcc_ada_cstreams.c) = 047746f1da085917082dafe8b87fdc5e757e1237
+SHA1 (patch-gcc_ada_libgnarl_s-osinte____netbsd.adb) = 84268061686b15a8ef9013242e3d258b82b9f13e
+SHA1 (patch-gcc_ada_libgnarl_s-osinte____netbsd.ads) = 2d1179230289a243bb004b9f16c747cda9761b60
+SHA1 (patch-gcc_ada_libgnarl_s-taprop____posix.adb) = 505d0ba78a21a8a6cc6213a9809c44c284fe2334
+SHA1 (patch-gcc_ada_libgnat_g-socthi.ads) = e2fbc2589814aa630165d3cf4ddc15baf9dce1c9
+SHA1 (patch-gcc_ada_libgnat_g-socthi____bsd.adb) = cbc8aca2b0be1c183cffb0a93091a95b35d78abd
+SHA1 (patch-gcc_ada_libgnat_s-osprim____posix.adb) = 018dce870dd06febeb83719149f10e469c4bcc00
+SHA1 (patch-gcc_ada_s-oscons-tmplt.c) = a48b5ae3c061144b8406e27cbbc084385fef5131
+SHA1 (patch-gcc_ada_sysdep.c) = 5b8705680ee1a2c9c2686d14d4cbbba8c5fb4fb2
+SHA1 (patch-gcc_config.gcc) = 4bf07441b6893e9b510f9ad775b4b95aa23e9791
+SHA1 (patch-gcc_config.host) = 8920ce841f6088b365c9b590e3ea9535bd880b40
+SHA1 (patch-gcc_config_aarch64_aarch64-builtins.c) = 87185f5c2e2dbe4195cb19fe6213d2d616d5519b
+SHA1 (patch-gcc_config_aarch64_aarch64-netbsd.h) = abf19e2445bce1773162bddef16cd7f41eb36827
+SHA1 (patch-gcc_config_aarch64_driver-aarch64.c) = 7e17b49924ddd9ff33d049d6539e4df77d14d3e5
+SHA1 (patch-gcc_config_darwin-driver.c) = fd57dcca96ce5ddc330e7c7b3b811f64856d7611
+SHA1 (patch-gcc_config_sparc_sparc.c) = e9cb956f3769642bcd0ba4a477d16c73dea46014
+SHA1 (patch-gcc_configure) = 6a2d8eeeed2bf08c3c81291178e669dc91c913ce



Home | Main Index | Thread Index | Old Index