To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=62893
Issue #:|62893
Summary:|Providing delta patches for OOo Linux RPM releases
Component:|framework
Version:|OOo 2.0.2
Platform:|All
URL:|
OS/Version:|All
Status:|UNCONFIRMED
Status whiteboard:|
Keywords:|
Resolution:|
Issue type:|ENHANCEMENT
Priority:|P3
Subcomponent:|ui
Assigned to:|ostkamp
Reported by:|ostkamp
------- Additional comments from [EMAIL PROTECTED] Tue Mar 7 13:18:23 -0800
2006 -------
Hello *,
I am a volunteer in the German OOo-QA team. As I have to download new
development releases quite often and these downloads are very huge in
size (typically ~100-140 MB), I have spent some time to develop a method
for automatically providing delta patch releases for the RPM based Linux
version.
You can find the necessary toolset Version 0.1 as attachment of
this issue. I am releasing it for public testing, comments are
welcome.
In short the procedure is as follows:
1. old-tarball + new-tarball => patch-tarball
2. old-tarball + patch-tarball => new-tarball
where step 1.) would be executed by the release people and step 2.) by
everyone who does QA or is otherwise interested in new builds.
For details please refer to the manpage at the end of this posting.
Advantages:
+ a significant reduction of download sizes, typically by 50-95%
+ due to small download size, the download takes only short time
+ it would take a lot of network traffic off the mirror network
Disadvantages:
- minor prerequisites (Perl, deltarpm; see below)
- it takes some time to apply the patches (but typically less time
then needed for downloading full version using DSL)
Some Examples (tested with German versions):
Release: Full size: Patch size: Savings:
-------------------------------------------------------
2.0.0 ~108 MB
2.0.1 ~110 MB ~35 MB from 2.0.0 68%
2.0.2RC4 ~140 MB ~56 MB from 2.0.1 60%
2.0.2RC2 ~140 MB
2.0.2RC3 ~140 MB ~1 MB from 2.0.2RC2 99%
2.0.2RC4 ~140 MB ~1 MB from 2.0.2RC3 99%
m156-pavel ~115 MB
m158-pavel ~122 MB ~10 MB from m156-pavel 92%
The toolset should work with both official Sun builds as well as Pavel's
builds (which have different structure).
The manpage:
NAME
create_ooo_patch.pl - Create OpenOffice.org patch distribution
SYNOPSIS
create_ooo_patch.pl old_version.tar.gz new_version.tar.gz
PREREQUISITES
The script requires the tool 'makedeltarpm' which is part of the
'deltarpm' package. If it is not provided by your distribution, this can
be obtained as source at <http://suse.inode.at/projects/deltarpm> or as
binary release at
<http://rpmfind.net/linux/rpm2html/search.php?query=deltarpm> (please
use Google to find other locations).
On the target system, the tool 'applydeltarpm' (also part of 'deltarpm')
is required.
DESCRIPTION
The script untar's the old and new release in the current working
directory and finds out the directory pathes. It then creates a copy of
the new release and scans all RPM packages in the list defined below. If
a package is found in the old and new release, a delta RPM package is
created and the original full RPM package is removed. If a package is
not present in the old version, the full copy is retained. While doing
the scan, a shell script 'patch_ooo' is generated which can be used on
the target system to regenerate the new full RPMs using the old release
and the delta RPM packages. Finally the created patch release is
assembled into a gzipped tarball that can be distributed.
On the target system the tool 'applydeltarpm' from 'deltarpm' is
required (see above). After untar'ing the patch-tarball the script
'patch_ooo' has to be called with the pathname of the old release
tarball as argument. The script will then apply the patches on the old
RPMs and recreate the new ones which will be binary identical to the
original new release.
EXAMPLES
In the current working directory place the release files and the script:
OOo_2.0.1_LinuxIntel_install_de.tar.gz
OOo_2.0.2rc4_060227_LinuxIntel_install_de_wJRE.tar.gz
create_ooo_patch.pl (this script)
Now call the script:
create_ooo_patch.pl OOo_2.0.1_LinuxIntel_install_de.tar.gz \
OOo_2.0.2rc4_060227_LinuxIntel_install_de_wJRE.tar.gz
This will generate:
OOo_2.0.2rc4_060227_LinuxIntel_install_de_wJRE.patch.tar.gz
On the target system unpack the file and run the script, providing the
path to the old release:
tar xvzf OOo_2.0.2rc4_060227_LinuxIntel_install_de_wJRE.patch.tar.gz
cd OOB680_m5_native_packed-1_de.9011.patch
./patch_ooo ../OOo_2.0.1_LinuxIntel_install_de.tar.gz
After the script has finished you've got an unpacked original
distribution.
LICENSE
Published under the terms of the GNU General Public License.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
AUTHOR
The script was developed by Guido Ostkamp (for email address please look
into the sourcecode of the script).
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]