Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Sep 2004 11:45:44 +0400 (MSD)
From:      Alex Semenyaka <alex@semenyaka.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/71787: textproc/aspell: Mistake in ``configure''
Message-ID:  <200409160745.i8G7jiws074572@snark.rinet.ru>
Resent-Message-ID: <200409160750.i8G7oLpF074728@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         71787
>Category:       ports
>Synopsis:       textproc/aspell: Mistake in ``configure''
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 16 07:50:20 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Alex Semenyaka
>Release:        FreeBSD 6.0-CURRENT i386
>Organization:
n/a
>Environment:
System: FreeBSD stupid.rinet.ru 6.0-CURRENT FreeBSD 6.0-CURRENT #3: Sun Sep 12 17:17:04 MSD 2004 root@stupid.rinet.ru:/usr/obj/usr/src/sys/STUPID i386

Port collection was updated recently (Sept 15, 2004).

>Description:

When the environment variable $CXXFLAGS is defined the following
message is produced by ``configure'':

checking for style of include used by make... GNU
checking dependency style of c++... gcc3
expr: illegal option -- O
usage: expr [-e] expression
checking for gcc... cc
checking whether we are using the GNU C compiler... yes

This happens because the $CXXFLAGS starts with the character '-'
and expr interprets it as it's own flags, not argument.

>How-To-Repeat:

cd /usr/ports/textproc/aspell
make ASPELL_EN=YES

>Fix:

Apply the following patch:

--- configure.old       Thu Sep 16 11:33:12 2004
+++ configure   Thu Sep 16 11:35:04 2004
@@ -2902,7 +2902,7 @@
 fi


-if test "$GXX" = "yes" && expr "$CXXFLAGS" : '.*-O' > /dev/null
+if test "$GXX" = "yes" && expr -- "$CXXFLAGS" : '.*-O' > /dev/null
 then
   CXXFLAGS="$CXXFLAGS -fno-exceptions"
 fi

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409160745.i8G7jiws074572>