All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: George Dunlap <george.dunlap@eu.citrix.com>, xen-devel@lists.xen.org
Cc: Euan Harris <euan.harris@citrix.com>,
	Ian Jackson <ian.jackson@citrix.com>,
	Wei Liu <wei.liu2@citrix.com>,
	Roger Pau Monne <roger.pau@citrix.com>
Subject: Re: [PATCH for 4.6] tools: Honor Config.mk debug value, rather than setting our own
Date: Wed, 2 Sep 2015 12:05:03 +0100	[thread overview]
Message-ID: <1441191903.26292.136.camel@citrix.com> (raw)
In-Reply-To: <1441186495-7256-1-git-send-email-george.dunlap@eu.citrix.com>

On Wed, 2015-09-02 at 10:34 +0100, George Dunlap wrote:
> Changeset 1166ecf ('tools/Rules.mk: Don't optimize debug builds; add
> macro debugging information') exposed a bug whereby the autoconf stuff
> in tools was setting its own debug value (defaulting to ENABLED, even
> for releases) instead of honoring the value set in Config.mk.
> 
> After that changeset, if the global build has -D_FORTIFY_SOURCE
> enabled (as is the default in CentOS 7 rpmbuild), then the tools build
> will fail (because debug builds default to on).
> 
> There should be only one place to specify whether to build debug or
> not, and Config.mk is already included by the relevant makefiles.  So
> simply remove the tools/configure debug option and everything falls
> into place naturally.
> 
> Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>

Acked-by: Ian Campbell <ian.campbell@citrix.com>

> ---
> 
> This is functionally a regression in 4.6, and so should be considered
> for inclusion in 4.6.
> 
> CC: Ian Campbell <ian.campbell@citrix.com>
> CC: Ian Jackson <ian.jackson@citrix.com>
> CC: Wei Liu <wei.liu2@citrix.com>
> CC: Roger Pau Monne <roger.pau@citrix.com>
> CC: Euan Harris <euan.harris@citrix.com>
> ---
>  tools/configure    | 26 --------------------------
>  tools/configure.ac |  1 -
>  2 files changed, 27 deletions(-)
> 
> diff --git a/tools/configure b/tools/configure
> index 428b3a5..884ce0a 100755
> --- a/tools/configure
> +++ b/tools/configure
> @@ -707,7 +707,6 @@ rombios
>  qemu_traditional
>  blktap2
>  LINUX_BACKEND_MODULES
> -debug
>  seabios
>  ovmf
>  xsmpolicy
> @@ -798,7 +797,6 @@ enable_ocamltools
>  enable_xsmpolicy
>  enable_ovmf
>  enable_seabios
> -enable_debug
>  with_linux_backend_modules
>  enable_blktap2
>  enable_qemu_traditional
> @@ -1473,7 +1471,6 @@ Optional Features:
>    --disable-xsmpolicy     Disable XSM policy compilation (default is 
> ENABLED)
>    --enable-ovmf           Enable OVMF (default is DISABLED)
>    --disable-seabios       Disable SeaBIOS (default is ENABLED)
> -  --disable-debug         Disable debug build of tools (default is 
> ENABLED)
>    --enable-blktap2        Enable blktap2, (DEFAULT is on for Linux, 
> otherwise
>                            off)
>    --enable-qemu-traditional
> @@ -4114,29 +4111,6 @@ seabios=$ax_cv_seabios
>  
>  
>  
> -# Check whether --enable-debug was given.
> -if test "${enable_debug+set}" = set; then :
> -  enableval=$enable_debug;
> -fi
> -
> -
> -if test "x$enable_debug" = "xno"; then :
> -
> -    ax_cv_debug="n"
> -
> -elif test "x$enable_debug" = "xyes"; then :
> -
> -    ax_cv_debug="y"
> -
> -elif test -z $ax_cv_debug; then :
> -
> -    ax_cv_debug="y"
> -
> -fi
> -debug=$ax_cv_debug
> -
> -
> -
>  
>  # Check whether --with-linux-backend-modules was given.
>  if test "${with_linux_backend_modules+set}" = set; then :
> diff --git a/tools/configure.ac b/tools/configure.ac
> index 7daec99..6c70040 100644
> --- a/tools/configure.ac
> +++ b/tools/configure.ac
> @@ -83,7 +83,6 @@ AX_ARG_DEFAULT_ENABLE([ocamltools], [Disable Ocaml 
> tools])
>  AX_ARG_DEFAULT_ENABLE([xsmpolicy], [Disable XSM policy compilation])
>  AX_ARG_DEFAULT_DISABLE([ovmf], [Enable OVMF])
>  AX_ARG_DEFAULT_ENABLE([seabios], [Disable SeaBIOS])
> -AX_ARG_DEFAULT_ENABLE([debug], [Disable debug build of tools])
>  
>  AC_ARG_WITH([linux-backend-modules],
>      AS_HELP_STRING([--with-linux-backend-modules="mod1 mod2"],

  parent reply	other threads:[~2015-09-02 11:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-02  9:34 [PATCH for 4.6] tools: Honor Config.mk debug value, rather than setting our own George Dunlap
2015-09-02 10:08 ` George Dunlap
2015-09-02 11:05 ` Ian Campbell [this message]
2015-09-02 11:08 ` Wei Liu
2015-09-02 11:24   ` Ian Campbell
2015-09-02 11:25     ` Wei Liu
2015-09-02 13:27       ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1441191903.26292.136.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=euan.harris@citrix.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=ian.jackson@citrix.com \
    --cc=roger.pau@citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.