From 5000e2de32031c4b0a8f608367e22c6261ea41fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Tue, 9 May 2017 12:35:27 +0200 Subject: [PATCH] efibootmgr: fix gcc-7.1.0 build (duplicate const) --- .../patches/gcc7-duplicate-const.patch | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 srcpkgs/efibootmgr/patches/gcc7-duplicate-const.patch diff --git a/srcpkgs/efibootmgr/patches/gcc7-duplicate-const.patch b/srcpkgs/efibootmgr/patches/gcc7-duplicate-const.patch new file mode 100644 index 00000000000..cb222a2cec4 --- /dev/null +++ b/srcpkgs/efibootmgr/patches/gcc7-duplicate-const.patch @@ -0,0 +1,31 @@ +--- src/efibootdump.c 2016-09-27 23:00:36.000000000 +0200 ++++ src/efibootdump.c 2017-05-09 12:33:41.756321719 +0200 +@@ -39,7 +39,7 @@ + uint8_t *optional_data = NULL; + size_t optional_data_len = 0; + uint16_t pathlen; +- const unsigned char const *desc; ++ const unsigned char *desc; + char *raw; + size_t raw_len; + +--- src/efibootmgr.c 2017-05-09 12:32:45.939316598 +0200 ++++ src/efibootmgr.c 2017-05-09 12:34:02.281323682 +0200 +@@ -221,7 +221,7 @@ + list_t *pos; + var_entry_t *entry; + efi_load_option *load_option; +- const unsigned char const *desc; ++ const unsigned char *desc; + + list_for_each(pos, var_list) { + entry = list_entry(pos, var_entry_t, list); +@@ -873,7 +873,7 @@ + { + list_t *pos; + var_entry_t *boot; +- const unsigned char const *description; ++ const unsigned char *description; + efi_load_option *load_option; + efidp dp = NULL; + unsigned char *optional_data = NULL;