ports/71787: textproc/aspell: Mistake in ``configure''
Alex Semenyaka
alex at semenyaka.ru
Thu Sep 16 07:50:22 UTC 2004
>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 at 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:
More information about the freebsd-ports-bugs
mailing list