commit f10b7e0ed1f48864fd5f30659438dad1a92f778c
Author: Paul Howarth <paul(a)city-fan.org>
Date: Tue Mar 2 21:28:19 2021 +0000
Fix jas_memdump replacement function
xv-3.10a-jas_memdump.patch | 11 +++++++++++
xv.spec | 9 ++++++++-
2 files changed, 19 insertions(+), 1 deletion(-)
---
diff --git a/xv-3.10a-jas_memdump.patch b/xv-3.10a-jas_memdump.patch
new file mode 100644
index 0000000..9446b5c
--- /dev/null
+++ b/xv-3.10a-jas_memdump.patch
@@ -0,0 +1,11 @@
+--- xvjp2k.c
++++ xvjp2k.c
+@@ -76,7 +76,7 @@ static const char *fbasename, /* File's
+ */
+ int jas_getdbglevel(void) {return 0;}
+ int jas_setdbglevel(int n) {return 0;}
+-int jas_memdump(FILE *fp,void *data,size_t len) {return 0;}
++int jas_memdump(FILE *fp,const void *data,size_t len) {return 0;}
+
+ int jas_eprintf(const char *fmt,...) /* Handle JasPer Library message */
+ {
diff --git a/xv.spec b/xv.spec
index 3885187..63ac033 100644
--- a/xv.spec
+++ b/xv.spec
@@ -36,6 +36,7 @@ Patch9: xv-3.10a-png-itxt.patch
Patch10: xv-3.10a-smooth-fix2.patch
Patch11: xv-3.10a-signal.patch
Patch12: xv-3.10a-gcc10.patch
+Patch13: xv-3.10a-jas_memdump.patch
BuildRequires: gcc
BuildRequires: libtiff-devel
@@ -166,6 +167,9 @@ rm ../%{name}-%{vprog}-jumbo-fix-enh-patch-%{vjumbo}.txt
# Fix FTBFS with GCC 10
%patch12 -p0
+# Fix jas_memdump replacement function
+%patch13 -p0
+
# Include permission to distribute
install -m 0644 -p %{SOURCE2} .
@@ -278,7 +282,10 @@ done
%doc %{_docdir}/%{name}-%{vprog}/manuals/
%changelog
-* Thu Feb 04 2021 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> -
3.10a.jumbopatch.20070520-36
+* Tue Mar 2 2021 Paul Howarth <paul(a)city-fan.org> - 3.10a.jumbopatch.20070520-36
+- Fix jas_memdump replacement function
+
+* Thu Feb 04 2021 RPM Fusion Release Engineering <leigh123linux(a)gmail.com>
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Aug 19 2020 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> -
3.10a.jumbopatch.20070520-35