Package: haskell-http
Severity: important
Tags: patch
Justification: fails to build from source
The haskell-http source package fails to build. Seems like an 'clean'
is executed after generation of the library file
(dist/build/libHSHTTP-0.4.a) but before it is installed under
debian/tmp.
The attached patch generates the arch-independent packages only
after having packaged the arch-dependent library, as the package
'hunit' does. Please note that this is my first approach to the
Debian package system, and I have created the patch by comparing
the 'haskell-http' and 'hunit' source packages.
Output of the failing build follows:
$ fakeroot dpkg-buildpackage
dpkg-buildpackage: source package is haskell-http
dpkg-buildpackage: source version is 0.4.20050430-1
dpkg-buildpackage: source changed by Ganesh Sittampalam <[EMAIL PROTECTED]>
dpkg-buildpackage: host architecture i386
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 clean
make[1]: Entering directory
/home/berrueta/scratch/foo/haskell-http-0.4.20050430'
/setup clean
error reading ./.setup-config; run "setup configure" command?
make[1]: *** [clean] Error 1
make[1]: Leaving directory
/home/berrueta/scratch/foo/haskell-http-0.4.20050430'
make: [clean] Error 2 (ignored)
rm -rf setup Setup.hi Setup.ho Setup.o .*config* dist html
dh_clean
dh_clean: Compatibility levels before 3 are deprecated.
dpkg-source -b haskell-http-0.4.20050430
dpkg-source: building haskell-http using existing
haskell-http_0.4.20050430.orig.tar.gz
dpkg-source: building haskell-http in haskell-http_0.4.20050430-1.diff.gz
dpkg-source: warning: file Network/Browser.hs has no final newline (either
original or modified version)
dpkg-source: building haskell-http in haskell-http_0.4.20050430-1.dsc
debian/rules build
dh_testdir
# Add here commands to configure the package.
ghc -package Cabal Setup.lhs -o setup
/setup configure --prefix= --ghc
Warning: No license-file field.
Configuring HTTP-0.4...
configure: searching for ghc in path.
configure: found ghc at /usr/bin/ghc
configure: looking for package tool: ghc-pkg near compiler in /usr/bin/ghc
configure: found package tool in /usr/bin/ghc-pkg
configure: Using install prefix:
configure: Using compiler: /usr/bin/ghc
configure: Compiler flavor: GHC
configure: Compiler version: 6.4
configure: Using package tool: /usr/bin/ghc-pkg
configure: Using haddock: /usr/bin/haddock
configure: Using happy: /usr/bin/happy
configure: Using alex: /usr/bin/alex
configure: Using hsc2hs: /usr/bin/hsc2hs
configure: Using cpphs: /usr/bin/cpphs
configure: Reading installed packages...
configure: Dependency network-any: using network-1.0
configure: Dependency parsec-any: using parsec-1.0
touch configure-stamp
update-haskell-control --check
dh_testdir
# Add here commands to compile the package.
touch build-stamp
debian/rules binary
dh_testdir
dh_testroot
dh_clean -k
dh_clean: Compatibility levels before 3 are deprecated.
dh_installdirs -a -i
dh_installdirs: Compatibility levels before 3 are deprecated.
# Add here commands to install the package into debian/tmp
dh_haskell -a -i
Generating meta-information...
dh_haskell_prep: Compatibility levels before 3 are deprecated.
ghc-6.4 /usr/lib/haskell-packages/ghc6/lib/HTTP-0.4 HTTP 0.4
Building setup...
Running: ghc6 -package Cabal Setup.lhs -o setup
compilation IS NOT required
dh_haskell_build: Compatibility levels before 3 are deprecated.
******************************************
NOW BUILDING libghc6-http-dev FOR ghc6
OUTPUT TO debian/tmp
Cleaning...
Running: rm -f .*config*
Running: ./setup configure --prefix=/usr/lib/haskell-packages/ghc6
--with-compiler=/usr/bin/ghc6
Warning: No license-file field.
Configuring HTTP-0.4...
configure: looking for package tool: ghc-pkg near compiler in /usr/bin/ghc6
configure: found package tool in /usr/bin/ghc-pkg
configure: Using install prefix: /usr/lib/haskell-packages/ghc6
configure: Using compiler: /usr/bin/ghc6
configure: Compiler flavor: GHC
configure: Compiler version: 6.4
configure: Using package tool: /usr/bin/ghc-pkg
configure: Using haddock: /usr/bin/haddock
configure: Using happy: /usr/bin/happy
configure: Using alex: /usr/bin/alex
configure: Using hsc2hs: /usr/bin/hsc2hs
configure: Using cpphs: /usr/bin/cpphs
configure: Reading installed packages...
configure: Dependency network-any: using network-1.0
configure: Dependency parsec-any: using parsec-1.0
Running: ./setup build
Preprocessing library HTTP-0.4...
Building HTTP-0.4...
Chasing modules from:
Network.HTTP,Network.Browser,Codec.MD5,Codec.Base64,Codec.Zord64
/Network/Browser.hs:950: warning: no newline at end of file
/Codec/Base64.hs:252: warning: no newline at end of file
Compiling Codec.Zord64 ( ./Codec/Zord64.hs, dist/build/./Codec/Zord64.o
)
Compiling Codec.Base64 ( ./Codec/Base64.hs, dist/build/./Codec/Base64.o
)
Compiling Codec.MD5 ( ./Codec/MD5.lhs, dist/build/./Codec/MD5.o )
/Codec/MD5.lhs:86:1:
Warning: No explicit method nor default method for *'
In the instance declaration for um ABCD'
/Codec/MD5.lhs:86:1:
Warning: No explicit method nor default method for bs'
In the instance declaration for um ABCD'
/Codec/MD5.lhs:86:1:
Warning: No explicit method nor default method for ignum'
In the instance declaration for um ABCD'
/Codec/MD5.lhs:86:1:
Warning: No explicit method nor default method for romInteger'
In the instance declaration for um ABCD'
Compiling Network.HTTP ( ./Network/HTTP.hs, dist/build/./Network/HTTP.o
)
Compiling Network.Browser ( ./Network/Browser.hs,
dist/build/./Network/Browser.o )
/usr/bin/ar: creating dist/build/libHSHTTP-0.4.a
******************************************
NOW BUILDING libhugs-http FOR hugs
OUTPUT TO debian/libhugs-http
Cleaning...
Running: rm -f .*config*
Running: ./setup configure --hugs
Warning: No license-file field.
Configuring HTTP-0.4...
configure: searching for ffihugs in path.
configure: found ffihugs at /usr/bin/ffihugs
configure: looking for package tool: hugs near compiler in /usr/bin/ffihugs
configure: found package tool in /usr/bin/hugs
configure: Using install prefix: /usr/local
configure: Using compiler: /usr/bin/ffihugs
configure: Compiler flavor: Hugs
configure: Compiler version:
configure: Using package tool: /usr/bin/hugs
configure: Using haddock: /usr/bin/haddock
configure: Using happy: /usr/bin/happy
configure: Using alex: /usr/bin/alex
configure: Using hsc2hs: /usr/bin/hsc2hs
configure: Using cpphs: /usr/bin/cpphs
Running: ./setup build
Preprocessing library HTTP-0.4...
Building HTTP-0.4...
Network/Browser.hs:950: warning: no newline at end of file
Codec/Base64.hs:252: warning: no newline at end of file
Building setup...
Running: ghc6 -package Cabal Setup.lhs -o setup
compilation IS NOT required
dh_haskell_install: Compatibility levels before 3 are deprecated.
Running: mkdir -p debian/tmp/usr/share/doc/libghc6-http-dev
Running: mkdir -p debian/tmp/usr/lib/haskell-packages/ghc6
Running: ./setup copy --copy-prefix=debian/tmp/usr/lib/haskell-packages/ghc6
Installing: debian/tmp/usr/lib/haskell-packages/ghc6/lib/hugs &
debian/tmp/usr/lib/haskell-packages/ghc6/bin HTTP-0.4...
Running: cp .installed-pkg-config
debian/tmp/usr/lib/haskell-packages/ghc6/lib/HTTP-0.4/installed-pkg-config
cp: cannot create regular file
ebian/tmp/usr/lib/haskell-packages/ghc6/lib/HTTP-0.4/installed-pkg-config':
No such file or directory
cp .installed-pkg-config
debian/tmp/usr/lib/haskell-packages/ghc6/lib/HTTP-0.4/installed-pkg-config
files: 256 at /usr/bin/dh_haskell_install line 167.
make: *** [install] Error 9
$ ls -R dist/
dist/:
build
dist/build:
Codec Network
dist/build/Codec:
Base64.hs MD5.lhs Zord64.hs
dist/build/Network:
Browser.hs HTTP.hs
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-1-386
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) (ignored:
LC_ALL set to [EMAIL PROTECTED])
--- debian/rules 2005-08-28 12:28:38.046871560 +0200
+++ ../../haskell-http-0.4.20050430/debian/rules 2005-08-27
21:13:56.000000000 +0200
@@ -53,16 +53,24 @@
dh_testdir
dh_testroot
dh_clean -k
- dh_installdirs -a -i
+ dh_installdirs -a
# Add here commands to install the package into debian/tmp
- dh_haskell -a -i
+ dh_haskell -a
./setup haddock
mkdir -p debian/haskell-http-doc/usr/share/doc/haskell-http-doc
cp -a dist/doc/html
debian/haskell-http-doc/usr/share/doc/haskell-http-doc/
+install-indep: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs -i
+
+ dh_haskell -i
+
# Build architecture-dependent files here.
-binary-indep: build install
+binary-indep: install-indep
dh_testdir
dh_testroot
dh_installchangelogs -i