Hello community,

here is the log from the commit of package hex2bin for openSUSE:Factory checked 
in at 2020-06-10 00:48:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/hex2bin (Old)
 and      /work/SRC/openSUSE:Factory/.hex2bin.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "hex2bin"

Wed Jun 10 00:48:09 2020 rev:4 rq:812705 version:2.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/hex2bin/hex2bin.changes  2018-10-09 
15:54:04.606289185 +0200
+++ /work/SRC/openSUSE:Factory/.hex2bin.new.3606/hex2bin.changes        
2020-06-10 00:48:09.734905128 +0200
@@ -1,0 +2,5 @@
+Mon Jun  8 17:04:55 UTC 2020 - Luigi Baldoni <aloi...@gmx.com>
+
+- Add Hex2bin-gcc10.patch
+
+-------------------------------------------------------------------

New:
----
  Hex2bin-gcc10.patch

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

Other differences:
------------------
++++++ hex2bin.spec ++++++
--- /var/tmp/diff_new_pack.N735YN/_old  2020-06-10 00:48:10.326906676 +0200
+++ /var/tmp/diff_new_pack.N735YN/_new  2020-06-10 00:48:10.330906687 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package hex2bin
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,13 +25,15 @@
 URL:            https://sourceforge.net/projects/hex2bin
 Source:         
https://downloads.sourceforge.net/%{name}/Hex2bin-%{version}.tar.bz2
 BuildRequires:  dos2unix
+# PATCH-FIX-OPENSUSE Hex2bin-gcc10.patch
+Patch0:         Hex2bin-gcc10.patch
 
 %description
 Converts Motorola and Intel hex files to binary. For other formats, check this
 project also on sourceforge: srecord
 
 %prep
-%setup -q -n Hex2bin-%{version}
+%autosetup -p1 -n Hex2bin-%{version}
 rm -f hex2bin mot2bin
 dos2unix doc/S-record.txt doc/srec.txt
 sed -e 's/^CPFLAGS =.*/CPFLAGS = -std=c99 %{optflags}/' \
@@ -39,7 +41,7 @@
     -i Makefile
 
 %build
-make %{?_smp_mflags}
+%make_build
 
 %install
 install -d %{buildroot}/%{_bindir} %{buildroot}/%{_mandir}/man1

++++++ Hex2bin-gcc10.patch ++++++
Index: Hex2bin-2.5/common.h
===================================================================
--- Hex2bin-2.5.orig/common.h
+++ Hex2bin-2.5/common.h
@@ -74,55 +74,55 @@ void GetFilename(char *dest,char *src);
 void GetExtension(const char *str,char *ext);
 void PutExtension(char *Flnm, char *Extension);
 
-filetype    Filename;           /* string for opening files */
-char        Extension[MAX_EXTENSION_SIZE];       /* filename extension for 
output files */
+extern filetype    Filename;           /* string for opening files */
+extern char        Extension[MAX_EXTENSION_SIZE];       /* filename extension 
for output files */
 
-FILE        *Filin,             /* input files */
-            *Filout;            /* output files */
+extern FILE        *Filin,             /* input files */
+                   *Filout;            /* output files */
 
 #ifdef USE_FILE_BUFFERS
 char           *FilinBuf,          /* text buffer for file input */
             *FiloutBuf;         /* text buffer for file output */
 #endif
 
-int Pad_Byte;
-bool Enable_Checksum_Error;
-bool Status_Checksum_Error;
-byte   Checksum;
-unsigned int Record_Nb;
-unsigned int Nb_Bytes;
+extern int Pad_Byte;
+extern bool Enable_Checksum_Error;
+extern bool Status_Checksum_Error;
+extern byte    Checksum;
+extern unsigned int Record_Nb;
+extern unsigned int Nb_Bytes;
 
 /* This will hold binary codes translated from hex file. */
-byte *Memory_Block;
-unsigned int Lowest_Address, Highest_Address;
-unsigned int Starting_Address, Phys_Addr;
-unsigned int Records_Start; // Lowest address of the records
-unsigned int Max_Length;
-unsigned int Minimum_Block_Size;
-unsigned int Ceiling_Address;
-unsigned int Floor_Address;
-int Module;
-bool Minimum_Block_Size_Setted;
-bool Starting_Address_Setted;
-bool Floor_Address_Setted;
-bool Ceiling_Address_Setted;
-bool Max_Length_Setted;
-bool Swap_Wordwise;
-bool Address_Alignment_Word;
-bool Batch_Mode;
-bool Verbose_Flag;
-
-int Endian;
-
-t_CRC Cks_Type;
-unsigned int Cks_Start, Cks_End, Cks_Addr, Cks_Value;
-bool Cks_range_set;
-bool Cks_Addr_set;
-bool Force_Value;
-
-unsigned int Crc_Poly, Crc_Init, Crc_XorOut;
-bool Crc_RefIn;
-bool Crc_RefOut;
+extern byte *Memory_Block;
+extern unsigned int Lowest_Address, Highest_Address;
+extern unsigned int Starting_Address, Phys_Addr;
+extern unsigned int Records_Start; // Lowest address of the records
+extern unsigned int Max_Length;
+extern unsigned int Minimum_Block_Size;
+extern unsigned int Ceiling_Address;
+extern unsigned int Floor_Address;
+extern int Module;
+extern bool Minimum_Block_Size_Setted;
+extern bool Starting_Address_Setted;
+extern bool Floor_Address_Setted;
+extern bool Ceiling_Address_Setted;
+extern bool Max_Length_Setted;
+extern bool Swap_Wordwise;
+extern bool Address_Alignment_Word;
+extern bool Batch_Mode;
+extern bool Verbose_Flag;
+
+extern int Endian;
+
+extern t_CRC Cks_Type;
+extern unsigned int Cks_Start, Cks_End, Cks_Addr, Cks_Value;
+extern bool Cks_range_set;
+extern bool Cks_Addr_set;
+extern bool Force_Value;
+
+extern unsigned int Crc_Poly, Crc_Init, Crc_XorOut;
+extern bool Crc_RefIn;
+extern bool Crc_RefOut;
 
 void VerifyChecksumValue(void);
 void VerifyRangeFloorCeil(void);
Index: Hex2bin-2.5/libcrc.h
===================================================================
--- Hex2bin-2.5.orig/libcrc.h
+++ Hex2bin-2.5/libcrc.h
@@ -24,7 +24,7 @@
 #ifndef _LIBCRC_H_
 #define _LIBCRC_H_
 
-void *crc_table;
+extern void *crc_table;
 
 void init_crc8_normal_tab(uint8_t polynom);
 void init_crc8_reflected_tab(uint8_t polynom);

Reply via email to