Skip to content
Snippets Groups Projects
  • Cleber Rosa's avatar
    406ab2f3
    configure: more resilient Python version capture · 406ab2f3
    Cleber Rosa authored
    
    The current approach to capture the Python version is fragile, as it
    was demonstrated by a very specific build of Python 3 on Fedora 29
    that, under non-interactive shells would print multiline version
    information.
    
    The (badly) stripped version output would be sent to config-host.mak,
    producing bad syntax and rendering the makefiles unusable.  Now, the
    Python versions is printed by configure, but only a simple (and better
    controlled variable) indicating whether the build system is using
    Python 2 is kept on config-host.mak.
    
    Signed-off-by: default avatarCleber Rosa <crosa@redhat.com>
    
    Message-Id: <20190826155832.17427-1-crosa@redhat.com>
    Reviewed-by: default avatarTony Nguyen <tony.nguyen@bt.com>
    Signed-off-by: default avatarEduardo Habkost <ehabkost@redhat.com>
    406ab2f3
    History
    configure: more resilient Python version capture
    Cleber Rosa authored
    
    The current approach to capture the Python version is fragile, as it
    was demonstrated by a very specific build of Python 3 on Fedora 29
    that, under non-interactive shells would print multiline version
    information.
    
    The (badly) stripped version output would be sent to config-host.mak,
    producing bad syntax and rendering the makefiles unusable.  Now, the
    Python versions is printed by configure, but only a simple (and better
    controlled variable) indicating whether the build system is using
    Python 2 is kept on config-host.mak.
    
    Signed-off-by: default avatarCleber Rosa <crosa@redhat.com>
    
    Message-Id: <20190826155832.17427-1-crosa@redhat.com>
    Reviewed-by: default avatarTony Nguyen <tony.nguyen@bt.com>
    Signed-off-by: default avatarEduardo Habkost <ehabkost@redhat.com>
configure 208.49 KiB