pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/cross/avr-gcc cross/avr-gcc: Update to 10.3.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c765d1d5faca
branches:  trunk
changeset: 458050:c765d1d5faca
user:      micha <micha%pkgsrc.org@localhost>
date:      Wed Sep 08 12:07:06 2021 +0000

description:
cross/avr-gcc: Update to 10.3.0

Changelog:
https://gcc.gnu.org/gcc-10/changes.html

diffstat:

 cross/avr-gcc/DESCR                                         |    5 +-
 cross/avr-gcc/Makefile                                      |  106 +-
 cross/avr-gcc/PLIST                                         |  706 +++++++++++-
 cross/avr-gcc/buildlink3.mk                                 |   12 +-
 cross/avr-gcc/distinfo                                      |   19 +-
 cross/avr-gcc/patches/patch-ab                              |   18 -
 cross/avr-gcc/patches/patch-contrib_download__prerequisites |   16 +
 cross/avr-gcc/patches/patch-gcc_configure                   |   16 +
 cross/avr-gcc/patches/patch-gcc_cp_cfns.h                   |   16 -
 cross/avr-gcc/patches/patch-gcc_system.h                    |   27 -
 10 files changed, 790 insertions(+), 151 deletions(-)

diffs (truncated from 1207 to 300 lines):

diff -r c6e2649e3aa8 -r c765d1d5faca cross/avr-gcc/DESCR
--- a/cross/avr-gcc/DESCR       Wed Sep 08 12:04:47 2021 +0000
+++ b/cross/avr-gcc/DESCR       Wed Sep 08 12:07:06 2021 +0000
@@ -1,5 +1,4 @@
-gcc-4.5 configured as cross-compiler for Atmel AVR 8-bit RISC
+GCC configured as cross-compiler for Atmel AVR 8-bit RISC
 microcontrollers.
 
-This package includes a basic C++ compiler, although this currently
-is only of limited use (without a libstdc++), and is little tested.
+This package includes a C compiler.
diff -r c6e2649e3aa8 -r c765d1d5faca cross/avr-gcc/Makefile
--- a/cross/avr-gcc/Makefile    Wed Sep 08 12:04:47 2021 +0000
+++ b/cross/avr-gcc/Makefile    Wed Sep 08 12:07:06 2021 +0000
@@ -1,71 +1,69 @@
-# $NetBSD: Makefile,v 1.46 2021/05/24 19:49:25 wiz Exp $
+# $NetBSD: Makefile,v 1.47 2021/09/08 12:07:06 micha Exp $
 
-DISTNAME=              gcc-4.8.3
+DISTNAME=              gcc-10.3.0
 PKGNAME=               ${DISTNAME:C/^/avr-/}
-PKGREVISION=           7
 CATEGORIES=            cross
-MASTER_SITES=          ${MASTER_SITE_GNU:=gcc/releases/${DISTNAME}/}
-EXTRACT_SUFX=          .tar.bz2
+MASTER_SITES=          ${MASTER_SITE_GNU:=gcc/${DISTNAME}/}
+EXTRACT_SUFX=          .tar.xz
 
 MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
-COMMENT=               GNU gcc-4.8 for Atmel AVR 8-bit RISC microcontrollers
+COMMENT=               GCC for Atmel AVR 8-bit RISC microcontrollers
 LICENSE=               gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND gnu-lgpl-v3
 
-DEPENDS+=              avr-binutils-[0-9]*:../../cross/avr-binutils
-
-GNU_CONFIGURE=         yes
-GNU_CONFIGURE_STRICT=  no # has sub-configures
+DISTFILES=             ${DEFAULT_DISTFILES}
+EXTRACT_ONLY=          ${DEFAULT_DISTFILES}
 
-USE_LANGUAGES=         c c++03
-USE_TOOLS+=            bison gmake lex perl tar msgfmt autoconf pod2man
-USE_PKGLOCALEDIR=      yes
-USE_GNU_CONFIGURE_HOST=        no
+DEPENDS+=              avr-binutils>=2.37:../../cross/avr-binutils
+
+.include "../../mk/bsd.prefs.mk"
 
-CHECK_PORTABILITY_SKIP+=       contrib/*
+USE_LANGUAGES=         c c++
+USE_LIBTOOL=           yes
+USE_TOOLS+=            bash gmake gsed:run
+GNU_CONFIGURE=         yes
+GNU_CONFIGURE_STRICT=  no
 
-CONFIGURE_ARGS+=       --target=avr
-CONFIGURE_ARGS+=       --enable-languages='c c++'
-CONFIGURE_ARGS+=       --disable-nls --disable-lto
-CONFIGURE_ARGS+=       --disable-libquadmath-support
-CONFIGURE_ARGS+=       --enable-multilib
-CONFIGURE_ARGS+=       --with-system-zlib
-CONFIGURE_ARGS+=       --disable-threads
+# Build outside ${WRKSRC}
+OBJDIR=                        ../build
+CONFIGURE_DIRS=                ${OBJDIR}
+CONFIGURE_SCRIPT=      ../${DISTNAME}/configure
+
+CONFIG_SHELL=          ${TOOLS_PATH.bash}
 
-MAKE_ENV+=             MACHINE_ARCH=avr
-MAKE_ENV+=             SHELL=${CONFIG_SHELL}
-MAKE_ENV+=             CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD:Q}
-MAKE_ENV+=             CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD:Q}
-MAKE_ENV+=             CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD:Q}
-
-SUBST_CLASSES+=                sed
-SUBST_FILES.sed=       fixincludes/fixincl.x
-SUBST_SED.sed=         -e 's|@SED@|${TOOLS_PATH.sed}|g'
-SUBST_STAGE.sed=       pre-configure
+CONFIGURE_ARGS+=       --enable-languages='c c++'
+CONFIGURE_ARGS+=       --enable-multilib
+CONFIGURE_ARGS+=       --disable-libquadmath-support
+CONFIGURE_ARGS+=       --disable-lto
+CONFIGURE_ARGS+=       --disable-nls
+CONFIGURE_ARGS+=       --target=avr
+CONFIGURE_ARGS+=       --with-system-zlib
 
-pre-configure:
-       ${MKDIR} ${WRKDIR}/obj
-       ${LN} -s ${WRKDIR}/obj/gcc/include/unwind.h ${WRKSRC}/gcc/unwind.h
+# XXX: Workaround for configure error:
+#    checking dependency style of c++... none
+#    configure: error: no usable dependency style found
+MAKE_ENV+=             am_cv_CXX_dependencies_compiler_type=gcc3
 
-# To avoid the conflict with other cross and native compiler
-post-install:
-       (cd ${DESTDIR}${PREFIX}/lib; \
-        ${MV} libiberty.a gcc/avr/ )
-
-CONFIGURE_DIRS=                ${WRKDIR}/obj
-CONFIGURE_SCRIPT=      ${WRKSRC}/configure
+# From lang/gcc10
+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
 
 INSTALLATION_DIRS+=    avr/bin
 
-.include "../../devel/gmp/buildlink3.mk"
-.include "../../devel/zlib/buildlink3.mk"
-.include "../../math/mpfr/buildlink3.mk"
-# mpc is required since gcc-4.5.x
-.include "../../math/mpcomplex/buildlink3.mk"
-.include "../../mk/bsd.pkg.mk"
+.include "options.mk"
+
+pre-configure:
+       ${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR}
 
-CFLAGS_FOR_BUILD:=     ${CFLAGS}
-CXXFLAGS_FOR_BUILD:=   ${CXXFLAGS}
-CPPFLAGS_FOR_BUILD:=   ${CPPFLAGS}
-CFLAGS:=               # empty
-CPPFLAGS:=             # empty
-CXXFLAGS:=             # empty
+# Remove libcc1 and some manual pages from generic locations
+# File paths from this package should not overlap with other GCC packages
+post-install:
+       ${RM} -f ${DESTDIR}${PREFIX}/lib/libcc1.*
+       ${RM} -rf ${DESTDIR}${PREFIX}/${PKGMANDIR}/man7
+
+BUILDLINK_API_DEPENDS.zlib+=   zlib>=1.2.3
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r c6e2649e3aa8 -r c765d1d5faca cross/avr-gcc/PLIST
--- a/cross/avr-gcc/PLIST       Wed Sep 08 12:04:47 2021 +0000
+++ b/cross/avr-gcc/PLIST       Wed Sep 08 12:07:06 2021 +0000
@@ -1,51 +1,437 @@
-@comment $NetBSD: PLIST,v 1.6 2014/08/29 04:26:46 mef Exp $
-avr/bin/c++
-avr/bin/g++
-avr/bin/gcc
+@comment $NetBSD: PLIST,v 1.7 2021/09/08 12:07:06 micha Exp $
 bin/avr-c++
 bin/avr-cpp
 bin/avr-g++
 bin/avr-gcc
-bin/${PKGNAME}
+bin/avr-gcc-${PKGVERSION}
 bin/avr-gcc-ar
 bin/avr-gcc-nm
 bin/avr-gcc-ranlib
 bin/avr-gcov
+bin/avr-gcov-dump
+bin/avr-gcov-tool
+lib/gcc/avr/${PKGVERSION}/avr25/double64/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avr25/double64/libgcov.a
 lib/gcc/avr/${PKGVERSION}/avr25/libgcc.a
 lib/gcc/avr/${PKGVERSION}/avr25/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avr25/long-double32/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avr25/long-double32/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avr25/tiny-stack/double64/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avr25/tiny-stack/double64/libgcov.a
 lib/gcc/avr/${PKGVERSION}/avr25/tiny-stack/libgcc.a
 lib/gcc/avr/${PKGVERSION}/avr25/tiny-stack/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avr25/tiny-stack/long-double32/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avr25/tiny-stack/long-double32/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avr3/double64/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avr3/double64/libgcov.a
 lib/gcc/avr/${PKGVERSION}/avr3/libgcc.a
 lib/gcc/avr/${PKGVERSION}/avr3/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avr3/long-double32/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avr3/long-double32/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avr31/double64/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avr31/double64/libgcov.a
 lib/gcc/avr/${PKGVERSION}/avr31/libgcc.a
 lib/gcc/avr/${PKGVERSION}/avr31/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avr31/long-double32/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avr31/long-double32/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avr35/double64/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avr35/double64/libgcov.a
 lib/gcc/avr/${PKGVERSION}/avr35/libgcc.a
 lib/gcc/avr/${PKGVERSION}/avr35/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avr35/long-double32/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avr35/long-double32/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avr4/double64/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avr4/double64/libgcov.a
 lib/gcc/avr/${PKGVERSION}/avr4/libgcc.a
 lib/gcc/avr/${PKGVERSION}/avr4/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avr4/long-double32/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avr4/long-double32/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avr5/double64/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avr5/double64/libgcov.a
 lib/gcc/avr/${PKGVERSION}/avr5/libgcc.a
 lib/gcc/avr/${PKGVERSION}/avr5/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avr5/long-double32/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avr5/long-double32/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avr51/double64/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avr51/double64/libgcov.a
 lib/gcc/avr/${PKGVERSION}/avr51/libgcc.a
 lib/gcc/avr/${PKGVERSION}/avr51/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avr51/long-double32/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avr51/long-double32/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avr6/double64/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avr6/double64/libgcov.a
 lib/gcc/avr/${PKGVERSION}/avr6/libgcc.a
 lib/gcc/avr/${PKGVERSION}/avr6/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avr6/long-double32/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avr6/long-double32/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avrtiny/double64/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avrtiny/double64/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avrtiny/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avrtiny/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avrtiny/long-double32/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avrtiny/long-double32/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avrxmega2/double64/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avrxmega2/double64/libgcov.a
 lib/gcc/avr/${PKGVERSION}/avrxmega2/libgcc.a
 lib/gcc/avr/${PKGVERSION}/avrxmega2/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avrxmega2/long-double32/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avrxmega2/long-double32/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avrxmega3/double64/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avrxmega3/double64/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avrxmega3/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avrxmega3/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avrxmega3/long-double32/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avrxmega3/long-double32/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avrxmega3/short-calls/double64/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avrxmega3/short-calls/double64/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avrxmega3/short-calls/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avrxmega3/short-calls/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avrxmega3/short-calls/long-double32/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avrxmega3/short-calls/long-double32/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avrxmega4/double64/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avrxmega4/double64/libgcov.a
 lib/gcc/avr/${PKGVERSION}/avrxmega4/libgcc.a
 lib/gcc/avr/${PKGVERSION}/avrxmega4/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avrxmega4/long-double32/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avrxmega4/long-double32/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avrxmega5/double64/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avrxmega5/double64/libgcov.a
 lib/gcc/avr/${PKGVERSION}/avrxmega5/libgcc.a
 lib/gcc/avr/${PKGVERSION}/avrxmega5/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avrxmega5/long-double32/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avrxmega5/long-double32/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avrxmega6/double64/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avrxmega6/double64/libgcov.a
 lib/gcc/avr/${PKGVERSION}/avrxmega6/libgcc.a
 lib/gcc/avr/${PKGVERSION}/avrxmega6/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avrxmega6/long-double32/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avrxmega6/long-double32/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avrxmega7/double64/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avrxmega7/double64/libgcov.a
 lib/gcc/avr/${PKGVERSION}/avrxmega7/libgcc.a
 lib/gcc/avr/${PKGVERSION}/avrxmega7/libgcov.a
+lib/gcc/avr/${PKGVERSION}/avrxmega7/long-double32/libgcc.a
+lib/gcc/avr/${PKGVERSION}/avrxmega7/long-double32/libgcov.a
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at43usb320
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at43usb355
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at76c711
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at86rf401
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90c8534
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90can128
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90can32
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90can64
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90pwm1
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90pwm161
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90pwm2
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90pwm216
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90pwm2b
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90pwm3
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90pwm316
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90pwm3b
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90pwm81
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90s1200
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90s2313
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90s2323
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90s2333
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90s2343
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90s4414
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90s4433
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90s4434
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90s8515
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90s8535
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90scr100
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90usb1286
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90usb1287
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90usb162
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90usb646
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90usb647
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at90usb82
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-at94k
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-ata5272
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-ata5505
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-ata5702m322
+lib/gcc/avr/${PKGVERSION}/device-specs/specs-ata5782



Home | Main Index | Thread Index | Old Index