mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
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:
@@ -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.
|
||||
Reference in New Issue
Block a user