- Add -Werror-implicit-function-declarations.
- cdparanoia-III-alpha9.8-headers.patch: Fix the resulting errors.
This commit is contained in:
parent
8cfe211a2b
commit
ea82950cd1
22
cdparanoia-III-alpha9.8-headers.patch
Normal file
22
cdparanoia-III-alpha9.8-headers.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
diff -up cdparanoia-III-alpha9.8/header.c.jx cdparanoia-III-alpha9.8/header.c
|
||||||
|
--- cdparanoia-III-alpha9.8/header.c.jx 1999-08-15 18:34:58.000000000 -0400
|
||||||
|
+++ cdparanoia-III-alpha9.8/header.c 2008-03-20 13:23:33.000000000 -0400
|
||||||
|
@@ -10,6 +10,7 @@
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
+#include <stdlib.h>
|
||||||
|
|
||||||
|
static void PutNum(long num,int f,int endianness,int bytes){
|
||||||
|
int i;
|
||||||
|
diff -up cdparanoia-III-alpha9.8/paranoia/gap.c.jx cdparanoia-III-alpha9.8/paranoia/gap.c
|
||||||
|
--- cdparanoia-III-alpha9.8/paranoia/gap.c.jx 2000-04-19 18:41:04.000000000 -0400
|
||||||
|
+++ cdparanoia-III-alpha9.8/paranoia/gap.c 2008-03-20 13:23:12.000000000 -0400
|
||||||
|
@@ -9,6 +9,7 @@
|
||||||
|
#include "p_block.h"
|
||||||
|
#include "cdda_paranoia.h"
|
||||||
|
#include "gap.h"
|
||||||
|
+#include <string.h>
|
||||||
|
|
||||||
|
/**** Gap analysis code ***************************************************/
|
||||||
|
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: cdparanoia
|
Name: cdparanoia
|
||||||
Version: %{realver}
|
Version: %{realver}
|
||||||
Release: 29
|
Release: 30
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: Applications/Multimedia
|
Group: Applications/Multimedia
|
||||||
Source: http://www.xiph.org/paranoia/download/%{name}-III-%{realver}.src.tgz
|
Source: http://www.xiph.org/paranoia/download/%{name}-III-%{realver}.src.tgz
|
||||||
@ -19,6 +19,7 @@ Patch8: cdparanoia-III-alpha9.8.env.patch
|
|||||||
Patch9: cdparanoia-III-alpha9.8.smalldma.patch
|
Patch9: cdparanoia-III-alpha9.8.smalldma.patch
|
||||||
Patch10: cdparanoia-III-alpha9.8.lm.patch
|
Patch10: cdparanoia-III-alpha9.8.lm.patch
|
||||||
Patch11: cdparanoia-III-alpha9.8.scsi-setspeed.patch
|
Patch11: cdparanoia-III-alpha9.8.scsi-setspeed.patch
|
||||||
|
Patch12: cdparanoia-III-alpha9.8-headers.patch
|
||||||
Url: http://www.xiph.org/paranoia/index.html
|
Url: http://www.xiph.org/paranoia/index.html
|
||||||
BuildRoot: %{_tmppath}/cdparanoia-%{version}-root
|
BuildRoot: %{_tmppath}/cdparanoia-%{version}-root
|
||||||
Requires: cdparanoia-libs = %{version}-%{release}
|
Requires: cdparanoia-libs = %{version}-%{release}
|
||||||
@ -66,10 +67,11 @@ applications which read CD Digital Audio disks.
|
|||||||
%patch9 -p1 -b .smalldma
|
%patch9 -p1 -b .smalldma
|
||||||
%patch10 -p1 -b .lm
|
%patch10 -p1 -b .lm
|
||||||
%patch11 -p1 -b .setspeed
|
%patch11 -p1 -b .setspeed
|
||||||
|
%patch12 -p1 -b .headers
|
||||||
|
|
||||||
%build
|
%build
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
export OPT="${CFLAGS:-%optflags} -O0 -Wno-pointer-sign -Wno-unused"
|
export OPT="${CFLAGS:-%optflags} -O0 -Wno-pointer-sign -Wno-unused -Werror-implicit-function-declaration"
|
||||||
%configure --includedir=%{_includedir}/cdda
|
%configure --includedir=%{_includedir}/cdda
|
||||||
make OPT="$OPT"
|
make OPT="$OPT"
|
||||||
|
|
||||||
@ -125,6 +127,10 @@ fi
|
|||||||
%{_libdir}/*.a
|
%{_libdir}/*.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 20 2008 Adam Jackson <ajax@redhat.com> alpha9.8-30
|
||||||
|
- Add -Werror-implicit-function-declarations.
|
||||||
|
- cdparanoia-III-alpha9.8-headers.patch: Fix the resulting errors.
|
||||||
|
|
||||||
* Tue Mar 04 2008 Adam Jackson <ajax@redhat.com> alpha9.8-29
|
* Tue Mar 04 2008 Adam Jackson <ajax@redhat.com> alpha9.8-29
|
||||||
- cdparanoia-III-alpha9.8.scsi-setspeed.patch: Allow setting the speed of
|
- cdparanoia-III-alpha9.8.scsi-setspeed.patch: Allow setting the speed of
|
||||||
SCSI CD drives. (#431178)
|
SCSI CD drives. (#431178)
|
||||||
|
Loading…
Reference in New Issue
Block a user