Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 171649 - dev-lang/pugs-6.2.13 fails to build with ghc-6.6
Summary: dev-lang/pugs-6.2.13 fails to build with ghc-6.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL: http://onlyfree.de/php/pasteservice/s...
Whiteboard:
Keywords: PMASKED
: 202643 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-03-21 07:44 UTC by julius junghans
Modified: 2009-04-23 13:26 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description julius junghans 2007-03-21 07:44:57 UTC
src-extralibs are not included in the ghc tarball

Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-03-21 08:10:27 UTC
Please, don't refer to pastebins; attach anything relevant here instead.
Comment 2 Lennart Kolmodin (RETIRED) gentoo-dev 2007-03-26 16:41:41 UTC
If pugs uses mtl it has to depend on dev-haskell/mtl.

See this link as a reference:
http://www.haskell.org/~gentoo/gentoo-haskell/projects/GHC-6.6-launch.html

Related bug 170650 as you need dev-haskell/mtl to get ~ppc too before you can add that dep.
Comment 3 Duncan Coutts (RETIRED) gentoo-dev 2007-10-31 01:23:12 UTC
Any progress on this? It looks like all you need is to add dev-haskell/mtl to the DEPEND.
Comment 4 Juergen Rose 2007-11-13 12:32:22 UTC
Adding dev-haskell/mtl to the DEPEND does not help for me.
Emerging pugs-6.2.13 fails with:
...
[16 of 92] Compiling Pugs.Compat      ( src/Pugs/Compat.hs, dist/build/Pugs/Compat.o )
[17 of 92] Compiling Pugs.Internals   ( src/Pugs/Internals.hs, dist/build/Pugs/Internals.o )

src/Pugs/Internals.hs:124:26:
    Module `Control.Monad.RWS' does not export `MonadIO(..)'
...
src/Pugs/Internals.hs:124:254:
    Module `Control.Monad.RWS' does not export `msum'
Build failed: 256 at util/build_pugs.pl line 360.
make: *** [pugs] Error 2

Comment 5 Duncan Coutts (RETIRED) gentoo-dev 2007-11-13 13:19:39 UTC
Someone who is familiar with pugs has to figure out the correct versions of it's dependencies and write them down. I expect in this case it just needs a different version of mtl but we really need to know from someone who knows pugs what it should be rather than just hacking around trying various random combinations.
Comment 6 Duncan Coutts (RETIRED) gentoo-dev 2007-12-13 16:28:53 UTC
Ping.
Comment 7 Juergen Rose 2007-12-21 08:51:15 UTC
After installing ghc-6.8.2 the error emerging pugs change to:
...
../../Setup configure --with-compiler=/var/tmp/portage/dev-lang/pugs-6.2.13/work/Perl6-Pugs-6.2.13/util/runcom
piler --with-hc-pkg=/var/tmp/portage/dev-lang/pugs-6.2.13/work/Perl6-Pugs-6.2.13/util/ghc-pkg-wrapper --with-h
sc2hs=/usr/bin/hsc2hs --prefix=/var/tmp/portage/dev-lang/pugs-6.2.13/work/Perl6-Pugs-6.2.13/third-party/instal
led 
Configuring pugs-filepath-0.1...
Warning: No license-file field.
*** Building the 'filepath' dependency.  Please wait...

Preprocessing library pugs-filepath-0.1...
Building pugs-filepath-0.1...

System/FilePath.hs:96:7:
    Could not find module `System.Directory':
      it is a member of package directory-1.0.0.0, which is hidden
Installing: /var/tmp/portage/dev-lang/pugs-6.2.13/work/Perl6-Pugs-6.2.13/third-party/installed/lib/pugs-filepa
th-0.1/ghc-6.8.2
Setup: Error: Could not find module: System.FilePath with any suffix: ["hi"]
ghc-pkg: cannot find package pugs-filepath
../../Setup configure --with-compiler=/var/tmp/portage/dev-lang/pugs-6.2.13/work/Perl6-Pugs-6.2.13/util/runcom
piler --with-hc-pkg=/var/tmp/portage/dev-lang/pugs-6.2.13/work/Perl6-Pugs-6.2.13/util/ghc-pkg-wrapper --with-h
sc2hs=/usr/bin/hsc2hs --prefix=/var/tmp/portage/dev-lang/pugs-6.2.13/work/Perl6-Pugs-6.2.13/third-party/instal
led 
Configuring pugs-fps-0.7...
*** Building the 'fps' dependency.  Please wait...

Preprocessing library pugs-fps-0.7...
Building pugs-fps-0.7...

Data/ByteString.hs:245:17:
    Could not find module `Data.Array':
      it is a member of package array-0.1.0.0, which is hidden
Installing: /var/tmp/portage/dev-lang/pugs-6.2.13/work/Perl6-Pugs-6.2.13/third-party/installed/lib/pugs-fps-0.
7/ghc-6.8.2
Setup: Error: Could not find module: Data.ByteString with any suffix: ["hi"]
ghc-pkg: cannot find package pugs-fps
../../Setup configure --with-compiler=/var/tmp/portage/dev-lang/pugs-6.2.13/work/Perl6-Pugs-6.2.13/util/runcom
piler --with-hc-pkg=/var/tmp/portage/dev-lang/pugs-6.2.13/work/Perl6-Pugs-6.2.13/util/ghc-pkg-wrapper --with-h
sc2hs=/usr/bin/hsc2hs --prefix=/var/tmp/portage/dev-lang/pugs-6.2.13/work/Perl6-Pugs-6.2.13/third-party/instal
led 
Configuring pugs-HsSyck-0.2...
Setup: At least the following dependencies are missing:
    pugs-fps >=0.7
*** Building the 'HsSyck' dependency.  Please wait...

Setup: error reading dist/setup-config; run "setup configure" command?

Setup: error reading dist/setup-config; run "setup configure" command?

Installation failed for HsSyck at util/build_pugs.pl line 237.
make: *** [pugs] Error 1
Comment 8 Duncan Coutts (RETIRED) gentoo-dev 2008-01-15 09:47:06 UTC
You need a pugs that has been updated to work with ghc-6.8. It's non-trivial to update and is the responsibility of pugs upstream not the haskell team.

As for the other deps, from: http://search.cpan.org/src/AUDREYT/Perl6-Pugs-6.2.13/Pugs.cabal.in :

build-depends: pugs-fps -any, pugs-HsSyck -any, pugs-filepath -any, base -any, mtl -any, stm -any, parsec -any, network -any, haskell98 -any, template-haskell -any__DEPENDS__

now we can assume that the pugs-* are bundled and base, haskell98 and template haskell are core libs. So for the external packages that have ebuilds we need:
DEPEND=
  dev-haskell/filepath
  dev-haskell/mtl
  dev-haskell/network
  dev-haskell/parsec
  dev-haskell/stm

I have no idea what __DEPENDS__ is going to get substituted for and I cannot see obviously from looking at the other scripts.

So at least the above need adding and you need to prod upstream to get a release that works with ghc-6.8.x.
Comment 9 Evil Compile Person 2008-01-16 19:52:15 UTC
aaaw :(
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2008-02-27 18:53:55 UTC
*** Bug 202643 has been marked as a duplicate of this bug. ***
Comment 11 Torsten Veller (RETIRED) gentoo-dev 2009-03-23 09:10:40 UTC
dev-lang/pugs is package.masked for removal
Comment 12 Torsten Veller (RETIRED) gentoo-dev 2009-04-23 13:26:34 UTC
Removed from the tree.