From owner-svn-ports-head@freebsd.org Sun Oct 4 20:49:37 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7F931432FAB; Sun, 4 Oct 2020 20:49:37 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C4G7P2rxzz4FYW; Sun, 4 Oct 2020 20:49:37 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 451FBA35E; Sun, 4 Oct 2020 20:49:37 +0000 (UTC) (envelope-from kevans@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 094KnbL3000386; Sun, 4 Oct 2020 20:49:37 GMT (envelope-from kevans@FreeBSD.org) Received: (from kevans@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 094KnaRf000381; Sun, 4 Oct 2020 20:49:36 GMT (envelope-from kevans@FreeBSD.org) Message-Id: <202010042049.094KnaRf000381@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kevans set sender to kevans@FreeBSD.org using -f From: Kyle Evans Date: Sun, 4 Oct 2020 20:49:36 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r551458 - in head/devel/arm-none-eabi-newlib: . files X-SVN-Group: ports-head X-SVN-Commit-Author: kevans X-SVN-Commit-Paths: in head/devel/arm-none-eabi-newlib: . files X-SVN-Commit-Revision: 551458 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Oct 2020 20:49:37 -0000 Author: kevans Date: Sun Oct 4 20:49:35 2020 New Revision: 551458 URL: https://svnweb.freebsd.org/changeset/ports/551458 Log: devel/arm-none-eabi-newlib: unbreak after include-fixed removal We're now operating on more standards-compliant headers. Defining __LONG_LONG_SUPPORTED is a little hacky, but some backflips are needed to assume a C99 build. For now, just make it work so that we can get the definition from sys/limits.h as needed. MFH: 2020Q4 (blanket: build fix) Added: head/devel/arm-none-eabi-newlib/files/ head/devel/arm-none-eabi-newlib/files/patch-newlib_libc_stdlib_strtoll__r.c (contents, props changed) head/devel/arm-none-eabi-newlib/files/patch-newlib_libc_stdlib_strtoull__r.c (contents, props changed) head/devel/arm-none-eabi-newlib/files/patch-newlib_libc_stdlib_wcstoll__r.c (contents, props changed) head/devel/arm-none-eabi-newlib/files/patch-newlib_libc_stdlib_wcstoull__r.c (contents, props changed) Modified: head/devel/arm-none-eabi-newlib/Makefile Modified: head/devel/arm-none-eabi-newlib/Makefile ============================================================================== --- head/devel/arm-none-eabi-newlib/Makefile Sun Oct 4 20:31:43 2020 (r551457) +++ head/devel/arm-none-eabi-newlib/Makefile Sun Oct 4 20:49:35 2020 (r551458) @@ -11,8 +11,6 @@ PKGNAMEPREFIX= ${NEWLIB_TARGET}- MAINTAINER= kevans@FreeBSD.org COMMENT= Newlib distribution for ${NEWLIB_TARGET} targets -BROKEN= arm-none-eabi-ar: ../stdlib/lib.a: No such file or directory - BUILD_DEPENDS+= ${NEWLIB_TARGET}-ar:devel/binutils@${NEWLIB_TARGET:C/-/_/g} \ ${NEWLIB_TARGET}-as:devel/binutils@${NEWLIB_TARGET:C/-/_/g} \ ${NEWLIB_TARGET}-ld:devel/binutils@${NEWLIB_TARGET:C/-/_/g} \ Added: head/devel/arm-none-eabi-newlib/files/patch-newlib_libc_stdlib_strtoll__r.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/arm-none-eabi-newlib/files/patch-newlib_libc_stdlib_strtoll__r.c Sun Oct 4 20:49:35 2020 (r551458) @@ -0,0 +1,28 @@ +--- newlib/libc/stdlib/strtoll_r.c.orig 2020-10-04 20:42:31 UTC ++++ newlib/libc/stdlib/strtoll_r.c +@@ -42,6 +42,7 @@ + #ifdef __GNUC__ + + #define _GNU_SOURCE ++#define __LONG_LONG_SUPPORTED + #include <_ansi.h> + #include + #include +@@ -107,7 +108,7 @@ _DEFUN (_strtoll_r, (rptr, nptr, endptr, base), + * Set any if any `digits' consumed; make it negative to indicate + * overflow. + */ +- cutoff = neg ? -(unsigned long long)LONG_LONG_MIN : LONG_LONG_MAX; ++ cutoff = neg ? -(unsigned long long)LLONG_MIN : LLONG_MAX; + cutlim = cutoff % (unsigned long long)base; + cutoff /= (unsigned long long)base; + for (acc = 0, any = 0;; c = *s++) { +@@ -128,7 +129,7 @@ _DEFUN (_strtoll_r, (rptr, nptr, endptr, base), + } + } + if (any < 0) { +- acc = neg ? LONG_LONG_MIN : LONG_LONG_MAX; ++ acc = neg ? LLONG_MIN : LLONG_MAX; + rptr->_errno = ERANGE; + } else if (neg) + acc = -acc; Added: head/devel/arm-none-eabi-newlib/files/patch-newlib_libc_stdlib_strtoull__r.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/arm-none-eabi-newlib/files/patch-newlib_libc_stdlib_strtoull__r.c Sun Oct 4 20:49:35 2020 (r551458) @@ -0,0 +1,30 @@ +--- newlib/libc/stdlib/strtoull_r.c.orig 2020-10-04 20:42:46 UTC ++++ newlib/libc/stdlib/strtoull_r.c +@@ -43,6 +43,7 @@ + #ifdef __GNUC__ + + #define _GNU_SOURCE ++#define __LONG_LONG_SUPPORTED + #include <_ansi.h> + #include + #include +@@ -88,8 +89,8 @@ _DEFUN (_strtoull_r, (rptr, nptr, endptr, base), + } + if (base == 0) + base = c == '0' ? 8 : 10; +- cutoff = (unsigned long long)ULONG_LONG_MAX / (unsigned long long)base; +- cutlim = (unsigned long long)ULONG_LONG_MAX % (unsigned long long)base; ++ cutoff = (unsigned long long)ULLONG_MAX / (unsigned long long)base; ++ cutlim = (unsigned long long)ULLONG_MAX % (unsigned long long)base; + for (acc = 0, any = 0;; c = *s++) { + if (isdigit(c)) + c -= '0'; +@@ -108,7 +109,7 @@ _DEFUN (_strtoull_r, (rptr, nptr, endptr, base), + } + } + if (any < 0) { +- acc = ULONG_LONG_MAX; ++ acc = ULLONG_MAX; + rptr->_errno = ERANGE; + } else if (neg) + acc = -acc; Added: head/devel/arm-none-eabi-newlib/files/patch-newlib_libc_stdlib_wcstoll__r.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/arm-none-eabi-newlib/files/patch-newlib_libc_stdlib_wcstoll__r.c Sun Oct 4 20:49:35 2020 (r551458) @@ -0,0 +1,28 @@ +--- newlib/libc/stdlib/wcstoll_r.c.orig 2020-10-04 20:42:35 UTC ++++ newlib/libc/stdlib/wcstoll_r.c +@@ -42,6 +42,7 @@ + #ifdef __GNUC__ + + #define _GNU_SOURCE ++#define __LONG_LONG_SUPPORTED + #include <_ansi.h> + #include + #include +@@ -107,7 +108,7 @@ _DEFUN (_wcstoll_r, (rptr, nptr, endptr, base), + * Set any if any `digits' consumed; make it negative to indicate + * overflow. + */ +- cutoff = neg ? -(unsigned long long)LONG_LONG_MIN : LONG_LONG_MAX; ++ cutoff = neg ? -(unsigned long long)LLONG_MIN : LLONG_MAX; + cutlim = cutoff % (unsigned long long)base; + cutoff /= (unsigned long long)base; + for (acc = 0, any = 0;; c = *s++) { +@@ -128,7 +129,7 @@ _DEFUN (_wcstoll_r, (rptr, nptr, endptr, base), + } + } + if (any < 0) { +- acc = neg ? LONG_LONG_MIN : LONG_LONG_MAX; ++ acc = neg ? LLONG_MIN : LLONG_MAX; + rptr->_errno = ERANGE; + } else if (neg) + acc = -acc; Added: head/devel/arm-none-eabi-newlib/files/patch-newlib_libc_stdlib_wcstoull__r.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/arm-none-eabi-newlib/files/patch-newlib_libc_stdlib_wcstoull__r.c Sun Oct 4 20:49:35 2020 (r551458) @@ -0,0 +1,10 @@ +--- newlib/libc/stdlib/wcstoull_r.c.orig 2020-10-04 20:42:50 UTC ++++ newlib/libc/stdlib/wcstoull_r.c +@@ -43,6 +43,7 @@ + #ifdef __GNUC__ + + #define _GNU_SOURCE ++#define __LONG_LONG_SUPPORTED + #include <_ansi.h> + #include + #include