Bug #58595 configure.pl translates --with-extra-charsets incorrectly
Submitted: 30 Nov 2010 15:57 Modified: 12 Jun 2013 13:28
Reporter: Paul DuBois Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:5.5+ OS:Any
Assigned to: CPU Architecture:Any

[30 Nov 2010 15:57] Paul DuBois
Description:
The cmake/configure.pl "CMake wrapper" script translates configure options to their CMake equivalents.

But there are three places it processes the --with-extra-charsets option and it translates them inconsistently:

  if($option =~ /with-extra-charsets=/)
  {
    my $charsets= substr($option,20);
    $cmakeargs = $cmakeargs." -DWITH_EXTRA_CHARSETS=".$charsets;
    next;
  }

  if ($option =~ /extra-charsets=all/)
  {
    $cmakeargs = $cmakeargs." -DWITH_CHARSETS=all";
    next;
  }
  if ($option =~ /extra-charsets=complex/)
  {
    $cmakeargs = $cmakeargs." -DWITH_CHARSETS=complex";
    next;
  }

The 2nd and 3rd of those should say WITH_EXTRA_CHARSETS, not WITH_CHARSETS.

How to repeat:
Inspection of configure.pl
[30 Nov 2010 16:08] MySQL Verification Team
Thank you for the bug report.
[12 Jun 2013 13:28] Jon Olav Hauglid
According to:
http://dev.mysql.com/doc/internals/en/cmake-howto-long-version.html#configure-emulation
"Beware that the script is neither perfect nor supported. It is meant to be a temporary solution for those who need time to rewrite ./configure based scripts to native CMake."

This script is not supported and not tested. Closing as "Won't fix".