diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-08-10 04:23:51 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-08-10 04:25:07 +0200 |
commit | 3d920a75eed32d30e6ad433371596f579e776928 (patch) | |
tree | 2d9979ce6e32ff0c8dd0a6f2dbbaac765bfb361a /dev-libs/libmirage | |
parent | sys-kernel/zen-sources: version bump 5.7.12 (diff) | |
download | gentoo-3d920a75eed32d30e6ad433371596f579e776928.tar.gz gentoo-3d920a75eed32d30e6ad433371596f579e776928.tar.bz2 gentoo-3d920a75eed32d30e6ad433371596f579e776928.zip |
dev-libs/libmirage: Fix gcc-10 build
Closes: https://bugs.gentoo.org/707446
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-libs/libmirage')
-rw-r--r-- | dev-libs/libmirage/files/libmirage-3.2.4-gcc-10.patch | 34 | ||||
-rw-r--r-- | dev-libs/libmirage/libmirage-3.2.4.ebuild | 4 |
2 files changed, 38 insertions, 0 deletions
diff --git a/dev-libs/libmirage/files/libmirage-3.2.4-gcc-10.patch b/dev-libs/libmirage/files/libmirage-3.2.4-gcc-10.patch new file mode 100644 index 000000000000..7834e39eed7c --- /dev/null +++ b/dev-libs/libmirage/files/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/dev-libs/libmirage/libmirage-3.2.4.ebuild b/dev-libs/libmirage/libmirage-3.2.4.ebuild index ba836ebd3393..4aad2870f2df 100644 --- a/dev-libs/libmirage/libmirage-3.2.4.ebuild +++ b/dev-libs/libmirage/libmirage-3.2.4.ebuild @@ -30,6 +30,10 @@ BDEPEND=" doc? ( dev-util/gtk-doc ) introspection? ( >=dev-libs/gobject-introspection-1.30 )" +PATCHES=( + "${FILESDIR}"/${P}-gcc-10.patch +) + DOCS=( AUTHORS README ) src_configure() { |