xmonad cannot be built on natty

Bug #706059 reported by Bernhard Froemel
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xmonad (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: xmonad

I suspect a (hopefully simple?) build-dependency issue and/or incompatibilities with related packages.

First the following build-dep packages are not available in the repository:
# apt-get build-dep xmonad
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have unmet dependencies:
 libghc6-x11-dev : Depends: libghc6-base-dev-4.2.0.0-2cc27 but it is not installable
                   Depends: libghc6-syb-dev-0.1.0.2-3787e but it is not installable
 libghc6-x11-prof : Depends: libghc6-base-prof-4.2.0.0-2cc27 but it is not installable
                    Depends: libghc6-syb-prof-0.1.0.2-3787e but it is not installable
E: Build-dependencies for xmonad could not be satisfied.

after manually building, packaging and installing:
> libghc6-x11-dev
> libghc6-x11-prof

# apt-get build-dep xmonad
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libghc6-mtl-dev libghc6-mtl-prof
[...]
finishes without dependency problems

xmonad-0.9.1 # dpkg-buildpackage -b
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor):
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions
dpkg-buildpackage: source package xmonad
dpkg-buildpackage: source version 0.9.1-2build2
dpkg-buildpackage: source changed by Iain Lane <email address hidden>
dpkg-buildpackage: host architecture amd64
 dpkg-source --before-build xmonad-0.9.1
 debian/rules clean
test -x debian/rules
dh_testroot
dh_clean
[ ! -x "debian/hlibrary.setup" ] || debian/hlibrary.setup clean
cleaning...
rm -rf dist dist-ghc6 dist-hugs debian/hlibrary.setup Setup.hi Setup.ho Setup.o .*config*
rm -f build-ghc6-stamp build-hugs-stamp build-haddock-stamp
rm -rf debian/tmp-inst-ghc6
rm -f debian/hlibrary.Makefile
rm -rf debian/dh_haskell_shlibdeps
 debian/rules build
test -x debian/rules
mkdir -p "."
/usr/share/cdbs/1/rules/buildcore.mk:104: WARNING: DEB_COMPRESS_EXCLUDE is a deprecated variable
if test ! -e Setup.lhs -a ! -e Setup.hs; then echo "No setup script found!"; exit 1; fi
for setup in Setup.lhs Setup.hs; do if test -e $setup; then ghc6 --make $setup -o debian/hlibrary.setup; exit 0; fi; done
[1 of 1] Compiling Main ( Setup.lhs, Setup.o )
Linking debian/hlibrary.setup ...
debian/hlibrary.setup configure --ghc -v2 \
  --prefix=/usr --libdir=/usr/lib/haskell-packages/ghc6/lib \
  --builddir=dist-ghc6 \
  --haddockdir=/usr/lib/ghc-6.12.3/haddock/xmonad-0.9.1/ \
  --htmldir=/usr/share/doc/libghc6-xmonad-doc/html/ --enable-library-profiling \

Configuring xmonad-0.9.1...
Flags chosen: testing=False, small_base=True
Dependency X11 >=1.5.0.0 && <1.6: using X11-1.5.0.0
Dependency base ==3.*: using base-3.0.3.2
Dependency containers -any: using containers-0.3.0.0
Dependency directory -any: using directory-1.0.1.1
Dependency filepath -any: using filepath-1.1.0.4
Dependency mtl -any: using mtl-1.1.0.2
Dependency process -any: using process-1.0.1.3
Dependency unix -any: using unix-2.4.0.2
Using Cabal-1.8.0.6 compiled by ghc-6.12
Using compiler: ghc-6.12.3
Using install prefix: /usr
Binaries installed in: /usr/bin
Libraries installed in:
/usr/lib/haskell-packages/ghc6/lib/xmonad-0.9.1/ghc-6.12.3
Private binaries installed in: /usr/libexec
Data files installed in: /usr/share/xmonad-0.9.1
Documentation installed in: /usr/share/doc/xmonad-0.9.1
No alex found
Using ar found on system at: /usr/bin/ar
No c2hs found
No cpphs found
No ffihugs found
Using gcc version 4.5.2 found on system at: /usr/bin/gcc
Using ghc version 6.12.3 found on system at: /usr/bin/ghc
Using ghc-pkg version 6.12.3 found on system at: /usr/bin/ghc-pkg
No greencard found
Using haddock version 2.6.1 found on system at: /usr/bin/haddock
No happy found
No hmake found
Using hsc2hs version 0.67 found on system at: /usr/bin/hsc2hs
Using hscolour version 1.16 found on system at: /usr/bin/HsColour
No hugs found
No jhc found
Using ld found on system at: /usr/bin/ld
No lhc found
No lhc-pkg found
No nhc98 found
Using pkg-config version 0.25 found on system at: /usr/bin/pkg-config
Using ranlib found on system at: /usr/bin/ranlib
Using strip found on system at: /usr/bin/strip
Using tar found on system at: /bin/tar
debian/hlibrary.setup build --builddir=dist-ghc6
Preprocessing library xmonad-0.9.1...
Preprocessing executables for xmonad-0.9.1...
Building xmonad-0.9.1...
<command line>: cannot satisfy -package-id X11-1.5.0.0-e303e9e71d3b6055d5c970517461f343
    (use -v for more information)
make: *** [build-ghc6-stamp] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Tags: natty
Revision history for this message
Bernhard Froemel (froemel) wrote :

Okay, it's probably more a ghc6 problem.

# runhaskell Setup.lhs build -v
Creating dist/build (and its parents)
Creating dist/build/autogen (and its parents)
Preprocessing library xmonad-0.9.1...
Preprocessing executables for xmonad-0.9.1...
Building xmonad-0.9.1...
Building library...
Creating dist/build (and its parents)
/usr/bin/ghc --make -package-name xmonad-0.9.1 -hide-all-packages -fbuilding-cabal-package -i -idist/build -i. -idist/build/autogen -Idist/build/autogen -Idist/build -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build -hidir dist/build -stubdir dist/build -package-id X11-1.5.0.0-e303e9e71d3b6055d5c970517461f343 -package-id base-3.0.3.2-33c49b5f57a891ca80151e2f4f33f82c -package-id containers-0.3.0.0-7be04792060ce1514c52e2cb13a5c18a -package-id directory-1.0.1.1-fcaf1f7664193e0ad39e183ab8696baa -package-id filepath-1.1.0.4-1425f312faf5b8e9f4babf887e252326 -package-id mtl-1.1.0.2-336254fecf8a77054f76cb33671a5177 -package-id process-1.0.1.3-b553ffb533a7014d695ce14e638736d9 -package-id unix-2.4.0.2-49642bb245cafdad07b14ef1d8ef7f59 -O -funbox-strict-fields -Wall -XCPP XMonad XMonad.Main XMonad.Core XMonad.Config XMonad.Layout XMonad.ManageHook XMonad.Operations XMonad.StackSet
<command line>: cannot satisfy -package-id X11-1.5.0.0-e303e9e71d3b6055d5c970517461f343
    (use -v for more information)

.
.
.

I finally could build xmonad by recaching the packages.
# ghc-pkg recache

I'll check back on that issue when natty has majored a little more.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.