Re: [PATCH] Avoid autogen loop in VPATH builds

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

 



On 08/10/2010 08:59 AM, Jiri Denemark wrote:
> ---
>  cfg.mk |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/cfg.mk b/cfg.mk
> index 7226828..e7fd63c 100644
> --- a/cfg.mk
> +++ b/cfg.mk
> @@ -459,7 +459,7 @@ ifeq (0,$(MAKELEVEL))
>    # b653eda3ac4864de205419d9f41eec267cb89eeb
>    _submodule_hash = sed 's/^[ +-]//;s/ .*//'
>    _update_required := $(shell						\
> -      test -f po/Makevars || { echo 1; exit; };				\
> +      test -f $(srcdir)/po/Makevars || { echo 1; exit; };		\
>        cd '$(srcdir)';							\

My apologies for not properly testing VPATH builds; my regression was
commit 5f211d4b.  It turns out that gettext creates po/Makevars in
$(srcdir) unconditionally, even for VPATH builds.

This patch is one way to do it, but the other, simpler way, would be to
swap the two lines, and check for po/Makevars after the cd:

   _update_required := $(shell						\
-      test -f po/Makevars || { echo 1; exit; };				\
       cd '$(srcdir)';							\
+      test -f po/Makevars || { echo 1; exit; };				\

ACK to whichever version you think looks nicer.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]