diff --git a/0001-libMirage-utils.h-added-missing-extern-specifiers.patch b/0001-libMirage-utils.h-added-missing-extern-specifiers.patch new file mode 100644 index 0000000..166efc9 --- /dev/null +++ b/0001-libMirage-utils.h-added-missing-extern-specifiers.patch @@ -0,0 +1,34 @@ +From 7288d06f79d935798b917f707b86a33f5b69125a Mon Sep 17 00:00:00 2001 +From: Rok Mandeljc +Date: Sat, 2 May 2020 17:37:34 +0200 +Subject: [PATCH] libMirage: utils.h: added missing extern specifiers + +The lack thereof seems to be causing errors with gcc 10 on Fedora 32. +--- + mirage/utils.h | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +Index: libmirage-3.2.4/mirage/utils.h +=================================================================== +--- libmirage-3.2.4.orig/mirage/utils.h ++++ libmirage-3.2.4/mirage/utils.h +@@ -83,8 +83,8 @@ gchar mirage_helper_isrc2ascii (guint8 c + gboolean mirage_helper_validate_isrc (const gchar *isrc); + + /* CRC utility functions */ +-guint16 *crc16_1021_lut; +-guint32 *crc32_d8018001_lut; ++extern guint16 *crc16_1021_lut; ++extern guint32 *crc32_d8018001_lut; + + guint16 *mirage_helper_init_crc16_lut (guint16 genpoly); + guint32 *mirage_helper_init_crc32_lut (guint32 genpoly, guint slices); +@@ -139,7 +139,7 @@ const gchar *mirage_helper_encoding_from + + + /* ECMA-130 Annex B sector data scrambler */ +-guint8 *ecma_130_scrambler_lut; ++extern guint8 *ecma_130_scrambler_lut; + + guint8 *mirage_helper_init_ecma_130b_scrambler_lut (void); + diff --git a/libmirage.changes b/libmirage.changes index b9e8fa5..69e4936 100644 --- a/libmirage.changes +++ b/libmirage.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Jun 7 00:01:27 UTC 2020 - Jan Engelhardt + +- Add 0001-libMirage-utils.h-added-missing-extern-specifiers.patch . + ------------------------------------------------------------------- Fri May 1 13:48:45 UTC 2020 - Aaron Stern diff --git a/libmirage.spec b/libmirage.spec index 8030ba7..2be452d 100644 --- a/libmirage.spec +++ b/libmirage.spec @@ -28,6 +28,7 @@ URL: http://cdemu.sf.net/about/libmirage/ #Git-Clone: git://git.code.sf.net/p/cdemu/code Source: https://downloads.sf.net/cdemu/%name-%version.tar.bz2 +Patch1: 0001-libMirage-utils.h-added-missing-extern-specifiers.patch Patch3: CVE-2019-15757.patch BuildRequires: cmake >= 2.8.5 BuildRequires: intltool >= 0.21