From owner-svn-ports-head@freebsd.org Sun Feb 5 04:36:24 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 40B4CCC563D; Sun, 5 Feb 2017 04:36:24 +0000 (UTC) (envelope-from jbeich@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 mx1.freebsd.org (Postfix) with ESMTPS id E8CC21AD; Sun, 5 Feb 2017 04:36:23 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v154aMqi064412; Sun, 5 Feb 2017 04:36:22 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v154aMFn064410; Sun, 5 Feb 2017 04:36:22 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201702050436.v154aMFn064410@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Sun, 5 Feb 2017 04:36:22 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r433350 - in head/sysutils/shim: . files X-SVN-Group: ports-head 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.23 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, 05 Feb 2017 04:36:24 -0000 Author: jbeich Date: Sun Feb 5 04:36:22 2017 New Revision: 433350 URL: https://svnweb.freebsd.org/changeset/ports/433350 Log: sysutils/shim: unbreak with gcc5 or later In file included from /usr/local/include/efi/efi.h:35:0, from shim.c:36: /usr/local/include/efi/x86_64/efibind.h:88:24: fatal error: stdint.h: No such file or directory PR: 216707 Reported by: antoine (via exp-run) Modified: head/sysutils/shim/Makefile (contents, props changed) head/sysutils/shim/files/patch-Makefile (contents, props changed) Modified: head/sysutils/shim/Makefile ============================================================================== --- head/sysutils/shim/Makefile Sun Feb 5 04:30:11 2017 (r433349) +++ head/sysutils/shim/Makefile Sun Feb 5 04:36:22 2017 (r433350) @@ -18,8 +18,10 @@ USE_GITHUB= yes GH_ACCOUNT= mjg59 USES= gmake +USE_CSTD= gnu89 USE_GCC= yes USE_GITHUB= yes +MAKE_ARGS= CC="${CC} ${CFLAGS:M-std=*}" LD="${LD}" OBJCOPY="${OBJCOPY}" MAKE_JOBS_UNSAFE= yes ONLY_FOR_ARCHS= amd64 @@ -28,7 +30,6 @@ PLIST_FILES= lib/shim/shim.pem lib/shim/ post-patch: @${REINPLACE_CMD} -e "s|/bin/bash|${LOCALBASE}/bin/bash|" ${WRKSRC}/make-certs - @${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g' ${WRKSRC}/Makefile do-install: # Note that before this step, the shim.pem contains the _private_ key. Modified: head/sysutils/shim/files/patch-Makefile ============================================================================== --- head/sysutils/shim/files/patch-Makefile Sun Feb 5 04:30:11 2017 (r433349) +++ head/sysutils/shim/files/patch-Makefile Sun Feb 5 04:36:22 2017 (r433350) @@ -1,12 +1,6 @@ --- Makefile.orig 2014-10-13 22:41:51.000000000 +0200 +++ Makefile 2014-12-21 16:18:40.000000000 +0100 -@@ -1,16 +1,22 @@ --CC = $(CROSS_COMPILE)gcc -+CROSS_COMPILE = $(LOCALBASE)/bin/ -+ -+CC = $(CROSS_COMPILE)%%CC%% - LD = $(CROSS_COMPILE)ld - OBJCOPY = $(CROSS_COMPILE)objcopy +@@ -4,13 +1,17 @@ ARCH = $(shell $(CC) -dumpmachine | cut -f1 -d- | sed s,i[3456789]86,ia32,)