- fix archivesize tag generation on ppc (#458817)
This commit is contained in:
parent
e6ae279dca
commit
05d01ee1a4
30
rpm-4.5.90-archivesize.patch
Normal file
30
rpm-4.5.90-archivesize.patch
Normal file
@ -0,0 +1,30 @@
|
||||
commit 9068da47a912a6983a12d1024a118c16bcb2a057
|
||||
Author: Panu Matilainen <pmatilai@redhat.com>
|
||||
Date: Wed Aug 13 09:43:41 2008 +0300
|
||||
|
||||
Unbreak payload size tag generation on ppc (rhbz#458817)
|
||||
|
||||
diff --git a/build/pack.c b/build/pack.c
|
||||
index 41756bb..9891ae8 100644
|
||||
--- a/build/pack.c
|
||||
+++ b/build/pack.c
|
||||
@@ -496,13 +496,16 @@ rpmRC writeRPM(Header *hdrp, unsigned char ** pkgidp, const char *fileName,
|
||||
td.tag = payloadtag;
|
||||
td.count = 1;
|
||||
if (payloadtag == RPMSIGTAG_PAYLOADSIZE) {
|
||||
+ rpm_off_t asize = csa->cpioArchiveSize;
|
||||
td.type = RPM_INT32_TYPE;
|
||||
- td.data = (rpm_off_t *) &csa->cpioArchiveSize;
|
||||
+ td.data = &asize;
|
||||
+ headerPut(sig, &td, HEADERPUT_DEFAULT);
|
||||
} else {
|
||||
+ rpm_loff_t asize = csa->cpioArchiveSize;
|
||||
td.type = RPM_INT64_TYPE;
|
||||
- td.data = (rpm_loff_t *) &csa->cpioArchiveSize;
|
||||
+ td.data = &asize;
|
||||
+ headerPut(sig, &td, HEADERPUT_DEFAULT);
|
||||
}
|
||||
- headerPut(sig, &td, HEADERPUT_DEFAULT);
|
||||
}
|
||||
|
||||
/* Reallocate the signature into one contiguous region. */
|
15
rpm.spec
15
rpm.spec
@ -18,7 +18,7 @@
|
||||
Summary: The RPM package management system
|
||||
Name: rpm
|
||||
Version: %{rpmver}
|
||||
Release: 0.%{snapver}.1
|
||||
Release: 0.%{snapver}.2
|
||||
Group: System Environment/Base
|
||||
Url: http://www.rpm.org/
|
||||
Source0: http://rpm.org/releases/testing/%{name}-%{srcver}.tar.bz2
|
||||
@ -31,8 +31,11 @@ Patch1: rpm-4.5.90-pkgconfig-path.patch
|
||||
# XXX only create provides for pkgconfig and libtool initially
|
||||
Patch100: rpm-4.6.x-no-pkgconfig-reqs.patch
|
||||
|
||||
# Already in upstream, remove on next snapshot update
|
||||
Patch200: rpm-4.5.90-archivesize.patch
|
||||
|
||||
# These are not yet upstream
|
||||
Patch200: rpm-4.5.90-posttrans.patch
|
||||
Patch300: rpm-4.5.90-posttrans.patch
|
||||
|
||||
# Partially GPL/LGPL dual-licensed and some bits with BSD
|
||||
# SourceLicense: (GPLv2+ and LGPLv2+ with exceptions) and BSD
|
||||
@ -160,8 +163,10 @@ that will manipulate RPM packages and databases.
|
||||
%patch1 -p1 -b .pkgconfig-path
|
||||
%patch100 -p1 -b .pkgconfig-deps
|
||||
|
||||
%patch200 -p1 -b .archivesize
|
||||
|
||||
# needs a bit of upstream love first...
|
||||
#%patch200 -p1 -b .posttrans
|
||||
#%patch300 -p1 -b .posttrans
|
||||
|
||||
%if %{with int_bdb}
|
||||
ln -s db-%{bdbver} db
|
||||
@ -337,6 +342,10 @@ exit 0
|
||||
%doc doc/librpm/html/*
|
||||
|
||||
%changelog
|
||||
* Wed Aug 13 2008 Panu Matilainen <pmatilai@redhat.com>
|
||||
- 4.5.90-0.git8461.2
|
||||
- fix archivesize tag generation on ppc (#458817)
|
||||
|
||||
* Fri Aug 08 2008 Panu Matilainen <pmatilai@redhat.com>
|
||||
- 4.5.90-0.git8461.1
|
||||
- new snapshot from upstream
|
||||
|
Loading…
Reference in New Issue
Block a user