[jmagick] 02/03: Apply patch for missing getByteArrayFieldValue prototype (Closes: #727776)
Tony Mancill
tmancill at moszumanska.debian.org
Thu May 18 04:53:21 UTC 2017
This is an automated email from the git hooks/post-receive script.
tmancill pushed a commit to branch master
in repository jmagick.
commit 205880aeec73538c3dc934af207565e4dd3032de
Author: tony mancill <tmancill at debian.org>
Date: Wed May 17 21:38:17 2017 -0700
Apply patch for missing getByteArrayFieldValue prototype (Closes: #727776)
---
debian/patches/02_jmagick_implicit_decl.patch | 37 +++++++++++++++++++++++++++
debian/patches/series | 2 +-
2 files changed, 38 insertions(+), 1 deletion(-)
diff --git a/debian/patches/02_jmagick_implicit_decl.patch b/debian/patches/02_jmagick_implicit_decl.patch
new file mode 100644
index 0000000..c2c1e64
--- /dev/null
+++ b/debian/patches/02_jmagick_implicit_decl.patch
@@ -0,0 +1,37 @@
+Description: Include the missing prototype for getByteArrayFieldValue
+Author: Adam Conrad <adconrad at ubuntu.com>
+
+Index: jmagick-6.6.9~20130201-svn99/src/magick/jmagick.h
+===================================================================
+--- jmagick-6.6.9~20130201-svn99.orig/src/magick/jmagick.h 2013-10-26 10:45:26.000000000 -0600
++++ jmagick-6.6.9~20130201-svn99/src/magick/jmagick.h 2013-10-26 10:50:51.932356603 -0600
+@@ -110,6 +110,29 @@
+ jint value);
+
+ /*
++ * Retrieve the byte array from the specified field.
++ *
++ * Input:
++ * env Java VM environment.
++ * obj Java object for which the value is to be retrieved.
++ * fieldName name of the field to be retrieved.
++ * fieldID if non-null, points to field ID. 0 to request retrieval.
++ *
++ * Output:
++ * fieldID if non-null, will contain the field ID.
++ * size the size of the array is returned here. Must not be NULL.
++ *
++ * Return:
++ * The byte array requested. The caller is responsible for
++ * deallocating this byte array.
++ */
++unsigned char* getByteArrayFieldValue(JNIEnv *env,
++ jobject obj,
++ const char *fieldName,
++ jfieldID *fieldID,
++ int *size);
++
++/*
+ * From a java.awt.Rectangle object, construct a ImageMagick
+ * RectangleInfo, as passed in from the parameter.
+ *
diff --git a/debian/patches/series b/debian/patches/series
index a78fbd9..c416ef9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,3 @@
01_fix_load_jnilib.patch
-
+02_jmagick_implicit_decl.patch
0001-Use-pkgconfig-for-flags.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jmagick.git
More information about the pkg-java-commits
mailing list