bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gettext] Possible small regression in generated Makefiles from gett


From: Assaf Gordon
Subject: [bug-gettext] Possible small regression in generated Makefiles from gettext-0.19 with old 'make'
Date: Wed, 27 May 2015 17:03:08 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

Hello,

I've encountered a possible error in a generated 'po/Makefile' when switching 
from gettext 0.18 to 0.19.
I hope 'getetxt' is the relevant mailing list, but if the culprit is a 
different autotools part, please let me know.

When using gettext-0.19 in a project,
then running 'configure && make' on FreeBSD 9.3 (which uses some old version of 
non-gnu make),
make will fail with "error expanding embedded variable".

It can be demonstrated with this contrived example Makefile:
====
    srcdir = .
    PACKAGE = datamash

    POFILESDEPS_ = $(srcdir)/$(DOMAIN).pot
    POFILESDEPS_yes = $(POFILESDEPS_)
    POFILESDEPS_no =
    POFILESDEPS = $(POFILESDEPS_$(PO_DEPENDS_ON_POT))

    DOMAIN=$(PACKAGE)

    POTFILES = src/datamash.c
all: $(POTFILES)

    $(POTFILES): $(POFILESDEPS)
====

It seems that 'PO_DEPENDS_ON_POT' is not defined anywhere, and so expanding it 
fails with this version of 'make'.
Note that it doesn't fail with GNU Make, or with the 'bmake' found on FreeBSD 
10.1.
Adding 'PO_DEPENDS_ON_POT=no' solves the issue.

Perhaps by default it can defined as 'no', instead of non-existing/empty 
variable?


thanks,
 -assaf



reply via email to

[Prev in Thread] Current Thread [Next in Thread]