[Libreoffice-bugs] [Bug 115283] New: Non-POSIX instruction in ./configure (and configure.ac)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Jan 28 17:09:37 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=115283

            Bug ID: 115283
           Summary: Non-POSIX instruction in ./configure (and
                    configure.ac)
           Product: LibreOffice
           Version: 5.4.4.2 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Installation
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: stephane.goujet at wanadoo.fr

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
<https://cgit.freedesktop.org/libreoffice/core/commit/configure.ac?id=b640a1343bb73f0c36a316f42847de5d61c156e3>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180128/f98b8505/attachment-0001.html>


More information about the Libreoffice-bugs mailing list