From 185a00db164c2c4f20cc38ac931100b51c83c83a Mon Sep 17 00:00:00 2001 From: heitbaum Date: Sun, 3 Oct 2021 11:56:00 +1100 Subject: [PATCH 1/5] glibc: elf/cache.c not compiling with -Werror --- packages/devel/glibc/package.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/devel/glibc/package.mk b/packages/devel/glibc/package.mk index 88efde4836..c2809265a8 100644 --- a/packages/devel/glibc/package.mk +++ b/packages/devel/glibc/package.mk @@ -19,7 +19,6 @@ PKG_CONFIGURE_OPTS_TARGET="BASH_SHELL=/bin/sh \ --libexecdir=/usr/lib/glibc \ --cache-file=config.cache \ --disable-profile \ - --disable-werror \ --disable-sanity-checks \ --enable-add-ons \ --enable-bind-now \ @@ -51,6 +50,9 @@ pre_configure_target() { export CFLAGS=$(echo ${CFLAGS} | sed -e "s|-Ofast|-O2|g") export CFLAGS=$(echo ${CFLAGS} | sed -e "s|-O.|-O2|g") + export CFLAGS=$(echo ${CFLAGS} | sed -e "s|-Wunused-but-set-variable||g") + export CFLAGS="${CFLAGS} -Wno-unused-variable" + if [ -n "${PROJECT_CFLAGS}" ]; then export CFLAGS=$(echo ${CFLAGS} | sed -e "s|${PROJECT_CFLAGS}||g") fi From b3e6fc48d6b37fc19bcbed021aa4b2df31d08478 Mon Sep 17 00:00:00 2001 From: heitbaum Date: Thu, 3 Feb 2022 12:30:06 +0000 Subject: [PATCH 2/5] glibc: update to 2.35 fixes for 2.35 - linux: Fix missing __convert_scm_timestamps (BZ #28860) --- packages/devel/glibc/package.mk | 4 +-- ...sing-convert-scm-timestamps-BZ-28860.patch | 31 +++++++++++++++++++ .../glibc-fix-dns-with-broken-routers.patch | 4 +-- 3 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 packages/devel/glibc/patches/glibc-0001-linux-fix-missing-convert-scm-timestamps-BZ-28860.patch diff --git a/packages/devel/glibc/package.mk b/packages/devel/glibc/package.mk index c2809265a8..666bf71015 100644 --- a/packages/devel/glibc/package.mk +++ b/packages/devel/glibc/package.mk @@ -3,8 +3,8 @@ # Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv) PKG_NAME="glibc" -PKG_VERSION="2.34" -PKG_SHA256="44d26a1fe20b8853a48f470ead01e4279e869ac149b195dda4e44a195d981ab2" +PKG_VERSION="2.35" +PKG_SHA256="5123732f6b67ccd319305efd399971d58592122bcc2a6518a1bd2510dd0cf52e" PKG_LICENSE="GPL" PKG_SITE="https://www.gnu.org/software/libc/" PKG_URL="https://ftp.gnu.org/pub/gnu/glibc/${PKG_NAME}-${PKG_VERSION}.tar.xz" diff --git a/packages/devel/glibc/patches/glibc-0001-linux-fix-missing-convert-scm-timestamps-BZ-28860.patch b/packages/devel/glibc/patches/glibc-0001-linux-fix-missing-convert-scm-timestamps-BZ-28860.patch new file mode 100644 index 0000000000..e8ebe7c66f --- /dev/null +++ b/packages/devel/glibc/patches/glibc-0001-linux-fix-missing-convert-scm-timestamps-BZ-28860.patch @@ -0,0 +1,31 @@ +From patchwork Thu Feb 3 20:07:40 2022 +Subject: [COMMITTED] linux: Fix missing __convert_scm_timestamps (BZ #28860) +Date: Thu, 3 Feb 2022 17:07:40 -0300 +From: Adhemerval Zanella + +Commit 948ce73b31 made recvmsg/recvmmsg to always call +__convert_scm_timestamps for 64 bit time_t symbol, so adjust it to +always build it for __TIMESIZE != 64. + +It fixes build for architecture with 32 bit time_t support when +configured with minimum kernel of 5.1. +--- + sysdeps/unix/sysv/linux/convert_scm_timestamps.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/sysdeps/unix/sysv/linux/convert_scm_timestamps.c b/sysdeps/unix/sysv/linux/convert_scm_timestamps.c +index 82171bf325..dfc8c2beff 100644 +--- a/sysdeps/unix/sysv/linux/convert_scm_timestamps.c ++++ b/sysdeps/unix/sysv/linux/convert_scm_timestamps.c +@@ -16,9 +16,9 @@ + License along with the GNU C Library; if not, see + . */ + +-#include ++#include + +-#ifndef __ASSUME_TIME64_SYSCALLS ++#if __TIMESIZE != 64 + # include + # include + # include diff --git a/packages/devel/glibc/patches/glibc-fix-dns-with-broken-routers.patch b/packages/devel/glibc/patches/glibc-fix-dns-with-broken-routers.patch index 6e8249579d..4bce319238 100644 --- a/packages/devel/glibc/patches/glibc-fix-dns-with-broken-routers.patch +++ b/packages/devel/glibc/patches/glibc-fix-dns-with-broken-routers.patch @@ -66,7 +66,7 @@ Date: Tue Oct 1 12:09:07 2013 +0300 + || req->ai_family == AF_UNSPEC) + && suppress_af != AF_INET6) { - gethosts (AF_INET6, struct in6_addr); + gethosts (AF_INET6); no_inet6_data = no_data; inet6_status = status; } @@ -86,7 +86,7 @@ Date: Tue Oct 1 12:09:07 2013 +0300 + && ((req->ai_flags & AI_ALL) || !got_ipv6))) + && suppress_af != AF_INET) { - gethosts (AF_INET, struct in_addr); + gethosts (AF_INET); --- a/sysdeps/unix/sysv/linux/check_pf.c +++ b/sysdeps/unix/sysv/linux/check_pf.c From cb2b5c40959292a1a8bbaf42f91f6a46cc86a4dd Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Sun, 10 Apr 2022 13:44:10 +0000 Subject: [PATCH 3/5] glibc: update support for SHT_RELR patch for 2.35 update of this support is at: - https://maskray.me/blog/2021-10-31-relative-relocations-and-relr#glibc - https://sourceware.org/pipermail/libc-alpha/2021-October/132029.html This commit rebases the current SHT_RELR patch to support glibc 2.35. Future updates should look at using the updated patch though binutils updates maybe required. --- ...bc-add-support-for-SHT_RELR-sections.patch | 180 +++++++++--------- ...dm.so-since-4.10.2252.0-has-TLS-with.patch | 2 +- 2 files changed, 90 insertions(+), 92 deletions(-) diff --git a/packages/devel/glibc/patches/arm/glibc-add-support-for-SHT_RELR-sections.patch b/packages/devel/glibc/patches/arm/glibc-add-support-for-SHT_RELR-sections.patch index fe63042b81..07a0c40829 100644 --- a/packages/devel/glibc/patches/arm/glibc-add-support-for-SHT_RELR-sections.patch +++ b/packages/devel/glibc/patches/arm/glibc-add-support-for-SHT_RELR-sections.patch @@ -28,7 +28,7 @@ been updated to include the new definitions. --- a/elf/do-rel.h +++ b/elf/do-rel.h -@@ -26,6 +26,12 @@ +@@ -28,6 +28,12 @@ # define elf_machine_rel_relative elf_machine_rela_relative #endif @@ -41,7 +41,7 @@ been updated to include the new definitions. #ifndef DO_ELF_MACHINE_REL_RELATIVE # define DO_ELF_MACHINE_REL_RELATIVE(map, l_addr, relative) \ elf_machine_rel_relative (l_addr, relative, \ -@@ -46,12 +52,12 @@ elf_dynamic_do_Rel (struct link_map *map +@@ -48,12 +54,12 @@ elf_dynamic_do_Rel (struct link_map *map const ElfW(Rel) *r = (const void *) reladdr; const ElfW(Rel) *end = (const void *) (reladdr + relsize); ElfW(Addr) l_addr = map->l_addr; @@ -56,7 +56,7 @@ been updated to include the new definitions. /* We never bind lazily during ld.so bootstrap. Unfortunately gcc is not clever enough to see through all the function calls to realize that. */ -@@ -80,8 +86,10 @@ elf_dynamic_do_Rel (struct link_map *map +@@ -82,8 +88,10 @@ elf_dynamic_do_Rel (struct link_map *map else #endif { @@ -67,7 +67,7 @@ been updated to include the new definitions. const ElfW(Rel) *relative = r; r += nrelative; -@@ -108,9 +116,36 @@ elf_dynamic_do_Rel (struct link_map *map +@@ -110,9 +118,36 @@ elf_dynamic_do_Rel (struct link_map *map if (l_addr != 0 || ! map->l_info[VALIDX(DT_GNU_PRELINKED)]) # endif #endif @@ -80,7 +80,7 @@ been updated to include the new definitions. + ElfW(Relr) entry = *relative; + if ((entry&1) == 0) + { -+ elf_machine_relr_relative (l_addr, (void *) (l_addr + entry)); ++ elf_machine_relr_relative (l_addr, scope, (void *) (l_addr + entry)); + base = entry + sizeof(ElfW(Addr)); + continue; + } @@ -89,7 +89,7 @@ been updated to include the new definitions. + { + entry >>= 1; + if ((entry&1) != 0) -+ elf_machine_relr_relative (l_addr, (void *) (l_addr + offset)); ++ elf_machine_relr_relative (l_addr, scope, (void *) (l_addr + offset)); + offset += sizeof(ElfW(Addr)); + } + base += (8*sizeof(ElfW(Addr)) - 1) * sizeof(ElfW(Addr)); @@ -104,7 +104,7 @@ been updated to include the new definitions. #ifdef RTLD_BOOTSTRAP /* The dynamic linker always uses versioning. */ assert (map->l_info[VERSYMIDX (DT_VERSYM)] != NULL); -@@ -180,6 +215,7 @@ elf_dynamic_do_Rel (struct link_map *map +@@ -211,6 +246,7 @@ elf_dynamic_do_Rel (struct link_map *map # endif } #endif @@ -112,46 +112,46 @@ been updated to include the new definitions. } } -@@ -189,3 +225,4 @@ elf_dynamic_do_Rel (struct link_map *map +@@ -220,3 +256,4 @@ elf_dynamic_do_Rel (struct link_map *map #undef elf_machine_rel_relative #undef DO_ELF_MACHINE_REL_RELATIVE #undef DO_RELA +#undef DO_RELR --- a/elf/dynamic-link.h +++ b/elf/dynamic-link.h -@@ -76,6 +76,11 @@ auto inline void __attribute__((always_i +@@ -50,6 +50,11 @@ static inline void __attribute__((always_i elf_machine_rela_relative (ElfW(Addr) l_addr, const ElfW(Rela) *reloc, void *const reloc_addr); # endif +# if ! ELF_MACHINE_NO_RELR -+auto inline void __attribute__((always_inline)) -+elf_machine_relr_relative (ElfW(Addr) l_addr, ++static inline void __attribute__((always_inline)) ++elf_machine_relr_relative (ElfW(Addr) l_addr, struct r_scope_elem *scope[], + void *const reloc_addr); +# endif # if ELF_MACHINE_NO_RELA || defined ELF_MACHINE_PLT_REL - auto inline void __attribute__((always_inline)) - elf_machine_lazy_rel (struct link_map *map, -@@ -190,6 +195,15 @@ elf_machine_lazy_rel (struct link_map *m - # define ELF_DYNAMIC_DO_RELA(map, lazy, skip_ifunc) /* Nothing to do. */ + static inline void __attribute__((always_inline)) + elf_machine_lazy_rel (struct link_map *map, struct r_scope_elem *scope[], +@@ -146,6 +151,15 @@ elf_machine_lazy_rel (struct link_map *m + # define ELF_DYNAMIC_DO_RELA(map, scope, lazy, skip_ifunc) /* Nothing to do. */ # endif +# if ! ELF_MACHINE_NO_RELR +# define DO_RELR +# include "do-rel.h" -+# define ELF_DYNAMIC_DO_RELR(map, lazy, skip_ifunc) \ -+ _ELF_DYNAMIC_DO_RELOC (RELR, Relr, map, lazy, skip_ifunc, 1) ++# define ELF_DYNAMIC_DO_RELR(map, scope, lazy, skip_ifunc) \ ++ _ELF_DYNAMIC_DO_RELOC (RELR, Relr, map, scope, lazy, skip_ifunc, 1) +# else -+# define ELF_DYNAMIC_DO_RELR(map, lazy, skip_ifunc) /* Nothing to do. */ ++# define ELF_DYNAMIC_DO_RELR(map, scope, lazy, skip_ifunc) /* Nothing to do. */ +# endif + /* This can't just be an inline function because GCC is too dumb to inline functions containing inlines themselves. */ - # define ELF_DYNAMIC_RELOCATE(map, lazy, consider_profile, skip_ifunc) \ -@@ -198,6 +212,7 @@ elf_machine_lazy_rel (struct link_map *m + # define ELF_DYNAMIC_RELOCATE(map, scope, lazy, consider_profile, skip_ifunc) \ +@@ -154,6 +168,7 @@ elf_machine_lazy_rel (struct link_map *m (consider_profile)); \ - ELF_DYNAMIC_DO_REL ((map), edr_lazy, skip_ifunc); \ - ELF_DYNAMIC_DO_RELA ((map), edr_lazy, skip_ifunc); \ -+ ELF_DYNAMIC_DO_RELR ((map), edr_lazy, skip_ifunc); \ + ELF_DYNAMIC_DO_REL ((map), (scope), edr_lazy, skip_ifunc); \ + ELF_DYNAMIC_DO_RELA ((map), (scope), edr_lazy, skip_ifunc); \ ++ ELF_DYNAMIC_DO_RELR ((map), (scope), edr_lazy, skip_ifunc); \ } while (0) #endif @@ -202,7 +202,7 @@ been updated to include the new definitions. --- a/elf/get-dynamic-info.h +++ b/elf/get-dynamic-info.h -@@ -103,6 +103,9 @@ elf_get_dynamic_info (struct link_map *l +@@ -89,6 +89,9 @@ elf_get_dynamic_info (struct link_map *l # if ! ELF_MACHINE_NO_REL ADJUST_DYN_INFO (DT_REL); # endif @@ -212,7 +212,7 @@ been updated to include the new definitions. ADJUST_DYN_INFO (DT_JMPREL); ADJUST_DYN_INFO (VERSYMIDX (DT_VERSYM)); ADJUST_DYN_INFO (ADDRIDX (DT_GNU_HASH)); -@@ -129,6 +132,10 @@ elf_get_dynamic_info (struct link_map *l +@@ -113,6 +116,10 @@ elf_get_dynamic_info (struct link_map *l if (info[DT_REL] != NULL) assert (info[DT_RELENT]->d_un.d_val == sizeof (ElfW(Rel))); #endif @@ -220,52 +220,36 @@ been updated to include the new definitions. + if (info[DT_RELR] != NULL) + assert (info[DT_RELRENT]->d_un.d_val == sizeof (ElfW(Relr))); +# endif - #ifdef RTLD_BOOTSTRAP - /* Only the bind now flags are allowed. */ - assert (info[VERSYMIDX (DT_FLAGS_1)] == NULL + if (bootstrap || static_pie_bootstrap) + { + assert (info[DT_RUNPATH] == NULL); --- a/sysdeps/aarch64/dl-machine.h +++ b/sysdeps/aarch64/dl-machine.h -@@ -198,6 +198,7 @@ _dl_start_user: \n\ - /* AArch64 uses RELA not REL */ - #define ELF_MACHINE_NO_REL 1 - #define ELF_MACHINE_NO_RELA 0 -+#define ELF_MACHINE_NO_RELR 0 - - #define DL_PLATFORM_INIT dl_platform_init () - @@ -384,6 +385,15 @@ elf_machine_rela_relative (ElfW(Addr) l_ } - inline void + static inline void +__attribute__ ((always_inline)) -+elf_machine_relr_relative (ElfW(Addr) l_addr, ++elf_machine_relr_relative (ElfW(Addr) l_addr, struct r_scope_elem *scope[], + void *const reloc_addr_arg) +{ + ElfW(Addr) *const reloc_addr = reloc_addr_arg; + *reloc_addr += l_addr; +} + -+inline void ++static inline void __attribute__ ((always_inline)) - elf_machine_lazy_rel (struct link_map *map, + elf_machine_lazy_rel (struct link_map *map, struct r_scope_elem *scope[], ElfW(Addr) l_addr, --- a/sysdeps/arm/dl-machine.h +++ b/sysdeps/arm/dl-machine.h -@@ -296,6 +296,7 @@ elf_machine_plt_value (struct link_map * - Prelinked libraries may use Elf32_Rela though. */ - #define ELF_MACHINE_NO_RELA defined RTLD_BOOTSTRAP - #define ELF_MACHINE_NO_REL 0 -+#define ELF_MACHINE_NO_RELR 0 - - /* Names of the architecture-specific auditing callback functions. */ - #define ARCH_LA_PLTENTER arm_gnu_pltenter @@ -637,6 +638,15 @@ elf_machine_rel_relative (Elf32_Addr l_a *reloc_addr += l_addr; } -+auto inline void ++static inline void +__attribute ((always_inline)) -+elf_machine_relr_relative (ElfW(Addr) l_addr, ++elf_machine_relr_relative (ElfW(Addr) l_addr, struct r_scope_elem *scope[], + void *const reloc_addr_arg) +{ + ElfW(Addr) *const reloc_addr = reloc_addr_arg; @@ -273,57 +257,71 @@ been updated to include the new definitions. +} + # ifndef RTLD_BOOTSTRAP - auto inline void + static inline void __attribute__ ((always_inline)) --- a/sysdeps/i386/dl-machine.h +++ b/sysdeps/i386/dl-machine.h -@@ -285,6 +285,7 @@ elf_machine_plt_value (struct link_map * +@@ -626,6 +626,15 @@ elf_machine_rel_relative (Elf32_Addr l_a + *reloc_addr += l_addr; + } + ++static inline void ++__attribute ((always_inline)) ++elf_machine_relr_relative (ElfW(Addr) l_addr, struct r_scope_elem *scope[], ++ void *const reloc_addr_arg) ++{ ++ ElfW(Addr) *const reloc_addr = reloc_addr_arg; ++ *reloc_addr += l_addr; ++} ++ + # ifndef RTLD_BOOTSTRAP + static inline void + __attribute__ ((always_inline)) +--- a/sysdeps/x86_64/dl-machine.h ++++ b/sysdeps/x86_64/dl-machine.h +@@ -545,6 +546,15 @@ elf_machine_rela_relative (ElfW(Addr) l_ + } + + static inline void ++__attribute ((always_inline)) ++elf_machine_relr_relative (ElfW(Addr) l_addr, struct r_scope_elem *scope[], ++ void *const reloc_addr_arg) ++{ ++ ElfW(Addr) *const reloc_addr = reloc_addr_arg; ++ *reloc_addr += l_addr; ++} ++ ++static inline void + __attribute ((always_inline)) + elf_machine_lazy_rel (struct link_map *map, struct r_scope_elem *scope[], + ElfW(Addr) l_addr, const ElfW(Rela) *reloc, +--- a/sysdeps/arm/dl-machine-rel.h 2022-02-03 05:27:54.000000000 +0000 ++++ b/sysdeps/arm/dl-machine-rel.h 2022-04-11 10:16:03.103743770 +0000 +@@ -23,6 +23,7 @@ Prelinked libraries may use Elf32_Rela though. */ #define ELF_MACHINE_NO_RELA defined RTLD_BOOTSTRAP #define ELF_MACHINE_NO_REL 0 +#define ELF_MACHINE_NO_RELR 0 - #ifdef RESOLVE_MAP - -@@ -657,6 +658,15 @@ elf_machine_rel_relative (Elf32_Addr l_a - *reloc_addr += l_addr; - } - -+auto inline void -+__attribute ((always_inline)) -+elf_machine_relr_relative (ElfW(Addr) l_addr, -+ void *const reloc_addr_arg) -+{ -+ ElfW(Addr) *const reloc_addr = reloc_addr_arg; -+ *reloc_addr += l_addr; -+} -+ - # ifndef RTLD_BOOTSTRAP - auto inline void - __attribute__ ((always_inline)) ---- a/sysdeps/x86_64/dl-machine.h -+++ b/sysdeps/x86_64/dl-machine.h -@@ -209,6 +209,7 @@ _dl_start_user:\n\ - /* The x86-64 never uses Elf64_Rel/Elf32_Rel relocations. */ + /* ARM never uses Elf32_Rela relocations for the dynamic linker. + Prelinked libraries may use Elf32_Rela though. */ +--- a/sysdeps/generic/dl-machine-rel.h 2022-02-03 05:27:54.000000000 +0000 ++++ b/sysdeps/generic/dl-machine-rel.h 2022-04-11 10:28:40.996539086 +0000 +@@ -23,6 +23,7 @@ #define ELF_MACHINE_NO_REL 1 + /* Defined if the architecture supports Elf{32,64}_Rela relocations. */ #define ELF_MACHINE_NO_RELA 0 +#define ELF_MACHINE_NO_RELR 0 + /* Used to calculate the index of link_map l_reloc_result. */ + #define PLTREL ElfW(Rela) - /* We define an initialization function. This is called very early in - _dl_sysdep_start. */ -@@ -545,6 +546,15 @@ elf_machine_rela_relative (ElfW(Addr) l_ - } +--- a/sysdeps/i386/dl-machine-rel.h 2022-02-03 05:27:54.000000000 +0000 ++++ b/sysdeps/i386/dl-machine-rel.h 2022-04-11 10:16:17.677066810 +0000 +@@ -23,6 +23,7 @@ + Prelinked libraries may use Elf32_Rela though. */ + #define ELF_MACHINE_NO_RELA defined RTLD_BOOTSTRAP + #define ELF_MACHINE_NO_REL 0 ++#define ELF_MACHINE_NO_RELR 0 - auto inline void -+__attribute ((always_inline)) -+elf_machine_relr_relative (ElfW(Addr) l_addr, -+ void *const reloc_addr_arg) -+{ -+ ElfW(Addr) *const reloc_addr = reloc_addr_arg; -+ *reloc_addr += l_addr; -+} -+ -+auto inline void - __attribute ((always_inline)) - elf_machine_lazy_rel (struct link_map *map, - ElfW(Addr) l_addr, const ElfW(Rela) *reloc, + /* The i386 never uses Elf32_Rela relocations for the dynamic linker. + Prelinked libraries may use Elf32_Rela though. */ diff --git a/packages/devel/glibc/patches/arm/glibc-tls-libwidevinecdm.so-since-4.10.2252.0-has-TLS-with.patch b/packages/devel/glibc/patches/arm/glibc-tls-libwidevinecdm.so-since-4.10.2252.0-has-TLS-with.patch index f2c900be91..e1eb4d92c1 100644 --- a/packages/devel/glibc/patches/arm/glibc-tls-libwidevinecdm.so-since-4.10.2252.0-has-TLS-with.patch +++ b/packages/devel/glibc/patches/arm/glibc-tls-libwidevinecdm.so-since-4.10.2252.0-has-TLS-with.patch @@ -15,7 +15,7 @@ Subject: [PATCH] tls: libwidevinecdm.so: since 4.10.2252.0 has TLS with @@ -220,6 +220,11 @@ void _dl_determine_tlsoffset (void) { - size_t max_align = TLS_TCB_ALIGN; + size_t max_align = TCB_ALIGNMENT; + /* libwidevinecdm.so: since 4.10.2252.0 has TLS with 64-byte alignment. + Since TLS is initialized before audit modules are loaded and slotinfo + information is available, this is not taken into account below in From b816cdbe25feb105499497711c0a1e523f5aadee Mon Sep 17 00:00:00 2001 From: heitbaum Date: Thu, 10 Feb 2022 06:55:08 +0000 Subject: [PATCH 4/5] binutils: update to 2.38 --- packages/devel/binutils/package.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/devel/binutils/package.mk b/packages/devel/binutils/package.mk index 46d66a87b6..8a375f7a15 100644 --- a/packages/devel/binutils/package.mk +++ b/packages/devel/binutils/package.mk @@ -3,8 +3,8 @@ # Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv) PKG_NAME="binutils" -PKG_VERSION="2.37" -PKG_SHA256="820d9724f020a3e69cb337893a0b63c2db161dadcb0e06fc11dc29eb1e84a32c" +PKG_VERSION="2.38" +PKG_SHA256="e316477a914f567eccc34d5d29785b8b0f5a10208d36bbacedcc39048ecfe024" PKG_LICENSE="GPL" PKG_SITE="https://www.gnu.org/software/binutils/" PKG_URL="https://ftp.gnu.org/gnu/binutils/${PKG_NAME}-${PKG_VERSION}.tar.xz" From 7f2308d7ace5983802915e985de8da2da5a26884 Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Sun, 19 Jun 2022 07:21:21 +0000 Subject: [PATCH 5/5] binutils: do not build documentation --- packages/devel/binutils/package.mk | 4 ++-- packages/devel/binutils/patches/nodocs.patch | 11 ----------- 2 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 packages/devel/binutils/patches/nodocs.patch diff --git a/packages/devel/binutils/package.mk b/packages/devel/binutils/package.mk index 8a375f7a15..4e34263742 100644 --- a/packages/devel/binutils/package.mk +++ b/packages/devel/binutils/package.mk @@ -56,13 +56,13 @@ pre_configure_host() { make_host() { make configure-host - make + make MAKEINFO=true } makeinstall_host() { cp -v ../include/libiberty.h ${SYSROOT_PREFIX}/usr/include make -C bfd install # fix parallel build with libctf requiring bfd - make install + make MAKEINFO=true install } make_target() { diff --git a/packages/devel/binutils/patches/nodocs.patch b/packages/devel/binutils/patches/nodocs.patch deleted file mode 100644 index 11bbb87798..0000000000 --- a/packages/devel/binutils/patches/nodocs.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/binutils/Makefile.in -+++ b/binutils/Makefile.in -@@ -569,7 +569,7 @@ zlibdir = @zlibdir@ - zlibinc = @zlibinc@ - AUTOMAKE_OPTIONS = dejagnu no-dist foreign subdir-objects - ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd --SUBDIRS = doc po -+SUBDIRS = - tooldir = $(exec_prefix)/$(target_alias) - - # Automake 1.10+ disables lex and yacc output file regeneration if