commit: 1933ad5420dada4392022b5571f631f0a5bb21a4 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> AuthorDate: Sun Jun 6 20:37:31 2021 +0000 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> CommitDate: Sun Jun 6 20:37:47 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1933ad54
dev-libs/elfutils: tweak inline annotation 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 <slyfox <AT> gentoo.org> dev-libs/elfutils/elfutils-0.185.ebuild | 1 + dev-libs/elfutils/files/elfutils-0.185-static-inline.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/dev-libs/elfutils/elfutils-0.185.ebuild b/dev-libs/elfutils/elfutils-0.185.ebuild index 5860b8abf50..38edee45ed9 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 00000000000..ec1aaf47a33 --- /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;
