diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-09-04 22:23:05 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-09-04 22:23:05 +0100 |
commit | cb259c03daeefbbc0a46d61314d25be7edeb14e8 (patch) | |
tree | e228a8c4418efcbf6d2bcf37aa9f01bd1b4eb43b /x11-libs/cairo/files | |
parent | 86eece26841510c190c0b254a24efc4d6b42acec (diff) |
gentoo auto-resync : 04:09:2022 - 22:23:05
Diffstat (limited to 'x11-libs/cairo/files')
-rw-r--r-- | x11-libs/cairo/files/cairo-1.16.0-binutils-2.39-ptr.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/x11-libs/cairo/files/cairo-1.16.0-binutils-2.39-ptr.patch b/x11-libs/cairo/files/cairo-1.16.0-binutils-2.39-ptr.patch new file mode 100644 index 000000000000..6749786d23bd --- /dev/null +++ b/x11-libs/cairo/files/cairo-1.16.0-binutils-2.39-ptr.patch @@ -0,0 +1,29 @@ +https://gitlab.freedesktop.org/cairo/cairo/-/commit/74f2da7b70179a363b5a4649b9c5d6fd18d9cbc0 +https://bugs.gentoo.org/868405 + +From 24996e6ee241ebcd303dd34a2b06b37a6dd0c217 Mon Sep 17 00:00:00 2001 +From: Simon McVittie <smcv@debian.org> +Date: Wed, 13 Jul 2022 21:26:57 +0100 +Subject: [PATCH] Fix build with newer binutils-dev installed + +It seems the PTR typedef (or macro?) has been removed from newer versions +of libbfd. + +Resolves: https://gitlab.freedesktop.org/cairo/cairo/-/issues/581 +Signed-off-by: Simon McVittie <smcv@debian.org> +--- a/util/cairo-trace/lookup-symbol.c ++++ b/util/cairo-trace/lookup-symbol.c +@@ -106,10 +106,10 @@ _symtab_init (struct symtab *symtab, const char *filename) + if (! bfd_check_format_matches (symtab->bfd, bfd_object, &matching)) + goto BAIL; + +- symcount = bfd_read_minisymbols (symtab->bfd, false, (PTR) &symtab->syms, &size); ++ symcount = bfd_read_minisymbols (symtab->bfd, false, (void **) &symtab->syms, &size); + if (symcount == 0) { + symcount = bfd_read_minisymbols (symtab->bfd, true /* dynamic */ , +- (PTR) &symtab->syms, &size); ++ (void **) &symtab->syms, &size); + } + if (symcount < 0) + goto BAIL; +GitLab |