From nobody@FreeBSD.org  Mon Dec  3 11:25:49 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 3F7F4D4
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  3 Dec 2012 11:25:49 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 25F628FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  3 Dec 2012 11:25:49 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qB3BPnOD055105
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 3 Dec 2012 11:25:49 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id qB3BPnrk055104;
	Mon, 3 Dec 2012 11:25:49 GMT
	(envelope-from nobody)
Message-Id: <201212031125.qB3BPnrk055104@red.freebsd.org>
Date: Mon, 3 Dec 2012 11:25:49 GMT
From: Kjell Tore Ullavik <ktullavik@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Building haskell: haddock not found.
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         174083
>Category:       ports
>Synopsis:       devel/hs-haddock seemingly depends on itself
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    haskell
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 03 11:30:00 UTC 2012
>Closed-Date:    Tue Dec 04 12:51:22 UTC 2012
>Last-Modified:  Tue Dec 04 12:51:22 UTC 2012
>Originator:     Kjell Tore Ullavik
>Release:        9.1 Prerelease
>Organization:
>Environment:
FreeBSD euler.nomain 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #3: Sat Dec  1 12:15:30 CET 2012     root@euler.nomain:/usr/obj/usr/src/sys/EULER  amd64
>Description:

devel/hs-haddock seemingly depends on itself.

Trying to build hs-haskell-platform:

===>   hs-transformers-0.3.0.0_1 depends on package: ghc>=7.4.1 - found
===>  Configuring for hs-transformers-0.3.0.0_1
[1 of 1] Compiling Main             ( Setup.hs, Setup.o )
Linking setup ...
Configuring transformers-0.3.0.0...
setup: Cannot find the program 'haddock' at '/usr/local/bin/haddock' or on the
path
*** [do-configure] Error code 1

Stop in /usr/ports/devel/hs-transformers.
*** [install] Error code 1

Stop in /usr/ports/devel/hs-transformers.
*** [build-depends] Error code 1

Stop in /usr/ports/devel/hs-mtl.
*** [install] Error code 1

Stop in /usr/ports/devel/hs-mtl.
*** [build-depends] Error code 1

Stop in /usr/ports/www/hs-cgi.
*** [install] Error code 1

Stop in /usr/ports/www/hs-cgi.
*** [build-depends] Error code 1

Stop in /usr/ports/devel/hs-haskell-platform.


Trying to build hs-haddock:

===>  Configuring for hs-random-1.0.1.1_1
[1 of 1] Compiling Main             ( Setup.hs, Setup.o )
Linking setup ...
Configuring random-1.0.1.1...
setup: Cannot find the program 'haddock' at '/usr/local/bin/haddock' or on the
path
*** [do-configure] Error code 1

Stop in /usr/ports/devel/hs-random.
*** [install] Error code 1

Stop in /usr/ports/devel/hs-random.
*** [build-depends] Error code 1

Stop in /usr/ports/devel/hs-QuickCheck.
*** [install] Error code 1

Stop in /usr/ports/devel/hs-QuickCheck.
*** [build-depends] Error code 1

Stop in /usr/ports/devel/hs-alex.
*** [install] Error code 1

Stop in /usr/ports/devel/hs-alex.
*** [build-depends] Error code 1

Stop in /usr/ports/devel/hs-haddock.
*** [install] Error code 1

Stop in /usr/ports/devel/hs-haddock.


My make.conf:

KERNCONF=EULER
CPUTYPE?=corei7

WITH_PKGNG=yes

.if !defined(CC) || ${CC} == "cc"
CC=clang
.endif
.if !defined(CXX) || ${CXX} == "c++"
CXX=clang++
.endif
.if !defined(CPP) || ${CPP} == "cpp"
CPP=clang-cpp
.endif

NO_WERROR=
WERROR=


WITHOUT_MODULES= aac acpi_aiboost acpi_asus acpi_fujitsu acpi_hp acpi_ibm    \
                 acpi_panasonic acpi_sony acpi_toshiba agp aha ahc ahc_eisa  \
                 ahc_isa ahc_pci ahd aibs alpm alq amdpm amdsbwd amdsmb      \
                 amdtemp amr amr_cam amr_linux arcmsr asmc atahighpoint      \
                 atanvidia atapromise ataserverworks atavia coda coda5 cxgb  \
                 dragon_saver fade_saver fire_saver geom_part_pc98 geom_pc98 \
                 green_saver hptiop hptmv hptrr                              \
                 if_ae if_age if_alc if_an if_ath if_aue if_axe if_bce       \
                 if_cxgb if_cxbge if_faith if_fxp if_gem if_gif if_gre       \
                 if_lge if_lmc if_ndis if_nfe if_nge if_nve if_nxge          \
                 if_wi if_wpi                                                \
                 ipfw ipfw_nat ips joy pccard radeon rain_saver reiserfs     \
                 s3 savage snake_saver                                       \
                 snd_ad1816 snd_als4000 snd_atiixp snd_cmi snd_cs4281        \
                 snd_csa snd_envy24 snd_envy24ht snd_es137x snd_ess          \
                 snd_fm801 snd_maestro snd_maestro3 snd_mss snd_neomagic     \
                 snd_sb16 snd_sb8 snd_sbc snd_solo snd_spicds snd_t4dwave    \
                 snd_uadio snd_via8233 snd_via82c686 snd_vibes               \
                 star_saver wlan wlan_acl wlan_amrr wlan_ccmp wlan_rssadapt  \
                 wlan_tkip wlan_wep wlan_xauth xfs

RUBY_DEFAULT_VER=1.9
PERL_VERSION=5.14.2


### PORT KNOBS ###

OPTIONS_SET= DBUS                    \
             FLAC                    \
             MP3                     \
             NLS                     \
             OPTIMIZED_CFLAGS        \
             VORBIS                  \
             WAVPACK                 \


.if ${.CURDIR:M*/lang/gprolog}
    CC=gcc48
    CXX=g++48
    CPP=cpp48
.endif

.if ${.CURDIR:M*/java/openjdk7}
    CPUTYPE=core2
    CC=gcc48
    CXX=g++48
    CPP=cpp48
.endif

gcc48_UNSET= JAVA
fftw3_UNSET= OPENMP
sqlite3_SET= SECURE_DELETE





>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Dec 3 14:52:10 UTC 2012 
Responsible-Changed-Why:  
ports PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=174083 
Responsible-Changed-From-To: freebsd-ports-bugs->haskell 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Dec 3 14:53:12 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=174083 

From: Gabor Pali <pgj@FreeBSD.org>
To: bug-followup@FreeBSD.org, ktullavik@gmail.com
Cc: haskell@freebsd.org
Subject: Re: ports/174083: devel/hs-haddock seemingly depends on itself
Date: Mon, 3 Dec 2012 22:32:00 +0100

 Hi,
 
 I suspect the problem is that you installed lang/ghc without
 documentation, while you are trying to install
 devel/hs-haskell-platform with documentation.  The haddock tool is
 bundled with recent versions (6.12 or later) of GHC so the
 devel/hs-haddock port is there only if some of the ports want to use
 it as a library.  (Because the bundled haddock does not have the
 library but the application.)
 
 However, I suppose devel/hs-haddock can be still built if you disable
 documentation for it (so for all of its dependencies).  But I would
 rather recommend you to reinstall lang/ghc with documentation enabled
 instead.
 
 Let me know if this works for you.
 
 
 PS: Note that this oddity has been fixed in our developer repository
 [1] a while ago, hopefully this will be committed to the ports tree as
 soon as the ports freeze for 9.1-RELEASE is over.
 
 [1] https://github.com/freebsd-haskell/freebsd-haskell

From: Kjell Tore Ullavik <ktullavik@gmail.com>
To: Gabor Pali <pgj@FreeBSD.org>
Cc: bug-followup@FreeBSD.org, haskell@freebsd.org
Subject: Re: ports/174083: devel/hs-haddock seemingly depends on itself
Date: Tue, 04 Dec 2012 12:04:04 +0100

 On 12/03/12 22:32, Gabor Pali wrote:
 > Hi,
 >
 > I suspect the problem is that you installed lang/ghc without
 > documentation, while you are trying to install
 > devel/hs-haskell-platform with documentation.  The haddock tool is
 > bundled with recent versions (6.12 or later) of GHC so the
 > devel/hs-haddock port is there only if some of the ports want to use
 > it as a library.  (Because the bundled haddock does not have the
 > library but the application.)
 >
 > However, I suppose devel/hs-haddock can be still built if you disable
 > documentation for it (so for all of its dependencies).  But I would
 > rather recommend you to reinstall lang/ghc with documentation enabled
 > instead.
 >
 > Let me know if this works for you.
 >
 >
 > PS: Note that this oddity has been fixed in our developer repository
 > [1] a while ago, hopefully this will be committed to the ports tree as
 > soon as the ports freeze for 9.1-RELEASE is over.
 >
 > [1] https://github.com/freebsd-haskell/freebsd-haskell
 >
 Hi Gabor.
 You were spot on. After reinstalling ghc with docs I could install the rest
 of the haskell platform without any issues. Thanks!

From: Gabor Pali <pgj@FreeBSD.org>
To: Kjell Tore Ullavik <ktullavik@gmail.com>
Cc: bug-followup@freebsd.org, haskell@freebsd.org
Subject: Re: ports/174083: devel/hs-haddock seemingly depends on itself
Date: Tue, 4 Dec 2012 13:41:28 +0100

 On Tue, Dec 4, 2012 at 12:04 PM, Kjell Tore Ullavik <ktullavik@gmail.com> wrote:
 > You were spot on. After reinstalling ghc with docs I could install the rest
 > of the haskell platform without any issues. Thanks!
 
 Excellent.  Then I consider this PR closed.
State-Changed-From-To: open->closed 
State-Changed-By: pgj 
State-Changed-When: Tue Dec 4 12:50:20 UTC 2012 
State-Changed-Why:  
Problem solved, workaround provided to the user, a fix is coming with 
the next update. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=174083 
>Unformatted:
