Files
odfstudio/extras/AllLangPackage_autotextshare.mk
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

187 lines
3.8 KiB
Makefile

# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
$(eval $(call gb_AllLangPackage_AllLangPackage,autotextshare,$(gb_CustomTarget_workdir)/extras/source/autotext/share))
$(eval $(call gb_AllLangPackage_add_files,autotextshare,$(LIBO_SHARE_FOLDER)/autotext,\
af/standard.bau \
am/standard.bau \
ar/standard.bau \
as/standard.bau \
ast/standard.bau \
be/standard.bau \
bg/crdbus50.bau \
bg/standard.bau \
bg/template.bau \
bn-IN/standard.bau \
bn/standard.bau \
bo/standard.bau \
br/standard.bau \
brx/standard.bau \
bs/standard.bau \
ca-valencia/standard.bau \
ca/standard.bau \
cs/crdbus50.bau \
cs/crdbus54.bau \
cs/standard.bau \
cs/template.bau \
cy/standard.bau \
da/crdbus50.bau \
da/standard.bau \
da/template.bau \
de/crdbus50.bau \
de/standard.bau \
de/template.bau \
dgo/standard.bau \
dsb/standard.bau \
dz/standard.bau \
el/standard.bau \
en-GB/crdbus50.bau \
en-GB/standard.bau \
en-GB/template.bau \
en-US/crdbus50.bau \
en-US/standard.bau \
en-US/template.bau \
en-ZA/standard.bau \
eo/standard.bau \
es/crdbus50.bau \
es/standard.bau \
es/template.bau \
et/standard.bau \
eu/standard.bau \
fa/standard.bau \
fi/standard.bau \
fr/crdbus50.bau \
fr/standard.bau \
fr/template.bau \
fy/standard.bau \
ga/standard.bau \
gd/standard.bau \
gl/standard.bau \
gu/standard.bau \
gug/standard.bau \
he/standard.bau \
hi/standard.bau \
hr/standard.bau \
hsb/standard.bau \
hu/crdbus50.bau \
hu/crdbus54.bau \
hu/standard.bau \
hu/template.bau \
id/standard.bau \
is/standard.bau \
it/crdbus50.bau \
it/standard.bau \
it/template.bau \
ja/crdbus50.bau \
ja/standard.bau \
ja/template.bau \
ka/standard.bau \
kab/standard.bau \
kk/standard.bau \
km/crdbus50.bau \
km/standard.bau \
km/template.bau \
kmr-Latn/standard.bau \
kn/standard.bau \
ko/crdbus50.bau \
ko/standard.bau \
ko/template.bau \
kok/standard.bau \
ks/standard.bau \
lb/standard.bau \
lo/standard.bau \
lt/standard.bau \
lv/standard.bau \
mai/standard.bau \
mk/standard.bau \
ml/standard.bau \
mn/crdbus50.bau \
mn/standard.bau \
mn/template.bau \
mni/standard.bau \
mr/standard.bau \
my/standard.bau \
nb/standard.bau \
ne/standard.bau \
nl/crdbus50.bau \
nl/standard.bau \
nl/template.bau \
nn/standard.bau \
nr/standard.bau \
nso/standard.bau \
oc/standard.bau \
om/standard.bau \
or/standard.bau \
pa-IN/standard.bau \
pl/crdbus50.bau \
pl/standard.bau \
pl/template.bau \
pt-BR/crdbus50.bau \
pt-BR/standard.bau \
pt-BR/template.bau \
pt/crdbus50.bau \
pt/standard.bau \
pt/template.bau \
ro/standard.bau \
ru/crdbus50.bau \
ru/standard.bau \
ru/template.bau \
rw/standard.bau \
sa-IN/standard.bau \
sat/standard.bau \
sd/standard.bau \
si/standard.bau \
sid/standard.bau \
sk/crdbus50.bau \
sk/crdbus54.bau \
sk/standard.bau \
sk/template.bau \
sl/crdbus50.bau \
sl/crdbus54.bau \
sl/standard.bau \
sl/template.bau \
sq/standard.bau \
sr/standard.bau \
sr-Latn/standard.bau \
ss/standard.bau \
st/standard.bau \
sv/crdbus50.bau \
sv/standard.bau \
sv/template.bau \
sw-TZ/standard.bau \
szl/standard.bau \
ta/standard.bau \
te/standard.bau \
tg/standard.bau \
th/standard.bau \
tn/standard.bau \
tr/crdbus50.bau \
tr/standard.bau \
tr/template.bau \
ts/standard.bau \
tt/standard.bau \
ug/standard.bau \
uk/standard.bau \
uz/standard.bau \
ve/standard.bau \
vec/standard.bau \
vi/standard.bau \
xh/standard.bau \
zh-CN/crdbus50.bau \
zh-CN/standard.bau \
zh-CN/template.bau \
zh-TW/crdbus50.bau \
zh-TW/standard.bau \
zh-TW/template.bau \
zu/standard.bau \
))
# vim: set noet sw=4 ts=4: