From owner-svn-ports-head@freebsd.org Wed Dec 19 17:30:25 2018 Return-Path: Delivered-To: svn-ports-head@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 03400133D977; Wed, 19 Dec 2018 17:30:25 +0000 (UTC) (envelope-from egypcio@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) server-signature RSA-PSS (4096 bits) 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 6BC948AAB8; Wed, 19 Dec 2018 17:30:24 +0000 (UTC) (envelope-from egypcio@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 589AF190D1; Wed, 19 Dec 2018 17:30:24 +0000 (UTC) (envelope-from egypcio@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wBJHUOAt078341; Wed, 19 Dec 2018 17:30:24 GMT (envelope-from egypcio@FreeBSD.org) Received: (from egypcio@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wBJHUMSt078332; Wed, 19 Dec 2018 17:30:22 GMT (envelope-from egypcio@FreeBSD.org) Message-Id: <201812191730.wBJHUMSt078332@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: egypcio set sender to egypcio@FreeBSD.org using -f From: =?UTF-8?Q?Vin=c3=adcius_Zavam?= Date: Wed, 19 Dec 2018 17:30:22 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r487805 - in head/sysutils/shim: . files X-SVN-Group: ports-head X-SVN-Commit-Author: egypcio X-SVN-Commit-Paths: in head/sysutils/shim: . files X-SVN-Commit-Revision: 487805 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 6BC948AAB8 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.93 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-0.998,0]; NEURAL_HAM_SHORT(-0.94)[-0.936,0] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 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: Wed, 19 Dec 2018 17:30:25 -0000 Author: egypcio Date: Wed Dec 19 17:30:22 2018 New Revision: 487805 URL: https://svnweb.freebsd.org/changeset/ports/487805 Log: sysutils/shim: introduce new ARCH support (i386) Makefile bump PORTREVISION; USE_CSTD: gnu89 became gnu99 [0]; files/ *: if ARCH=i386, replaces ARCH with ia32; elf_ia32_efi.lds: sync OUTPUT_FORMAT [1]; MokManager.c: used UINT32 for MokNum. Reported by: pkg-fallout Approved by: araujo (mentor) Differential Revision: https://reviews.freebsd.org/D18572 [0] shim.c:2176:3: error: this decimal constant is unsigned only in ISO C90 [1] patch-elf_x86_64_efi.lds always appended -freebsd as OUTPUT_FORMAT Added: head/sysutils/shim/files/patch-MokManager.c (contents, props changed) head/sysutils/shim/files/patch-elf__ia32__efi.lds (contents, props changed) Modified: head/sysutils/shim/Makefile head/sysutils/shim/files/patch-Cryptlib-Makefile head/sysutils/shim/files/patch-Cryptlib-OpenSSL-Makefile head/sysutils/shim/files/patch-Makefile head/sysutils/shim/files/patch-lib-Makefile Modified: head/sysutils/shim/Makefile ============================================================================== --- head/sysutils/shim/Makefile Wed Dec 19 17:18:36 2018 (r487804) +++ head/sysutils/shim/Makefile Wed Dec 19 17:30:22 2018 (r487805) @@ -3,7 +3,7 @@ PORTNAME= shim PORTVERSION= 0.9 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MAINTAINER= egypcio@FreeBSD.org @@ -16,7 +16,7 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libgnuefi.a:devel/gnu- bash:shells/bash USES= compiler gmake shebangfix -USE_CSTD= gnu89 +USE_CSTD= gnu99 USE_GCC= yes SHEBANG_FILES= make-certs Modified: head/sysutils/shim/files/patch-Cryptlib-Makefile ============================================================================== --- head/sysutils/shim/files/patch-Cryptlib-Makefile Wed Dec 19 17:18:36 2018 (r487804) +++ head/sysutils/shim/files/patch-Cryptlib-Makefile Wed Dec 19 17:30:22 2018 (r487805) @@ -1,8 +1,11 @@ --- Cryptlib/Makefile.orig 2015-06-30 18:20:12 UTC +++ Cryptlib/Makefile -@@ -1,3 +1,6 @@ +@@ -1,3 +1,9 @@ +ifeq ($(ARCH),amd64) + override ARCH = x86_64 ++endif ++ifeq ($(ARCH),i386) ++ override ARCH = ia32 +endif EFI_INCLUDES = -IInclude -I$(EFI_INCLUDE) -I$(EFI_INCLUDE)/$(ARCH) -I$(EFI_INCLUDE)/protocol Modified: head/sysutils/shim/files/patch-Cryptlib-OpenSSL-Makefile ============================================================================== --- head/sysutils/shim/files/patch-Cryptlib-OpenSSL-Makefile Wed Dec 19 17:18:36 2018 (r487804) +++ head/sysutils/shim/files/patch-Cryptlib-OpenSSL-Makefile Wed Dec 19 17:30:22 2018 (r487805) @@ -1,8 +1,11 @@ --- Cryptlib/OpenSSL/Makefile.orig 2015-06-30 18:20:12 UTC +++ Cryptlib/OpenSSL/Makefile -@@ -1,3 +1,6 @@ +@@ -1,3 +1,9 @@ +ifeq ($(ARCH),amd64) + override ARCH = x86_64 ++endif ++ifeq ($(ARCH),i386) ++ override ARCH = ia32 +endif EFI_INCLUDES = -I../Include -I$(EFI_INCLUDE) -I$(EFI_INCLUDE)/$(ARCH) -I$(EFI_INCLUDE)/protocol Modified: head/sysutils/shim/files/patch-Makefile ============================================================================== --- head/sysutils/shim/files/patch-Makefile Wed Dec 19 17:18:36 2018 (r487804) +++ head/sysutils/shim/files/patch-Makefile Wed Dec 19 17:30:22 2018 (r487805) @@ -7,7 +7,7 @@ ifneq ($(RELEASE),"") RELEASE="-$(RELEASE)" endif -@@ -9,15 +9,20 @@ LD = $(CROSS_COMPILE)ld +@@ -9,15 +9,23 @@ LD = $(CROSS_COMPILE)ld OBJCOPY = $(CROSS_COMPILE)objcopy ARCH = $(shell $(CC) -dumpmachine | cut -f1 -d- | sed s,i[3456789]86,ia32,) @@ -15,6 +15,9 @@ +ifeq ($(ARCH),amd64) + override ARCH := x86_64 +endif ++ifeq ($(ARCH),i386) ++ override ARCH := ia32 ++endif + OBJCOPY_GTE224 = $(shell expr `$(OBJCOPY) --version |grep ^"GNU objcopy" | sed 's/^.* //g' | cut -f1-2 -d.` \>= 2.24) @@ -32,7 +35,7 @@ LIB_GCC = $(shell $(CC) -print-libgcc-file-name) EFI_LIBS = -lefi -lgnuefi --start-group Cryptlib/libcryptlib.a Cryptlib/OpenSSL/libopenssl.a --end-group $(LIB_GCC) -@@ -65,7 +70,7 @@ endif +@@ -65,7 +73,7 @@ endif LDFLAGS = --hash-style=sysv -nostdlib -znocombreloc -T $(EFI_LDS) -shared -Bsymbolic -L$(EFI_PATH) -L$(LIB_PATH) -LCryptlib -LCryptlib/OpenSSL $(EFI_CRT_OBJS) --build-id=sha1 @@ -41,7 +44,7 @@ OBJS = shim.o netboot.o cert.o replacements.o version.o KEYS = shim_cert.h ocsp.* ca.* shim.crt shim.csr shim.p12 shim.pem shim.key shim.cer SOURCES = shim.c shim.h netboot.c include/PeImage.h include/wincert.h include/console.h replacements.c replacements.h version.c version.h -@@ -156,9 +161,6 @@ endif +@@ -156,9 +164,6 @@ endif -j .note.gnu.build-id \ $(FORMAT) $^ $@.debug Added: head/sysutils/shim/files/patch-MokManager.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/shim/files/patch-MokManager.c Wed Dec 19 17:30:22 2018 (r487805) @@ -0,0 +1,16 @@ +--- MokManager.c.orig 2015-06-30 18:20:12 UTC ++++ MokManager.c +@@ -588,11 +588,11 @@ static void show_mok_info (EFI_GUID Type + + static EFI_STATUS list_keys (void *KeyList, UINTN KeyListSize, CHAR16 *title) + { +- INTN MokNum = 0; ++ UINT32 MokNum = 0; + MokListNode *keys = NULL; + UINT32 key_num = 0; + CHAR16 **menu_strings; +- int i; ++ UINT32 i; + + if (KeyListSize < (sizeof(EFI_SIGNATURE_LIST) + + sizeof(EFI_SIGNATURE_DATA))) { Added: head/sysutils/shim/files/patch-elf__ia32__efi.lds ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/shim/files/patch-elf__ia32__efi.lds Wed Dec 19 17:30:22 2018 (r487805) @@ -0,0 +1,8 @@ +--- elf_ia32_efi.lds.orig 2018-12-15 14:43:25 UTC ++++ elf_ia32_efi.lds +@@ -1,4 +1,4 @@ +-OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") ++OUTPUT_FORMAT("elf32-i386-freebsd", "elf32-i386-freebsd", "elf32-i386-freebsd") + OUTPUT_ARCH(i386) + ENTRY(_start) + SECTIONS Modified: head/sysutils/shim/files/patch-lib-Makefile ============================================================================== --- head/sysutils/shim/files/patch-lib-Makefile Wed Dec 19 17:18:36 2018 (r487804) +++ head/sysutils/shim/files/patch-lib-Makefile Wed Dec 19 17:30:22 2018 (r487805) @@ -1,8 +1,11 @@ --- lib/Makefile.orig 2015-06-30 18:20:12 UTC +++ lib/Makefile -@@ -1,3 +1,7 @@ +@@ -1,3 +1,10 @@ +ifeq ($(ARCH),amd64) + override ARCH = x86_64 ++endif ++ifeq ($(ARCH),i386) ++ override ARCH = ia32 +endif + TARGET = lib.a