mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-19 00:09:37 +03:00
media-libs/woff2: fix build w/ gcc-15
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
33
media-libs/woff2/files/woff2-1.0.2-gcc15.patch
Normal file
33
media-libs/woff2/files/woff2-1.0.2-gcc15.patch
Normal file
@@ -0,0 +1,33 @@
|
||||
https://github.com/google/woff2/pull/176
|
||||
|
||||
From 3905a7d9bc349786b458a71587a6176b241e682f Mon Sep 17 00:00:00 2001
|
||||
From: Sergei Trofimovich <slyich@gmail.com>
|
||||
Date: Fri, 2 Aug 2024 22:12:03 +0100
|
||||
Subject: [PATCH] include/woff2/output.h: add missing <stdint.h> include
|
||||
|
||||
Without the change `woff2` build fails on upcoming `gcc-15` as:
|
||||
|
||||
In file included from src/woff2_out.cc:9:
|
||||
include/woff2/output.h:73:25: error: expected ')' before '*' token
|
||||
73 | WOFF2MemoryOut(uint8_t* buf, size_t buf_size);
|
||||
| ~ ^
|
||||
| )
|
||||
include/woff2/output.h:79:3: error: 'uint8_t' does not name a type
|
||||
79 | uint8_t* buf_;
|
||||
| ^~~~~~~
|
||||
include/woff2/output.h:16:1: note: 'uint8_t' is defined in header '<cstdint>';
|
||||
this is probably fixable by adding '#include <cstdint>'
|
||||
15 | #include <string>
|
||||
+++ |+#include <cstdint>
|
||||
16 |
|
||||
--- a/include/woff2/output.h
|
||||
+++ b/include/woff2/output.h
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
#include <memory>
|
||||
+#include <stdint.h>
|
||||
#include <string>
|
||||
|
||||
namespace woff2 {
|
||||
|
||||
@@ -20,6 +20,7 @@ BDEPEND="virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-aliasing.patch
|
||||
"${FILESDIR}"/${PN}-1.0.2-gcc15.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
|
||||
Reference in New Issue
Block a user