Compare commits
No commits in common. "c9-beta" and "c8" have entirely different histories.
@ -1 +1 @@
|
|||||||
bf7badf7e248e0ecf465d33c2f5aeec774209227 SOURCES/bzip2-1.0.8.tar.gz
|
3f89f861209ce81a6bab1fd1998c0ef311712002 SOURCES/bzip2-1.0.6.tar.gz
|
||||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/bzip2-1.0.8.tar.gz
|
SOURCES/bzip2-1.0.6.tar.gz
|
||||||
|
12
SOURCES/bzip2-1.0.4-bzip2recover.patch
Normal file
12
SOURCES/bzip2-1.0.4-bzip2recover.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
--- bzip2-1.0.4/bzip2recover.c.pom 2007-01-03 03:00:55.000000000 +0100
|
||||||
|
+++ bzip2-1.0.4/bzip2recover.c 2007-02-05 11:55:17.000000000 +0100
|
||||||
|
@@ -309,7 +309,8 @@
|
||||||
|
UInt32 buffHi, buffLo, blockCRC;
|
||||||
|
Char* p;
|
||||||
|
|
||||||
|
- strcpy ( progName, argv[0] );
|
||||||
|
+ strncpy ( progName, argv[0], BZ_MAX_FILENAME-1);
|
||||||
|
+ progName[BZ_MAX_FILENAME-1]='\0';
|
||||||
|
inFileName[0] = outFileName[0] = 0;
|
||||||
|
|
||||||
|
fprintf ( stderr,
|
@ -5,8 +5,8 @@ diff -up bzip2-1.0.6/Makefile-libbz2_so.pom bzip2-1.0.6/Makefile-libbz2_so
|
|||||||
bzlib.o
|
bzlib.o
|
||||||
|
|
||||||
all: $(OBJS)
|
all: $(OBJS)
|
||||||
- $(CC) -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1.0.8 $(OBJS)
|
- $(CC) -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1.0.6 $(OBJS)
|
||||||
+ $(CC) $(CFLAGS) -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1.0.8 $(OBJS)
|
+ $(CC) $(CFLAGS) -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1.0.6 $(OBJS)
|
||||||
$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.8
|
$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.6
|
||||||
rm -f libbz2.so.1.0
|
rm -f libbz2.so.1.0
|
||||||
ln -s libbz2.so.1.0.8 libbz2.so.1.0
|
ln -s libbz2.so.1.0.6 libbz2.so.1.0
|
@ -5,8 +5,8 @@ diff -up bzip2-1.0.6/Makefile-libbz2_so.pom bzip2-1.0.6/Makefile-libbz2_so
|
|||||||
bzlib.o
|
bzlib.o
|
||||||
|
|
||||||
all: $(OBJS)
|
all: $(OBJS)
|
||||||
- $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.8 $(OBJS)
|
- $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.6 $(OBJS)
|
||||||
+ $(CC) -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1.0.8 $(OBJS)
|
+ $(CC) -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1.0.6 $(OBJS)
|
||||||
$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.8
|
$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.6
|
||||||
rm -f libbz2.so.1.0
|
rm -f libbz2.so.1.0
|
||||||
ln -s libbz2.so.1.0.8 libbz2.so.1.0
|
ln -s libbz2.so.1.0.6 libbz2.so.1.0
|
@ -27,10 +27,10 @@ diff -up bzip2-1.0.6/Makefile-libbz2_so.jx bzip2-1.0.6/Makefile-libbz2_so
|
|||||||
bzlib.o
|
bzlib.o
|
||||||
|
|
||||||
all: $(OBJS)
|
all: $(OBJS)
|
||||||
- $(CC) $(CFLAGS) -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1.0.8 $(OBJS)
|
- $(CC) $(CFLAGS) -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1.0.6 $(OBJS)
|
||||||
- $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.8
|
- $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.6
|
||||||
+ $(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1.0.8 $(OBJS)
|
+ $(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1.0.6 $(OBJS)
|
||||||
+ $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.8
|
+ $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.6
|
||||||
rm -f libbz2.so.1.0
|
rm -f libbz2.so.1.0
|
||||||
ln -s libbz2.so.1.0.8 libbz2.so.1.0
|
ln -s libbz2.so.1.0.6 libbz2.so.1.0
|
||||||
|
|
||||||
|
13
SOURCES/decompress-out-of-bounds.patch
Normal file
13
SOURCES/decompress-out-of-bounds.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/decompress.c b/decompress.c
|
||||||
|
index ab6a624db17a1c124b5be09c04b0e99d950b70ff..f3db91d14f6ed09f76fbd5c73f7db2cba5f577da 100644
|
||||||
|
--- a/decompress.c
|
||||||
|
+++ b/decompress.c
|
||||||
|
@@ -287,7 +287,7 @@ Int32 BZ2_decompress ( DState* s )
|
||||||
|
GET_BITS(BZ_X_SELECTOR_1, nGroups, 3);
|
||||||
|
if (nGroups < 2 || nGroups > 6) RETURN(BZ_DATA_ERROR);
|
||||||
|
GET_BITS(BZ_X_SELECTOR_2, nSelectors, 15);
|
||||||
|
- if (nSelectors < 1) RETURN(BZ_DATA_ERROR);
|
||||||
|
+ if (nSelectors < 1 || nSelectors > BZ_MAX_SELECTORS) RETURN(BZ_DATA_ERROR);
|
||||||
|
for (i = 0; i < nSelectors; i++) {
|
||||||
|
j = 0;
|
||||||
|
while (True) {
|
@ -1,20 +0,0 @@
|
|||||||
--- ./bzip2-1.0.8/bzip2.1 2019-07-13 19:50:05.000000000 +0200
|
|
||||||
+++ ./bzip2-1.0.8/bzip2.1.new 2021-01-29 11:51:04.091430407 +0100
|
|
||||||
@@ -170,6 +170,17 @@
|
|
||||||
to try to recover data from
|
|
||||||
damaged files.
|
|
||||||
|
|
||||||
+Unlike
|
|
||||||
+.I GNU gzip,
|
|
||||||
+.I bzip2
|
|
||||||
+will not create a cascade of
|
|
||||||
+.I .bz2
|
|
||||||
+suffixes even when using the
|
|
||||||
+.I --force
|
|
||||||
+option:
|
|
||||||
+
|
|
||||||
+ filename.bz2 dose not become filename.bz2.bz2
|
|
||||||
+
|
|
||||||
Return values: 0 for a normal exit, 1 for environmental problems (file
|
|
||||||
not found, invalid flags, I/O errors, &c), 2 to indicate a corrupt
|
|
||||||
compressed file, 3 for an internal consistency error (eg, bug) which
|
|
11
SOURCES/set-out-file-to-null.patch
Normal file
11
SOURCES/set-out-file-to-null.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
diff -up ./bzip2recover.c.old ./bzip2recover.c
|
||||||
|
--- ./bzip2recover.c.old 2016-03-22 08:49:38.855620000 +0100
|
||||||
|
+++ ./bzip2recover.c 2016-03-30 10:22:27.341430099 +0200
|
||||||
|
@@ -458,6 +458,7 @@ Int32 main ( Int32 argc, Char** argv )
|
||||||
|
bsPutUChar ( bsWr, 0x50 ); bsPutUChar ( bsWr, 0x90 );
|
||||||
|
bsPutUInt32 ( bsWr, blockCRC );
|
||||||
|
bsClose ( bsWr );
|
||||||
|
+ outFile = NULL;
|
||||||
|
}
|
||||||
|
if (wrBlock >= rbCtr) break;
|
||||||
|
wrBlock++;
|
@ -1,22 +1,23 @@
|
|||||||
%global library_version 1.0.8
|
%global library_version 1.0.6
|
||||||
|
|
||||||
Summary: A file compression utility
|
Summary: A file compression utility
|
||||||
Name: bzip2
|
Name: bzip2
|
||||||
Version: 1.0.8
|
Version: 1.0.6
|
||||||
Release: 8%{?dist}
|
Release: 27%{?dist}
|
||||||
License: BSD
|
License: BSD
|
||||||
|
Group: Applications/File
|
||||||
URL: http://www.bzip.org/
|
URL: http://www.bzip.org/
|
||||||
#Source0: http://www.bzip.org/%{version}/%{name}-%{version}.tar.gz
|
Source0: http://www.bzip.org/%{version}/%{name}-%{version}.tar.gz
|
||||||
Source0: https://sourceware.org/pub/bzip2/%{name}-%{version}.tar.gz
|
|
||||||
Source1: bzip2.pc
|
Source1: bzip2.pc
|
||||||
|
|
||||||
Patch0: bzip2-saneso.patch
|
Patch0: bzip2-1.0.4-saneso.patch
|
||||||
Patch1: bzip2-cflags.patch
|
Patch1: bzip2-1.0.4-cflags.patch
|
||||||
Patch2: bzip2-ldflags.patch
|
# resolves: #226979
|
||||||
Patch3: man_gzipdiff.patch
|
Patch2: bzip2-1.0.4-bzip2recover.patch
|
||||||
|
Patch3: bzip2-ldflags.patch
|
||||||
BuildRequires: gcc
|
# resolves: #1348179
|
||||||
BuildRequires: make
|
Patch4: set-out-file-to-null.patch
|
||||||
|
Patch5: decompress-out-of-bounds.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Bzip2 is a freely available, patent-free, high quality data compressor.
|
Bzip2 is a freely available, patent-free, high quality data compressor.
|
||||||
@ -31,6 +32,7 @@ Install bzip2 if you need a compression utility.
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Libraries and header files for apps which will use bzip2
|
Summary: Libraries and header files for apps which will use bzip2
|
||||||
|
Group: Development/Libraries
|
||||||
Requires: bzip2-libs = %{version}-%{release}
|
Requires: bzip2-libs = %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
@ -40,6 +42,7 @@ which will use the library.
|
|||||||
|
|
||||||
%package libs
|
%package libs
|
||||||
Summary: Libraries for applications using bzip2
|
Summary: Libraries for applications using bzip2
|
||||||
|
Group: System Environment/Libraries
|
||||||
|
|
||||||
%description libs
|
%description libs
|
||||||
|
|
||||||
@ -47,6 +50,7 @@ Libraries for applications using the bzip2 compression format.
|
|||||||
|
|
||||||
%package static
|
%package static
|
||||||
Summary: Libraries for applications using bzip2
|
Summary: Libraries for applications using bzip2
|
||||||
|
Group: System Environment/Libraries
|
||||||
|
|
||||||
%description static
|
%description static
|
||||||
|
|
||||||
@ -54,10 +58,12 @@ Static libraries for applications using the bzip2 compression format.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1 -b .saneso
|
||||||
%patch1 -p1
|
%patch1 -p1 -b .cflags
|
||||||
%patch2 -p1
|
%patch2 -p1 -b .bz2recover
|
||||||
%patch3 -p2
|
%patch3 -p1 -b .ldflags
|
||||||
|
%patch4 -p1 -b .bzip2recover
|
||||||
|
%patch5 -p1
|
||||||
|
|
||||||
cp -a %{SOURCE1} .
|
cp -a %{SOURCE1} .
|
||||||
sed -i "s|^libdir=|libdir=%{_libdir}|" bzip2.pc
|
sed -i "s|^libdir=|libdir=%{_libdir}|" bzip2.pc
|
||||||
@ -73,16 +79,16 @@ sed -i "s|^libdir=|libdir=%{_libdir}|" bzip2.pc
|
|||||||
export O3=""
|
export O3=""
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%make_build -f Makefile-libbz2_so CC="%{__cc}" AR="%{__ar}" RANLIB="%{__ranlib}" \
|
make -f Makefile-libbz2_so CC="%{__cc}" AR="%{__ar}" RANLIB="%{__ranlib}" \
|
||||||
CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -fpic -fPIC $O3" \
|
CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -fpic -fPIC $O3" \
|
||||||
LDFLAGS="%{__global_ldflags}" \
|
LDFLAGS="%{__global_ldflags}" \
|
||||||
all
|
%{?_smp_mflags} all
|
||||||
|
|
||||||
rm -f *.o
|
rm -f *.o
|
||||||
%make_build CC="%{__cc}" AR="%{__ar}" RANLIB="%{__ranlib}" \
|
make CC="%{__cc}" AR="%{__ar}" RANLIB="%{__ranlib}" \
|
||||||
CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 $O3" \
|
CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 $O3" \
|
||||||
LDFLAGS="%{__global_ldflags}" \
|
LDFLAGS="%{__global_ldflags}" \
|
||||||
all
|
%{?_smp_mflags} all
|
||||||
|
|
||||||
%install
|
%install
|
||||||
chmod 644 bzlib.h
|
chmod 644 bzlib.h
|
||||||
@ -136,45 +142,8 @@ ln -s bzgrep.1 $RPM_BUILD_ROOT%{_mandir}/man1/bzfgrep.1
|
|||||||
%{_libdir}/pkgconfig/bzip2.pc
|
%{_libdir}/pkgconfig/bzip2.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.8-8
|
* Tue Oct 29 2024 Jacek Migacz <jmigacz@redhat.com> - 1.0.6-27
|
||||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
- Fixes out of bounds access in BZ2_decompress (RHEL-64929)
|
||||||
Related: rhbz#1991688
|
|
||||||
|
|
||||||
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 1.0.8-7
|
|
||||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
||||||
|
|
||||||
* Fri Jan 29 2021 Jakub Martisko <jamartis@redhat.com> - 1.0.8-6
|
|
||||||
- Minor man pgae update (gzip/bzip2 differnces)
|
|
||||||
resolves: #1897104
|
|
||||||
|
|
||||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.8-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jul 28 2020 Jakub Martisko <jamartis@redhat.com> - 1.0.8-4
|
|
||||||
- Use make macros
|
|
||||||
|
|
||||||
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.8-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.8-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Aug 06 2019 Jakub Martisko <jamartis@redhat.com> - 1.0.8-1
|
|
||||||
- Update to version 1.0.8
|
|
||||||
resolves: #1724797
|
|
||||||
resolves: #1717478
|
|
||||||
|
|
||||||
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-30
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-29
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-28
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Mar 01 2018 Jakub Martisko <jamartis@redhat.com> - 1.0.6-27
|
|
||||||
- Add gcc to buildrequires
|
|
||||||
|
|
||||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-26
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.6-26
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
Loading…
Reference in New Issue
Block a user