- fix unifdef ftbfs (rhbz#511553)
This commit is contained in:
parent
e4da7485d6
commit
4916cd8689
30
fix-getline-splosion.patch
Normal file
30
fix-getline-splosion.patch
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
diff -Nur unifdef-1.171.orig/unifdef.c unifdef-1.171/unifdef.c
|
||||||
|
--- unifdef-1.171.orig/unifdef.c 2006-04-25 17:45:42.000000000 -0400
|
||||||
|
+++ unifdef-1.171/unifdef.c 2010-01-15 15:44:24.000000000 -0500
|
||||||
|
@@ -206,7 +206,7 @@
|
||||||
|
static void error(const char *);
|
||||||
|
static int findsym(const char *);
|
||||||
|
static void flushline(bool);
|
||||||
|
-static Linetype getline(void);
|
||||||
|
+static Linetype unifdef_getline(void);
|
||||||
|
static Linetype ifeval(const char **);
|
||||||
|
static void ignoreoff(void);
|
||||||
|
static void ignoreon(void);
|
||||||
|
@@ -505,7 +505,7 @@
|
||||||
|
|
||||||
|
for (;;) {
|
||||||
|
linenum++;
|
||||||
|
- lineval = getline();
|
||||||
|
+ lineval = unifdef_getline();
|
||||||
|
trans_table[ifstate[depth]][lineval]();
|
||||||
|
debug("process %s -> %s depth %d",
|
||||||
|
linetype_name[lineval],
|
||||||
|
@@ -519,7 +519,7 @@
|
||||||
|
* help from skipcomment().
|
||||||
|
*/
|
||||||
|
static Linetype
|
||||||
|
-getline(void)
|
||||||
|
+unifdef_getline(void)
|
||||||
|
{
|
||||||
|
const char *cp;
|
||||||
|
int cursym;
|
@ -6,6 +6,7 @@ License: BSD
|
|||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
URL: http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/unifdef/
|
URL: http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/unifdef/
|
||||||
Source0: unifdef-1.171.tar.bz2
|
Source0: unifdef-1.171.tar.bz2
|
||||||
|
Patch0: fix-getline-splosion.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -16,6 +17,7 @@ is inactive because it is inside a comment, or a single or double quote.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make CFLAGS="$RPM_OPT_FLAGS"
|
make CFLAGS="$RPM_OPT_FLAGS"
|
||||||
@ -41,6 +43,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 15 2010 Kyle McMartin <kyle@redhat.com> 1.171-10
|
||||||
|
- fix unifdef ftbfs (rhbz#511553)
|
||||||
|
|
||||||
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.171-9
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.171-9
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user