]>
Commit | Line | Data |
---|---|---|
1b9cf153 MK |
1 | diff -urNp -x '*.orig' bzip2-1.0.8.org/Makefile.am bzip2-1.0.8/Makefile.am |
2 | --- bzip2-1.0.8.org/Makefile.am 1970-01-01 01:00:00.000000000 +0100 | |
3 | +++ bzip2-1.0.8/Makefile.am 2021-03-21 00:16:33.329899186 +0100 | |
12e8ce2c JB |
4 | @@ -0,0 +1,37 @@ |
5 | +include_HEADERS = bzlib.h bzlib_private.h | |
6 | +lib_LTLIBRARIES = libbz2.la | |
7 | +bin_PROGRAMS = bzip2 bzip2recover | |
8 | +bin_SCRIPTS = bzdiff bzgrep bzmore | |
9 | +man_MANS = bzip2.1 bzgrep.1 bzmore.1 bzdiff.1 | |
10 | + | |
11 | +libbz2_la_SOURCES = \ | |
d967e3ec | 12 | + blocksort.c \ |
13 | + huffman.c \ | |
14 | + crctable.c \ | |
15 | + randtable.c \ | |
16 | + compress.c \ | |
17 | + decompress.c \ | |
18 | + bzlib.c \ | |
19 | + bzlib.h \ | |
20 | + bzlib_private.h | |
d967e3ec | 21 | +libbz2_la_LDFLAGS = -version-info 1:0:0 |
d967e3ec | 22 | + |
12e8ce2c JB |
23 | +bzip2_SOURCES = bzip2.c |
24 | +bzip2_LDADD = libbz2.la | |
d967e3ec | 25 | + |
26 | +install-exec-hook: | |
27 | + $(LN_S) -f bzip2 $(DESTDIR)$(bindir)/bunzip2 | |
28 | + $(LN_S) -f bzip2 $(DESTDIR)$(bindir)/bzcat | |
12e8ce2c JB |
29 | + $(LN_S) -f bzgrep $(DESTDIR)$(bindir)/bzegrep |
30 | + $(LN_S) -f bzgrep $(DESTDIR)$(bindir)/bzfgrep | |
31 | + $(LN_S) -f bzmore $(DESTDIR)$(bindir)/bzless | |
32 | + $(LN_S) -f bzdiff $(DESTDIR)$(bindir)/bzcmp | |
33 | + | |
34 | +install-data-hook: | |
35 | + echo '.so bzip2.1' >$(DESTDIR)$(mandir)/man1/bzip2recover.1 | |
36 | + echo '.so bzip2.1' >$(DESTDIR)$(mandir)/man1/bunzip2.1 | |
37 | + echo '.so bzip2.1' >$(DESTDIR)$(mandir)/man1/bzcat.1 | |
38 | + echo '.so bzgrep.1' >$(DESTDIR)$(mandir)/man1/bzegrep.1 | |
39 | + echo '.so bzgrep.1' >$(DESTDIR)$(mandir)/man1/bzfgrep.1 | |
40 | + echo '.so bzmore.1' >$(DESTDIR)$(mandir)/man1/bzless.1 | |
41 | + echo '.so bzdiff.1' >$(DESTDIR)$(mandir)/man1/bzcmp.1 | |
1b9cf153 MK |
42 | diff -urNp -x '*.orig' bzip2-1.0.8.org/configure.ac bzip2-1.0.8/configure.ac |
43 | --- bzip2-1.0.8.org/configure.ac 1970-01-01 01:00:00.000000000 +0100 | |
44 | +++ bzip2-1.0.8/configure.ac 2021-03-21 00:16:33.329899186 +0100 | |
45 | @@ -0,0 +1,9 @@ | |
46 | +AC_INIT([bzip2], [1.0.6]) | |
47 | +AM_INIT_AUTOMAKE | |
48 | +AC_CONFIG_HEADER([config.h]) | |
49 | +AC_PROG_CC | |
50 | +AC_PROG_LIBTOOL | |
51 | +AC_PROG_LN_S | |
52 | +AC_SYS_LARGEFILE | |
53 | +AC_CONFIG_FILES([Makefile]) | |
54 | +AC_OUTPUT | |
55 | diff -urNp -x '*.orig' bzip2-1.0.8.org/crctable.c bzip2-1.0.8/crctable.c | |
56 | --- bzip2-1.0.8.org/crctable.c 2019-07-13 19:50:05.000000000 +0200 | |
57 | +++ bzip2-1.0.8/crctable.c 2021-03-21 00:16:33.329899186 +0100 | |
58 | @@ -98,6 +98,9 @@ UInt32 BZ2_crc32Table[256] = { | |
59 | 0xbcb4666dL, 0xb8757bdaL, 0xb5365d03L, 0xb1f740b4L | |
60 | }; | |
d967e3ec | 61 | |
62 | +#ifdef HAVE_CONFIG_H | |
63 | +#include <config.h> | |
64 | +#endif | |
d967e3ec | 65 | |
1b9cf153 MK |
66 | /*-------------------------------------------------------------*/ |
67 | /*--- end crctable.c ---*/ | |
68 | diff -urNp -x '*.orig' bzip2-1.0.8.org/decompress.c bzip2-1.0.8/decompress.c | |
69 | --- bzip2-1.0.8.org/decompress.c 2019-07-13 19:50:05.000000000 +0200 | |
70 | +++ bzip2-1.0.8/decompress.c 2021-03-21 00:16:33.330899186 +0100 | |
71 | @@ -35,6 +35,9 @@ void makeMaps_d ( DState* s ) | |
72 | } | |
73 | } | |
d967e3ec | 74 | |
75 | +#ifdef HAVE_CONFIG_H | |
76 | +#include <config.h> | |
77 | +#endif | |
d967e3ec | 78 | |
1b9cf153 MK |
79 | /*---------------------------------------------------*/ |
80 | #define RETURN(rrr) \ | |
81 | diff -urNp -x '*.orig' bzip2-1.0.8.org/dlltest.c bzip2-1.0.8/dlltest.c | |
82 | --- bzip2-1.0.8.org/dlltest.c 2019-07-13 19:50:05.000000000 +0200 | |
83 | +++ bzip2-1.0.8/dlltest.c 2021-03-21 00:16:33.330899186 +0100 | |
84 | @@ -7,6 +7,10 @@ | |
d967e3ec | 85 | usage: minibz2 [-d] [-{1,2,..9}] [[srcfilename] destfilename]\r |
86 | */\r | |
87 | \r | |
88 | +#ifdef HAVE_CONFIG_H | |
89 | +#include <config.h> | |
90 | +#endif | |
91 | + | |
92 | #define BZ_IMPORT\r | |
93 | #include <stdio.h>\r | |
94 | #include <stdlib.h>\r | |
1b9cf153 MK |
95 | diff -urNp -x '*.orig' bzip2-1.0.8.org/randtable.c bzip2-1.0.8/randtable.c |
96 | --- bzip2-1.0.8.org/randtable.c 2019-07-13 19:50:05.000000000 +0200 | |
97 | +++ bzip2-1.0.8/randtable.c 2021-03-21 00:16:33.330899186 +0100 | |
98 | @@ -78,6 +78,9 @@ Int32 BZ2_rNums[512] = { | |
99 | 936, 638 | |
100 | }; | |
d967e3ec | 101 | |
102 | +#ifdef HAVE_CONFIG_H | |
103 | +#include <config.h> | |
104 | +#endif | |
d967e3ec | 105 | |
1b9cf153 MK |
106 | /*-------------------------------------------------------------*/ |
107 | /*--- end randtable.c ---*/ | |
108 | diff -urNp -x '*.orig' bzip2-1.0.8.org/spewG.c bzip2-1.0.8/spewG.c | |
109 | --- bzip2-1.0.8.org/spewG.c 2019-07-13 19:50:05.000000000 +0200 | |
110 | +++ bzip2-1.0.8/spewG.c 2021-03-21 00:16:33.330899186 +0100 | |
111 | @@ -24,7 +24,9 @@ | |
112 | ------------------------------------------------------------------ */ | |
d967e3ec | 113 | |
d967e3ec | 114 | |
115 | -#define _FILE_OFFSET_BITS 64 | |
116 | +#ifdef HAVE_CONFIG_H | |
117 | +#include <config.h> | |
118 | +#endif | |
d967e3ec | 119 | |
120 | #include <stdio.h> | |
121 | #include <stdlib.h> | |
1b9cf153 MK |
122 | diff -urNp -x '*.orig' bzip2-1.0.8.org/unzcrash.c bzip2-1.0.8/unzcrash.c |
123 | --- bzip2-1.0.8.org/unzcrash.c 2019-07-13 19:50:05.000000000 +0200 | |
124 | +++ bzip2-1.0.8/unzcrash.c 2021-03-21 00:16:33.330899186 +0100 | |
125 | @@ -28,6 +28,10 @@ | |
126 | ------------------------------------------------------------------ */ | |
127 | ||
d967e3ec | 128 | |
129 | +#ifdef HAVE_CONFIG_H | |
130 | +#include <config.h> | |
131 | +#endif | |
d967e3ec | 132 | + |
133 | #include <stdio.h> | |
134 | #include <assert.h> | |
135 | #include "bzlib.h" |