diff --git a/fix-getline-splosion.patch b/fix-getline-splosion.patch new file mode 100644 index 0000000..dc77dde --- /dev/null +++ b/fix-getline-splosion.patch @@ -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; diff --git a/unifdef.spec b/unifdef.spec index 77318f0..c887fad 100644 --- a/unifdef.spec +++ b/unifdef.spec @@ -6,6 +6,7 @@ License: BSD Group: Development/Languages URL: http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/unifdef/ Source0: unifdef-1.171.tar.bz2 +Patch0: fix-getline-splosion.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description @@ -16,6 +17,7 @@ is inactive because it is inside a comment, or a single or double quote. %prep %setup -q +%patch0 -p1 %build make CFLAGS="$RPM_OPT_FLAGS" @@ -41,6 +43,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Fri Jan 15 2010 Kyle McMartin 1.171-10 +- fix unifdef ftbfs (rhbz#511553) + * Sun Jul 26 2009 Fedora Release Engineering - 1.171-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild