darcs

Issue 778 configure suceeds even though needed regex package is not found

No such action "mbox"

Title configure suceeds even though needed regex package is not found
Priority bug Status wont-fix
Milestone Resolved in
Superseder Nosy List aslatter, darcs-devel, dmitry.kurochkin, kowey, thorkilnaur, tommy
Assigned To aslatter
Topics Devel

Created on 2008-04-02.02:45:06 by aslatter, last changed 2009-08-27.14:22:49 by admin.

Files
File name Uploaded Type Edit Remove
config.log aslatter, 2008-04-03.19:21:50 application/octet-stream
Messages
msg4168 (view) Author: aslatter Date: 2008-04-02.02:45:02
The .cabal lists the version as pre3, but I think I just recently
pulled the "tag rc1" path.

Anyway, after running "./configure --prefix=${MY-PREFIX}" without
error, I attempted the following:

$ make && make install
Rebuild dependencies ...

src/Darcs/Bug.lhs:9:7:
    Could not find module `Text.Regex':
      Use -v to see a list of the files searched for.
make: *** [.depend] Error 1

This is on Ubuntu 8.04 Beta, with the Ubuntu packages for GHC 6.8.2
installed.  The core install of GHC on Ubuntu does NOT include any of
the following packages:

 regex-compat
 regex-base
 regex-posix

-Antoine
msg4173 (view) Author: droundy Date: 2008-04-02.13:43:52
On Wed, Apr 02, 2008 at 02:45:06AM -0000, Antoine Latter wrote:
> The .cabal lists the version as pre3, but I think I just recently
> pulled the "tag rc1" path.

The cabal file is unused, and I have now removed it.  Thanks for pointing
this out!

> Anyway, after running "./configure --prefix=${MY-PREFIX}" without
> error, I attempted the following:
> 
> $ make && make install
> Rebuild dependencies ...
> 
> src/Darcs/Bug.lhs:9:7:
>     Could not find module `Text.Regex':
>       Use -v to see a list of the files searched for.
> make: *** [.depend] Error 1

Can you send the output of ./configure? We do check for the useability of
Text.Regex (which is why I want to be sure those tests are working fine),
so this is a confusing error to me.  And one we definitely want to fix!

David
msg4178 (view) Author: droundy Date: 2008-04-03.13:13:51
On Wed, Apr 02, 2008 at 11:14:54PM -0500, Antoine Latter wrote:
> On Wed, Apr 2, 2008 at 8:43 AM, David Roundy <bugs@darcs.net> wrote:
> >  Can you send the output of ./configure? We do check for the useability of
> >  Text.Regex (which is why I want to be sure those tests are working fine),
> >  so this is a confusing error to me.  And one we definitely want to fix!
> 
> Attached is the output of the config.log.
> 
> It looks like it caught the fact that I don't have the regex packages
> installed, but the configure script still exits with success.

I'm sorry, I've made this mistake before when asking for configure output.
Can I see the actual output of configure, as in:

./configure > out

and then give me the out file? I've never been able to effectively discern
from config.log what was going on, except when I've also got the output of
configure.
-- 
David Roundy
Department of Physics
Oregon State University
msg4189 (view) Author: aslatter Date: 2008-04-03.19:21:50
On Wed, Apr 2, 2008 at 8:43 AM, David Roundy <bugs@darcs.net> wrote:
>
>  Can you send the output of ./configure? We do check for the useability of
>  Text.Regex (which is why I want to be sure those tests are working fine),
>  so this is a confusing error to me.  And one we definitely want to fix!
>

Attached is the output of the config.log.

It looks like it caught the fact that I don't have the regex packages
installed, but the configure script still exits with success.

-Antoine

>  David
>
>  ----------
>  nosy: +droundy
>  status: unread -> chatting
>
>
>  __________________________________
>  Darcs bug tracker <bugs@darcs.net>
>  <http://bugs.darcs.net/issue778>
>  __________________________________
>
Attachments
msg4431 (view) Author: kowey Date: 2008-05-01.16:19:11
Hmm :-/

I tried replacing regex-compat with regex-compat-xxx in my configure.ac so as to
simulate the failure, but when I do so the configure script fails as it should.
 Really not sure why it would be passing for aslatter.

Here's the relevant piece of his config.log:
=================================8<=================
configure: failed program was:
-- #line 4647 "configure"
import Text.Regex( mkRegex, matchRegex, Regex )
main = seq (mkRegex undefined) (putStr "Hello world.\n")

end of failed program.
configure:4670: result: no; and neither in package regex-compat
configure:4684: checking for module Network.HTTP( urlEncode )
=================================8<=================

Notice how it keeps going after the regex-compat failure

Antoine, is there any chance this is something we've already fixed?  Could you
try with 2.0.0 + 121 patches or higher? (i.e. darcs get http://darcs.net)
msg8090 (view) Author: kowey Date: 2009-08-11.14:41:27
The configure script has gone away so I think we can safely wont-fix this. 
Thanks for the report!
History
Date User Action Args
2008-04-02 02:45:06aslattercreate
2008-04-02 13:43:55droundysetstatus: unread -> unknown
nosy: + droundy
messages: + msg4173
2008-04-03 13:07:49droundysetpriority: bug
nosy: + aslatter, - aslatter
2008-04-03 13:13:53droundysetnosy: droundy, tommy, beschmi, kowey, aslatter
messages: + msg4178
2008-04-03 19:21:52aslattersetfiles: + config.log
nosy: + aslatter
messages: + msg4189
2008-04-25 17:51:42koweysetnosy: - aslatter
title: Error building pre-release -> configure suceeds even though needed regex package is not found
2008-05-01 16:19:13koweysetnosy: + dagit
messages: + msg4431
2008-05-09 08:15:31koweysetstatus: unknown -> waiting-for
nosy: + aslatter
assignedto: aslatter
2009-08-06 17:57:54adminsetnosy: + markstos, jast, Serware, dmitry.kurochkin, darcs-devel, zooko, mornfall, simon, thorkilnaur, - droundy, aslatter, aslatter
2009-08-06 21:01:43adminsetnosy: - beschmi
2009-08-10 22:19:10adminsetnosy: + aslatter, aslatter, - markstos, darcs-devel, zooko, jast, Serware, mornfall
2009-08-11 00:09:32adminsetnosy: - dagit
2009-08-11 14:41:37koweysetstatus: waiting-for -> wont-fix
nosy: - aslatter
topic: + Devel
messages: + msg8090
2009-08-25 18:08:19adminsetnosy: + darcs-devel, - simon
2009-08-27 14:22:49adminsetnosy: tommy, kowey, darcs-devel, thorkilnaur, dmitry.kurochkin, aslatter