17 Commits
Author SHA1 Message Date
Christian Lohmaier 725b107b1d add helper to rewrite timestamps in zip files to SOURCE_DATE_EPOCH
for reproducible builds, the timestams of zip members must not depend on
checkout date or file creation dates, the metadata should be clear of
those effects.

Only timestamps are rewritten since we want custom order/storage options
for open document files / our make rules should already have
deterministic order (or that determinism is just one additional $(sort…)
call away)

Change-Id: I49341cf3252d5ef5c092508c789fd188f21dc8df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207142
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
2026-07-14 15:14:42 +02:00
Stephan Bergmann afe00aba4e Disambiguate pattern rules in extras/CustomTarget_autotext{share,user}.mk
One of my builds using make-4.4-3.fc38.x86_64 started to consistently fail now
with

> [ZIP] autotext/user/mytexts.bau
> S=... && I=$S/instdir && W=$S/workdir &&  cd $W/CustomTarget/extras/source/autotext/user/mytexts/ && zip -q0X --filesync --must-match $W/CustomTarget/extras/source/autotext/user/mytexts.bau mimetype && zip -qrX --must-match $W/CustomTarget/extras/source/autotext/user/mytexts.bau
>
> zip error: Nothing to do! (.../workdir/CustomTarget/extras/source/autotext/user/mytexts.bau)
> make: *** [.../extras/CustomTarget_autotextshare.mk:3668: .../workdir/CustomTarget/extras/source/autotext/user/mytexts.bau] Error 12
> make: *** Deleting file '.../workdir/CustomTarget/extras/source/autotext/user/mytexts.bau'

It turned out that this didn't use the expected

> $(call gb_CustomTarget_get_workdir,extras/source/autotext/user)/%.bau

rule in extras/CustomTarget_autotextuser.mk (with a stem of "mytexts"), but
rather the

> $(call gb_CustomTarget_get_workdir,extras/source/autotext)/%.bau

rule in extras/CustomTarget_autotextshare.mk (with a stem of "user/mytexts").
But in that mismatched rule the part

> $(call extras_AUTOTEXTSHARE_XMLFILES_RELATIVE,$*)

then expanded to nothing, calling zip with an empty list of files, which makes
zip fail.

No idea why this apparently worked reliably in the past, and why it started to
fail for just this one build scenario of mine (it still worked for other builds
also using make-4.4-3.fc38.x86_64 now).

Change-Id: I643fb0835313cacca5b64416006a3573e559ae78
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148946
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2025-02-07 07:58:28 +01:00
Christian Lohmaier 0c4c84a14b makefile simplification: replace $(call gb_CustomTarget_get_workdir,foo)
…by a simple/static $(gb_CustomTarget_workdir)/foo

The build system has a lot of overly complicated leftovers from when it
was introduced and had not only deal with split repositories but also
had to coexist with another buildsystem. Along with lots of copy'n'paste
along the years the makefiles became hard to grasp for newcomers with
all our calls and evals.
As a first step to streamline that, the macros from TargetLocations that
simply prefix a static path to the argument (and similar of the same
kind) are a natural pick before simplifying the rules themselves/getting
rid of a bunch of eval statements.

Change-Id: Ia06dbbcd5d1994755a2ff05b84f72ccbc4e3cab5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167005
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2024-05-03 16:06:14 +02:00
Christian Lohmaier f7c5dd5f95 run zip via wsl in wsl-as-helper case
Change-Id: I0c5b75c39c211aba08ae6d56f02bcc93ca11e2bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166337
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2024-04-26 14:01:43 +02:00
Christian Lohmaier f5ce765d56 simplify autotextshare makefile/only build what's packaged
The multiple indirections/complex nested constructs don't really provide
any benefit here, they certainly don't make the makefile easier to read.

It was building the autotext .bau files for all languages, despite being
packaged only for the requested UI langauges (via AllLagPackage) and the
long list of autotext files was duplicated (even if all .bau files
should be built, the list could be reused from the other makefile)

Also remove the empty mimetype files and just touch them instead of
copying them.

The xml, mimetype and other files are now intermediates and are removed by
make once the .bau is built. (if that's not desired, they can be flagged as
.SECONDARY)

The list of individual files (3.6k lines) could also be cut down if
using e.g. make's wildcard function

Change-Id: I223a49d26d1de1435d62a68a04b3713278a8320c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129696
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-02-10 11:35:04 +01:00
Justin Luth d7ead0f1f3 remove unnecessary meta.xml from autotext
I kept this separate to simplify spotting errors.

There were about 130 unique md5sum hashes, and all were
roughly the same size. I spot checked a few with "meld"
and didn't see anything that seemed valuable.

find . -name meta.xml  -exec rm {} \;
git grep -l \/meta.xml *.xml | xargs sed -i /\/meta.xml/d
git grep -l \/meta.xml ../CustomTarget_autotextshare.mk \
    | xargs sed -i "/\/meta.xml/d"

Change-Id: Id11ec9973a8764ffbc809f9161868d6cacb80a85
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121606
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
Reviewed-by: Laurent Balland-Poirier <laurent.balland-poirier@laposte.net>
2021-09-08 07:13:00 +02:00
Justin Luth 23ec2a6912 remove unnecessary settings.xml from autotext
I don't think that anyone wants their document settings adjusted
just by entering some autotext.
[Now, it didn't seem to be doing that because I suppose that since
the value already exists, the import won't overwrite it.]

find extras/source  -name settings.xml | md5sum | sort
   //shows only a few unique entries. Visual comparing with "Meld"
   //didn't reveal any reason why the files are useful.

I also removed ./autotext/lang/bg/standard/FN/Obj0012D655/settings.xml
based on Laurent's advice, even though it contains
<config:config-item config:name="Formula" E=mc^2

Otherwise, the other 7 versions were almost identical, differening
only in OOo version .9, or 1.1 and show redline changes on/off.

cd exttras/source
find . -name settings.xml  -exec rm {} \;
git grep -l \/settings.xml *.xml | xargs sed -i /\/settings.xml/d
git grep -l \/settings.xml ../CustomTarget_autotextshare.mk \
       | xargs sed -i "/\/settings.xml/d"

Change-Id: I9c148bdff55e6757e6fa98401486bc7c41ebf25d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121605
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
2021-09-06 17:52:54 +02:00
Luboš Luňák 0adc9b615f GBUILD_TRACE, support for finding out where the build time is spent
See instructions in solenv/gbuild/Trace.mk . This generates a file than
can be viewed e.g. in the Chromium tracing view.

Change-Id: I5f90647c58ca729375525b6daed2d4918adc8188
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88754
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2020-02-16 14:49:45 +01:00
Laurent BP 56b078502b Update AutoText for sr
Change lang code to AutoText to fit UI languages:
replace sr-CS, sr-ME, sr-RS and sr-Latn-CS, sr-Latn-ME, sr-Latn-RS
with sr and sr-Latn

Change-Id: I68b437c8a93c8ecf926d0169b3bee93145375e0b
Reviewed-on: https://gerrit.libreoffice.org/78805
Tested-by: Jenkins
Reviewed-by: Laurent BP <laurent.balland-poirier@laposte.net>
2019-09-24 21:17:46 +02:00
Laurent BP 522b818995 Remove useless AutoText
As no UI available in these languages, autotext were removed for:
ab af-ZA (af is used) an az en-AU ga-IE (ga is used) jv kl ky lb-LU (lb is used) nl-BE (nl is used) sah ti ur

Change-Id: If048baec9821dde3bbd60de202d6b8e0b188fc5d
Reviewed-on: https://gerrit.libreoffice.org/78839
Tested-by: Jenkins
Reviewed-by: Laurent BP <laurent.balland-poirier@laposte.net>
2019-09-24 21:17:13 +02:00
Laurent BP 89e5af0b69 tdf#81436 Add default Autotext to all l10n
For l10n that do not have yet Autotext, add:
FN: Formula Numbering
LOREM: Lorem Ipsum dummy text

Change-Id: Ife882cdc70758ccbbc3fa8e185eca10fab005e4a
Reviewed-on: https://gerrit.libreoffice.org/78353
Tested-by: Jenkins
Reviewed-by: Laurent BP <laurent.balland-poirier@laposte.net>
2019-09-08 15:14:03 +02:00
Laurent BP afb4db7184 tdf#125010 No compression to mimetype in all embded files
same change as change https://gerrit.libreoffice.org/71473/
for :
- autocorrection files .DAT
- autotext share files .BAU
- autotext user file .BAU
- Writer templates: OfficeCorr, OfficeMisc, Personal, Styles .OTT
- Impress templates .OTP

Change-Id: Ie467b19bc833006fdfef45a72b9cb4a0eba8e7bd
Reviewed-on: https://gerrit.libreoffice.org/71830
Tested-by: Jenkins
Reviewed-by: Laurent BP <laurent.balland-poirier@laposte.net>
2019-05-14 20:42:01 +02:00
László Németh ddefbfd645 Update Hungarian Autotext patterns
Remove obsolete patterns for date field insertion, add a current one.

Change-Id: Ifb7109b6b3eb210f1b1b40bab236794c07a105d7
Reviewed-on: https://gerrit.libreoffice.org/21943
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2016-02-03 09:24:46 +00:00
Caolán McNamara fe1eb8809d use nonet for xsltproc
Change-Id: I47f020722b46b727ad03a937f28f0b33033d61cb
2015-08-28 10:29:09 +01:00
Laurent Balland-Poirier 8791017b0e Simplify make file for autocorr and autotext
Build mimetype file list with other lists

Change-Id: Ia30fd6af9d312e4eb7d68b6460221a55f608a808
Reviewed-on: https://gerrit.libreoffice.org/10887
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2014-08-12 11:36:52 -05:00
David Tardon 32d2ec2562 remove stray \
Change-Id: I55a695835d6c7085aebd36c37de4866daebb8134
2014-07-03 12:18:27 +02:00
David Tardon 1bb51903d6 rename makefile
Change-Id: I05b0bd047176cb35f162592e1be48765d955be8a
2014-07-03 12:06:19 +02:00