GNOME Bugzilla – Bug 573527
Wrong shell to run config.status in Makefile.in.in
Last modified: 2009-03-01 07:06:51 UTC
Hi, config.status is generated based on the shell detected in configure and should be called with the CONFIG_SHELL instead of the default make SHELL (/bin/sh). This was discovered recently in gettext and fixed: http://lists.gnu.org/archive/html/bug-gnu-utils/2009-02/msg00054.html Original bug: https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/332840 Bye
Created attachment 129732 [details] [review] Proposed patch modeled on the gettext fix
Also, I find it more elegant to call config.status the way gettext does: Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ cd $(top_builddir) \ && $(SHELL) ./config.status $(subdir)/$@.in po-directories and it has support for multiple po/ dirs -- which was the need of Gtk+ which triggered its own set of issues, see bug #573515. So I kind of wonder whether it makes sense to duplicate this Makefile.in.in infrastructure and whether it would be possible to move this part to upstream gettext nowadays? If you care to do it like gettext, change the Makefile rule to read: cd $(top_builddir) \ && $(SHELL) ./config.status $(subdir)/$@.in
* Makefile.in.in: Don't hardcode /bin/sh as shell. Reported by Loïc Minier