Bug 71787 - textproc/aspell: Mistake in ``configure''
Summary: textproc/aspell: Mistake in ``configure''
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Thierry Thomas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-16 08:50 UTC by Alex Semenyaka
Modified: 2004-10-18 13:53 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Semenyaka 2004-09-16 08:50:20 UTC
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.

Fix: Apply the following patch:



-if test "$GXX" = "yes" && expr "$CXXFLAGS" : '.*-O' > /dev/null
+if test "$GXX" = "yes" && expr -- "$CXXFLAGS" : '.*-O' > /dev/null
 then
   CXXFLAGS="$CXXFLAGS -fno-exceptions"
 fi--z2xvH4GI9MhLDIia93uJ1zTLDCNvBjwCfV1DZWqiN1B2BARP
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- configure.old       Thu Sep 16 11:33:12 2004
+++ configure   Thu Sep 16 11:35:04 2004
@@ -2902,7 +2902,7 @@
 fi
How-To-Repeat: 
cd /usr/ports/textproc/aspell
make ASPELL_EN=YES
Comment 1 Xin LI freebsd_committer freebsd_triage 2004-09-16 08:54:25 UTC
Responsible Changed
From-To: freebsd-ports-bugs->thierry

Over to maintainer
Comment 2 Thierry Thomas freebsd_committer freebsd_triage 2004-10-18 13:52:35 UTC
State Changed
From-To: open->closed


Committed, thanks!