From e597e6deba1fa05b3299f7b0d9b9639a5fe20a26 Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Feb 12 2009 09:45:54 +0000 Subject: rebuild for dependencies --- diff --git a/fmt-ptrn-1.3.17.stack_name_conflict.patch b/fmt-ptrn-1.3.17.stack_name_conflict.patch new file mode 100644 index 0000000..2a83da4 --- /dev/null +++ b/fmt-ptrn-1.3.17.stack_name_conflict.patch @@ -0,0 +1,107 @@ +diff -ru fmt-ptrn-1.3.17.orig/src/fmt-ptrn.c fmt-ptrn-1.3.17/src/fmt-ptrn.c +--- fmt-ptrn-1.3.17.orig/src/fmt-ptrn.c 2009-02-12 09:29:03.000000000 +0000 ++++ fmt-ptrn-1.3.17/src/fmt-ptrn.c 2009-02-12 09:40:48.000000000 +0000 +@@ -117,11 +117,11 @@ + assert(_fmt_ptrn_t_valid(x)); + } + +-/* ============================ stack_t ==================================== */ +-typedef struct stack_t { ++/* ============================ my_stack_t ==================================== */ ++typedef struct my_stack_t { + modifier_t data[STACK_MAX_ITEMS]; + int size; +-} stack_t; ++} my_stack_t; + + /* ============================ _modifier_t_valid () ======================= */ + static gboolean _modifier_t_valid(const modifier_t * m) +@@ -131,7 +131,7 @@ + } + + /* ============================ _stack_t_valid () ========================== */ +-static gboolean _stack_t_valid(const stack_t * s) ++static gboolean _stack_t_valid(const my_stack_t * s) + { + if (s == NULL && s->size != 0) + return FALSE; +@@ -139,14 +139,14 @@ + } + + /* ============================ _stack_init () ============================= */ +-static void _stack_init(stack_t * s) ++static void _stack_init(my_stack_t * s) + { + s->size = 0; + assert(_stack_t_valid(s)); + } + + /* ============================ _stack_push () ============================= */ +-static gboolean _stack_push(fmt_ptrn_t * x, stack_t * s, ++static gboolean _stack_push(fmt_ptrn_t * x, my_stack_t * s, + const modifier_t data) + { + gboolean fnval = FALSE; +@@ -170,7 +170,7 @@ + } + + /* ============================ _stack_pop () ============================== */ +-static gboolean _stack_pop(stack_t * s, modifier_t * data) ++static gboolean _stack_pop(my_stack_t * s, modifier_t * data) + { + gboolean fnval = FALSE; + assert(_stack_t_valid(s)); +@@ -188,7 +188,7 @@ + } + + /* ============================ _stack_contains () ========================= */ +-static int _stack_contains(const stack_t s, const char *n) ++static int _stack_contains(const my_stack_t s, const char *n) + { + int i; + assert(_stack_t_valid(&s)); +@@ -386,7 +386,7 @@ + + /* ============================ _read_modifier () ========================== */ + static gboolean _read_modifier(fmt_ptrn_t * x, char **ptrn, +- stack_t * modifier) ++ my_stack_t * modifier) + { + int i = 0; + size_t len; +@@ -430,7 +430,7 @@ + + /* ============================ _read_modifiers () ========================= */ + static void _read_modifiers(fmt_ptrn_t * x, +- char **ptrn, stack_t * modifier) ++ char **ptrn, my_stack_t * modifier) + { + assert(_fmt_ptrn_t_valid(x)); + assert(ptrn != NULL); +@@ -480,7 +480,7 @@ + + /* ============================ _apply_modifiers () ======================== */ + static void _apply_modifiers(fmt_ptrn_t * x, +- buffer_t * str, stack_t * modifier) ++ buffer_t * str, my_stack_t * modifier) + { + modifier_t m; + +@@ -577,7 +577,7 @@ + static void _handle_fmt_str(fmt_ptrn_t * x, char **p) + { + /* format string -> %( ... :) */ +- stack_t modifier; ++ my_stack_t modifier; + char key[KEY_LEN + 1]; + + assert(_fmt_ptrn_t_valid(x)); +@@ -654,7 +654,7 @@ + while (*pattern != 0x00) { + if (*pattern == '%' && *(pattern + 1) == '(') { + /* format string -> %( ... :) */ +- stack_t modifier; ++ my_stack_t modifier; + char key[KEY_LEN + 1]; + + assert(*pattern != 0x00); diff --git a/fmt-ptrn.spec b/fmt-ptrn.spec index fadeb1b..07fe221 100644 --- a/fmt-ptrn.spec +++ b/fmt-ptrn.spec @@ -1,6 +1,6 @@ Name: fmt-ptrn Version: 1.3.17 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ Source: http://www.flyn.org/projects/%name/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -9,6 +9,7 @@ Summary: A simple template system Group: Development/Tools Requires: zlib BuildRequires: glib2-devel, zlib-devel, java-1.5.0-gcj-devel, libgcj-devel, junit +Patch0: fmt-ptrn-1.3.17.stack_name_conflict.patch %description New is a template system, especially useful in conjunction with a @@ -104,6 +105,7 @@ using fmt-ptrn's Java classes. %setup -q +%patch0 -p1 -b .stack_name_conflict.patch %build @@ -135,6 +137,10 @@ java -p /sbin/ldconfig %changelog +* Thu Feb 12 2009 Caolán McNamara - 1.3.17-3 +- rebuild for dependencies, rename stack_t to my_stack_t to + avoid conflict with /usr/include/bits/sigstack.h's stack_t + * Sun May 25 2008 W. Michael Petullo - 1.3.17-2 - Fixed placement of %%doc in RPM specification.