diff --git a/patchutils.changes b/patchutils.changes index e716b04..782f0c9 100644 --- a/patchutils.changes +++ b/patchutils.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Apr 19 17:35:26 CEST 2010 - sndirsch@suse.de + +- rediff-hunk-init-fix.diff (Takashi Iwai) + * hunk structure wasn't correctly initialized; fixes + tests/addhunk2 testcase, which broke the build + ------------------------------------------------------------------- Wed Jan 6 03:04:34 CET 2010 - jengelh@medozas.de diff --git a/patchutils.spec b/patchutils.spec index a0d1114..26b8102 100644 --- a/patchutils.spec +++ b/patchutils.spec @@ -24,11 +24,12 @@ License: GPLv2+ Group: Productivity/File utilities AutoReqProv: on Version: 0.3.1 -Release: 2 +Release: 3 Summary: A Collection of Tools for Manipulating Patch Files Source: %name-%version.tar.bz2 Patch: %name-0.2.30-tailsyntax.diff Patch1: overrun.diff +Patch2: rediff-hunk-init-fix.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -53,6 +54,7 @@ Authors: %setup -q %patch -p1 %patch1 +%patch2 -p1 %build autoreconf -fi diff --git a/rediff-hunk-init-fix.diff b/rediff-hunk-init-fix.diff new file mode 100644 index 0000000..443b424 --- /dev/null +++ b/rediff-hunk-init-fix.diff @@ -0,0 +1,14 @@ +--- + src/rediff.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/src/rediff.c ++++ b/src/rediff.c +@@ -841,6 +841,7 @@ + newhunk->filepos = pos; + newhunk->line_in_diff = linenum; + newhunk->num_lines = 0; ++ newhunk->discard_offset = 0; + + if (!strncmp (line, "--- ", 4)) { + struct file_info *info = xmalloc (sizeof *info);