id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,difficulty,ghcversion,platform
161,'sdist' cannot find some modules that 'build' finds ok,guest,,"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
",defect,closed,high,Cabal-1.4,Cabal library,1.2.0,normal,fixed,,,easy (<4 hours),6.6,Linux
