efivar: update to version 34 to pick up gcc7 compile fixes
PATCH 1/1 efivar: update to version 34 to pick up gcc7 compile fixes
From: Charles Hardin <[email protected]>
Instead of patching the prior version of efivar, just update to a current version 34 to fix some gcc7 compile errors like the following:
dp-media.c: In function '_format_media_dn':
dp.h:121:12: error: argument 1 value '18446744073709551610'
exceeds maximum object size 9223372036854775807 [-Werror=alloc-size-larger-than=]
uint16_t _ucs2buf[(len)]; \
--- ...fs-to-avoid-the-multiple-definitions-bug-.patch | 29 ------------- package/efivar/0002-Allow-build-with-uClibc.patch | 2 +- ...some-extra-const-that-gcc-complains-about.patch | 47 ---------------------- package/efivar/efivar.hash | 2 +- package/efivar/efivar.mk | 4 +- 5 files changed, 4 insertions(+), 80 deletions(-) delete mode 100644 package/efivar/0001-Use-z-muldefs-to-avoid-the-multiple-definitions-bug-.patch delete mode 100644 package/efivar/0003-Remove-some-extra-const-that-gcc-complains-about.patch
package/efivar/0001-Use-z-muldefs-to-avoid-the-multiple-definitions-bug-.patch deleted +0 -29
@@ -1,29 +0,0 @@ -From 314eb67b239e60c2ed3700e2baf9cd0e590465f3 Mon Sep 17 00:00:00 2001 -From: Peter Jones <[email protected]> -Date: Thu, 27 Oct 2016 09:19:18 -0400 -Subject: [PATCH] Use -z muldefs to avoid the multiple definitions bug - without -flto - -This fixes github issue #64 - -Signed-off-by: Peter Jones <[email protected]> -Signed-off-by: Andy Shevchenko <[email protected]> ---- - Make.defaults | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/Make.defaults b/Make.defaults -index aa974d9..c9d599f 100644 ---- a/Make.defaults -+++ b/Make.defaults -@@ -32,6 +32,7 @@ cflags = $(CFLAGS) -I${TOPDIR}/src/include/efivar/ \ - clang_ccldflags = - gcc_ccldflags = - ccldflags = $(cflags) -L. $(CCLDFLAGS) $(LDFLAGS) \ -+ -Wl,-z,muldefs \ - $(if $(findstring clang,$(CCLD)),$(clang_ccldflags),) \ - $(if $(findstring gcc,$(CCLD)),$(gcc_ccldflags),) \ - $(call pkg-config-ccldflags) --- -2.10.2 -
package/efivar/0002-Allow-build-with-uClibc.patch +1 -1
@@ -20,7 +20,7 @@ index 7f2d4dd..72c02d1 100644 #include <stdlib.h> -#include <uchar.h> - #include <efivar.h> + #include <efivar/efivar.h> #include "lib.h" +#ifdef __UCLIBC__
package/efivar/0003-Remove-some-extra-const-that-gcc-complains-about.patch deleted +0 -47
47 lines not on this page · raw message
package/efivar/efivar.hash +1 -1
@@ -1,2 +1,2 @@ # locally computed hash -sha256 20709c76311f8eb8be92977b7ac008ce62501fa9f7fe885a784321540fc352f9 efivar-30.tar.gz +sha256 9691399a424b8e3776b7ed2df1893c4162285a93697d781f387d0f0d258a7f4b efivar-34.tar.gz
package/efivar/efivar.mk +2 -2
@@ -4,8 +4,8 @@ # ################################################################################ -EFIVAR_VERSION = 30 -EFIVAR_SITE = $(call github,rhinstaller,efivar,$(EFIVAR_VERSION)) +EFIVAR_VERSION = 34 +EFIVAR_SITE = $(call github,rhboot,efivar,$(EFIVAR_VERSION)) EFIVAR_LICENSE = LGPL-2.1 EFIVAR_LICENSE_FILES = COPYING EFIVAR_DEPENDENCIES = popt
Signature · 1 line
2.14.3 (Apple Git-98)
PATCH 1/1 efivar: update to version 34 to pick up gcc7 compile fixes
Hi Charles,
Quoted 8 lines · charles.hardin at storagecraft.com
From: Charles Hardin <[email protected]>
Instead of patching the prior version of efivar, just update to a current version 34 to fix some gcc7 compile errors like the following:
dp-media.c: In function '_format_media_dn':
dp.h:121:12: error: argument 1 value '18446744073709551610'
Quoted 7 lines
exceeds maximum object size 9223372036854775807 [-Werror=alloc-size-larger-than=]
uint16_t_ucs2buf[(len)]; \Signed-off-by Charles Hardin <[email protected]>--- ...fs-to-avoid-the-multiple-definitions-bug-.patch | 29 ------------- package/efivar/0002-Allow-build-with-uClibc.patch | 2 +-
Please renumber this patch to 0001.
Quoted 6 lines
...some-extra-const-that-gcc-complains-about.patch | 47 ---------------------- package/efivar/efivar.hash | 2 +- package/efivar/efivar.mk | 4 +- 5 files changed, 4 insertions(+), 80 deletions(-) delete mode 100644 package/efivar/0001-Use-z-muldefs-to-avoid-the-multiple-definitions-bug-.patch delete mode 100644 package/efivar/0003-Remove-some-extra-const-that-gcc-complains-about.patch
For removed patches please mention why they are not needed anymore. In this case I guess that's because they are all upstream.
[snip]
package/efivar/efivar.mk line 8
Quoted 12 lines
package/efivar/efivar.mk +2
-2@@ -4,8 +4,8 @@ # ################################################################################ -EFIVAR_VERSION = 30 -EFIVAR_SITE = $(call github,rhinstaller,efivar,$(EFIVAR_VERSION)) +EFIVAR_VERSION = 34 +EFIVAR_SITE = $(call github,rhboot,efivar,$(EFIVAR_VERSION))
Why are you changing _SITE? Has upstream changed? Please explain in the commit log.
package/efivar/efivar.mk line 11
Quoted 3 lines
package/efivar/efivar.mk +0
-0EFIVAR_LICENSE = LGPL-2.1 EFIVAR_LICENSE_FILES = COPYING EFIVAR_DEPENDENCIES = popt
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -