From 1933ad5420dada4392022b5571f631f0a5bb21a4 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 6 Jun 2021 21:37:31 +0100 Subject: dev-libs/elfutils: tweak inline annotation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported-by: Toralf Förster Closes: https://bugs.gentoo.org/794601 Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Sergei Trofimovich --- dev-libs/elfutils/elfutils-0.185.ebuild | 1 + dev-libs/elfutils/files/elfutils-0.185-static-inline.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 dev-libs/elfutils/files/elfutils-0.185-static-inline.patch diff --git a/dev-libs/elfutils/elfutils-0.185.ebuild b/dev-libs/elfutils/elfutils-0.185.ebuild index 5860b8abf503..38edee45ed96 100644 --- a/dev-libs/elfutils/elfutils-0.185.ebuild +++ b/dev-libs/elfutils/elfutils-0.185.ebuild @@ -33,6 +33,7 @@ PATCHES=( "${FILESDIR}"/${PN}-0.175-disable-biarch-test-PR24158.patch "${FILESDIR}"/${PN}-0.177-disable-large.patch "${FILESDIR}"/${PN}-0.180-PaX-support.patch + "${FILESDIR}"/${PN}-0.185-static-inline.patch ) src_prepare() { diff --git a/dev-libs/elfutils/files/elfutils-0.185-static-inline.patch b/dev-libs/elfutils/files/elfutils-0.185-static-inline.patch new file mode 100644 index 000000000000..ec1aaf47a331 --- /dev/null +++ b/dev-libs/elfutils/files/elfutils-0.185-static-inline.patch @@ -0,0 +1,12 @@ +https://bugs.gentoo.org/794601 +--- a/src/elflint.c ++++ b/src/elflint.c +@@ -3434,7 +3434,7 @@ buffer_pos (Elf_Data *data, const unsigned char *p) + return p - (const unsigned char *) data->d_buf; + } + +-inline size_t ++static inline size_t + buffer_left (Elf_Data *data, const unsigned char *p) + { + return (const unsigned char *) data->d_buf + data->d_size - p; -- cgit v1.2.3-18-g5258