28 Commits
Author SHA1 Message Date
Sebastian Andrzej Siewior a0165bb790 lo-pack-sources: Add support for pbzip2.
Use pbzip for compression if possible. Otherwise fallback to bzip2.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Change-Id: I9091c5dfe25ee00854b6938464af23b56cdcb31c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146814
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2023-02-11 22:45:27 +00:00
Sebastian Andrzej Siewior cb9883b1e9 lo-pack-sources: Use threaded compression for xz.
The xz utility can compress in parallel by using more CPU cores. The
more CPUs are available the quicker it gets.
The option -T0 automatically detects the number of available CPUs and
uses all of them.
Additional benefit is that xz starting with v5.4 can decompress the
archive using multiple CPUs as well.

The parallel compression works by splitting the input in multiple blocks
of equal size which are compressed in parallel. Since the state is not
preserved / reuse across blocks, the compression gets a little worse:

	-6 	255M (current default)
	-T0	261M
	-eT0	259M
	-7T0	251M
	-7eT0	249M

-7 uses larger blocks and dictionary which requires more memory on the
compressing and decompressing side vs the current default -6.
The -e option spends some extra cycles and improves the compression a
bit.

Use parallel compression and spend some extra cycles.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Change-Id: Ib69c4bc1996ddd52153b8ac27b653c21e3998a68
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146793
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2023-02-11 22:45:18 +00:00
Sebastian Andrzej Siewior 30f49b56ba lo-pack-sources: Split archiver invocation away from tar.
Instead of passing --bzip2 or --xz invoke the compression program via a
pipe. This make the replacement of compressor as well its options
easier.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Change-Id: Ib69c4bc1996ddd52153b8ac27b653c21e3998a67
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146105
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
2023-02-11 22:45:10 +00:00
Andrea Gelmini 64a3124d92 Fix typos
Change-Id: Iaa9c0aea3ea1a239e378bd714ba335f91bb1faf3
Reviewed-on: https://gerrit.libreoffice.org/41194
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2017-08-17 21:53:28 +02:00
Christian Lohmaier 9ec6519650 changelog creation: "command | > file" doesn't fly
Change-Id: If270d509fbbad6a390ab61345bd1b14ead6ccc21
2017-03-29 19:25:04 +02:00
Christian Lohmaier 562edf0f09 making portable sed statements is not worth the hassle
change to git's own formatting capabilities by using the text-wrap
option with only indent settings/no rewrapping → %w(0,8,8)
and also omit the additional empty line when there only is a summary,
but no body in the commit message (remove a %n, make it %+b)
finally drop the now no-longer needed starmarker (the @)

previous differences in sed caused unnecessarily large diffs for
distro-packagers, see
https://anonscm.debian.org/git/pkg-openoffice/libreoffice-dictionaries.git/commit/?h=upstream&id=3dceac52f75030e87519e73b42babde51e471d9f
now it will change once, but then we can put all the blame on git :-)

Change-Id: Ifa719d062582c54c9c23b4ae08d4bae9a396e83c
2017-01-17 19:57:27 +01:00
jan Iversen d2e9d3d0ed update lo-pack-sources
os-x has a problem with progress bar on tar
Also remade to sed expression to a simpler one that osx understands.
change

change

Change-Id: If09573760a4bedfa285519241582bbd639a4e976
Reviewed-on: https://gerrit.libreoffice.org/30043
Reviewed-by: jan iversen <jani@documentfoundation.org>
Tested-by: jan iversen <jani@documentfoundation.org>
2016-11-15 12:47:26 +00:00
Andrea Gelmini c3c45ff7ef Fix typos
Change-Id: Id05ea8cf8aed878bedfe73c274df3c67b64bad37
Reviewed-on: https://gerrit.libreoffice.org/16263
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-06-15 06:53:19 +00:00
Christian Lohmaier 5ca2b6fca9 fdo#82137 don't include working directory in tarballs
as this changes permissions when extracting, and those are restrictive,
since it is a temporary directory

Change-Id: I41b28fe405e5915faeea944eb3cfdbed518ac55d
2014-08-06 20:13:55 +02:00
Petr Mladek ffd2cc342f lo-pack-sources: run NOCONFIGURE=1 ./autogen.sh instead of autoreconf
autogen.sh runs the needed tools with the right include paths

Change-Id: Ia253b19566eeda31a1190a4fa7c543f7ffb63bfb
2013-01-22 17:59:52 +01:00
Petr Mladek 39afe720fe lo-pack-sources: use module instead of piece
we use git submodules, so it makes more sense (hopefully)

Replaced options:
    --no-lo-pieces with --no-submodule
    --piece=<piece> with --module=<module>

Removed hopefully unused option:
    --no-lo-core

Change-Id: Icbf742991ccda2f7833a5b50d51cb1421885383d
2012-11-19 18:16:25 +01:00
Petr Mladek b479f7f767 lo-pack-sources: use the same top-level directory in all tarballs
It allows to avoid symlinks more easily.

In addition, I did some clean up. I removed support for packing pieces
from standalone checkout. I guess that noone is using it.

Change-Id: I3c712f5eb12108229a157c636e0a63eca4ae0d6b
2012-11-19 17:06:21 +01:00
Petr Mladek d0776ccbd5 bin/lo-pack-sources: fix to work with submodules
I still want to use the same top level dir in all tarballs but not today :-)

Change-Id: Iddbc8f91a84c4c73133a0eb4305d8aef7dc5c043
2012-11-16 18:33:23 +01:00
Norbert Thiebaud 060219ac1a binfilter.die.die.die
Change-Id: Ia3c103e4343d309b997ed37e33a382ffdfbddac3
Reviewed-on: https://gerrit.libreoffice.org/1014
Reviewed-by: Tor Lillqvist <tml@iki.fi>
Tested-by: Tor Lillqvist <tml@iki.fi>
2012-11-09 07:58:02 +00:00
Petr Mladek b74119aed7 lo-pack-sources: correct check for valid libreoffice/core dir
Change-Id: I8dbe60b85d0a330e3b2b5f54984b561fe9be05be
2012-06-12 19:42:13 +02:00
Petr Mladek ae9a98b436 allow to download main source tarballs again
The file "core.ver" was removed in configure together with other "core.*"
files. It was ugly name. Better to use "sources.ver" and the variable
"lo_sources_ver=..."

The source version is not used in "unpack-sources", so do not source the .ver file
at all.

The source tarballs are put into "major.minor.micro" version subdirectory
on the download site now.
2012-04-16 17:20:04 +02:00
Petr Mladek 041207302a lo-pack-sources: do not duplicate the generated files in the archive dir
the storing in archive directory was non-standard solution => gets removed
also the code was simplified and clean up a bit
2011-12-19 18:06:11 +01:00
Petr Mladek 2f3cd6d2be lo-pack-sources: generate cleaner source tarballs using "git archive"
there is not longer needed the manualy created blacklist of copied files;
also no need to remove symlinks from clone subdir

use "tar --checkpoint-action=exec="echo -n \".\"" instead of
"awk '{ ORS=\"\" ; if (++nlines\%50 == 0) printf \".\"; fflush() }'";
we are interested into the return code from tar, e.g. not-enough disk space
2011-12-19 18:06:02 +01:00
Petr Mladek 6f67838399 lo-pack-sources: allow to generate .xz source tarballs by default
Add --bzip2 and --xz options to select the compression. Both options
can be used togetger to generate both types of tarballs in one call.
XZ compession is used by default.

Also renamed "lo*build" strings to "lo*core" to fit the current name
of the top level source directory.
2011-12-13 15:26:55 +01:00
Miklos Vajna 907969d264 lo-pack-sources: unused function set_config_version() 2011-12-03 01:58:28 +01:00
Lior Kaplan e10fc18fb2 typo fix: explicitely -> explicitly 2011-12-01 23:41:42 +02:00
Petr Mladek 4b32624c18 lo-pack-sources: update for the current list of repositories 2011-10-27 17:10:32 +02:00
Miklos Vajna a32662e141 lo-pack-sources: remove unused functions 2011-10-27 16:16:08 +02:00
Peter Foley 8f07feaa6e Remove config.parms
The functionality provided by config.parms (saving the arguments given to
configure) has been superseded by autogen.lastrun.
2011-09-18 16:51:08 -04:00
Tor Lillqvist c5f297649c Change *Env.Set.sh to Env.Host.sh 2011-07-25 01:02:17 +03:00
Petr Mladek 296bea4e0d lo-pack-sources: do not pack fetched stuff into the source tarball 2011-05-25 15:45:20 +02:00
Petr Mladek 81b9202167 lo-pack-sources: generate bootstrap.ver profile
FIXME: we should find another way to tell dowload the right version
of used sources
2011-04-11 16:04:35 +02:00
Petr Mladek f7b5f014bc lo-pack-sources: new script to generate source tarballs
based on libreoffice/build/bin/lo-pack-sources; still need some clean up
2011-04-11 14:43:06 +02:00