fixed FTBFS with gcc5, added cdrkit-1.1.11-werror_gcc5.patch
This commit is contained in:
parent
0659144943
commit
430adff64e
22
cdrkit-1.1.11-werror_gcc5.patch
Normal file
22
cdrkit-1.1.11-werror_gcc5.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
diff -up wrk/genisoimage/exclude.c.wrk wrk/genisoimage/exclude.c
|
||||||
|
--- wrk/genisoimage/exclude.c.wrk 2015-02-25 13:16:28.054237196 +0100
|
||||||
|
+++ wrk/genisoimage/exclude.c 2015-02-25 13:33:06.761312002 +0100
|
||||||
|
@@ -39,7 +39,7 @@ exclude(char *fn)
|
||||||
|
{
|
||||||
|
register int i;
|
||||||
|
|
||||||
|
- for (i = 0; excl[i] && i < MAXEXCL; i++)
|
||||||
|
+ for (i = 0; i < MAXEXCL && excl[i]; i++)
|
||||||
|
;
|
||||||
|
|
||||||
|
if (i == MAXEXCL) {
|
||||||
|
@@ -69,7 +69,7 @@ is_excluded(char *fn)
|
||||||
|
/*
|
||||||
|
* very dumb search method ...
|
||||||
|
*/
|
||||||
|
- for (i = 0; excl[i] && i < MAXEXCL; i++) {
|
||||||
|
+ for (i = 0; i < MAXEXCL && excl[i]; i++) {
|
||||||
|
if (strcmp(excl[i], fn) == 0) {
|
||||||
|
return (1); /* found -> excluded filenmae */
|
||||||
|
}
|
||||||
|
diff -up wrk/icedax/toc.c.wrk wrk/icedax/toc.c
|
@ -1,7 +1,7 @@
|
|||||||
Summary: A collection of CD/DVD utilities
|
Summary: A collection of CD/DVD utilities
|
||||||
Name: cdrkit
|
Name: cdrkit
|
||||||
Version: 1.1.11
|
Version: 1.1.11
|
||||||
Release: 26%{?dist}
|
Release: 27%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
URL: http://cdrkit.org/
|
URL: http://cdrkit.org/
|
||||||
@ -24,6 +24,7 @@ Patch15: cdrkit-1.1.11-utf8.patch
|
|||||||
Patch16: cdrkit-1.1.11-cmakewarn.patch
|
Patch16: cdrkit-1.1.11-cmakewarn.patch
|
||||||
Patch17: cdrkit-1.1.11-memset.patch
|
Patch17: cdrkit-1.1.11-memset.patch
|
||||||
Patch19: cdrkit-1.1.11-ppc64le_elfheader.patch
|
Patch19: cdrkit-1.1.11-ppc64le_elfheader.patch
|
||||||
|
Patch20: cdrkit-1.1.11-werror_gcc5.patch
|
||||||
|
|
||||||
BuildRequires: cmake libcap-devel zlib-devel perl file-devel bzip2-devel
|
BuildRequires: cmake libcap-devel zlib-devel perl file-devel bzip2-devel
|
||||||
|
|
||||||
@ -134,6 +135,7 @@ SCSI devices.
|
|||||||
%patch16 -p1 -b .cmakewarn
|
%patch16 -p1 -b .cmakewarn
|
||||||
%patch17 -p1 -b .edcspeed
|
%patch17 -p1 -b .edcspeed
|
||||||
%patch19 -p1 -b .elfheader
|
%patch19 -p1 -b .elfheader
|
||||||
|
%patch20 -p1 -b .werror_gcc5
|
||||||
|
|
||||||
# we do not want bundled paranoia library
|
# we do not want bundled paranoia library
|
||||||
rm -rf libparanoia
|
rm -rf libparanoia
|
||||||
@ -145,7 +147,7 @@ find doc -type f -print0 | xargs -0 chmod a-x
|
|||||||
%build
|
%build
|
||||||
mkdir fedora
|
mkdir fedora
|
||||||
cd fedora
|
cd fedora
|
||||||
export CFLAGS="$RPM_OPT_FLAGS -Wall -Werror -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable -Wno-array-bounds -fno-strict-aliasing"
|
export CFLAGS="$RPM_OPT_FLAGS -Wall -Werror -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable -Wno-array-bounds -fno-strict-aliasing -Wno-logical-not-parentheses"
|
||||||
export CXXFLAGS="$CFLAGS"
|
export CXXFLAGS="$CFLAGS"
|
||||||
export FFLAGS="$CFLAGS"
|
export FFLAGS="$CFLAGS"
|
||||||
%cmake CMAKE_VERBOSE=1 \
|
%cmake CMAKE_VERBOSE=1 \
|
||||||
@ -298,6 +300,9 @@ fi
|
|||||||
%{_includedir}/usal
|
%{_includedir}/usal
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Feb 25 2015 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.1.11-27
|
||||||
|
- fixed FTBFS with gcc5, added cdrkit-1.1.11-werror_gcc5.patch
|
||||||
|
|
||||||
* Fri Nov 07 2014 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.1.11-26
|
* Fri Nov 07 2014 Frantisek Kluknavsky <fkluknav@redhat.com> - 1.1.11-26
|
||||||
- reverted back to cdda-paranoia, cdio has now incompatible GPLv3+ license
|
- reverted back to cdda-paranoia, cdio has now incompatible GPLv3+ license
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user