print/ghostscript/gnu tries to add some additional Warning-becomes-Error

flags to the compile which causes the build to fail on armv7.  Pull down
the fix from upstream.

upstream fix pointed out by sthen@
OK sthen@
This commit is contained in:
phessler
2026-05-10 14:14:20 +00:00
parent 05ad6245c7
commit c2c05d0155
2 changed files with 25 additions and 0 deletions
+1
View File
@@ -1,6 +1,7 @@
COMMENT = PostScript and PDF interpreter
VERSION = 10.07.0
REVISION = 0
DISTNAME = ghostpdl-${VERSION}
PKGNAME = ghostscript-${VERSION}
EXTRACT_SUFX = .tar.xz
@@ -0,0 +1,24 @@
Fixes build on armv7
https://bugs.ghostscript.com/show_bug.cgi?id=708831
Index: brotli/c/dec/decode.c
--- brotli/c/dec/decode.c.orig
+++ brotli/c/dec/decode.c
@@ -436,11 +436,12 @@ static BROTLI_INLINE void PreloadSymbol(int safe,
brotli_reg_t* value) {
if (safe) {
return;
+ } else {
+ BROTLI_HC_MARK_TABLE_FOR_FAST_LOAD(table);
+ BROTLI_HC_ADJUST_TABLE_INDEX(table, BrotliGetBits(br, HUFFMAN_TABLE_BITS));
+ *bits = BROTLI_HC_FAST_LOAD_BITS(table);
+ *value = BROTLI_HC_FAST_LOAD_VALUE(table);
}
- BROTLI_HC_MARK_TABLE_FOR_FAST_LOAD(table);
- BROTLI_HC_ADJUST_TABLE_INDEX(table, BrotliGetBits(br, HUFFMAN_TABLE_BITS));
- *bits = BROTLI_HC_FAST_LOAD_BITS(table);
- *value = BROTLI_HC_FAST_LOAD_VALUE(table);
}
/* Decodes the next Huffman code using data prepared by PreloadSymbol.