Package: magic-haskell
Version: 1.0.5
Severity: serious
Justification: no longer builds from source

Hi,

rebuilding magic-haskell under etch fails with

Magic/Types.hsc:31:7:
    Could not find module `Foreign.ForeignPtr':
      Perhaps you haven't installed the profiling libraries for package base?
      Use -v to see a list of the files searched for.
Preprocessing library magic-1.0.0...
Building magic-1.0.0...
./setup build files: 256 at /usr/share/haskell-devscripts//Dh_Haskell.pm line 
138, <COMPAT_IN> line 1.
make: *** [install] Error 9

A full build log is attached.

MfG
        Goswin

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-frosties-2
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Reading package lists...
Building dependency tree...
The following NEW packages will be installed:
  debhelper file gettext gettext-base ghc6 haddock haskell-devscripts
  haskell-utils html2text hugs intltool-debian libgmp3-dev libgmp3c2 libgmpxx4
  libmagic-dev libmagic1 libncurses5-dev libreadline5-dev po-debconf
0 upgraded, 19 newly installed, 0 to remove and 0 not upgraded.
Need to get 36.4MB of archives.
After unpacking 208MB of additional disk space will be used.
Get:1 http://storage etch/main gettext-base 0.15-3 [127kB]
Get:2 http://storage etch/main libmagic1 4.17-4 [277kB]
Get:3 http://storage etch/main file 4.17-4 [32.0kB]
Get:4 http://storage etch/main html2text 1.3.2a-3 [92.7kB]
Get:5 http://storage etch/main gettext 0.15-3 [2012kB]
Get:6 http://storage etch/main intltool-debian 0.35.0+20060710.1 [30.8kB]
Get:7 http://storage etch/main po-debconf 1.0.7 [106kB]
Get:8 http://storage etch/main debhelper 5.0.40 [510kB]
Get:9 http://storage etch/main hugs 98.200503.08-4 [2692kB]
Get:10 http://storage etch/main haskell-utils 1.6.0.2 [9604B]
Get:11 http://storage etch/main libgmp3c2 2:4.2.1+dfsg-4 [405kB]
Get:12 http://storage etch/main libgmpxx4 2:4.2.1+dfsg-4 [217kB]
Get:13 http://storage etch/main libgmp3-dev 2:4.2.1+dfsg-4 [493kB]
Get:14 http://storage etch/main libncurses5-dev 5.5-5 [1426kB]
Get:15 http://storage etch/main libreadline5-dev 5.2-1 [240kB]
Get:16 http://storage etch/main ghc6 6.6-3 [27.1MB]
Get:17 http://storage etch/main haddock 0.8-1 [556kB]
Get:18 http://storage etch/main haskell-devscripts 0.5.14 [11.4kB]
Get:19 http://storage etch/main libmagic-dev 4.17-4 [56.0kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 36.4MB in 3s (11.7MB/s)
Selecting previously deselected package gettext-base.
(Reading database ... 10446 files and directories currently installed.)
Unpacking gettext-base (from .../gettext-base_0.15-3_amd64.deb) ...
Selecting previously deselected package libmagic1.
Unpacking libmagic1 (from .../libmagic1_4.17-4_amd64.deb) ...
Selecting previously deselected package file.
Unpacking file (from .../archives/file_4.17-4_amd64.deb) ...
Selecting previously deselected package html2text.
Unpacking html2text (from .../html2text_1.3.2a-3_amd64.deb) ...
Selecting previously deselected package gettext.
Unpacking gettext (from .../gettext_0.15-3_amd64.deb) ...
Selecting previously deselected package intltool-debian.
Unpacking intltool-debian (from .../intltool-debian_0.35.0+20060710.1_all.deb) 
...
Selecting previously deselected package po-debconf.
Unpacking po-debconf (from .../po-debconf_1.0.7_all.deb) ...
Selecting previously deselected package debhelper.
Unpacking debhelper (from .../debhelper_5.0.40_all.deb) ...
Selecting previously deselected package hugs.
Unpacking hugs (from .../hugs_98.200503.08-4_amd64.deb) ...
Selecting previously deselected package haskell-utils.
Unpacking haskell-utils (from .../haskell-utils_1.6.0.2_amd64.deb) ...
Selecting previously deselected package libgmp3c2.
Unpacking libgmp3c2 (from .../libgmp3c2_2%3a4.2.1+dfsg-4_amd64.deb) ...
Selecting previously deselected package libgmpxx4.
Unpacking libgmpxx4 (from .../libgmpxx4_2%3a4.2.1+dfsg-4_amd64.deb) ...
Selecting previously deselected package libgmp3-dev.
Unpacking libgmp3-dev (from .../libgmp3-dev_2%3a4.2.1+dfsg-4_amd64.deb) ...
Selecting previously deselected package libncurses5-dev.
Unpacking libncurses5-dev (from .../libncurses5-dev_5.5-5_amd64.deb) ...
Selecting previously deselected package libreadline5-dev.
Unpacking libreadline5-dev (from .../libreadline5-dev_5.2-1_amd64.deb) ...
Selecting previously deselected package ghc6.
Unpacking ghc6 (from .../archives/ghc6_6.6-3_amd64.deb) ...
Selecting previously deselected package haddock.
Unpacking haddock (from .../haddock_0.8-1_amd64.deb) ...
Selecting previously deselected package haskell-devscripts.
Unpacking haskell-devscripts (from .../haskell-devscripts_0.5.14_all.deb) ...
Selecting previously deselected package libmagic-dev.
Unpacking libmagic-dev (from .../libmagic-dev_4.17-4_amd64.deb) ...
Setting up gettext-base (0.15-3) ...

Setting up libmagic1 (4.17-4) ...

Setting up file (4.17-4) ...
Setting up html2text (1.3.2a-3) ...

Setting up gettext (0.15-3) ...

Setting up intltool-debian (0.35.0+20060710.1) ...
Setting up po-debconf (1.0.7) ...
Setting up debhelper (5.0.40) ...
Setting up hugs (98.200503.08-4) ...

Setting up haskell-utils (1.6.0.2) ...
Setting up libgmp3c2 (4.2.1+dfsg-4) ...

Setting up libgmpxx4 (4.2.1+dfsg-4) ...

Setting up libgmp3-dev (4.2.1+dfsg-4) ...
Setting up libncurses5-dev (5.5-5) ...
Setting up libreadline5-dev (5.2-1) ...

Setting up ghc6 (6.6-3) ...

Setting up haddock (0.8-1) ...

Setting up haskell-devscripts (0.5.14) ...
Setting up libmagic-dev (4.17-4) ...
Reading package lists...
Building dependency tree...
Need to get 10.4kB of source archives.
Get:1 http://storage etch/main magic-haskell 1.0.5 (dsc) [764B]
Get:2 http://storage etch/main magic-haskell 1.0.5 (tar) [9685B]
dpkg-source: extracting magic-haskell in magic-haskell-1.0.5
dpkg-source: unpacking magic-haskell_1.0.5.tar.gz
Fetched 10.4kB in 0s (292kB/s)
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
./setup clean
make: ./setup: Command not found
make: [clean] Error 127 (ignored)
make clean
make[1]: Entering directory 
`/home/mrvn/build/magic-haskell_1.0.5/magic-haskell-1.0.5'
./setup clean
make[1]: ./setup: Command not found
make[1]: [clean] Error 127 (ignored)
rm -rf html `find . -name "*.o"` `find . -name "*.hi"` \
                `find . -name "*~"` *.a setup dist testsrc/runtests \
                local-pkg
cd doc && make clean
/bin/sh: line 0: cd: doc: No such file or directory
make[1]: [clean] Error 1 (ignored)
make[1]: Leaving directory 
`/home/mrvn/build/magic-haskell_1.0.5/magic-haskell-1.0.5'
rm -rf setup Setup.hi Setup.ho Setup.o .*config* dist html
dh_clean 
 debian/rules build
dh_testdir
# Add here commands to configure the package.
make setup
make[1]: Entering directory 
`/home/mrvn/build/magic-haskell_1.0.5/magic-haskell-1.0.5'
ghc -package Cabal Setup.lhs -o setup
make[1]: Leaving directory 
`/home/mrvn/build/magic-haskell_1.0.5/magic-haskell-1.0.5'
./setup configure --prefix= --ghc
setup: Warning: No license-file field.
Configuring magic-1.0.0...
configure: /usr/bin/ghc-pkg
configure: Dependency base-any: using base-2.0
configure: Using install prefix: 
configure: Binaries installed in: /bin
configure: Libraries installed in: /lib/magic-1.0.0/ghc-6.6
configure: Private binaries installed in: /libexec
configure: Data files installed in: /share/magic-1.0.0
configure: Using compiler: /usr/bin/ghc
configure: Compiler flavor: GHC
configure: Compiler version: 6.6
configure: Using package tool: /usr/bin/ghc-pkg
configure: Using ar found on system at: /usr/bin/ar
configure: Using haddock found on system at: /usr/bin/haddock
configure: No pfesetup found
configure: Using ranlib found on system at: /usr/bin/ranlib
configure: Using runghc found on system at: /usr/bin/runghc
configure: Using runhugs found on system at: /usr/bin/runhugs
configure: No happy found
configure: No alex found
configure: Using hsc2hs: /usr/bin/hsc2hs
configure: No c2hs found
configure: No cpphs found
configure: No greencard found
touch configure-stamp
dh_testdir
#make test-ghc6
# Add here commands to compile the package.
touch build-stamp
 fakeroot debian/rules binary
dh_testdir
make doc
make[1]: Entering directory 
`/home/mrvn/build/magic-haskell_1.0.5/magic-haskell-1.0.5'
./setup haddock
Warning: Magic.Data: the following names could not be resolved:
    Int Show Enum Ord Eq
Warning: Magic.Types: the following names could not be resolved:
    ForeignPtr
Warning: Magic.Init: the following names could not be resolved:
    IO String CInt Ptr CString
Warning: Magic.Operations: the following names could not be resolved:
    FilePath IO String CStringLen Maybe Ptr CString Word64 CInt
Warning: Magic.Types: could not find link destinations for:
    Magic.TypesLL.CMagic
Warning: cannot use package base-2.0:
   HTML directory /usr/share/ghc-6.6/html/libraries/base does not exist.
Preprocessing library magic-1.0.0...
Running Haddock for magic-1.0.0...
make[1]: Leaving directory 
`/home/mrvn/build/magic-haskell_1.0.5/magic-haskell-1.0.5'
#make test-hugs
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs -i
dh_haskell -i
Generating meta-information...
Building setup...
Running: ghc6 -package Cabal Setup.lhs -o setup
compilation IS NOT required
Building setup...
Running: ghc6 -package Cabal Setup.lhs -o setup
compilation IS NOT required
#make test-hugs
dh_testdir
dh_testroot
dh_installchangelogs -i
dh_installdocs -i
dh_installexamples -i
dh_installman -i
dh_link -i
dh_strip -i
dh_compress -i
dh_fixperms -i
dh_installdeb -i
dh_shlibdeps -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
tar: -: file name read contains nul character
dpkg-deb: building package `magic-haskell-doc' in 
`../magic-haskell-doc_1.0.5_all.deb'.
dh_testdir
dh_testroot
dh_clean -k 
dh_installdirs -a 
# Add here commands to install the package into debian/tmp
dh_haskell -a
Generating meta-information...
ghc-6.6 /usr/lib/haskell-packages/ghc6/lib/magic-1.0.0 magic 1.0.0
Building setup...
Running: ghc6 -package Cabal Setup.lhs -o setup
compilation IS NOT required

 ****************************************** 
 NOW BUILDING libghc6-magic-dev FOR ghc6
 OUTPUT TO debian/libghc6-magic-dev

Cleaning...
cleaning...
Running: rm -f .*config*
Running: ./setup configure  --enable-library-profiling  
--prefix=/usr/lib/haskell-packages/ghc6 --with-compiler=/usr/bin/ghc6
setup: Warning: No license-file field.
Configuring magic-1.0.0...
configure: /usr/bin/ghc-pkg6
configure: Dependency base-any: using base-2.0
configure: Using install prefix: /usr/lib/haskell-packages/ghc6
configure: Binaries installed in: /usr/lib/haskell-packages/ghc6/bin
configure: Libraries installed in: 
/usr/lib/haskell-packages/ghc6/lib/magic-1.0.0/ghc-6.6
configure: Private binaries installed in: /usr/lib/haskell-packages/ghc6/libexec
configure: Data files installed in: 
/usr/lib/haskell-packages/ghc6/share/magic-1.0.0
configure: Using compiler: /usr/bin/ghc6
configure: Compiler flavor: GHC
configure: Compiler version: 6.6
configure: Using package tool: /usr/bin/ghc-pkg6
configure: Using ar found on system at: /usr/bin/ar
configure: Using haddock found on system at: /usr/bin/haddock
configure: No pfesetup found
configure: Using ranlib found on system at: /usr/bin/ranlib
configure: Using runghc found on system at: /usr/bin/runghc
configure: Using runhugs found on system at: /usr/bin/runhugs
configure: No happy found
configure: No alex found
configure: Using hsc2hs: /usr/bin/hsc2hs
configure: No c2hs found
configure: No cpphs found
configure: No greencard found
Running: ./setup build
[1 of 7] Compiling Magic.TypesLL    ( Magic/TypesLL.hs, 
dist/build/Magic/TypesLL.o )
[2 of 7] Compiling Magic.Data       ( Magic/Data.hs, dist/build/Magic/Data.o )
[3 of 7] Compiling Magic.Types      ( Magic/Types.hs, dist/build/Magic/Types.o )
[4 of 7] Compiling Magic.Utils      ( Magic/Utils.hs, dist/build/Magic/Utils.o )
[5 of 7] Compiling Magic.Init       ( Magic/Init.hs, dist/build/Magic/Init.o )
[6 of 7] Compiling Magic.Operations ( Magic/Operations.hs, 
dist/build/Magic/Operations.o )
[7 of 7] Compiling Magic            ( Magic.hs, dist/build/Magic.o )

Magic/Types.hsc:31:7:
    Could not find module `Foreign.ForeignPtr':
      Perhaps you haven't installed the profiling libraries for package base?
      Use -v to see a list of the files searched for.
Preprocessing library magic-1.0.0...
Building magic-1.0.0...
./setup build files: 256 at /usr/share/haskell-devscripts//Dh_Haskell.pm line 
138, <COMPAT_IN> line 1.
make: *** [install] Error 9
debuild: fatal error at line 1224:
fakeroot debian/rules binary failed
ERROR building

Reply via email to