pkgsrc-WIP-changes archive

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

avr-gcc13: Finish package



Module Name:	pkgsrc-wip
Committed By:	Michael Baeuerle <micha%NetBSD.org@localhost>
Pushed By:	micha
Date:		Wed Apr 24 17:21:04 2024 +0200
Changeset:	d3e9ec177e09af3732c8cdb761a59d227703484d

Modified Files:
	avr-gcc13/COMMIT_MSG
	avr-gcc13/Makefile
	avr-gcc13/TODO
	avr-gcc13/buildlink3.mk
	avr-gcc13/distinfo
	avr-gcc13/options.mk

Log Message:
avr-gcc13: Finish package

- Declare required minimum APIs of dependencies
- Fix option "gcc-inplace-math"

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d3e9ec177e09af3732c8cdb761a59d227703484d

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 avr-gcc13/COMMIT_MSG    | 1 +
 avr-gcc13/Makefile      | 8 ++++++--
 avr-gcc13/TODO          | 5 ++++-
 avr-gcc13/buildlink3.mk | 2 ++
 avr-gcc13/distinfo      | 6 +++---
 avr-gcc13/options.mk    | 4 ++++
 6 files changed, 20 insertions(+), 6 deletions(-)

diffs:
diff --git a/avr-gcc13/COMMIT_MSG b/avr-gcc13/COMMIT_MSG
index 7f6afd07a3..d4c2f9f01a 100644
--- a/avr-gcc13/COMMIT_MSG
+++ b/avr-gcc13/COMMIT_MSG
@@ -6,6 +6,7 @@ Patch for Darwin/aarch64 removed (as requested in patch comment by tnn@).
 Patches for build system added (nonportable "==" shell syntax).
 Patch for libgcc added (system header file "sys/mman.h" not found).
 Disable PKGSRC_MKPIE (build failed on AMD64).
+Needs a C++11 compiler for bootstrap.
 
 Upstream changelog2:
 <https://gcc.gnu.org/gcc-13/changes.html>
diff --git a/avr-gcc13/Makefile b/avr-gcc13/Makefile
index 3a32961a73..3b7d033bb1 100644
--- a/avr-gcc13/Makefile
+++ b/avr-gcc13/Makefile
@@ -4,7 +4,7 @@ DISTNAME=		gcc-13.2.0
 PKGNAME=		${DISTNAME:C/^/avr-/}
 CATEGORIES=		cross
 MASTER_SITES=		${MASTER_SITE_GNU:=gcc/${DISTNAME}/}
-EXTRACT_SUFX=		.tar.xz
+#EXTRACT_SUFX=		.tar.xz
 
 OWNER=			micha%NetBSD.org@localhost
 COMMENT=		GCC for Atmel AVR 8-bit RISC microcontrollers
@@ -16,11 +16,15 @@ MKPIE_SUPPORTED=	no
 DISTFILES=		${DEFAULT_DISTFILES}
 EXTRACT_ONLY=		${DEFAULT_DISTFILES}
 
-DEPENDS+=		avr-binutils>=2.38:../../cross/avr-binutils
+DEPENDS+=		avr-binutils>=2.42:../../cross/avr-binutils
 
 .include "../../mk/bsd.prefs.mk"
 
 USE_LANGUAGES=			c c++
+USE_CXX_FEATURES+=		c++11
+# Required for ISL with option "gcc-inplace-math"
+FORCE_CXX_STD=			c++11
+
 USE_LIBTOOL=			yes
 USE_TOOLS+=			bash gmake gsed:run perl
 GNU_CONFIGURE=			yes
diff --git a/avr-gcc13/TODO b/avr-gcc13/TODO
index 752860476c..9a19f96541 100644
--- a/avr-gcc13/TODO
+++ b/avr-gcc13/TODO
@@ -1,4 +1,7 @@
-Must be tested:
+[X] Declare required minimum APIs of dependencies
+[X] Fix option "gcc-inplace-math"
+
+Tested with:
 [X] ATtiny841
 [X] ATmega168PB
 [X] ATmega324PA
diff --git a/avr-gcc13/buildlink3.mk b/avr-gcc13/buildlink3.mk
index 23b80ae5d0..64bec1de8f 100644
--- a/avr-gcc13/buildlink3.mk
+++ b/avr-gcc13/buildlink3.mk
@@ -5,6 +5,8 @@ BUILDLINK_TREE+=	avr-gcc
 .if !defined(AVR_GCC_BUILDLINK3_MK)
 AVR_GCC_BUILDLINK3_MK:=
 
+USE_CXX_FEATURES+=	c++11
+
 BUILDLINK_API_DEPENDS.avr-gcc+=	avr-gcc>=13.2.0
 BUILDLINK_PKGSRCDIR.avr-gcc?=	../../wip/avr-gcc13
 .endif	# AVR_GCC_BUILDLINK3_MK
diff --git a/avr-gcc13/distinfo b/avr-gcc13/distinfo
index 298eef7f03..d27ad57377 100644
--- a/avr-gcc13/distinfo
+++ b/avr-gcc13/distinfo
@@ -1,8 +1,8 @@
 $NetBSD$
 
-BLAKE2s (gcc-13.2.0.tar.xz) = 89847ac474d00cde32fbcae20154f8aedff9c66158faf95ad7a78cc9a190d4c4
-SHA512 (gcc-13.2.0.tar.xz) = d99e4826a70db04504467e349e9fbaedaa5870766cda7c5cab50cdebedc4be755ebca5b789e1232a34a20be1a0b60097de9280efe47bdb71c73251e30b0862a2
-Size (gcc-13.2.0.tar.xz) = 87858592 bytes
+BLAKE2s (gcc-13.2.0.tar.gz) = ac85decaf0c3e7718a38305b857fdcd5f7a5714563b04b55b8246a961f26e1c0
+SHA512 (gcc-13.2.0.tar.gz) = 41c8c77ac5c3f77de639c2913a8e4ff424d48858c9575fc318861209467828ccb7e6e5fe3618b42bf3d745be8c7ab4b4e50e424155e691816fa99951a2b870b9
+Size (gcc-13.2.0.tar.gz) = 153347847 bytes
 SHA1 (patch-gcc_config_nvptx_gen-opt.sh) = e57ddb20c40929328bbc4da696d60403925cb99d
 SHA1 (patch-gcc_configure) = 7607ef87ef4282909d3c83cc2236f6798ca0e90f
 SHA1 (patch-libgcc_libgcov.h) = 1fe3a2b55bac15ea1332040462675755945f5b05
diff --git a/avr-gcc13/options.mk b/avr-gcc13/options.mk
index d674914b89..7d84cc1925 100644
--- a/avr-gcc13/options.mk
+++ b/avr-gcc13/options.mk
@@ -17,8 +17,12 @@ CONFIGURE_ARGS+=	--with-gmp=${BUILDLINK_PREFIX.gmp}
 CONFIGURE_ARGS+=	--with-isl=${BUILDLINK_PREFIX.isl}
 CONFIGURE_ARGS+=	--with-mpc=${BUILDLINK_PREFIX.mpcomplex}
 CONFIGURE_ARGS+=	--with-mpfr=${BUILDLINK_PREFIX.mpfr}
+BUILDLINK_API_DEPENDS.gmp+=		gmp>=4.3.2
 .  include "../../devel/gmp/buildlink3.mk"
+BUILDLINK_API_DEPENDS.isl+=		isl>=0.15
 .  include "../../math/isl/buildlink3.mk"
+BUILDLINK_API_DEPENDS.mpcomplex+=	mpcomplex>=1.0.1
 .  include "../../math/mpcomplex/buildlink3.mk"
+BUILDLINK_API_DEPENDS.mpfr+=		mpfr>=3.1.0
 .  include "../../math/mpfr/buildlink3.mk"
 .endif


Home | Main Index | Thread Index | Old Index