Репозиторий Sisyphus
Последнее обновление: 15 октября 2021 | Пакетов: 17364 | Посещений: 22087196
en ru br
Репозитории ALT
S:1.0.8-alt2
5.1: 1.0.6-alt1
4.1: 1.0.6-alt0.M40.1
4.0: 1.0.6-alt0.M40.1
+updates:1.0.5-alt2
3.0: 1.0.3-alt5
www.altlinux.org/Changes

Группа :: Архивирование/Сжатие
Пакет: bzip2

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: bzip2-1.0.3-alt-autotools.patch
Скачать


diff -uprk.orig bzip2-1.0.3.orig/Makefile.am bzip2-1.0.3/Makefile.am
--- bzip2-1.0.3.orig/Makefile.am	1970-01-01 00:00:00 +0000
+++ bzip2-1.0.3/Makefile.am	2005-04-09 22:29:21 +0000
@@ -0,0 +1,43 @@
+AUTOMAKE_OPTIONS = 1.4 foreign
+
+lib_LTLIBRARIES = libbz2.la
+bin_PROGRAMS = bzip2 bzip2recover
+bin_SCRIPTS = bzdiff bzgrep bzmore
+
+bzip2_SOURCES = bzip2.c
+bzip2_LDADD =  libbz2.la
+
+bzip2recover_SOURCES  = bzip2recover.c
+
+include_HEADERS = bzlib.h
+man_MANS = bzdiff.1 bzgrep.1 bzip2.1 bzmore.1
+info_TEXINFOS = bzip2.texi
+
+libbz2_la_SOURCES = \
+	blocksort.c \
+	huffman.c \
+	crctable.c \
+	randtable.c \
+	compress.c \
+	decompress.c \
+	bzlib.c
+libbz2_la_LDFLAGS = -version-info 1:3:0
+
+check-local: samples.sh bzip2
+	./samples.sh
+
+install-exec-hook:
+	$(LN_S) bzip2 $(DESTDIR)$(bindir)/bunzip2
+	$(LN_S) bzip2 $(DESTDIR)$(bindir)/bzcat
+	$(LN_S) bzdiff $(DESTDIR)$(bindir)/bzcmp
+	$(LN_S) bzgrep $(DESTDIR)$(bindir)/bzegrep
+	$(LN_S) bzgrep $(DESTDIR)$(bindir)/bzfgrep
+	$(LN_S) bzmore $(DESTDIR)$(bindir)/bzless
+
+install-data-hook:
+	echo '.so man1/bzip2.1' >$(DESTDIR)$(mandir)/man1/bunzip2.1
+	echo '.so man1/bzip2.1' >$(DESTDIR)$(mandir)/man1/bzcat.1
+	echo '.so man1/bzdiff.1' >$(DESTDIR)$(mandir)/man1/bzcmp.1
+	echo '.so man1/bzgrep.1' >$(DESTDIR)$(mandir)/man1/bzegrep.1
+	echo '.so man1/bzgrep.1' >$(DESTDIR)$(mandir)/man1/bzfgrep.1
+	echo '.so man1/bzmore.1' >$(DESTDIR)$(mandir)/man1/bzless.1
diff -uprk.orig bzip2-1.0.3.orig/bzip2.c bzip2-1.0.3/bzip2.c
--- bzip2-1.0.3.orig/bzip2.c	2005-02-15 16:25:35 +0000
+++ bzip2-1.0.3/bzip2.c	2005-04-09 22:29:21 +0000
@@ -100,6 +100,9 @@
 --*/
 
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 /*----------------------------------------------------*/
 /*--- and now for something much more pleasant :-) ---*/
diff -uprk.orig bzip2-1.0.3.orig/bzip2recover.c bzip2-1.0.3/bzip2recover.c
--- bzip2-1.0.3.orig/bzip2recover.c	2005-02-15 16:20:57 +0000
+++ bzip2-1.0.3/bzip2recover.c	2005-04-09 22:29:21 +0000
@@ -52,6 +52,10 @@
   properly.  It isn't very complicated.
 --*/
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include <errno.h>
 #include <stdlib.h>
diff -uprk.orig bzip2-1.0.3.orig/bzlib_private.h bzip2-1.0.3/bzlib_private.h
--- bzip2-1.0.3.orig/bzlib_private.h	2005-02-15 16:24:27 +0000
+++ bzip2-1.0.3/bzlib_private.h	2005-04-09 22:29:21 +0000
@@ -62,6 +62,10 @@
 #ifndef _BZLIB_PRIVATE_H
 #define _BZLIB_PRIVATE_H
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdlib.h>
 
 #ifndef BZ_NO_STDIO
diff -uprk.orig bzip2-1.0.3.orig/configure.ac bzip2-1.0.3/configure.ac
--- bzip2-1.0.3.orig/configure.ac	1970-01-01 00:00:00 +0000
+++ bzip2-1.0.3/configure.ac	2005-04-09 22:29:21 +0000
@@ -0,0 +1,18 @@
+AC_PREREQ(2.53)
+AC_INIT([bzip2],[1.0.3],[Julian Seward <jseward@bzip.org>])
+AC_CONFIG_SRCDIR([bzlib.c])
+AM_CONFIG_HEADER([config.h])
+
+AC_GNU_SOURCE
+AC_CANONICAL_SYSTEM
+AC_PROG_LIBTOOL
+AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
+
+AC_PROG_CC
+AC_SYS_LARGEFILE
+
+AC_PROG_INSTALL
+AC_PROG_LN_S
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
diff -uprk.orig bzip2-1.0.3.orig/dlltest.c bzip2-1.0.3/dlltest.c
--- bzip2-1.0.3.orig/dlltest.c	2004-10-09 11:29:34 +0000
+++ bzip2-1.0.3/dlltest.c	2005-04-09 22:29:21 +0000
@@ -8,6 +8,10 @@
    usage: minibz2 [-d] [-{1,2,..9}] [[srcfilename] destfilename]
 */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #define BZ_IMPORT
 #include <stdio.h>
 #include <stdlib.h>
diff -uprk.orig bzip2-1.0.3.orig/mk251.c bzip2-1.0.3/mk251.c
--- bzip2-1.0.3.orig/mk251.c	2004-10-09 11:28:58 +0000
+++ bzip2-1.0.3/mk251.c	2005-04-09 22:29:21 +0000
@@ -5,6 +5,10 @@
    case, which is fixed in this version (1.0.2) and above.
 */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 
 int main ()
diff -uprk.orig bzip2-1.0.3.orig/samples.sh bzip2-1.0.3/samples.sh
--- bzip2-1.0.3.orig/samples.sh	1970-01-01 00:00:00 +0000
+++ bzip2-1.0.3/samples.sh	2005-04-09 22:29:21 +0000
@@ -0,0 +1,15 @@
+#!/bin/sh -ex
+
+cat words1
+LD_LIBRARY_PATH=. ./bzip2 -1  < sample1.ref > sample1.rb2
+LD_LIBRARY_PATH=. ./bzip2 -2  < sample2.ref > sample2.rb2
+LD_LIBRARY_PATH=. ./bzip2 -3  < sample3.ref > sample3.rb2
+LD_LIBRARY_PATH=. ./bzip2 -d  < sample1.bz2 > sample1.tst
+LD_LIBRARY_PATH=. ./bzip2 -d  < sample2.bz2 > sample2.tst
+LD_LIBRARY_PATH=. ./bzip2 -ds < sample3.bz2 > sample3.tst
+cmp sample1.bz2 sample1.rb2 
+cmp sample2.bz2 sample2.rb2
+cmp sample3.bz2 sample3.rb2
+cmp sample1.tst sample1.ref
+cmp sample2.tst sample2.ref
+cmp sample3.tst sample3.ref
diff -uprk.orig bzip2-1.0.3.orig/spewG.c bzip2-1.0.3/spewG.c
--- bzip2-1.0.3.orig/spewG.c	2004-10-09 11:29:42 +0000
+++ bzip2-1.0.3/spewG.c	2005-04-09 22:29:21 +0000
@@ -9,7 +9,9 @@
    (but is otherwise harmless).
 */
 
-#define _FILE_OFFSET_BITS 64
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 #include <stdio.h>
 #include <stdlib.h>
diff -uprk.orig bzip2-1.0.3.orig/unzcrash.c bzip2-1.0.3/unzcrash.c
--- bzip2-1.0.3.orig/unzcrash.c	2004-10-09 11:29:48 +0000
+++ bzip2-1.0.3/unzcrash.c	2005-04-09 22:29:21 +0000
@@ -13,6 +13,10 @@
    many hours.
 */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include <assert.h>
 #include "bzlib.h"
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin