diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2021-02-12 21:06:38 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2021-04-17 23:39:40 -0500 |
commit | 77439b677a6d6a900b9e06d36f659753de229dd5 (patch) | |
tree | 2aa26c3c3addb808133c122408577abb4b14342c /libraries/libmirage | |
parent | 2684f551cb01fbeab5bc188de59b629e0b024b5b (diff) |
libraries/libmirage: Patch for gcc >= 10.x.
Thanks to camerabambai on LQ
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/libmirage')
-rw-r--r-- | libraries/libmirage/libmirage-3.2.4-gcc-10.patch | 34 | ||||
-rw-r--r-- | libraries/libmirage/libmirage.SlackBuild | 2 |
2 files changed, 36 insertions, 0 deletions
diff --git a/libraries/libmirage/libmirage-3.2.4-gcc-10.patch b/libraries/libmirage/libmirage-3.2.4-gcc-10.patch new file mode 100644 index 0000000000000..7834e39eed7ca --- /dev/null +++ b/libraries/libmirage/libmirage-3.2.4-gcc-10.patch @@ -0,0 +1,34 @@ +From 7288d06f79d935798b917f707b86a33f5b69125a Mon Sep 17 00:00:00 2001 +From: Rok Mandeljc <rok.mandeljc@gmail.com> +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. +--- + libmirage/mirage/utils.h | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/libmirage/mirage/utils.h b/libmirage/mirage/utils.h +index 64611810..fc431d2f 100644 +--- a/mirage/utils.h ++++ b/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_bom (const guint8 *buffer); + + + /* 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/libraries/libmirage/libmirage.SlackBuild b/libraries/libmirage/libmirage.SlackBuild index 74e0ab5f142bd..1d2e81d297a8a 100644 --- a/libraries/libmirage/libmirage.SlackBuild +++ b/libraries/libmirage/libmirage.SlackBuild @@ -71,6 +71,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +patch -p1 < $CWD/libmirage-3.2.4-gcc-10.patch + mkdir -p build cd build cmake \ |