Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ltk: fix haskell-gi-overloading dependency #30462

Closed
wants to merge 3 commits into from
Closed

Conversation

flokli
Copy link
Contributor

@flokli flokli commented Oct 16, 2017

Before, building ltk failed like this:

building path(s) ‘/nix/store/dczjcg5li0wfbs17blbb302y68kwygm8-ltk-0.16.1.0’, ‘/nix/store/hjv7bc3ibj65iq16bczk36jslbk92q7g-ltk-0.16.1.0-doc’
setupCompilerEnvironmentPhase
Build with /nix/store/m74s3ylqgnpycnhaj1hxqax3xpx9l9z9-ghc-8.0.2.
unpacking sources
unpacking source archive /nix/store/yr06vdmj97j4f44qnggyini6z9ypkvqc-ltk-0.16.1.0.tar.gz
source root is ltk-0.16.1.0
setting SOURCE_DATE_EPOCH to timestamp 1502714953 of file ltk-0.16.1.0/src/Text/PrinterParser.hs
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/tmp/nix-build-ltk-0.16.1.0.drv-0/package.conf.d -j1 -threaded
[1 of 1] Compiling Main             ( Setup.lhs, /tmp/nix-build-ltk-0.16.1.0.drv-0/Main.o )
Linking Setup ...
configuring
configureFlags: --verbose --prefix=/nix/store/dczjcg5li0wfbs17blbb302y68kwygm8-ltk-0.16.1.0 --libdir=$prefix/lib/$compiler --libsubdir=$pkgid --docdir=/nix/store/hjv7bc3ibj65iq16bczk36jslbk92q7g-ltk-0.16.1.0-doc/share/doc --with-gcc=gcc --package-db=/tmp/nix-build-ltk-0.16.1.0.drv-0/package.conf.d --ghc-option=-optl=-Wl,-rpath=/nix/store/dczjcg5li0wfbs17blbb302y68kwygm8-ltk-0.16.1.0/lib/ghc-8.0.2/ltk-0.16.1.0 --ghc-option=-j1 --disable-split-objs --disable-library-profiling --disable-profiling --enable-shared --disable-coverage --enable-library-vanilla --enable-executable-dynamic --enable-tests --ghc-option=-split-sections --extra-include-dirs=/nix/store/hvgsm5rdxj9mx5d8bf9wji0j2xw563yw-gtk+3-3.22.21-dev/include --extra-lib-dirs=/nix/store/hvgsm5rdxj9mx5d8bf9wji0j2xw563yw-gtk+3-3.22.21-dev/lib --extra-include-dirs=/nix/store/1gyr9vfwv9v8sbjy0ymgdkjnfw80j987-expat-2.2.4-dev/include --extra-lib-dirs=/nix/store/1gyr9vfwv9v8sbjy0ymgdkjnfw80j987-expat-2.2.4-dev/lib --extra-lib-dirs=/nix/store/mpxglx71nqxp62vxacp0i12dq7h622na-expat-2.2.4/lib --extra-include-dirs=/nix/store/3jxq33qrlfpjdx17c8d62lmcxfbf2yxm-glib-2.54.0-dev/include --extra-lib-dirs=/nix/store/3jxq33qrlfpjdx17c8d62lmcxfbf2yxm-glib-2.54.0-dev/lib --extra-include-dirs=/nix/store/q8k7r5zbf03ydrpm7imfzds5b2nmdf0a-zlib-1.2.11-dev/include --extra-lib-dirs=/nix/store/q8k7r5zbf03ydrpm7imfzds5b2nmdf0a-zlib-1.2.11-dev/lib --extra-lib-dirs=/nix/store/i8wz3m067dzbs5x2glhxvcg7lvds1942-zlib-1.2.11/lib --extra-include-dirs=/nix/store/0phm8p3mf0rapxsxcy6v7q298y6a7ax8-libffi-3.2.1-dev/include --extra-lib-dirs=/nix/store/0phm8p3mf0rapxsxcy6v7q298y6a7ax8-libffi-3.2.1-dev/lib --extra-lib-dirs=/nix/store/hhcby2ncg7s75bm8f87j4i7wjzx20nvw-libffi-3.2.1/lib --extra-include-dirs=/nix/store/d15b3lh1c4452m6w66sjgrw21aps2z8b-glibc-iconv-2.25-49/include --extra-lib-dirs=/nix/store/dq0sfiqgdyxy4z4m1cnplv3ay18kljav-glib-2.54.0/lib --extra-include-dirs=/nix/store/5j0yfykrgjplgs70wacmvrzbm0a3r3qj-cairo-1.14.10-dev/include --extra-lib-dirs=/nix/store/5j0yfykrgjplgs70wacmvrzbm0a3r3qj-cairo-1.14.10-dev/lib --extra-include-dirs=/nix/store/jbvsw0c6mzvn4ksikvb355c51hanivdz-libXext-1.3.3-dev/include --extra-lib-dirs=/nix/store/jbvsw0c6mzvn4ksikvb355c51hanivdz-libXext-1.3.3-dev/lib --extra-include-dirs=/nix/store/azczg71cnfxjc63dhpm8f6w62695zrx1-xextproto-7.3.0/include --extra-lib-dirs=/nix/store/azczg71cnfxjc63dhpm8f6w62695zrx1-xextproto-7.3.0/lib --extra-include-dirs=/nix/store/hcajgay8nx6f94rgl4ynk8xp8dvv69wp-xproto-7.0.31/include --extra-lib-dirs=/nix/store/hcajgay8nx6f94rgl4ynk8xp8dvv69wp-xproto-7.0.31/lib --extra-include-dirs=/nix/store/lm3q222avj0if827hqnscm8132w6bfqi-libXau-1.0.8-dev/include --extra-lib-dirs=/nix/store/lm3q222avj0if827hqnscm8132w6bfqi-libXau-1.0.8-dev/lib --extra-lib-dirs=/nix/store/vw96cn3hv144mmfmpbcgf041509nrb9v-libXau-1.0.8/lib --extra-lib-dirs=/nix/store/1izhmghnramlx67427iswvvzy80bc13v-libXext-1.3.3/lib --extra-include-dirs=/nix/store/vrdcbrr7g8hknsi7vdfn4hh0kh7p34x8-fontconfig-2.12.1-dev/include --extra-lib-dirs=/nix/store/vrdcbrr7g8hknsi7vdfn4hh0kh7p34x8-fontconfig-2.12.1-dev/lib --extra-include-dirs=/nix/store/lbc47zddfrygkghmx9xlf99ll3q2q3sx-freetype-2.7.1-dev/include --extra-lib-dirs=/nix/store/lbc47zddfrygkghmx9xlf99ll3q2q3sx-freetype-2.7.1-dev/lib --extra-include-dirs=/nix/store/aa8i4gpsb44n2zyv5byr7fm97q48h425-bzip2-1.0.6.0.1-dev/include --extra-lib-dirs=/nix/store/aa8i4gpsb44n2zyv5byr7fm97q48h425-bzip2-1.0.6.0.1-dev/lib --extra-lib-dirs=/nix/store/5dnva19r2z20jahsx3jxm565qwjxsynl-bzip2-1.0.6.0.1/lib --extra-include-dirs=/nix/store/d39gr8bvrhgj3licf2k2sxaf2pwr43hg-libpng-apng-1.6.31-dev/include --extra-lib-dirs=/nix/store/d39gr8bvrhgj3licf2k2sxaf2pwr43hg-libpng-apng-1.6.31-dev/lib --extra-lib-dirs=/nix/store/xajc39y4sy34a086w86138jfv31f65nx-libpng-apng-1.6.31/lib --extra-lib-dirs=/nix/store/7rda899md2d4q26lxb43yg3cmrgcdr1r-freetype-2.7.1/lib --extra-lib-dirs=/nix/store/28xmsklwik9jpddq6wwybmg0ghh92gwx-fontconfig-2.12.1-lib/lib --extra-include-dirs=/nix/store/gcz451vvp5v3kx8i5sbxd4qs0inq21v3-pixman-0.34.0/include --extra-lib-dirs=/nix/store/gcz451vvp5v3kx8i5sbxd4qs0inq21v3-pixman-0.34.0/lib --extra-include-dirs=/nix/store/jypwzca909k9jmhlbhdjp9i08kby7mz5-libXrender-0.9.10-dev/include --extra-lib-dirs=/nix/store/jypwzca909k9jmhlbhdjp9i08kby7mz5-libXrender-0.9.10-dev/lib --extra-include-dirs=/nix/store/kxi3k7l47975flk2874xrxcsagz9f8vr-renderproto-0.11.1/include --extra-lib-dirs=/nix/store/kxi3k7l47975flk2874xrxcsagz9f8vr-renderproto-0.11.1/lib --extra-include-dirs=/nix/store/n8qx80rpdmxyrjk90c7bv93jizd3if9g-libX11-1.6.5-dev/include --extra-lib-dirs=/nix/store/n8qx80rpdmxyrjk90c7bv93jizd3if9g-libX11-1.6.5-dev/lib --extra-include-dirs=/nix/store/sd0vh8fgkj8gnazja6rrs3bjfbjlkn6f-libxcb-1.12-dev/include --extra-lib-dirs=/nix/store/sd0vh8fgkj8gnazja6rrs3bjfbjlkn6f-libxcb-1.12-dev/lib --extra-lib-dirs=/nix/store/hj7cj844wbnsqiqja81vc2lbgn1s47x1-libxcb-1.12/lib --extra-include-dirs=/nix/store/ivkkg1ika5iflrnzhjskl1w76nx380gz-kbproto-1.0.7/include --extra-lib-dirs=/nix/store/ivkkg1ika5iflrnzhjskl1w76nx380gz-kbproto-1.0.7/lib --extra-lib-dirs=/nix/store/m04h4v9863198a36k5xhv25hz6qf2cql-libX11-1.6.5/lib --extra-lib-dirs=/nix/store/vfp7hb5a5in4wbxxqy1vymyy3w9bv467-libXrender-0.9.10/lib --extra-include-dirs=/nix/store/q0ahw8bwzqdznnih9khs5v0ms8ri7g1b-xcb-util-0.4.0-dev/include --extra-lib-dirs=/nix/store/q0ahw8bwzqdznnih9khs5v0ms8ri7g1b-xcb-util-0.4.0-dev/lib --extra-lib-dirs=/nix/store/127qsvkr13v3vks48n967fnk6sz2aqxp-xcb-util-0.4.0/lib --extra-include-dirs=/nix/store/lbah9wclx0x7ahy7kfzwly00zxn3sz37-mesa-noglu-17.1.10-dev/include --extra-lib-dirs=/nix/store/lbah9wclx0x7ahy7kfzwly00zxn3sz37-mesa-noglu-17.1.10-dev/lib --extra-include-dirs=/nix/store/d3h9zicsnxlddx5ld519wlk2lhcd5xzd-libXdamage-1.1.4-dev/include --extra-lib-dirs=/nix/store/d3h9zicsnxlddx5ld519wlk2lhcd5xzd-libXdamage-1.1.4-dev/lib --extra-include-dirs=/nix/store/xfmx6m0m5pi9xghihgjh0ikp1r1f0ff2-damageproto-1.2.1/include --extra-lib-dirs=/nix/store/xfmx6m0m5pi9xghihgjh0ikp1r1f0ff2-damageproto-1.2.1/lib --extra-include-dirs=/nix/store/1ca2dj8llpsgb4riq2p0c514jq5d25xa-libXfixes-5.0.2-dev/include --extra-lib-dirs=/nix/store/1ca2dj8llpsgb4riq2p0c514jq5d25xa-libXfixes-5.0.2-dev/lib --extra-include-dirs=/nix/store/jsfrwyfai70gnbvh7g6dygqkcd9h45px-fixesproto-5.0/include --extra-lib-dirs=/nix/store/jsfrwyfai70gnbvh7g6dygqkcd9h45px-fixesproto-5.0/lib --extra-lib-dirs=/nix/store/8qsy14m386h3l1wgnq92lf9rdmv205dc-libXfixes-5.0.2/lib --extra-lib-dirs=/nix/store/58wv742ljn4cw2iijax6gpifwhzy4vsk-libXdamage-1.1.4/lib --extra-include-dirs=/nix/store/p7yjm9xby0gdapjcjgj9bpcv3a5qxkkv-libXxf86vm-1.1.4-dev/include --extra-lib-dirs=/nix/store/p7yjm9xby0gdapjcjgj9bpcv3a5qxkkv-libXxf86vm-1.1.4-dev/lib --extra-include-dirs=/nix/store/yi8sywpqfzl5ap0liamivj5jvc1b7z7h-xf86vidmodeproto-2.3.1/include --extra-lib-dirs=/nix/store/yi8sywpqfzl5ap0liamivj5jvc1b7z7h-xf86vidmodeproto-2.3.1/lib --extra-lib-dirs=/nix/store/10bir5xrxjj9anx2k2r52rf60cr4im13-libXxf86vm-1.1.4/lib --extra-include-dirs=/nix/store/0bgqk7076xrq4i1iav27c0adrc0c342w-libdrm-2.4.83-dev/include --extra-lib-dirs=/nix/store/0bgqk7076xrq4i1iav27c0adrc0c342w-libdrm-2.4.83-dev/lib --extra-lib-dirs=/nix/store/5g1zf879403gpl5fnnqn6331g74xicwn-libdrm-2.4.83/lib --extra-lib-dirs=/nix/store/sw4kprs436aj65435v2y2vgwjcpwc79d-mesa-noglu-17.1.10/lib --extra-lib-dirs=/nix/store/fa7wrzvv93y68sr4v7bfv0sq33ijjcfn-cairo-1.14.10/lib --extra-include-dirs=/nix/store/y7kqs9b9a7c70i958zga033pbi2m5mb1-pango-1.40.12-dev/include --extra-lib-dirs=/nix/store/y7kqs9b9a7c70i958zga033pbi2m5mb1-pango-1.40.12-dev/lib --extra-include-dirs=/nix/store/bj3rb68r8w964gfrmay03z7gnzg91p8w-harfbuzz-1.5.1-dev/include --extra-lib-dirs=/nix/store/bj3rb68r8w964gfrmay03z7gnzg91p8w-harfbuzz-1.5.1-dev/lib --extra-include-dirs=/nix/store/2wblsrrhf41zfyr7v0ackkn8vjkh1zyk-graphite2-1.3.6/include --extra-lib-dirs=/nix/store/2wblsrrhf41zfyr7v0ackkn8vjkh1zyk-graphite2-1.3.6/lib --extra-lib-dirs=/nix/store/riicxh9dp1bx90fjcf2yr7gw3wj0x7fm-harfbuzz-1.5.1/lib --extra-include-dirs=/nix/store/cw5hy5mz22jdka0415qf6ir5qcfx06wi-libXft-2.3.2-dev/include --extra-lib-dirs=/nix/store/cw5hy5mz22jdka0415qf6ir5qcfx06wi-libXft-2.3.2-dev/lib --extra-lib-dirs=/nix/store/czkv6rffbd32dyrqbq8ar4vg58hv6dsn-libXft-2.3.2/lib --extra-lib-dirs=/nix/store/5xd1zb7b23q0p9mlvjcj5z115ymh5fb5-pango-1.40.12/lib --extra-include-dirs=/nix/store/p7rcvxxc70si6s3w8ylyc6w501l6mhzm-gdk-pixbuf-2.36.7-dev/include --extra-lib-dirs=/nix/store/p7rcvxxc70si6s3w8ylyc6w501l6mhzm-gdk-pixbuf-2.36.7-dev/lib --extra-include-dirs=/nix/store/jdya63cghjqx15x18sz2xqw270y4zwaf-libtiff-4.0.8-dev/include --extra-lib-dirs=/nix/store/jdya63cghjqx15x18sz2xqw270y4zwaf-libtiff-4.0.8-dev/lib --extra-include-dirs=/nix/store/4j0xwakgh5n441jynrp7i942j0qc8lrm-libjpeg-turbo-1.5.2-dev/include --extra-lib-dirs=/nix/store/4j0xwakgh5n441jynrp7i942j0qc8lrm-libjpeg-turbo-1.5.2-dev/lib --extra-lib-dirs=/nix/store/bsqid2phn9ad8fyw2d63anzrrxp7a9x4-libjpeg-turbo-1.5.2/lib --extra-include-dirs=/nix/store/v6s9mvcg8wqpgbbmf86fq1h5sy0jv15b-xz-5.2.3-dev/include --extra-lib-dirs=/nix/store/v6s9mvcg8wqpgbbmf86fq1h5sy0jv15b-xz-5.2.3-dev/lib --extra-lib-dirs=/nix/store/j41pm590lflva7kkx643kycix8njjrld-xz-5.2.3/lib --extra-lib-dirs=/nix/store/caqnkc27nvhgbara1grqblyl117sq8gd-libtiff-4.0.8/lib --extra-include-dirs=/nix/store/1jg55h9jikyasnpfgnnynb1jzza6kp12-jasper-2.0.13-dev/include --extra-lib-dirs=/nix/store/1jg55h9jikyasnpfgnnynb1jzza6kp12-jasper-2.0.13-dev/lib --extra-lib-dirs=/nix/store/4flns1cwwvy2x3l1b0dbhnz4wrip07bw-jasper-2.0.13/lib --extra-lib-dirs=/nix/store/ykmhgbm3qb0sckrzgb0ivhk9b4saiwi1-gdk-pixbuf-2.36.7/lib --extra-include-dirs=/nix/store/xnmykq14a635qhb2anjdiv6q9m6qgnyk-atk-2.26.0-dev/include --extra-lib-dirs=/nix/store/xnmykq14a635qhb2anjdiv6q9m6qgnyk-atk-2.26.0-dev/lib --extra-include-dirs=/nix/store/vx1qc0mfipfsc02p0s466m8j5jmwmkwj-gobject-introspection-1.52.1-dev/include --extra-lib-dirs=/nix/store/vx1qc0mfipfsc02p0s466m8j5jmwmkwj-gobject-introspection-1.52.1-dev/lib --extra-lib-dirs=/nix/store/al907j2gpc7nwlnv2h5w372gx88ipmgb-gobject-introspection-1.52.1/lib --extra-lib-dirs=/nix/store/33sv1dzaasnyw3y2z1jrwfhz6d4c5a5b-atk-2.26.0/lib --extra-include-dirs=/nix/store/7pdps4ffvd2553glmiygwjr5xj4w2xdw-at-spi2-atk-2.26.0/include --extra-lib-dirs=/nix/store/7pdps4ffvd2553glmiygwjr5xj4w2xdw-at-spi2-atk-2.26.0/lib --extra-include-dirs=/nix/store/zqamgxrca2806sa6qccaihkq7wiwzrqw-libXrandr-1.5.1-dev/include --extra-lib-dirs=/nix/store/zqamgxrca2806sa6qccaihkq7wiwzrqw-libXrandr-1.5.1-dev/lib --extra-include-dirs=/nix/store/0qi36vmhk3hwm7i9p6gfz29y6gzl7g8m-randrproto-1.5.0/include --extra-lib-dirs=/nix/store/0qi36vmhk3hwm7i9p6gfz29y6gzl7g8m-randrproto-1.5.0/lib --extra-lib-dirs=/nix/store/iqmcckzwnqg1lg018kzis9limbn02rqw-libXrandr-1.5.1/lib --extra-include-dirs=/nix/store/zj818qh9811m51hsfxsrjk1namhs9764-libXcomposite-0.4.4-dev/include --extra-lib-dirs=/nix/store/zj818qh9811m51hsfxsrjk1namhs9764-libXcomposite-0.4.4-dev/lib --extra-include-dirs=/nix/store/vkj8b92ik46w6m0pfnp9klbp7dx0fyil-compositeproto-0.4.2/include --extra-lib-dirs=/nix/store/vkj8b92ik46w6m0pfnp9klbp7dx0fyil-compositeproto-0.4.2/lib --extra-lib-dirs=/nix/store/yzbwi32dnbb3d2fymh5ahg3laqch4i8y-libXcomposite-0.4.4/lib --extra-include-dirs=/nix/store/8qqcwmcsbs1c19h1l9g28m7dcs3gi809-libXi-1.7.9-dev/include --extra-lib-dirs=/nix/store/8qqcwmcsbs1c19h1l9g28m7dcs3gi809-libXi-1.7.9-dev/lib --extra-include-dirs=/nix/store/zh620nqawrvrg0rc4hbw2dp4ind0l8b3-inputproto-2.3.2/include --extra-lib-dirs=/nix/store/zh620nqawrvrg0rc4hbw2dp4ind0l8b3-inputproto-2.3.2/lib --extra-lib-dirs=/nix/store/79a8ha4pkk8x1z8ri78gif3kf4i1z2ik-libXi-1.7.9/lib --extra-include-dirs=/nix/store/jms8lknxwjmvrbdzrkqphb4qhql4pgqd-libXcursor-1.1.14-dev/include --extra-lib-dirs=/nix/store/jms8lknxwjmvrbdzrkqphb4qhql4pgqd-libXcursor-1.1.14-dev/lib --extra-lib-dirs=/nix/store/pj43xhylb8inskbml2p99i17d0cz8l3f-libXcursor-1.1.14/lib --extra-include-dirs=/nix/store/rnr25dmvrf78qbga77j45krclwag5vvk-libSM-1.2.2-dev/include --extra-lib-dirs=/nix/store/rnr25dmvrf78qbga77j45krclwag5vvk-libSM-1.2.2-dev/lib --extra-include-dirs=/nix/store/pfqi9p5rp77d40kxv8i2566vrh8hfwqw-libICE-1.0.9-dev/include --extra-lib-dirs=/nix/store/pfqi9p5rp77d40kxv8i2566vrh8hfwqw-libICE-1.0.9-dev/lib --extra-lib-dirs=/nix/store/fvjaiqhdhg0cagdlqyc3aizkn6scd9fv-libICE-1.0.9/lib --extra-lib-dirs=/nix/store/jjyakizjnriy8vd54ils6fmi0fgz8dlj-libSM-1.2.2/lib --extra-include-dirs=/nix/store/jwmmalm2dsh59xs0w8l6rdmrv22yvpj1-wayland-1.12.0/include --extra-lib-dirs=/nix/store/jwmmalm2dsh59xs0w8l6rdmrv22yvpj1-wayland-1.12.0/lib --extra-include-dirs=/nix/store/lp091q6chzg6ic6ag2gbrcxh90xzs7sx-libXinerama-1.1.3-dev/include --extra-lib-dirs=/nix/store/lp091q6chzg6ic6ag2gbrcxh90xzs7sx-libXinerama-1.1.3-dev/lib --extra-include-dirs=/nix/store/8rlgps101mczb1mnk6g0hyqim3gmmnw6-xineramaproto-1.2.1/include --extra-lib-dirs=/nix/store/8rlgps101mczb1mnk6g0hyqim3gmmnw6-xineramaproto-1.2.1/lib --extra-lib-dirs=/nix/store/0wzq6xb64qnx59qm4grla2k40389gqla-libXinerama-1.1.3/lib --extra-include-dirs=/nix/store/3fp6xsapddsg9l69b0444q2mi3idfigx-cups-2.2.2-dev/include --extra-include-dirs=/nix/store/2d2in2wqdgxr0p210lv17dvxibpnfw49-gmp-6.1.2-dev/include --extra-lib-dirs=/nix/store/z5z8ldravlksmw7fqalyzr4i75x8ayjv-gmp-6.1.2/lib --extra-lib-dirs=/nix/store/db6dvvaa07ak9ry1rhr45456dsidhwcg-cups-2.2.2-lib/lib --extra-lib-dirs=/nix/store/7767vq6laj5qrcgr6hpxc4j2nnrk73kv-cups-2.2.2/lib --extra-lib-dirs=/nix/store/j353wyysz6qviv7c3dkaj92fgyk60pgr-gtk+3-3.22.21/lib
Configuring ltk-0.16.1.0...
Setup: Encountered missing dependencies:
haskell-gi-overloading ==0.0.*
builder for ‘/nix/store/34bj2fp7k0d3539c4hzqbvkfrz5j7bzg-ltk-0.16.1.0.drv’ failed with exit code 1
Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@flokli
Copy link
Contributor Author

flokli commented Oct 16, 2017

Hrm. This now fails when building leksah due to multiple versions of haskell-gi-overloading being pulled in:

Warning: This package indirectly depends on multiple versions of the same
package. This is highly likely to cause a compile failure.
package ltk-0.16.1.0 requires haskell-gi-overloading-0.0
package gi-pango-1.0.15 requires haskell-gi-overloading-1.0
package gi-gtk-3.0.17 requires haskell-gi-overloading-1.0
package gi-gobject-2.0.15 requires haskell-gi-overloading-1.0
package gi-glib-2.0.14 requires haskell-gi-overloading-1.0
package gi-gio-2.0.14 requires haskell-gi-overloading-1.0
package gi-gdkpixbuf-2.0.14 requires haskell-gi-overloading-1.0
package gi-gdk-3.0.14 requires haskell-gi-overloading-1.0
package gi-cairo-1.0.14 requires haskell-gi-overloading-1.0
package gi-atk-2.0.14 requires haskell-gi-overloading-1.0

Copy link
Member

@peti peti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please read the very first line of hackage-packages.nix. This is an auto-generated file and all changes you make there will be lost. Check out pkgs/development/haskell-modules/configuration-common.nix, which is the right place to do this.

@@ -978,4 +978,7 @@ self: super: {
# https://github.com/mgajda/json-autotype/issues/15
json-autotype = doJailbreak super.json-autotype;

# foo
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

foo?

Copy link
Contributor Author

@flokli flokli Oct 17, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, this is still in progress. Tests for leksah-server fail after jailbreaking away version restrictions from ltk and thus building it with haskell-gi-overloading-1.0 instead of haskell-gi-overloading-0.0. I'm not sure if the tests fail due to this or if they are generally broken.

Maybe someone who does actually speak haskell could help here? ;-)

# nix-build -j1 -A leksah .
these derivations will be built:
  /nix/store/12f1ybxsxw67wpgqrqypdipzbfscnj7d-leksah-server-0.16.2.0.drv
  /nix/store/w57kzqq5s0d0dydrwv4rjgg95w5vvlyf-leksah-0.16.2.2.drv
  /nix/store/spxdcdaxx8z61wxv1kypa9pi92km5rmf-ghc-8.0.2-with-packages.drv
  /nix/store/sm42a12ccmcjwny7lgmlip7gf64nfxva-leksah.drv
building path(s) ‘/nix/store/6pmnia7f4kxpi7g5iiklwybyq39b0ig9-leksah-server-0.16.2.0-doc’, ‘/nix/store/cmir164p6f3cqzk4ylfiwqqclz8l9cbd-leksah-server-0.16.2.0’, ‘/nix/store/gxwcsszwhk2hi3880lmn9ph92i5qklpl-leksah-server-0.16.2.0-data’
setupCompilerEnvironmentPhase
Build with /nix/store/m74s3ylqgnpycnhaj1hxqax3xpx9l9z9-ghc-8.0.2.
unpacking sources
unpacking source archive /nix/store/6p1c4vg2rl9flssf8a4vvx90wzz8qz1h-leksah-server-0.16.2.0.tar.gz
source root is leksah-server-0.16.2.0
setting SOURCE_DATE_EPOCH to timestamp 1502752583 of file leksah-server-0.16.2.0/tests/TestTool.hs
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/tmp/nix-build-leksah-server-0.16.2.0.drv-0/package.conf.d -j1 -threaded
[1 of 1] Compiling Main             ( Setup.lhs, /tmp/nix-build-leksah-server-0.16.2.0.drv-0/Main.o )
Linking Setup ...
configuring
configureFlags: --verbose --prefix=/nix/store/cmir164p6f3cqzk4ylfiwqqclz8l9cbd-leksah-server-0.16.2.0 --libdir=$prefix/lib/$compiler --libsubdir=$pkgid --datadir=/nix/store/gxwcsszwhk2hi3880lmn9ph92i5qklpl-leksah-server-0.16.2.0-data/share/ghc-8.0.2 --docdir=/nix/store/6pmnia7f4kxpi7g5iiklwybyq39b0ig9-leksah-server-0.16.2.0-doc/share/doc --with-gcc=gcc --package-db=/tmp/nix-build-leksah-server-0.16.2.0.drv-0/package.conf.d --ghc-option=-optl=-Wl,-rpath=/nix/store/cmir164p6f3cqzk4ylfiwqqclz8l9cbd-leksah-server-0.16.2.0/lib/ghc-8.0.2/leksah-server-0.16.2.0 --ghc-option=-j1 --disable-split-objs --disable-library-profiling --disable-profiling --enable-shared --disable-coverage --enable-library-vanilla --enable-executable-dynamic --enable-tests --ghc-option=-split-sections --extra-include-dirs=/nix/store/vx1qc0mfipfsc02p0s466m8j5jmwmkwj-gobject-introspection-1.52.1-dev/include --extra-lib-dirs=/nix/store/vx1qc0mfipfsc02p0s466m8j5jmwmkwj-gobject-introspection-1.52.1-dev/lib --extra-include-dirs=/nix/store/0phm8p3mf0rapxsxcy6v7q298y6a7ax8-libffi-3.2.1-dev/include --extra-lib-dirs=/nix/store/0phm8p3mf0rapxsxcy6v7q298y6a7ax8-libffi-3.2.1-dev/lib --extra-lib-dirs=/nix/store/hhcby2ncg7s75bm8f87j4i7wjzx20nvw-libffi-3.2.1/lib --extra-include-dirs=/nix/store/3jxq33qrlfpjdx17c8d62lmcxfbf2yxm-glib-2.54.0-dev/include --extra-lib-dirs=/nix/store/3jxq33qrlfpjdx17c8d62lmcxfbf2yxm-glib-2.54.0-dev/lib --extra-include-dirs=/nix/store/q8k7r5zbf03ydrpm7imfzds5b2nmdf0a-zlib-1.2.11-dev/include --extra-lib-dirs=/nix/store/q8k7r5zbf03ydrpm7imfzds5b2nmdf0a-zlib-1.2.11-dev/lib --extra-lib-dirs=/nix/store/i8wz3m067dzbs5x2glhxvcg7lvds1942-zlib-1.2.11/lib --extra-include-dirs=/nix/store/d15b3lh1c4452m6w66sjgrw21aps2z8b-glibc-iconv-2.25-49/include --extra-lib-dirs=/nix/store/dq0sfiqgdyxy4z4m1cnplv3ay18kljav-glib-2.54.0/lib --extra-lib-dirs=/nix/store/al907j2gpc7nwlnv2h5w372gx88ipmgb-gobject-introspection-1.52.1/lib
Configuring leksah-server-0.16.2.0...
Flags chosen: network-uri=True, threaded=True
Dependency Cabal >=1.10.2.0 && <2.1: using Cabal-1.24.2.0
Dependency HTTP >=4000.1.2 && <4000.4: using HTTP-4000.3.7
Dependency HUnit >=1.2 && <1.7: using HUnit-1.5.0.0
Dependency aeson >=0.11.2.0 && <1.3: using aeson-1.1.2.0
Dependency attoparsec >=0.10.0.3 && <0.14: using attoparsec-0.13.1.0
Dependency base >=4.0.0.0 && <4.11: using base-4.9.1.0
Dependency base-compat >=0.9.0 && <0.10: using base-compat-0.9.3
Dependency binary >=0.5.0.0 && <0.9: using binary-0.8.3.0
Dependency binary-shared ==0.8.*: using binary-shared-0.8.3
Dependency bytestring >=0.9.0.1 && <0.11: using bytestring-0.10.8.1
Dependency conduit >=1.0.8 && <1.3: using conduit-1.2.12
Dependency conduit-extra >=1.0.0.1 && <1.2: using conduit-extra-1.1.17
Dependency containers >=0.2.0.0 && <0.6: using containers-0.5.7.1
Dependency deepseq >=1.1 && <1.5: using deepseq-1.4.2.0
Dependency directory >=1.0.0.2 && <1.4: using directory-1.3.0.0
Dependency doctest >=0.11.0 && <0.12: using doctest-0.11.4
Dependency executable-path >=0.0.3 && <0.1: using executable-path-0.0.3.1
Dependency filepath >=1.1.0.1 && <1.5: using filepath-1.4.1.1
Dependency ghc >=7.0.4 && <8.3: using ghc-8.0.2
Dependency ghc-boot >=8.0.1 && <8.1: using ghc-boot-8.0.2
Dependency haddock-api >=2.17.2 && <2.18: using haddock-api-2.17.4
Dependency haddock-library >=1.4.1 && <1.5: using haddock-library-1.4.3
Dependency hslogger >=1.0.7 && <1.3: using hslogger-1.2.10
Dependency leksah-server -any: using leksah-server-0.16.2.0
Dependency ltk >=0.16.0.0 && <0.17: using ltk-0.16.1.0
Dependency network ==2.6.*: using network-2.6.3.2
Dependency network-uri ==2.6.*: using network-uri-2.6.1.0
Dependency parsec >=3.0.0.0 && <3.2: using parsec-3.1.11
Dependency pretty >=1.0.1.0 && <1.2: using pretty-1.1.3.3
Dependency process >=1.1 && <1.7: using process-1.4.3.0
Dependency resourcet -any: using resourcet-1.1.9
Dependency strict >=0.3.2 && <0.4: using strict-0.3.2
Dependency text >=0.11.3.1 && <1.3: using text-1.2.2.2
Dependency time >=1.1 && <1.9: using time-1.6.0.1
Dependency transformers >=0.2.2.0 && <0.6: using transformers-0.5.2.0
Dependency unix >=2.3.1.0 && <2.8: using unix-2.7.2.1
Using Cabal-1.24.2.0 compiled by ghc-8.0
Using compiler: ghc-8.0.2
Using install prefix:
/nix/store/cmir164p6f3cqzk4ylfiwqqclz8l9cbd-leksah-server-0.16.2.0
Binaries installed in:
/nix/store/cmir164p6f3cqzk4ylfiwqqclz8l9cbd-leksah-server-0.16.2.0/bin
Libraries installed in:
/nix/store/cmir164p6f3cqzk4ylfiwqqclz8l9cbd-leksah-server-0.16.2.0/lib/ghc-8.0.2/leksah-server-0.16.2.0
Dynamic libraries installed in:
/nix/store/cmir164p6f3cqzk4ylfiwqqclz8l9cbd-leksah-server-0.16.2.0/lib/ghc-8.0.2/x86_64-linux-ghc-8.0.2
Private binaries installed in:
/nix/store/cmir164p6f3cqzk4ylfiwqqclz8l9cbd-leksah-server-0.16.2.0/libexec
Data files installed in:
/nix/store/gxwcsszwhk2hi3880lmn9ph92i5qklpl-leksah-server-0.16.2.0-data/share/ghc-8.0.2/x86_64-linux-ghc-8.0.2/leksah-server-0.16.2.0
Documentation installed in:
/nix/store/6pmnia7f4kxpi7g5iiklwybyq39b0ig9-leksah-server-0.16.2.0-doc/share/doc
Configuration files installed in:
/nix/store/cmir164p6f3cqzk4ylfiwqqclz8l9cbd-leksah-server-0.16.2.0/etc
No alex found
Using ar found on system at:
/nix/store/z470j6lybdsy4ql972k392490bprhd2g-binutils-2.28.1/bin/ar
No c2hs found
No cpphs found
Using gcc version 6.4.0 given by user at:
/nix/store/kd7vb1afwvm2k65n9qjdw767w6lnwsrd-gcc-wrapper-6.4.0/bin/gcc
Using ghc version 8.0.2 found on system at:
/nix/store/m74s3ylqgnpycnhaj1hxqax3xpx9l9z9-ghc-8.0.2/bin/ghc
Using ghc-pkg version 8.0.2 found on system at:
/nix/store/m74s3ylqgnpycnhaj1hxqax3xpx9l9z9-ghc-8.0.2/bin/ghc-pkg
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.17.3 found on system at:
/nix/store/m74s3ylqgnpycnhaj1hxqax3xpx9l9z9-ghc-8.0.2/bin/haddock
No happy found
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.67 found on system at:
/nix/store/m74s3ylqgnpycnhaj1hxqax3xpx9l9z9-ghc-8.0.2/bin/hpc
Using hsc2hs version 0.68.1 found on system at:
/nix/store/m74s3ylqgnpycnhaj1hxqax3xpx9l9z9-ghc-8.0.2/bin/hsc2hs
Using hscolour version 1.24 found on system at:
/nix/store/s98kd37460pd00iljsf7xkfqxx5nmzzm-hscolour-1.24.1/bin/HsColour
No jhc found
Using ld found on system at:
/nix/store/kd7vb1afwvm2k65n9qjdw767w6lnwsrd-gcc-wrapper-6.4.0/bin/ld
No lhc found
No lhc-pkg found
No pkg-config found
Using strip version 2.28 found on system at:
/nix/store/z470j6lybdsy4ql972k392490bprhd2g-binutils-2.28.1/bin/strip
Using tar found on system at:
/nix/store/kpnj0h0340wd0i86q0523527ikbz62ll-gnutar-1.29/bin/tar
No uhc found
building
Building leksah-server-0.16.2.0...
Preprocessing library leksah-server-0.16.2.0...
[ 1 of 18] Compiling Paths_leksah_server ( dist/build/autogen/Paths_leksah_server.hs, dist/build/Paths_leksah_server.o )
[ 2 of 18] Compiling IDE.Utils.Utils  ( src/IDE/Utils/Utils.hs, dist/build/IDE/Utils/Utils.o )
[ 3 of 18] Compiling IDE.Utils.Tool   ( src/IDE/Utils/Tool.hs, dist/build/IDE/Utils/Tool.o )
[ 4 of 18] Compiling IDE.Utils.VersionUtils ( src/IDE/Utils/VersionUtils.hs, dist/build/IDE/Utils/VersionUtils.o )
[ 5 of 18] Compiling IDE.Utils.Server ( src/IDE/Utils/Server.hs, dist/build/IDE/Utils/Server.o )
[ 6 of 18] Compiling IDE.Utils.CabalProject ( src/IDE/Utils/CabalProject.hs, dist/build/IDE/Utils/CabalProject.o )
[ 7 of 18] Compiling IDE.Utils.CabalPlan ( src/IDE/Utils/CabalPlan.hs, dist/build/IDE/Utils/CabalPlan.o )
[ 8 of 18] Compiling IDE.Core.CTypes  ( src/IDE/Core/CTypes.hs, dist/build/IDE/Core/CTypes.o )
[ 9 of 18] Compiling IDE.Core.Serializable ( src/IDE/Core/Serializable.hs, dist/build/IDE/Core/Serializable.o )
[10 of 18] Compiling IDE.StrippedPrefs ( src/IDE/StrippedPrefs.hs, dist/build/IDE/StrippedPrefs.o )
[11 of 18] Compiling IDE.Utils.FileUtils ( src/IDE/Utils/FileUtils.hs, dist/build/IDE/Utils/FileUtils.o )
[12 of 18] Compiling IDE.Metainfo.SourceDB ( src/IDE/Metainfo/SourceDB.hs, dist/build/IDE/Metainfo/SourceDB.o )
[13 of 18] Compiling IDE.Utils.GHCUtils ( src/IDE/Utils/GHCUtils.hs, dist/build/IDE/Utils/GHCUtils.o )
[14 of 18] Compiling IDE.HeaderParser ( src/IDE/HeaderParser.hs, dist/build/IDE/HeaderParser.o )
[15 of 18] Compiling IDE.Metainfo.InterfaceCollector ( src/IDE/Metainfo/InterfaceCollector.hs, dist/build/IDE/Metainfo/InterfaceCollector.o )

src/IDE/Metainfo/InterfaceCollector.hs:27:1-45: warning: [-Wdodgy-imports]
    Module ‘Module’ does not export ‘PackageKey’
[16 of 18] Compiling IDE.Metainfo.WorkspaceCollector ( src/IDE/Metainfo/WorkspaceCollector.hs, dist/build/IDE/Metainfo/WorkspaceCollector.o )

src/IDE/Metainfo/WorkspaceCollector.hs:43:1-60: warning: [-Wdodgy-imports]
    Module ‘GHC’ does not export ‘PackageKey’
[17 of 18] Compiling IDE.Metainfo.SourceCollectorH ( src/IDE/Metainfo/SourceCollectorH.hs, dist/build/IDE/Metainfo/SourceCollectorH.o )
[18 of 18] Compiling IDE.Metainfo.PackageCollector ( src/IDE/Metainfo/PackageCollector.hs, dist/build/IDE/Metainfo/PackageCollector.o )
Preprocessing executable 'leksah-server' for leksah-server-0.16.2.0...
[1 of 1] Compiling Main             ( main/Collector.hs, dist/build/leksah-server/leksah-server-tmp/Main.dyn_o )
Linking dist/build/leksah-server/leksah-server ...
Preprocessing executable 'leksahecho' for leksah-server-0.16.2.0...
[1 of 1] Compiling Main             ( main/LeksahEcho.hs, dist/build/leksahecho/leksahecho-tmp/Main.dyn_o )
Linking dist/build/leksahecho/leksahecho ...
Preprocessing executable 'leksahtrue' for leksah-server-0.16.2.0...
[1 of 1] Compiling Main             ( main/LeksahTrue.hs, dist/build/leksahtrue/leksahtrue-tmp/Main.dyn_o )
Linking dist/build/leksahtrue/leksahtrue ...
Preprocessing test suite 'test-tool' for leksah-server-0.16.2.0...
[1 of 1] Compiling Main             ( tests/TestTool.hs, dist/build/test-tool/test-tool-tmp/Main.dyn_o )

tests/TestTool.hs:(24,1)-(26,17): warning: [-Wunused-imports]
    The import of ‘toolProcess’
    from module ‘IDE.Utils.Tool’ is redundant

tests/TestTool.hs:27:1-67: warning: [-Wunused-imports]
    The import of ‘System.Process’ is redundant
      except perhaps to import instances from ‘System.Process’
    To import instances alone, use: import System.Process()

tests/TestTool.hs:(28,1)-(30,50): warning: [-Wunused-imports]
    The import of ‘@=?, Test, assertBool, runTestTT’
    from module ‘Test.HUnit’ is redundant

tests/TestTool.hs:(34,1)-(35,61): warning: [-Wunused-imports]
    The import of ‘forkIO, threadDelay’
    from module ‘Control.Concurrent’ is redundant

tests/TestTool.hs:37:1-28: warning: [-Wunused-imports]
    The import of ‘Control.Monad’ is redundant
      except perhaps to import instances from ‘Control.Monad’
    To import instances alone, use: import Control.Monad()

tests/TestTool.hs:(38,1)-(39,53): warning: [-Wunused-imports]
    The import of ‘System.Log.Logger’ is redundant
      except perhaps to import instances from ‘System.Log.Logger’
    To import instances alone, use: import System.Log.Logger()

tests/TestTool.hs:40:1-32: warning: [-Wunused-imports]
    The import of ‘System.Log’ is redundant
      except perhaps to import instances from ‘System.Log’
    To import instances alone, use: import System.Log()

tests/TestTool.hs:46:1-5: warning: [-Wmissing-signatures]
    Top-level binding with no type signature:
      check :: [ToolOutput] -> [ToolOutput] -> IO ()

tests/TestTool.hs:56:1-8: warning: [-Wmissing-signatures]
    Top-level binding with no type signature:
      runTests :: GHC.MVar.MVar (Maybe (IO a)) -> IO ()

tests/TestTool.hs:61:18-21: warning: [-Wname-shadowing]
    This binding for ‘test’ shadows the existing binding
      imported from ‘Test.HUnit’ at tests/TestTool.hs:30:28-39
      (and originally defined in ‘Test.HUnit.Base’)

tests/TestTool.hs:62:17-20: warning: [-Wunused-do-bind]
    A do-notation statement discarded a result of type ‘a’
    Suppress this warning by saying ‘_ <- test’

tests/TestTool.hs:66:1-8: warning: [-Wmissing-signatures]
    Top-level binding with no type signature:
      sendTest :: Control.Monad.IO.Class.MonadIO m =>
                  GHC.MVar.MVar (Maybe a) -> a -> m ()

tests/TestTool.hs:66:19-22: warning: [-Wname-shadowing]
    This binding for ‘test’ shadows the existing binding
      imported from ‘Test.HUnit’ at tests/TestTool.hs:30:28-39
      (and originally defined in ‘Test.HUnit.Base’)

tests/TestTool.hs:69:1-11: warning: [-Wmissing-signatures]
    Top-level binding with no type signature:
      doneTesting :: Control.Monad.IO.Class.MonadIO m =>
                     GHC.MVar.MVar (Maybe a) -> m ()

tests/TestTool.hs:72:1-5: warning: [-Wmissing-signatures]
    Top-level binding with no type signature: tests :: String -> Test

tests/TestTool.hs:236:30-37: warning: [-Wname-shadowing]
    This binding for ‘failures’ shadows the existing binding
      imported from ‘Test.HUnit’ at tests/TestTool.hs:29:40-49
      (and originally defined in ‘Test.HUnit.Base’)
Linking dist/build/test-tool/test-tool ...
running tests
Running 1 test suites...
Test suite test-tool: RUNNING...
### Failure in src/IDE/Utils/CabalPlan.hs:37: expression `:{
  eitherDecodeStrict' (BS.pack
    "{\
    \   \"cabal-lib-version\" : \"1.24.0.0\",\
    \   \"cabal-version\" : \"1.24.0.0\",\
    \   \"install-plan\" : [\
    \      {\
    \         \"type\" : \"pre-existing\",\
    \         \"components\" : {\
    \            \"lib\" : {\
    \               \"depends\" : [\
    \                  \"array-0.5.1.1\",\
    \                  \"base-4.9.0.0\"\
    \               ]\
    \            }\
    \         },\
    \         \"id\" : \"Cabal-1.24.0.0\"\
    \      },\
    \      {\
    \         \"id\" : \"QuickCheck-2.9.1-ec9a1c39266d75ed2c3314f6e846a8f11853eff43fc45db79c7256d9bfd94602\",\
    \         \"components\" : {\
    \            \"lib\" : {\
    \               \"depends\" : [\
    \                  \"base-4.9.0.0\",\
    \                  \"containers-0.5.7.1\",\
    \                  \"random-1.1-fe6ccf72ebd63a2d68570bb45b42bd08df5570c6151cb9af54907d40ef9af454\"\
    \               ]\
    \            }\
    \         },\
    \         \"flags\" : {\
    \            \"templatehaskell\" : true\
    \         },\
    \         \"type\" : \"configured\"\
    \      }\
    \   ]\
    \}") :: Either String PlanJson
:}'
expected: Right (PlanJson {pjPlan = [PlanItem {piId = "Cabal-1.24.0.0", piType = "pre-existing", piComps = [(ComponentLib,fromList ["array-0.5.1.1","base-4.9.0.0"])]},PlanItem {piId = "QuickCheck-2.9.1-ec9a1c39266d75ed2c3314f6e846a8f11853eff43fc45db79c7256d9bfd94602", piType = "configured", piComps = [(ComponentLib,fromList ["base-4.9.0.0","containers-0.5.7.1","random-1.1-fe6ccf72ebd63a2d68570bb45b42bd08df5570c6151cb9af54907d40ef9af454"])]}]})
 but got: Right (PlanJson {pjPlan = [PlanItem {piId = "Cabal-1.24.0.0", piType = "pre-existing", piComps = [(ComponentLib,fromList ["array-0.5.1.1","base-4.9.0.0"])]},PlanItem {piId = "QuickCheck-2.9.1-ec9a1c39266d75ed2c3314f6e846a8f11853eff43fc45db79c7256d9bfd94602", piType = "configured", piComps = [(ComponentLib,fromList ["base-4.9.0.0","containers-0.5.7.1","random-1.1-fe6ccf72ebd63a2d68570bb45b42bd08df5570c6151cb9af54907d40ef9af454"])]}], pjCabalVersion = "1.24.0.0", pjCabalLibVersion = "1.24.0.0", pjCompilerId = Nothing, pjOS = Nothing, pjArch = Nothing})
Examples: 6  Tried: 6  Errors: 0  Failures: 1
Test suite test-tool: FAIL
Test suite logged to: dist/test/leksah-server-0.16.2.0-test-tool.log
0 of 1 test suites (0 of 1 test cases) passed.
builder for ‘/nix/store/12f1ybxsxw67wpgqrqypdipzbfscnj7d-leksah-server-0.16.2.0.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/spxdcdaxx8z61wxv1kypa9pi92km5rmf-ghc-8.0.2-with-packages.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/sm42a12ccmcjwny7lgmlip7gf64nfxva-leksah.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/sm42a12ccmcjwny7lgmlip7gf64nfxva-leksah.drv’ failed

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a bug in the test suite. It's receiving a more elaborate install plan from Cabal than it expected, i.e. there are additional fields added into it. Maybe our version of Leksah doesn't work with Cabal 1.24.0.0? I'd ask upstream about this issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems leksahs tests where disabled, as they are currently broken: leksah/leksah@2fb3da7

I will update the PR to disable tests, too.

@peti peti removed the request for review from edolstra October 18, 2017 06:33
@flokli
Copy link
Contributor Author

flokli commented Oct 23, 2017

jailbreaking ltk and leksah for the haskell-gi-overloading dependency and disabling tests for leksah-server did the trick. I was able to successfully built and ran leksah.

@peti, can you have a look, too?

@@ -973,4 +973,13 @@ self: super: {
amqp-utils = super.amqp-utils.override {
amqp = dontCheck super.amqp_0_18_1;
};

# depends on haskell-gi-overloading-0.0
ltk = doJailbreak super.ltk;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haskell-gi-overloading-0.0 is a special magic dependency that implies a certain build configuration in which some gi overloading feature is disabled. I'm pretty sure that you don't want to jailbreak that. Instead, you should probably just pass the proper version (which we have in hackage-packages.nix).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I didn't do much haskell at all so far, so this all is magic to me :-D

I only came across this when changing an input much further down the chain, which triggered a rebuild of ltk and all the things behind it.

Building ltk seems to have always failed, due to the package from hackage depending on haskell-gi-overloading, which seems to not satisfy haskell-gi-overloading-0.0, which is why I jailbreaked it to use 0.1

Using both haskell-gi-overloading-0.0 and haskell-gi-overloading-0.1 fails when building leksah, see comment 2 of this PR, so that's why I jailbreaked leksah too, to build both with 0.1, which apparently makes leksah build and run.

So what would be the right way to fix this? Overriding libraryHaskellDepends for package ltk to the 0.1 version? I fear this will still lead to similar problems as in comment 2.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I committed a proper fix in d2f9dc4.

ltk = doJailbreak super.ltk;

# tests fail
leksah-server = dontCheck super.leksah-server;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I very much doubt that leksah is going work after this. The test suite fails because leksah has broken assumptions about the underlying Cabal library. Those won't magically fix themselves by disabling the test suite. I would REALLY recommend that you report this issue upstream.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I opened leksah/leksah-server#15. Also tried leksah/leksah-server@c9bec90, but output still looks the same after applying this patch.

@peti peti closed this in d2f9dc4 Oct 23, 2017
@ghost
Copy link

ghost commented Oct 27, 2017

@peti can you please cherry-pick your fix into the release-17.09 branch, please? I have this issue described here right now, while running 17.09

That would be great :)

peti added a commit that referenced this pull request Oct 27, 2017
@peti
Copy link
Member

peti commented Oct 27, 2017

I pushed 8838d8b (but didn't test whether that fix alone suffices to make ltk compile).

@flokli flokli deleted the ltk branch October 28, 2017 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants