I'm submitting two patches. The first patch will update the `ghc-x11` to version 0.18. The secondpatch will update `xmonad` and `ghc-xmonad-contrib` to 0.13. I'm sorry that the commit messages are not exactly correct. --mekeor ~ EDD3 DFFA 76F6 11C0 145F 9A99 AC85 BAD8 A2F8 C868
Toggle quote (10 lines)>>> From e262ad6e9f706c6d688ad313ae6c9045af42ecb1 Mon Sep 17 00:00:00 2001>>> From: Mekeor Melire <firstname.lastname@example.org>>>> Date: Sat, 13 May 2017 23:36:36 +0200>>> Subject: [PATCH] gnu: xmonad: Update to 0.13.>>>>>> * gnu/packages/wm.scm (xmonad): Update to 0.13.>>> [inputs]: Add ghc-directory.>>> (ghc-xmonad-contrib): Update to 0.13.>>>> This fails to build like this:
Toggle quote (9 lines)>> Setup.lhs: At least the following dependencies are missing:>> directory >=1.2.3>> phase `configure' succeeded after 0.6 seconds>> starting phase `patch-generated-file-shebangs'>> phase `patch-generated-file-shebangs' succeeded after 0.0 seconds>> starting phase `build'>> running "runhaskell Setup.hs" with command "build" and parameters ()>> Setup.lhs: Run the 'configure' command first.
It now also fails with this:
Toggle snippet (14 lines)starting phase `configure'running "runhaskell Setup.hs" with command "configure" and parameters ("--prefix=/gnu/store/q0j9nnbss5iam67l37aqva3ly9fzgkc4-xmonad-0.13" "--libdir=/gnu/store/q0j9nnbss5iam67l37aqva3ly9fzgkc4-xmonad-0.13/lib" "--bindir=/gnu/store/q0j9nnbss5iam67l37aqva3ly9fzgkc4-xmonad-0.13/bin" "--docdir=/gnu/store/q0j9nnbss5iam67l37aqva3ly9fzgkc4-xmonad-0.13/share/doc/xmonad-0.13" "--libsubdir=$compiler/$pkg-$version" "--package-db=/tmp/guix-build-xmonad-0.13.drv-0/package.conf.d" "--global" "--extra-include-dirs=/gnu/store/8nkj1w5whm5gwrhsmqvm1w6im27vz02g-bzip2-1.0.6/include" "--extra-include-dirs=/gnu/store/c140q16b1n4x0j2i7wv1awc1c39ipzrr-xz-5.2.2/include" "--extra-include-dirs=/gnu/store/0xm7szwymsv87z7y4bi2lgvx2jhniqms-file-5.28/include" "--extra-include-dirs=/gnu/store/55r4yg5iw9zh2j3zvzc6272k5xn4yxg4-gawk-4.1.4/include" "--extra-include-dirs=/gnu/store/alg6ani0nnwrxyz15d1j5d0k6qs2m5sk-make-4.2.1/include" "--extra-include-dirs=/gnu/store/zq65kpvwwxgc3qqbf9apic8gyss2l0zq-binutils-2.27/include" "--extra-include-dirs=/gnu/store/4iw4r2majarqlm19adaikqw126jxqf2p-gcc-5.4.0/include" "--extra-include-dirs=/gnu/store/rmjlycdgiq8pfy5hfi42qhw3k7p6kdav-glibc-2.25/include" "--extra-include-dirs=/gnu/store/5bh7p754d09wcp64ckxlvwz7lgyk0h59-linux-libre-headers-4.4.47/include" "--extra-lib-dirs=/gnu/store/97npy629c49g2wgl343f1ib4s1kx3qfn-ghc-7.10.2/lib" "--extra-lib-dirs=/gnu/store/mxv2gzxxq6pnhnw2s82pja6a4jwcjr6y-ghc-extensible-exceptions-0.1.1.4/lib" "--extra-lib-dirs=/gnu/store/8i7nclkag4mkk81jzh42zr6vs2i3k981-ghc-mtl-2.2.1/lib" "--extra-lib-dirs=/gnu/store/hdix7lfyr2l74hs70x7Configuring xmonad-0.13...Setup.lhs: At least the following dependencies are missing:X11 ==1.8.*phase `configure' succeeded after 4.0 secondsstarting phase `patch-generated-file-shebangs'phase `patch-generated-file-shebangs' succeeded after 0.0 secondsstarting phase `build'running "runhaskell Setup.hs" with command "build" and parameters ()Setup.lhs: Run the 'configure' command first.phase `build' failed after 1.0 seconds
(Side note: the configure phase really should fail in these cases.) I believe this requires an upgrade to many of our Haskell packages.We should try to catch up with the latest Haskell platform. --Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAChttps://elephly.net
Toggle quote (3 lines)> I believe this requires an upgrade to many of our Haskell packages.> We should try to catch up with the latest Haskell platform.
This error was appearing because Ludo didn't actually apply the patchfor ghc-x11.
I tested both patches again now: they work. I tested them using both $ ./pre-inst-env guix build xmonad ghc-xmonad-contrib # and $ ./pre-inst-env guix package -i xmonad ghc-xmonad-contrib and both worked. Before building the package, I applied the patch for ghc-x11, then Iapplied the patch for xmonad and ghc-xmonad-contrib.
Toggle quote (10 lines)> I tested both patches again now: they work. I tested them using both>> $ ./pre-inst-env guix build xmonad ghc-xmonad-contrib # and> $ ./pre-inst-env guix package -i xmonad ghc-xmonad-contrib>> and both worked.>> Before building the package, I applied the patch for ghc-x11, then I> applied the patch for xmonad and ghc-xmonad-contrib.
Yes, you’re right. The patch for “ghc-x11” actually hadn’t beenpushed. I was able to build xmonad, but I noticed these warnings:
Toggle snippet (7 lines)Configuring xmonad-0.13...Warning: This package indirectly depends on multiple versions of the samepackage. This is highly likely to cause a compile failure.package process-184.108.40.206 requires directory-220.127.116.11package xmonad-0.13 requires directory-18.104.22.168
This indicates that we really need to update other packages too.I’ll push this now and close this bug, but we really need to harmonisethe Haskell packages. --Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAChttps://elephly.net