Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jbig2dec: add patch to restore ABI compatibility #15034

Merged
merged 1 commit into from
Oct 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions srcpkgs/jbig2dec/patches/2002_abi_compat.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Description: Restore ABI compatibility
Author: Julien Cristau <jcristau@debian.org>
Source: https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=940605;filename=0001-Restore-ABI-compatibility-closes-940605.patch;msg=21
Bug-Debian: https://bugs.debian.org/940605
Forwarded: no
Last-Update: 2019-09-19
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- jbig2.c
+++ jbig2.c
@@ -99,6 +99,13 @@
return -1;
}

+#undef jbig2_ctx_new
+Jbig2Ctx *
+jbig2_ctx_new(Jbig2Allocator *allocator, Jbig2Options options, Jbig2GlobalCtx *global_ctx, Jbig2ErrorCallback error_callback, void *error_callback_data)
+{
+ return jbig2_ctx_new_imp((allocator), (options), (global_ctx), (error_callback), (error_callback_data), JBIG2_VERSION_MAJOR, JBIG2_VERSION_MINOR);
+}
+
Jbig2Ctx *
jbig2_ctx_new_imp(Jbig2Allocator *allocator, Jbig2Options options, Jbig2GlobalCtx *global_ctx, Jbig2ErrorCallback error_callback, void *error_callback_data, int jbig2_version_major, int jbig2_version_minor)
{
2 changes: 1 addition & 1 deletion srcpkgs/jbig2dec/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'jbig2dec'
pkgname=jbig2dec
version=0.17
revision=1
revision=2
build_style=gnu-configure
hostmakedepends="automake libtool"
makedepends="libpng-devel"
Expand Down