All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] autoconf: exec_prefix should default to $prefix not $ac_default_prefix
@ 2014-08-04 14:27 Ian Campbell
  2014-08-04 15:27 ` Julien Grall
  2014-08-04 15:57 ` Ian Jackson
  0 siblings, 2 replies; 5+ messages in thread
From: Ian Campbell @ 2014-08-04 14:27 UTC (permalink / raw)
  To: xen-devel; +Cc: Luis R. Rodriguez, Ian Campbell

Otherwise "./configure --prefix=/usr" still ends up with exec_prefix=/usr/local
and therefore LIBDIR, PRIVATE_PREFIX and PRIVATE_BINDIR still point to
/usr/local/foo.

This was broken in 54f28913a2b3 "autoconf: xen: move standard path variables to
config/Paths.mk.in" which tried to add code to expand exec_prefix earlier.

Reported-by: Julien Grall <julien.grall@linaro.org>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Luis R. Rodriguez <mcgrof@suse.com>
---
 configure       |    2 +-
 m4/paths.m4     |    2 +-
 tools/configure |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/configure b/configure
index 1ff0a44..a6efd35 100755
--- a/configure
+++ b/configure
@@ -1850,7 +1850,7 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
 
 test "x$prefix" = "xNONE" && prefix=$ac_default_prefix
-test "x$exec_prefix" = "xNONE" && exec_prefix=$ac_default_prefix
+test "x$exec_prefix" = "xNONE" && exec_prefix=${prefix}
 
 BINDIR=$prefix/bin
 
diff --git a/m4/paths.m4 b/m4/paths.m4
index 717fcd1..eac50af 100644
--- a/m4/paths.m4
+++ b/m4/paths.m4
@@ -1,7 +1,7 @@
 AC_DEFUN([AX_XEN_EXPAND_CONFIG], [
 dnl expand these early so we can use this for substitutions
 test "x$prefix" = "xNONE" && prefix=$ac_default_prefix
-test "x$exec_prefix" = "xNONE" && exec_prefix=$ac_default_prefix
+test "x$exec_prefix" = "xNONE" && exec_prefix=${prefix}
 
 BINDIR=$prefix/bin
 AC_SUBST(BINDIR)
diff --git a/tools/configure b/tools/configure
index 7c9bbca..3830da4 100755
--- a/tools/configure
+++ b/tools/configure
@@ -3681,7 +3681,7 @@ esac
 
 
 test "x$prefix" = "xNONE" && prefix=$ac_default_prefix
-test "x$exec_prefix" = "xNONE" && exec_prefix=$ac_default_prefix
+test "x$exec_prefix" = "xNONE" && exec_prefix=${prefix}
 
 BINDIR=$prefix/bin
 
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] autoconf: exec_prefix should default to $prefix not $ac_default_prefix
  2014-08-04 14:27 [PATCH] autoconf: exec_prefix should default to $prefix not $ac_default_prefix Ian Campbell
@ 2014-08-04 15:27 ` Julien Grall
  2014-08-04 16:15   ` Ian Campbell
  2014-08-04 15:57 ` Ian Jackson
  1 sibling, 1 reply; 5+ messages in thread
From: Julien Grall @ 2014-08-04 15:27 UTC (permalink / raw)
  To: Ian Campbell, xen-devel; +Cc: Luis R. Rodriguez

Hi Ian,

On 08/04/2014 03:27 PM, Ian Campbell wrote:
> Otherwise "./configure --prefix=/usr" still ends up with exec_prefix=/usr/local
> and therefore LIBDIR, PRIVATE_PREFIX and PRIVATE_BINDIR still point to
> /usr/local/foo.
> 
> This was broken in 54f28913a2b3 "autoconf: xen: move standard path variables to
> config/Paths.mk.in" which tried to add code to expand exec_prefix earlier.
> 
> Reported-by: Julien Grall <julien.grall@linaro.org>
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>

Thanks for the quick patch:

Tested-by: Julien Grall <julien.grall@linaro.org>

Regards,

> Cc: Luis R. Rodriguez <mcgrof@suse.com>
> ---
>  configure       |    2 +-
>  m4/paths.m4     |    2 +-
>  tools/configure |    2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/configure b/configure
> index 1ff0a44..a6efd35 100755
> --- a/configure
> +++ b/configure
> @@ -1850,7 +1850,7 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
>  
>  
>  test "x$prefix" = "xNONE" && prefix=$ac_default_prefix
> -test "x$exec_prefix" = "xNONE" && exec_prefix=$ac_default_prefix
> +test "x$exec_prefix" = "xNONE" && exec_prefix=${prefix}
>  
>  BINDIR=$prefix/bin
>  
> diff --git a/m4/paths.m4 b/m4/paths.m4
> index 717fcd1..eac50af 100644
> --- a/m4/paths.m4
> +++ b/m4/paths.m4
> @@ -1,7 +1,7 @@
>  AC_DEFUN([AX_XEN_EXPAND_CONFIG], [
>  dnl expand these early so we can use this for substitutions
>  test "x$prefix" = "xNONE" && prefix=$ac_default_prefix
> -test "x$exec_prefix" = "xNONE" && exec_prefix=$ac_default_prefix
> +test "x$exec_prefix" = "xNONE" && exec_prefix=${prefix}
>  
>  BINDIR=$prefix/bin
>  AC_SUBST(BINDIR)
> diff --git a/tools/configure b/tools/configure
> index 7c9bbca..3830da4 100755
> --- a/tools/configure
> +++ b/tools/configure
> @@ -3681,7 +3681,7 @@ esac
>  
>  
>  test "x$prefix" = "xNONE" && prefix=$ac_default_prefix
> -test "x$exec_prefix" = "xNONE" && exec_prefix=$ac_default_prefix
> +test "x$exec_prefix" = "xNONE" && exec_prefix=${prefix}
>  
>  BINDIR=$prefix/bin
>  
> 


-- 
Julien Grall

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] autoconf: exec_prefix should default to $prefix not $ac_default_prefix
  2014-08-04 14:27 [PATCH] autoconf: exec_prefix should default to $prefix not $ac_default_prefix Ian Campbell
  2014-08-04 15:27 ` Julien Grall
@ 2014-08-04 15:57 ` Ian Jackson
  2014-08-04 16:14   ` Ian Campbell
  1 sibling, 1 reply; 5+ messages in thread
From: Ian Jackson @ 2014-08-04 15:57 UTC (permalink / raw)
  To: Ian Campbell; +Cc: Luis R. Rodriguez, xen-devel

Ian Campbell writes ("[Xen-devel] [PATCH] autoconf: exec_prefix should default to $prefix not $ac_default_prefix"):
> Otherwise "./configure --prefix=/usr" still ends up with exec_prefix=/usr/local
> and therefore LIBDIR, PRIVATE_PREFIX and PRIVATE_BINDIR still point to
> /usr/local/foo.
> 
> This was broken in 54f28913a2b3 "autoconf: xen: move standard path variables to
> config/Paths.mk.in" which tried to add code to expand exec_prefix earlier.

Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] autoconf: exec_prefix should default to $prefix not $ac_default_prefix
  2014-08-04 15:57 ` Ian Jackson
@ 2014-08-04 16:14   ` Ian Campbell
  0 siblings, 0 replies; 5+ messages in thread
From: Ian Campbell @ 2014-08-04 16:14 UTC (permalink / raw)
  To: Ian Jackson; +Cc: Luis R. Rodriguez, xen-devel

On Mon, 2014-08-04 at 16:57 +0100, Ian Jackson wrote:
> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>

Thanks, applied.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] autoconf: exec_prefix should default to $prefix not $ac_default_prefix
  2014-08-04 15:27 ` Julien Grall
@ 2014-08-04 16:15   ` Ian Campbell
  0 siblings, 0 replies; 5+ messages in thread
From: Ian Campbell @ 2014-08-04 16:15 UTC (permalink / raw)
  To: Julien Grall; +Cc: Luis R. Rodriguez, xen-devel

On Mon, 2014-08-04 at 16:27 +0100, Julien Grall wrote:
> Hi Ian,
> 
> On 08/04/2014 03:27 PM, Ian Campbell wrote:
> > Otherwise "./configure --prefix=/usr" still ends up with exec_prefix=/usr/local
> > and therefore LIBDIR, PRIVATE_PREFIX and PRIVATE_BINDIR still point to
> > /usr/local/foo.
> > 
> > This was broken in 54f28913a2b3 "autoconf: xen: move standard path variables to
> > config/Paths.mk.in" which tried to add code to expand exec_prefix earlier.
> > 
> > Reported-by: Julien Grall <julien.grall@linaro.org>
> > Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
> 
> Thanks for the quick patch:
> 
> Tested-by: Julien Grall <julien.grall@linaro.org>

Thanks.

I forgot about this mail when I applied so I failed to insert the tag,
sorry.

Ian.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-08-04 16:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-04 14:27 [PATCH] autoconf: exec_prefix should default to $prefix not $ac_default_prefix Ian Campbell
2014-08-04 15:27 ` Julien Grall
2014-08-04 16:15   ` Ian Campbell
2014-08-04 15:57 ` Ian Jackson
2014-08-04 16:14   ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.