diff options
Diffstat (limited to 'archivers/bzip/files')
-rw-r--r-- | archivers/bzip/files/COPYRIGHT | 21 | ||||
-rw-r--r-- | archivers/bzip/files/patch-Makefile | 43 | ||||
-rw-r--r-- | archivers/bzip/files/patch-bzip.c | 59 |
3 files changed, 123 insertions, 0 deletions
diff --git a/archivers/bzip/files/COPYRIGHT b/archivers/bzip/files/COPYRIGHT new file mode 100644 index 000000000000..5f20d917c094 --- /dev/null +++ b/archivers/bzip/files/COPYRIGHT @@ -0,0 +1,21 @@ +COPYRIGHT +========= + +BZIP is distributed under the GNU General Public License version +2; for details, see the file LICENSE. Pointers to the algorithms +used are in ALGORITHMS. + +COMMERCIAL USE +============== + +This program may or may not infringe certain US patents pertaining +to arithmetic coding and to the block-sorting transformation itself. +Opinions differ as to the precise legal status of some of the +algorithms used. Nevertheless, you should be aware that commercial +use of this program could render you liable to unfriendly legal +action. + + Julian Seward <sewardj@cs.man.ac.uk> + Manchester, UK + 18 July 1996 (version 0.15) + 25 August 1996 (version 0.21) diff --git a/archivers/bzip/files/patch-Makefile b/archivers/bzip/files/patch-Makefile new file mode 100644 index 000000000000..69b52ae7048c --- /dev/null +++ b/archivers/bzip/files/patch-Makefile @@ -0,0 +1,43 @@ +--- Makefile.orig Sat Aug 31 09:50:33 1996 ++++ Makefile Fri Sep 27 13:57:55 1996 +@@ -1,29 +1,17 @@ +- +-CC = gcc +-SH = /bin/sh +- +-CFLAGS = -O3 -fomit-frame-pointer -funroll-loops -Wall -Winline -Wshadow -W +- +- ++CFLAGS+= -fomit-frame-pointer + + all: +- cat words0 + $(CC) $(CFLAGS) -o bzip bzip.c +- rm -f bunzip +- ln -s ./bzip ./bunzip +- cat words1 +- ./bzip -Q -1 < sample1.ref > sample1.rbz +- ./bzip -Q -2 < sample2.ref > sample2.rbz +- ./bunzip -Q < sample1.bz > sample1.tst +- ./bunzip -Q < sample2.bz > sample2.tst +- cat words2 +- cmp sample1.bz sample1.rbz +- cmp sample2.bz sample2.rbz +- cmp sample1.tst sample1.ref +- cmp sample2.tst sample2.ref +- cat words3 +- ++ @ln -fs ./bzip ./bunzip ++ @echo "*** testing bzip and bunzip ***" ++ ./bzip -Q -1 < sample1.ref > sample1.rbz || exit 1 ++ ./bzip -Q -2 < sample2.ref > sample2.rbz || exit 1 ++ ./bunzip -Q < sample1.bz > sample1.tst || exit 1 ++ ./bunzip -Q < sample2.bz > sample2.tst || exit 1 ++ cmp sample1.bz sample1.rbz || exit 1 ++ cmp sample2.bz sample2.rbz || exit 1 ++ cmp sample1.tst sample1.ref || exit 1 ++ cmp sample2.tst sample2.ref || exit 1 + + clean: + rm -f bzip bunzip sample*.tst sample*.rbz +- diff --git a/archivers/bzip/files/patch-bzip.c b/archivers/bzip/files/patch-bzip.c new file mode 100644 index 000000000000..ea9513a90511 --- /dev/null +++ b/archivers/bzip/files/patch-bzip.c @@ -0,0 +1,59 @@ +--- bzip.c.orig 1996-08-30 20:35:28.000000000 +0000 ++++ bzip.c +@@ -114,9 +114,13 @@ + --*/ + + #if BZ_UNIX_32 ++ #include <sys/types.h> + #include <utime.h> + #include <unistd.h> ++#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) \ ++ && !defined(__DragonFly__) /* stdlib already included above */ + #include <malloc.h> ++#endif + #include <sys/stat.h> + #include <sys/times.h> + +@@ -2578,7 +2582,7 @@ void bitStreamEOF () + + + /*---------------------------------------------*/ +-void mySignalCatcher ( IntNative *n ) ++void mySignalCatcher (int n __unused) + { + fprintf ( stderr, + "\n%s: Control-C (or similar) caught, quitting.\n", +@@ -2588,7 +2592,7 @@ void mySignalCatcher ( IntNative *n ) + + + /*---------------------------------------------*/ +-void mySIGSEGVorSIGBUScatcher ( IntNative *n ) ++void mySIGSEGVorSIGBUScatcher (int n __unused) + { + if (compressing) + fprintf ( stderr, +@@ -3130,11 +3134,6 @@ IntNative main ( IntNative argc, Char *a + signal (SIGBUS, mySIGSEGVorSIGBUScatcher); + #endif + +- if ( ! (argc > 1 && strcmp ( "-Q", argv[1] ) == 0) ) +- fprintf ( stderr, +- "BZIP, a block-sorting file compressor. " +- "Version 0.21, 25-August-96.\n" ); +- + #if DEBUG + if ( ! (argc > 1 && strcmp ( "-Q", argv[1] ) == 0) ) + fprintf ( stderr, "BZIP: *** compiled with debugging ON ***\n" ); +@@ -3205,6 +3204,12 @@ IntNative main ( IntNative argc, Char *a + break; + } + ++ if (verbose) { ++ fprintf ( stderr, ++ "BZIP, a block-sorting file compressor. " ++ "Version 0.21, 25-August-96.\n" ); ++ } ++ + if ( opMode == OM_FILE_TO_STDOUT && numFileNames != 1) { + fprintf ( stderr, "%s: Option -c requires you to supply exactly one filename.\n", + progName ); |