From owner-svn-ports-all@freebsd.org Thu Jan 25 15:00:28 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9771DEDCB35; Thu, 25 Jan 2018 15:00:28 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 45006806F2; Thu, 25 Jan 2018 15:00:28 +0000 (UTC) (envelope-from lev@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 3FFCB65B0; Thu, 25 Jan 2018 15:00:28 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w0PF0SQY098823; Thu, 25 Jan 2018 15:00:28 GMT (envelope-from lev@FreeBSD.org) Received: (from lev@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0PF0SEa098821; Thu, 25 Jan 2018 15:00:28 GMT (envelope-from lev@FreeBSD.org) Message-Id: <201801251500.w0PF0SEa098821@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: lev set sender to lev@FreeBSD.org using -f From: "Lev A. Serebryakov" Date: Thu, 25 Jan 2018 15:00:28 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r459946 - in head/devel/gcc-msp430-ti-toolchain: . files X-SVN-Group: ports-head X-SVN-Commit-Author: lev X-SVN-Commit-Paths: in head/devel/gcc-msp430-ti-toolchain: . files X-SVN-Commit-Revision: 459946 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jan 2018 15:00:28 -0000 Author: lev Date: Thu Jan 25 15:00:27 2018 New Revision: 459946 URL: https://svnweb.freebsd.org/changeset/ports/459946 Log: Fix build with clang 6. Added: head/devel/gcc-msp430-ti-toolchain/files/patch-binutils_bfd_elflink.c (contents, props changed) Modified: head/devel/gcc-msp430-ti-toolchain/Makefile Modified: head/devel/gcc-msp430-ti-toolchain/Makefile ============================================================================== --- head/devel/gcc-msp430-ti-toolchain/Makefile Thu Jan 25 14:45:04 2018 (r459945) +++ head/devel/gcc-msp430-ti-toolchain/Makefile Thu Jan 25 15:00:27 2018 (r459946) @@ -2,7 +2,7 @@ PORTNAME= gcc-msp430-ti-toolchain PORTVERSION= ${GCC_VERSION}.${TI_VERSION}.${RELEASE_DATE} -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES= devel MASTER_SITES= GCC/releases/gcc-${GCC_REL_VERSION}:gcc \ SOURCEWARE/binutils/releases:binutils \ @@ -45,6 +45,7 @@ USES= bison compiler cpe gmake iconv libtool makeinfo tar:bzip2 USE_CSTD= gnu89 + GNU_CONFIGURE= yes GNU_CONFIGURE_PREFIX= ${PREFIX}/${SUBPREFIX} @@ -66,6 +67,7 @@ CPE_VERSION= ${GCC_REL_VERSION} SUBPREFIX= ${PORTNAME}-${TI_VERSION} +PATCH_WRKSRC= ${WRKDIR} MANPREFIX= ${GNU_CONFIGURE_PREFIX} DOCSDIR= ${GNU_CONFIGURE_PREFIX}/docs PLIST_SUB+= TARGET=${TARGET} GCC_VERSION=${GCC_VERSION} \ Added: head/devel/gcc-msp430-ti-toolchain/files/patch-binutils_bfd_elflink.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/gcc-msp430-ti-toolchain/files/patch-binutils_bfd_elflink.c Thu Jan 25 15:00:27 2018 (r459946) @@ -0,0 +1,20 @@ +--- binutils-2.26/bfd/elflink.c.orig 2018-01-25 17:15:39.513265000 +0300 ++++ binutils-2.26/bfd/elflink.c 2018-01-25 17:16:03.663426000 +0300 +@@ -5058,7 +5058,7 @@ + len = strlen (name); + copy = (char *) bfd_alloc (abfd, len); + if (copy == NULL) +- return (struct elf_link_hash_entry *) 0 - 1; ++ return (struct elf_link_hash_entry *)(intptr_t)-1; + + first = p - name + 1; + memcpy (copy, name, first); +@@ -5156,7 +5156,7 @@ + } + + h = archive_symbol_lookup (abfd, info, symdef->name); +- if (h == (struct elf_link_hash_entry *) 0 - 1) ++ if (h == (struct elf_link_hash_entry *)(intptr_t)-1) + goto error_return; + + if (h == NULL)