summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2021-11-17 16:56:46 +0100
committerSam James <sam@gentoo.org>2021-11-17 21:55:57 +0000
commit914a4aa87415dabfe77181a2365766417a5919a4 (patch)
tree700bc7d73107c2d0f2d82672bd97dac70f0f4853 /dev-libs/libowfat
parentnet-misc/curl: remove unused patches (diff)
downloadgentoo-914a4aa87415dabfe77181a2365766417a5919a4.tar.gz
gentoo-914a4aa87415dabfe77181a2365766417a5919a4.tar.bz2
gentoo-914a4aa87415dabfe77181a2365766417a5919a4.zip
dev-libs/libowfat: fix build with sys-libs/glibc-2.34
Closes: https://bugs.gentoo.org/806505 Signed-off-by: Rolf Eike Beer <eike@sf-mail.de> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/libowfat')
-rw-r--r--dev-libs/libowfat/libowfat-0.32-r5.ebuild (renamed from dev-libs/libowfat/libowfat-0.32-r4.ebuild)10
1 files changed, 10 insertions, 0 deletions
diff --git a/dev-libs/libowfat/libowfat-0.32-r4.ebuild b/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) \