FTBFS when 255 assigned to a char fixed (narrowing), added cdrdao-1.2.3-narrowing.patch

This commit is contained in:
Frantisek Kluknavsky 2016-02-16 14:47:01 +01:00
parent 05a90eee67
commit 2014688476
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,24 @@
diff -up wrk/dao/CdrDriver.cc.wrk wrk/dao/CdrDriver.cc
--- wrk/dao/CdrDriver.cc.wrk 2016-02-16 14:06:23.158392345 +0100
+++ wrk/dao/CdrDriver.cc 2016-02-16 14:07:11.654597254 +0100
@@ -495,7 +495,7 @@ unsigned char CdrDriver::syncPattern[12]
0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0
};
-char CdrDriver::REMOTE_MSG_SYNC_[4] = { 0xff, 0x00, 0xff, 0x00 };
+unsigned char CdrDriver::REMOTE_MSG_SYNC_[4] = { 0xff, 0x00, 0xff, 0x00 };
/* Maps a string to the corresponding driver option value
diff -up wrk/dao/CdrDriver.h.wrk wrk/dao/CdrDriver.h
--- wrk/dao/CdrDriver.h.wrk 2016-02-16 14:21:18.454174199 +0100
+++ wrk/dao/CdrDriver.h 2016-02-16 14:21:42.381275268 +0100
@@ -440,7 +440,7 @@ protected:
bool fullBurn_;
static unsigned char syncPattern[12];
- static char REMOTE_MSG_SYNC_[4];
+ static unsigned char REMOTE_MSG_SYNC_[4];
static int speed2Mult(int);
static int mult2Speed(int);

View File

@ -1,7 +1,7 @@
Summary: Writes audio CD-Rs in disk-at-once (DAO) mode
Name: cdrdao
Version: 1.2.3
Release: 26%{?dist}
Release: 27%{?dist}
License: GPLv2+
Group: Applications/Multimedia
URL: http://cdrdao.sourceforge.net/
@ -23,6 +23,7 @@ ExcludeArch: s390 s390x
Patch1: cdrdao-1.2.3-stat.patch
Patch2: cdrdao-1.2.3-helpmansync.patch
Patch3: cdrdao-1.2.3-format_security.patch
Patch4: cdrdao-1.2.3-narrowing.patch
%description
Cdrdao records audio CD-Rs in disk-at-once (DAO) mode, based on a
@ -37,6 +38,7 @@ of pre-gaps, the pause areas between tracks.
%patch1 -p1 -b .stat
%patch2 -p1 -b .helpmansync
%patch3 -p1 -b .format_security
%patch4 -p1 -b .narrowing
%build
#run autoreconf to support aarch64
@ -68,6 +70,9 @@ find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
%changelog
* Tue Feb 16 2016 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.2.3-27
- FTBFS when 255 assigned to a char fixed (narrowing), added cdrdao-1.2.3-narrowing.patch
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild