<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Non-POSIX instruction in ./configure (and configure.ac)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=115283">115283</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Non-POSIX instruction in ./configure (and configure.ac)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.4.4.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Installation
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>stephane.goujet@wanadoo.fr
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hello,

  configure cannot run when /bin/sh is dash, because it uses one bashism:
pattern substitution "${parameter/pattern/string}", which does not belong to
POSIX shell.

  It happens at line 5062 of the "configure" script provided with
LibreOffice-5.4.4.2, when it tries to remove spaces from $PRODUCTNAME to make
PRODUCTNAME_WITHOUT_SPACES.

  The POSIX way to suppress spaces is to use "tr", or "sed" as 10 lines earlier
in the "configure" file.

  This fixes the "configure" file. Replace:

PRODUCTNAME_WITHOUT_SPACES=${PRODUCTNAME// /}

  by:

PRODUCTNAME_WITHOUT_SPACES=`echo "$PRODUCTNAME" | sed 's/ //g'`

  But of course the real fix should be in "configure.ac". Probably just the
same line but I do not know autotools, I do not know if there is an autoconf
macro that suits better, so I let you confirm.

  The problem was introduced in
<<a href="https://cgit.freedesktop.org/libreoffice/core/commit/configure.ac?id=b640a1343bb73f0c36a316f42847de5d61c156e3">https://cgit.freedesktop.org/libreoffice/core/commit/configure.ac?id=b640a1343bb73f0c36a316f42847de5d61c156e3</a>></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>