Hi, I am possible at the wrong ML now, but see the braking shell code as well in gnulib/build-aux/po/Makefile.in.in.
The make target '$(DOMAIN).pot-update:' contains this code:
if test -f $(srcdir)/$(DOMAIN).pot; then \
sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot >
$(DOMAIN).1po && \
sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \
if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
else \
rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
fi; \
else \
mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
fi; \
In a vpath build (using the configure script outside the main project
directory), the line
rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot
is triggered and thus breaks 'make distcheck'.
This due to all files in $(srcdir) are read-only.
What is the general advice from the experts here how to deal with it ?
Projects like GNU Wget fail on the first run, others need a second run
to trigger the error:
rm: cannot remove '../../../po/wget.pot': Permission denied
make[6]: *** [Makefile:223: wget.pot-update] Error 1
make[6]: Leaving directory
'/home/tim/src/wget1.x/vpath/wget-1.20.3.13-ee7fe-dirty/_build/sub/po'
Regards, Tim
signature.asc
Description: OpenPGP digital signature
