1
0
forked from pool/libmirage

Accepting request 888531 from filesystems

- Update to 3.2.5

OBS-URL: https://build.opensuse.org/request/show/888531
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libmirage?expand=0&rev=24
This commit is contained in:
Dominique Leuenberger 2021-04-27 19:34:31 +00:00 committed by Git OBS Bridge
commit f098419fba
6 changed files with 43 additions and 73 deletions

View File

@ -1,34 +0,0 @@
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.
---
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);

View File

@ -1,24 +0,0 @@
Origin: https://gist.github.com/andreafioraldi/343d9ba64060b548c02362a5e61ec932
---
images/image-nrg/parser.c | 7 +++++++
1 file changed, 7 insertions(+)
Index: libmirage-3.2.3/images/image-nrg/parser.c
===================================================================
--- libmirage-3.2.3.orig/images/image-nrg/parser.c
+++ libmirage-3.2.3/images/image-nrg/parser.c
@@ -987,6 +987,13 @@ static MirageDisc *mirage_parser_nrg_loa
/* Set CD-ROM as default medium type, will be changed accordingly if there
is a MTYP block provided */
mirage_disc_set_medium_type(self->priv->disc, MIRAGE_MEDIUM_CD);
+ /* Length integrity check */
+ if (self->priv->nrg_data_length == 0) {
+ MIRAGE_DEBUG(self, MIRAGE_DEBUG_WARNING, "%s: rg_data_length must be greater than 0!\n", __debug__);
+ g_set_error(error, MIRAGE_ERROR, MIRAGE_ERROR_IMAGE_FILE_ERROR, Q_("nrg_data_length must be greater than 0!"));
+ succeeded = FALSE;
+ goto end;
+ }
/* Validate data length */
if (self->priv->nrg_data_length == 0) {

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fc5b3b8acd40d63c6194fba65c841b906a8074e89b14a10bf76f35d1c371a355
size 234530

3
libmirage-3.2.5.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d50d97e15f180f99fddcdf388b0d9fec073fb8fe080ba6c69cd3674214141139
size 229380

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Tue Apr 20 03:24:48 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de>
- Update to 3.2.5
* Added Vala bindings
* Display a warning when ISRC validation fails
* Fix crash caused by buffer overrun
- Fixed broken URL
- Dropped upstream fixed
0001-libMirage-utils.h-added-missing-extern-specifiers.patch
- Dropped upstream fixed CVE-2019-15757.patch
(fixed since 3.2.3, commit bf3f346)
-------------------------------------------------------------------
Sun Jun 7 00:01:27 UTC 2020 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package libmirage
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -22,15 +22,12 @@ Name: libmirage
Summary: A CD-ROM image access library
License: GPL-2.0-or-later
Group: Development/Libraries/C and C++
Version: 3.2.4
Version: 3.2.5
Release: 0
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
URL: https://cdemu.sourceforge.io/about/libmirage/
#Git-Clone: https://github.com/cdemu/cdemu.git
Source: http://downloads.sourceforge.net/cdemu/%name-%version.tar.xz
BuildRequires: cmake >= 3.7
BuildRequires: intltool >= 0.21
BuildRequires: pkg-config >= 0.16
BuildRequires: pkgconfig(bzip2) >= 1.0.0
@ -44,6 +41,7 @@ BuildRequires: pkgconfig(liblzma) >= 5.0.0
BuildRequires: pkgconfig(samplerate) >= 0.1.0
BuildRequires: pkgconfig(shared-mime-info)
BuildRequires: pkgconfig(sndfile) >= 1.0.0
BuildRequires: pkgconfig(vapigen)
BuildRequires: pkgconfig(zlib) >= 1.2.4
Recommends: %name-lang
@ -120,6 +118,17 @@ file.
This package contains the MIME type definitions and documentation.
%package vala
Summary: Vala bindings to libmirage
BuildArch: noarch
%description vala
libmirage provides uniform access to the data stored in different
image formats by creating a representation of disc stored in image
file.
This package contains the Vala bindings to libmirage
%package -n typelib-1_0-libmirage-%pname
Summary: Introspection bindings for the libmirage CD-ROM image access library
Group: System/Libraries
@ -135,8 +144,10 @@ This package provides the GObject Introspection bindings for libmirage.
%autosetup -p1
%build
%cmake -DCMAKE_MODULE_LINKER_FLAGS=""
make %{?_smp_mflags}
%cmake \
-DCMAKE_MODULE_LINKER_FLAGS="" \
-DVAPI_ENABLED=ON
%cmake_build
%install
%cmake_install
@ -167,6 +178,10 @@ make %{?_smp_mflags}
%_libdir/pkgconfig/libmirage.pc
%_datadir/gir-1.0
%files vala
%dir %_datadir/vala/vapi
%_datadir/vala/vapi/%name.vapi
%files lang -f %name.lang
%files -n typelib-1_0-libmirage-%pname