Hello community,

here is the log from the commit of package netpbm for openSUSE:Factory checked 
in at 2019-07-22 12:16:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/netpbm (Old)
 and      /work/SRC/openSUSE:Factory/.netpbm.new.4126 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "netpbm"

Mon Jul 22 12:16:55 2019 rev:69 rq:714058 version:10.86.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/netpbm/netpbm.changes    2019-06-04 
12:07:27.911917573 +0200
+++ /work/SRC/openSUSE:Factory/.netpbm.new.4126/netpbm.changes  2019-07-22 
12:16:56.879719029 +0200
@@ -1,0 +2,6 @@
+Mon Jul  8 07:49:42 UTC 2019 - Andreas Schwab <[email protected]>
+
+- signed-char.patch: fix bad use of plain char
+- big-endian.patch: fix dependency on byte order
+
+-------------------------------------------------------------------

New:
----
  big-endian.patch
  signed-char.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ netpbm.spec ++++++
--- /var/tmp/diff_new_pack.KA9RFv/_old  2019-07-22 12:16:58.207718668 +0200
+++ /var/tmp/diff_new_pack.KA9RFv/_new  2019-07-22 12:16:58.211718667 +0200
@@ -41,6 +41,10 @@
 Patch5:         %{name}-security-scripts.patch
 Patch6:         %{name}-gcc-warnings.patch
 Patch7:         makeman-py3.patch
+# PATCH-FIX-UPSTREAM fix bad use of plain char
+Patch8:         signed-char.patch
+# PATCH-FIX-UPSTREAM fix dependency on byte order
+Patch9:         big-endian.patch
 BuildRequires:  flex
 BuildRequires:  libjasper-devel
 BuildRequires:  libjpeg-devel
@@ -94,6 +98,8 @@
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
+%patch8 -p1
+%patch9 -p1
 mkdir pnmtopalm # for %%doc pnmtopalm
 cp -p converter/other/pnmtopalm/{LICENSE,README} pnmtopalm
 

++++++ big-endian.patch ++++++
Index: netpbm-10.86.3/converter/pbm/pbmtozinc.c
===================================================================
--- netpbm-10.86.3.orig/converter/pbm/pbmtozinc.c
+++ netpbm-10.86.3/converter/pbm/pbmtozinc.c
@@ -107,7 +107,10 @@ packer_putitem(Packer * const packerP) {
         putchar(' ');
 
     ++packerP->itemsperline;
-    printf ("0x%02x%02x", packerP->item & 255, packerP->item >> 8);
+    if (BYTE_ORDER == LITTLE_ENDIAN)
+        printf ("0x%02x%02x", packerP->item & 255, packerP->item >> 8);
+    else
+        printf ("0x%02x%02x", packerP->item >> 8, packerP->item & 255);
 
 }
 
++++++ signed-char.patch ++++++
Index: netpbm-10.86.3/converter/other/pnmtopalm/palmtopnm.c
===================================================================
--- netpbm-10.86.3.orig/converter/other/pnmtopalm/palmtopnm.c
+++ netpbm-10.86.3/converter/other/pnmtopalm/palmtopnm.c
@@ -823,7 +823,7 @@ readPackBitsRow16(FILE *          const
     unsigned int j;
 
     for (j = 0;  j < bytesPerRow; ) {
-        char incount;
+        signed char incount;
         pm_readchar(ifP, &incount);
         if (incount < 0) {
             /* How do we handle incount == -128 ? */
@@ -865,7 +865,7 @@ readPackBitsRow(FILE *          const if
     unsigned int j;
 
     for (j = 0;  j < bytesPerRow; ) {
-        char incount;
+        signed char incount;
         pm_readchar(ifP, &incount);
         if (incount < 0) {
             /* How do we handle incount == -128 ? */

Reply via email to