Bug#795582: haskell-glib: FTBFS: setup: The program pkg-config version >=0.9.0 is required but it could not be found.

Chris Lamb lamby at debian.org
Sat Aug 15 12:49:53 UTC 2015


Source: haskell-glib
Version: 0.13.2.1-1
Severity: serious
Tags: patch
Justification: fails to build from source

Dear Maintainer,

haskell-glib fails to build from source on unstable/amd64 due to
missing Build-Depends on pkg-config and libglib2.0-dev:

  [..]
  test -x debian/rules
  dh_clean 
  . /usr/share/haskell-devscripts/Dh_Haskell.sh && \
  clean_recipe
  Running rm -rf dist dist-ghc dist-ghcjs dist-hugs
  debian/hlibrary.setup Setup.hi Setup.ho Setup.o .\*config\*
  Running rm -f configure-ghc-stamp configure-ghcjs-stamp
  build-ghc-stamp build-ghcjs-stamp build-hugs-stamp build-haddock-stamp
  Running rm -rf debian/tmp-inst-ghc debian/tmp-inst-ghcjs
  Running rm -f debian/extra-depends-ghc debian/extra-depends-ghcjs
  Running rm -f debian/libghc-glib-doc.links
  debian/libghcjs-glib-doc.links
  Running rm -f debian/hlibrary.Makefile
  Running rm -rf debian/dh_haskell_shlibdeps
   debian/rules build
  test -x debian/rules
  mkdir -p "."
  /usr/share/cdbs/1/rules/buildcore.mk:110: CDBS WARNING:   
  DEB_COMPRESS_EXCLUDE is deprecated since 0.4.85
  . /usr/share/haskell-devscripts/Dh_Haskell.sh && \
  make_setup_recipe
  Running ghc --make Setup.hs -o debian/hlibrary.setup
  [1 of 2] Compiling SetupWrapper     ( SetupWrapper.hs, SetupWrapper.o
  )
  [2 of 2] Compiling Main             ( Setup.hs, Setup.o )
  Linking debian/hlibrary.setup ...
  . /usr/share/haskell-devscripts/Dh_Haskell.sh && \
  configure_recipe
  Running debian/hlibrary.setup configure --ghc -v2
  --package-db=/var/lib/ghc/package.conf.d --prefix=/usr
  --libdir=/usr/lib/haskell-packages/ghc/lib --builddir=dist-ghc
  --ghc-option=-optl-Wl\,-z\,relro
  --haddockdir=/usr/lib/ghc-doc/haddock/glib-0.13.2.1/ --datasubdir=glib
  --htmldir=/usr/share/doc/libghc-glib-doc/html/
  --enable-library-profiling
  [1 of 2] Compiling Gtk2HsSetup      ( Gtk2HsSetup.hs,
  dist/setup-wrapper/Gtk2HsSetup.o )
  [2 of 2] Compiling Main             ( SetupMain.hs,
  dist/setup-wrapper/Main.o )
  Linking dist/setup-wrapper/setup ...
  Configuring glib-0.13.2.1...
  Flags chosen: closure_signals=True
  Dependency base ==4.*: using base-4.7.0.2
  Dependency bytestring >=0.9.1.10 && <0.11: using bytestring-0.10.4.0
  Dependency containers -any: using containers-0.5.5.1
  Dependency text >=1.0.0.0 && <1.3: using text-1.2.0.6
  Dependency utf8-string >=0.2 && <1.1: using utf8-string-1
  setup: The program pkg-config version >=0.9.0 is required but it could
  not be
  found.
  /usr/share/cdbs/1/class/hlibrary.mk:141: recipe for target
  'configure-ghc-stamp' failed
  make: *** [configure-ghc-stamp] Error 1
  dpkg-buildpackage: error: debian/rules build gave error exit status 2

The full build log is attached or can be viewed here:

  https://reproducible.debian.net/rbuild/unstable/amd64/haskell-glib_0.13.2.1-1.rbuild.log.gz

Adding pkg-config and libglib2.0-dev to Build-Depends fixes this for me.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: haskell-glib.0.13.2.1-1.amd64.log.txt
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20150815/379186a6/attachment-0001.txt>


More information about the Pkg-haskell-maintainers mailing list