From d04d87b7c1c3abed9eeb927fb972ccb94f74802c Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 4 Jan 2012 18:09:09 -0400 Subject: [PATCH] apply suse's maxlen patch https://build.opensuse.org/package/view_file?file=bzip2-maxlen20.patch&package=bzip2&project=openSUSE%3AFactory&srcmd5=3ee4cf959e98e3ca50a881d1cdc13570 --- pristine-tar.spec | 2 +- zgz/pit/suse-bzip2/compress.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pristine-tar.spec b/pristine-tar.spec index 0a1b95b..5387e50 100644 --- a/pristine-tar.spec +++ b/pristine-tar.spec @@ -1,5 +1,5 @@ Name: pristine-tar -Version: 1.14 +Version: 1.15 Release: 2%{?dist} Summary: regenerate pristine tarballs diff --git a/zgz/pit/suse-bzip2/compress.c b/zgz/pit/suse-bzip2/compress.c index 8c80a07..ae92d98 100644 --- a/zgz/pit/suse-bzip2/compress.c +++ b/zgz/pit/suse-bzip2/compress.c @@ -448,7 +448,7 @@ void sendMTFValues ( EState* s ) comment in huffman.c for details. */ for (t = 0; t < nGroups; t++) BZ2_hbMakeCodeLengths ( &(s->len[t][0]), &(s->rfreq[t][0]), - alphaSize, 17 /*20*/ ); + alphaSize, 20 ); } @@ -485,7 +485,7 @@ void sendMTFValues ( EState* s ) if (s->len[t][i] > maxLen) maxLen = s->len[t][i]; if (s->len[t][i] < minLen) minLen = s->len[t][i]; } - AssertH ( !(maxLen > 17 /*20*/ ), 3004 ); + AssertH ( !(maxLen > 20 ), 3004 ); AssertH ( !(minLen < 1), 3005 ); BZ2_hbAssignCodes ( &(s->code[t][0]), &(s->len[t][0]), minLen, maxLen, alphaSize ); -- 2.7.4