[Hackage] #161: 'sdist' cannot find some modules that 'build'
finds ok
Hackage
trac at galois.com
Mon Jan 21 12:27:42 EST 2008
#161: 'sdist' cannot find some modules that 'build' finds ok
----------------------------+-----------------------------------------------
Reporter: guest | Owner:
Type: defect | Status: new
Priority: high | Milestone:
Component: Cabal library | Version: 1.2.0
Severity: normal | Resolution:
Keywords: | Difficulty: easy (<4 hours)
Ghcversion: 6.6 | Platform: Linux
----------------------------+-----------------------------------------------
Changes (by duncan):
* summary: sdist and build uses different source directories => 'sdist'
cannot find some modules that 'build' finds ok
Old description:
> With the following project layout:
>
> network-bytestring
> network-bytestring.cabal
> Network
> Socket
> ByteString.hscpp
> tests
> ...
> ...
>
> Running configure, build and install works but running sdist results in:
>
> Setup.lhs: Error: Could not find module: Network.Socket.ByteString with
> any suffix: ["gc","chs","hsc","x","y","ly","cpphs","hs","lhs"]
>
> I added some more debug output with the following result:
>
> Setup.lhs: Error: Could not find module: Network.Socket.ByteString with
> any suffix: ["gc","chs","hsc","x","y","ly","cpphs","hs","lhs"] in any of
> these search directories: ["tests"]
>
> My theory is that builds includes "." among the source directories while
> sdist doesn't.
>
> You can get the repo (with a possibly fixed .cabal file so you need to
> look at the attached file to reproduce the error):
>
> darcs get http://code.haskell.org/network-bytestring
New description:
With the following project layout:
{{{
network-bytestring
network-bytestring.cabal
Network
Socket
ByteString.hscpp
tests
...
...
}}}
Running configure, build and install works but running sdist results in:
{{{
Setup.lhs: Error: Could not find module: Network.Socket.ByteString with
any suffix: ["gc","chs","hsc","x","y","ly","cpphs","hs","lhs"]
}}}
I added some more debug output with the following result:
{{{
Setup.lhs: Error: Could not find module: Network.Socket.ByteString with
any suffix: ["gc","chs","hsc","x","y","ly","cpphs","hs","lhs"] in any of
these search directories: ["tests"]
}}}
My theory is that builds includes "." among the source directories while
sdist doesn't.
You can get the repo (with a possibly fixed .cabal file so you need to
look at the attached file to reproduce the error):
darcs get http://code.haskell.org/network-bytestring
--
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/161#comment:3>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects
More information about the cabal-devel
mailing list