commit:     914a4aa87415dabfe77181a2365766417a5919a4
Author:     Rolf Eike Beer <eike <AT> sf-mail <DOT> de>
AuthorDate: Wed Nov 17 15:56:46 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Nov 17 21:55:57 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=914a4aa8

dev-libs/libowfat: fix build with sys-libs/glibc-2.34

Closes: https://bugs.gentoo.org/806505
Signed-off-by: Rolf Eike Beer <eike <AT> sf-mail.de>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../{libowfat-0.32-r4.ebuild => libowfat-0.32-r5.ebuild}       | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/dev-libs/libowfat/libowfat-0.32-r4.ebuild 
b/dev-libs/libowfat/libowfat-0.32-r5.ebuild
similarity index 72%
rename from dev-libs/libowfat/libowfat-0.32-r4.ebuild
rename to dev-libs/libowfat/libowfat-0.32-r5.ebuild
index 1d012c474e76..c85792782f66 100644
--- a/dev-libs/libowfat/libowfat-0.32-r4.ebuild
+++ b/dev-libs/libowfat/libowfat-0.32-r5.ebuild
@@ -27,6 +27,16 @@ pkg_setup() {
        append-flags -fomit-frame-pointer
 }
 
+src_prepare() {
+       default
+
+       # do not define "__pure__", this the gcc builtin (bug #806505)
+       sed 's#__pure__;#__attribute__((__pure__));#' -i fmt.h scan.h byte.h 
stralloc.h str.h critbit.h || die
+       sed 's#__pure__$#__attrib__pure__#' -i  fmt.h scan.h byte.h stralloc.h 
str.h critbit.h || die
+       # remove unneeded definition of __deprecated__
+       sed '/^#define __deprecated__$/d' -i scan/scan_iso8601.c 
scan/scan_httpdate.c || die
+}
+
 src_compile() {
        emake \
                CC=$(tc-getCC) \

Reply via email to