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

qutebrowser: patch scripts #37316

Merged
merged 1 commit into from Sep 5, 2018
Merged

qutebrowser: patch scripts #37316

merged 1 commit into from Sep 5, 2018

Conversation

rnhmjoj
Copy link
Contributor

@rnhmjoj rnhmjoj commented Mar 18, 2018

Motivation for this change

Fix #37307

Things done
  • Tested using sandboxing (nix.useSandbox on 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 (none)
  • Tested execution of all scripts
  • Fits CONTRIBUTING.md.

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: qutebrowser

Partial log (click to expand)

make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile.ANGLE.DerivedSources:428: generated/ExpressionParser_tab.h] Illegal instruction: 4
make[2]: Leaving directory '/private/tmp/nix-build-qtwebkit-5.9.1.drv-0/qtwebkit-opensource-src-5.9.1/Source/ThirdParty/ANGLE'
make[1]: *** [Makefile.ANGLE:42: sub-DerivedSources-pri-make_first-ordered] Error 2
make[1]: Leaving directory '/private/tmp/nix-build-qtwebkit-5.9.1.drv-0/qtwebkit-opensource-src-5.9.1/Source/ThirdParty/ANGLE'
make: *** [Makefile:139: sub-Source-ThirdParty-ANGLE-ANGLE-pro-make_first-ordered] Error 2
builder for '/nix/store/wkcb7jjhkc1r5r2283rcxjy3viq09awl-qtwebkit-5.9.1.drv' failed with exit code 2
cannot build derivation '/nix/store/b76r57wxpx9yvncnqq5am74yipr7ragw-python3.6-PyQt-5.10.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/486rysrnlms7blkz2786p8wwrimyvmwn-qutebrowser-1.2.0.drv': 2 dependencies couldn't be built
�[31;1merror:�[0m build of '/nix/store/486rysrnlms7blkz2786p8wwrimyvmwn-qutebrowser-1.2.0.drv' failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: qutebrowser

Partial log (click to expand)

/nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/bin/moc -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_LOCATION_LIB -DQT_POSITIONING_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB --include .moc/moc_predefs.h -I/nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/mkspecs/linux-g++ -I/build/qtlocation-everywhere-src-5.10.1/src/plugins/geoservices/mapbox -I/build/qtlocation-everywhere-src-5.10.1/include/QtLocation/5.10.1 -I/build/qtlocation-everywhere-src-5.10.1/include/QtLocation/5.10.1/QtLocation -I/build/qtlocation-everywhere-src-5.10.1/include/QtPositioning/5.10.1 -I/build/qtlocation-everywhere-src-5.10.1/include/QtPositioning/5.10.1/QtPositioning -I/build/qtlocation-everywhere-src-5.10.1/include -I/build/qtlocation-everywhere-src-5.10.1/include/QtLocation -I/build/qtlocation-everywhere-src-5.10.1/include/QtPositioning -I/nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include/QtQuick/5.10.1 -I/nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include/QtQuick/5.10.1/QtQuick -I/nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtGui/5.10.1 -I/nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtGui/5.10.1/QtGui -I/nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include/QtQuick -I/nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtGui -I/nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include/QtQml/5.10.1 -I/nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include/QtQml/5.10.1/QtQml -I/nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtCore/5.10.1 -I/nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtCore/5.10.1/QtCore -I/nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include/QtQml -I/nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtNetwork -I/nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtCore -I/nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include -I/nix/store/3nzibhrsw626ql2bmw2npfzy644k1clz-libxml2-2.9.7-dev/include -I/nix/store/yrygc9ipvqypm06k9465vy413qn347q5-zlib-1.2.11-dev/include -I/nix/store/1bdy86jywzaifc9409lp3wkbjcdbvm1q-libxslt-1.1.32-dev/include -I/nix/store/nv76hmz100r6g9jypfci53wljz9iz58c-openssl-1.0.2n-dev/include -I/nix/store/lbkhf99h6i0z1bpcf4hx43rbkr5j17h0-sqlite-3.22.0-dev/include -I/nix/store/1f2x78abpasnb4mpv27ngldsnmzcv4lj-harfbuzz-icu-1.7.5-dev/include -I/nix/store/z0wlc0jmgd77gk3yny3p2ix0xz9s002g-graphite2-1.3.6/include -I/nix/store/ka77w2cavr8l0b7l5nn7sirm2j64373m-icu4c-59.1-dev/include -I/nix/store/bcgisyyip4xlr8gwmmfannlcqlfx1if4-harfbuzz-1.7.5-dev/include -I/nix/store/k364fgx3cvkccqwj8w76ncgj5m0rrkx1-libjpeg-turbo-1.5.3-dev/include -I/nix/store/sdnn3wmgb5j204dv76ns76p7bxlnrj87-libpng-apng-1.6.34-dev/include -I/nix/store/a3vqnygcfp0q6qkjmn92b55fhlqpn993-libtiff-4.0.9-dev/include -I/nix/store/fs8s20b2rvaaxcdxy1i6l09gmwv45chc-xz-5.2.3-dev/include -I/nix/store/6bw7k6nnznl4wf43xiaipnw4hwnid9q4-pcre2-10.23-dev/include -I/nix/store/bqrbqgadrr4z52wa1i3jc5sjrmmnaxya-dbus-1.10.24-dev/include -I/nix/store/6wy7vk0db74mw78zqrfdwyl1bpfx0k9h-expat-2.2.5-dev/include -I/nix/store/0v1df0w5y9hh1c522662wj0xgwsdc054-glib-2.54.3-dev/include -I/nix/store/b7h90f1k4c8f4frra5fdr3s4c9wiy7b5-libffi-3.2.1-dev/include -I/nix/store/354nxsqyzqp810lqwd5ya7wdglys10p2-glibc-iconv-2.26-131/include -I/nix/store/b95rgfxnv3iscdr2g8w2xi3lqbgqcirq-systemd-237-dev/include -I/nix/store/qnlg8vlagia64i69dpjakpnxigxgaagy-fontconfig-2.12.1-dev/include -I/nix/store/xy79vwmf7k14a75gkzwak1pdikpfqd0b-freetype-2.7.1-dev/include -I/nix/store/9x4ndncisys3wxk0q0v6mvpvxlyppdg2-bzip2-1.0.6.0.1-dev/include -I/nix/store/z9a2n3fhz4wv8l08wq02fkzz0m1mcmwz-libX11-1.6.5-dev/include -I/nix/store/fkphp2sqy9v0hr28vz46qddqj4nw73bi-libxcb-1.12-dev/include -I/nix/store/zy2saa839zjzvz5iq3c1hnqryz7viar5-xproto-7.0.31/include -I/nix/store/nyakxaqyzz4si2pkhpglrvydfdxyryjy-kbproto-1.0.7/include -I/nix/store/9r1kk7jf9y5khwn4cj5ynyw0l2r0lnhp-libXcomposite-0.4.4-dev/include -I/nix/store/lh68zla8l0sw1nzs9ssr3iazi5z8j8j9-libXfixes-5.0.2-dev/include -I/nix/store/k8m2yd9jrcbln8pbr068fxy1gw5vjphi-fixesproto-5.0/include -I/nix/store/9qrhci98aa0shxfya7irah9rvmzal7d6-xextproto-7.3.0/include -I/nix/store/hi9sd595incpppsikiri90y87y7n037f-compositeproto-0.4.2/include -I/nix/store/db5fyvz9fkdqwkbg1jwgk6pd7hi6p051-libXext-1.3.3-dev/include -I/nix/store/dixfva0zs2wks578vr03fa0p4kdccjzg-libXau-1.0.8-dev/include -I/nix/store/qdhscdxyql210m2fg9mv6slip90q0wyb-libXi-1.7.9-dev/include -I/nix/store/98j8a94zfp4qlq6qhv50xm9nm8lnyk00-inputproto-2.3.2/include -I/nix/store/j6wi2dx7agqfawsdphiljamin01awmkc-libXrender-0.9.10-dev/include -I/nix/store/abs6ayzc4yibqxld7kgs4mjfds3sgff3-renderproto-0.11.1/include -I/nix/store/h0qz9wirsibfkkx9k3ds8mwapzagbm6j-libxkbcommon-0.8.0-dev/include -I/nix/store/vww7qq40yxgsdljdip7rdwkf15j890n0-xcb-util-0.4.0-dev/include -I/nix/store/h8c09mh0lsgk5dk3a73p80acpw4bbzir-xcb-util-image-0.4.0-dev/include -I/nix/store/ppw99rm7nhlig7h47kbd660h696miikk-xcb-util-keysyms-0.4.0-dev/include -I/nix/store/23gjav0yzqm56yqk2byyiq05kqd8acpa-xcb-util-renderutil-0.3.9-dev/include -I/nix/store/x5j17xfrz9divhivv2c9v3n4hiwhrxha-xcb-util-wm-0.4.1-dev/include -I/nix/store/09fddnxbcyp7mixz7lzcc40hvzljgnyz-mesa-noglu-17.3.6-dev/include -I/nix/store/7r32hxfa1fvddvkz0hclmjx1ka2c6lvf-libXdamage-1.1.4-dev/include -I/nix/store/hbwjcigz4w2xjkcpkh1yq745xa4pdjd3-damageproto-1.2.1/include -I/nix/store/kg21grqhmc7n7z36hjs83w9z52k5x03c-libXxf86vm-1.1.4-dev/include -I/nix/store/wvs0gc4q11cl6rivkzp3b2ynid4v7x5b-xf86vidmodeproto-2.3.1/include -I/nix/store/340dayycc06pl9z2hncys57dq64ybgi2-libdrm-2.4.90-dev/include -I/nix/store/jnq54hk0ral9yfxlx73sv507zavsm33i-qtmultimedia-5.10.1-dev/include -I/nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include -I/nix/store/ksmdva38ilkaan1n9kx3b7n4b3ra4cf7-qtsvg-5.10.1-dev/include -I/nix/store/jynw5isbncxrna1qd0chl9xhiyasfmfm-qtxmlpatterns-5.10.1-dev/include -I/nix/store/f2vv1d0f2lfprkadw567iwvndpqvnrhb-gcc-7.3.0/include/c++/7.3.0 -I/nix/store/f2vv1d0f2lfprkadw567iwvndpqvnrhb-gcc-7.3.0/include/c++/7.3.0/aarch64-unknown-linux-gnu -I/nix/store/f2vv1d0f2lfprkadw567iwvndpqvnrhb-gcc-7.3.0/include/c++/7.3.0/backward -I/nix/store/f2vv1d0f2lfprkadw567iwvndpqvnrhb-gcc-7.3.0/lib/gcc/aarch64-unknown-linux-gnu/7.3.0/include -I/nix/store/f2vv1d0f2lfprkadw567iwvndpqvnrhb-gcc-7.3.0/include -I/nix/store/f2vv1d0f2lfprkadw567iwvndpqvnrhb-gcc-7.3.0/lib/gcc/aarch64-unknown-linux-gnu/7.3.0/include-fixed -I/nix/store/g72ikb2kyw3qyydpr171w01n877sy6c8-glibc-2.26-131-dev/include qgeomapreplymapbox.h -o .moc/moc_qgeomapreplymapbox.cpp
g++ -c -pipe -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_LOCATION_LIB -DQT_POSITIONING_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../../../../include/QtLocation/5.10.1 -I../../../../include/QtLocation/5.10.1/QtLocation -I../../../../include/QtPositioning/5.10.1 -I../../../../include/QtPositioning/5.10.1/QtPositioning -I../../../../include -I../../../../include/QtLocation -I../../../../include/QtPositioning -isystem /nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include/QtQuick/5.10.1 -isystem /nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include/QtQuick/5.10.1/QtQuick -isystem /nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtGui/5.10.1 -isystem /nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtGui/5.10.1/QtGui -isystem /nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include/QtQuick -isystem /nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtGui -isystem /nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include/QtQml/5.10.1 -isystem /nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include/QtQml/5.10.1/QtQml -isystem /nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtCore/5.10.1 -isystem /nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtCore/5.10.1/QtCore -isystem /nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include/QtQml -isystem /nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtNetwork -isystem /nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtCore -I.moc -isystem /nix/store/09fddnxbcyp7mixz7lzcc40hvzljgnyz-mesa-noglu-17.3.6-dev/include -I/nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/mkspecs/linux-g++ -o .obj/moc_qgeomapreplymapbox.o .moc/moc_qgeomapreplymapbox.cpp
/nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/bin/moc -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_LOCATION_LIB -DQT_POSITIONING_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB --include .moc/moc_predefs.h -I/nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/mkspecs/linux-g++ -I/build/qtlocation-everywhere-src-5.10.1/src/plugins/geoservices/mapbox -I/build/qtlocation-everywhere-src-5.10.1/include/QtLocation/5.10.1 -I/build/qtlocation-everywhere-src-5.10.1/include/QtLocation/5.10.1/QtLocation -I/build/qtlocation-everywhere-src-5.10.1/include/QtPositioning/5.10.1 -I/build/qtlocation-everywhere-src-5.10.1/include/QtPositioning/5.10.1/QtPositioning -I/build/qtlocation-everywhere-src-5.10.1/include -I/build/qtlocation-everywhere-src-5.10.1/include/QtLocation -I/build/qtlocation-everywhere-src-5.10.1/include/QtPositioning -I/nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include/QtQuick/5.10.1 -I/nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include/QtQuick/5.10.1/QtQuick -I/nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtGui/5.10.1 -I/nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtGui/5.10.1/QtGui -I/nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include/QtQuick -I/nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtGui -I/nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include/QtQml/5.10.1 -I/nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include/QtQml/5.10.1/QtQml -I/nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtCore/5.10.1 -I/nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtCore/5.10.1/QtCore -I/nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include/QtQml -I/nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtNetwork -I/nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtCore -I/nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include -I/nix/store/3nzibhrsw626ql2bmw2npfzy644k1clz-libxml2-2.9.7-dev/include -I/nix/store/yrygc9ipvqypm06k9465vy413qn347q5-zlib-1.2.11-dev/include -I/nix/store/1bdy86jywzaifc9409lp3wkbjcdbvm1q-libxslt-1.1.32-dev/include -I/nix/store/nv76hmz100r6g9jypfci53wljz9iz58c-openssl-1.0.2n-dev/include -I/nix/store/lbkhf99h6i0z1bpcf4hx43rbkr5j17h0-sqlite-3.22.0-dev/include -I/nix/store/1f2x78abpasnb4mpv27ngldsnmzcv4lj-harfbuzz-icu-1.7.5-dev/include -I/nix/store/z0wlc0jmgd77gk3yny3p2ix0xz9s002g-graphite2-1.3.6/include -I/nix/store/ka77w2cavr8l0b7l5nn7sirm2j64373m-icu4c-59.1-dev/include -I/nix/store/bcgisyyip4xlr8gwmmfannlcqlfx1if4-harfbuzz-1.7.5-dev/include -I/nix/store/k364fgx3cvkccqwj8w76ncgj5m0rrkx1-libjpeg-turbo-1.5.3-dev/include -I/nix/store/sdnn3wmgb5j204dv76ns76p7bxlnrj87-libpng-apng-1.6.34-dev/include -I/nix/store/a3vqnygcfp0q6qkjmn92b55fhlqpn993-libtiff-4.0.9-dev/include -I/nix/store/fs8s20b2rvaaxcdxy1i6l09gmwv45chc-xz-5.2.3-dev/include -I/nix/store/6bw7k6nnznl4wf43xiaipnw4hwnid9q4-pcre2-10.23-dev/include -I/nix/store/bqrbqgadrr4z52wa1i3jc5sjrmmnaxya-dbus-1.10.24-dev/include -I/nix/store/6wy7vk0db74mw78zqrfdwyl1bpfx0k9h-expat-2.2.5-dev/include -I/nix/store/0v1df0w5y9hh1c522662wj0xgwsdc054-glib-2.54.3-dev/include -I/nix/store/b7h90f1k4c8f4frra5fdr3s4c9wiy7b5-libffi-3.2.1-dev/include -I/nix/store/354nxsqyzqp810lqwd5ya7wdglys10p2-glibc-iconv-2.26-131/include -I/nix/store/b95rgfxnv3iscdr2g8w2xi3lqbgqcirq-systemd-237-dev/include -I/nix/store/qnlg8vlagia64i69dpjakpnxigxgaagy-fontconfig-2.12.1-dev/include -I/nix/store/xy79vwmf7k14a75gkzwak1pdikpfqd0b-freetype-2.7.1-dev/include -I/nix/store/9x4ndncisys3wxk0q0v6mvpvxlyppdg2-bzip2-1.0.6.0.1-dev/include -I/nix/store/z9a2n3fhz4wv8l08wq02fkzz0m1mcmwz-libX11-1.6.5-dev/include -I/nix/store/fkphp2sqy9v0hr28vz46qddqj4nw73bi-libxcb-1.12-dev/include -I/nix/store/zy2saa839zjzvz5iq3c1hnqryz7viar5-xproto-7.0.31/include -I/nix/store/nyakxaqyzz4si2pkhpglrvydfdxyryjy-kbproto-1.0.7/include -I/nix/store/9r1kk7jf9y5khwn4cj5ynyw0l2r0lnhp-libXcomposite-0.4.4-dev/include -I/nix/store/lh68zla8l0sw1nzs9ssr3iazi5z8j8j9-libXfixes-5.0.2-dev/include -I/nix/store/k8m2yd9jrcbln8pbr068fxy1gw5vjphi-fixesproto-5.0/include -I/nix/store/9qrhci98aa0shxfya7irah9rvmzal7d6-xextproto-7.3.0/include -I/nix/store/hi9sd595incpppsikiri90y87y7n037f-compositeproto-0.4.2/include -I/nix/store/db5fyvz9fkdqwkbg1jwgk6pd7hi6p051-libXext-1.3.3-dev/include -I/nix/store/dixfva0zs2wks578vr03fa0p4kdccjzg-libXau-1.0.8-dev/include -I/nix/store/qdhscdxyql210m2fg9mv6slip90q0wyb-libXi-1.7.9-dev/include -I/nix/store/98j8a94zfp4qlq6qhv50xm9nm8lnyk00-inputproto-2.3.2/include -I/nix/store/j6wi2dx7agqfawsdphiljamin01awmkc-libXrender-0.9.10-dev/include -I/nix/store/abs6ayzc4yibqxld7kgs4mjfds3sgff3-renderproto-0.11.1/include -I/nix/store/h0qz9wirsibfkkx9k3ds8mwapzagbm6j-libxkbcommon-0.8.0-dev/include -I/nix/store/vww7qq40yxgsdljdip7rdwkf15j890n0-xcb-util-0.4.0-dev/include -I/nix/store/h8c09mh0lsgk5dk3a73p80acpw4bbzir-xcb-util-image-0.4.0-dev/include -I/nix/store/ppw99rm7nhlig7h47kbd660h696miikk-xcb-util-keysyms-0.4.0-dev/include -I/nix/store/23gjav0yzqm56yqk2byyiq05kqd8acpa-xcb-util-renderutil-0.3.9-dev/include -I/nix/store/x5j17xfrz9divhivv2c9v3n4hiwhrxha-xcb-util-wm-0.4.1-dev/include -I/nix/store/09fddnxbcyp7mixz7lzcc40hvzljgnyz-mesa-noglu-17.3.6-dev/include -I/nix/store/7r32hxfa1fvddvkz0hclmjx1ka2c6lvf-libXdamage-1.1.4-dev/include -I/nix/store/hbwjcigz4w2xjkcpkh1yq745xa4pdjd3-damageproto-1.2.1/include -I/nix/store/kg21grqhmc7n7z36hjs83w9z52k5x03c-libXxf86vm-1.1.4-dev/include -I/nix/store/wvs0gc4q11cl6rivkzp3b2ynid4v7x5b-xf86vidmodeproto-2.3.1/include -I/nix/store/340dayycc06pl9z2hncys57dq64ybgi2-libdrm-2.4.90-dev/include -I/nix/store/jnq54hk0ral9yfxlx73sv507zavsm33i-qtmultimedia-5.10.1-dev/include -I/nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include -I/nix/store/ksmdva38ilkaan1n9kx3b7n4b3ra4cf7-qtsvg-5.10.1-dev/include -I/nix/store/jynw5isbncxrna1qd0chl9xhiyasfmfm-qtxmlpatterns-5.10.1-dev/include -I/nix/store/f2vv1d0f2lfprkadw567iwvndpqvnrhb-gcc-7.3.0/include/c++/7.3.0 -I/nix/store/f2vv1d0f2lfprkadw567iwvndpqvnrhb-gcc-7.3.0/include/c++/7.3.0/aarch64-unknown-linux-gnu -I/nix/store/f2vv1d0f2lfprkadw567iwvndpqvnrhb-gcc-7.3.0/include/c++/7.3.0/backward -I/nix/store/f2vv1d0f2lfprkadw567iwvndpqvnrhb-gcc-7.3.0/lib/gcc/aarch64-unknown-linux-gnu/7.3.0/include -I/nix/store/f2vv1d0f2lfprkadw567iwvndpqvnrhb-gcc-7.3.0/include -I/nix/store/f2vv1d0f2lfprkadw567iwvndpqvnrhb-gcc-7.3.0/lib/gcc/aarch64-unknown-linux-gnu/7.3.0/include-fixed -I/nix/store/g72ikb2kyw3qyydpr171w01n877sy6c8-glibc-2.26-131-dev/include qgeofiletilecachemapbox.h -o .moc/moc_qgeofiletilecachemapbox.cpp
g++ -c -pipe -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Wno-stringop-overflow -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_LOCATION_LIB -DQT_POSITIONING_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../../../../include/QtLocation/5.10.1 -I../../../../include/QtLocation/5.10.1/QtLocation -I../../../../include/QtPositioning/5.10.1 -I../../../../include/QtPositioning/5.10.1/QtPositioning -I../../../../include -I../../../../include/QtLocation -I../../../../include/QtPositioning -isystem /nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include/QtQuick/5.10.1 -isystem /nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include/QtQuick/5.10.1/QtQuick -isystem /nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtGui/5.10.1 -isystem /nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtGui/5.10.1/QtGui -isystem /nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include/QtQuick -isystem /nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtGui -isystem /nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include/QtQml/5.10.1 -isystem /nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include/QtQml/5.10.1/QtQml -isystem /nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtCore/5.10.1 -isystem /nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtCore/5.10.1/QtCore -isystem /nix/store/xna6cmhkdl2yzpdg2k10p8jm1x7k7pzc-qtdeclarative-5.10.1-dev/include/QtQml -isystem /nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtNetwork -isystem /nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/include/QtCore -I.moc -isystem /nix/store/09fddnxbcyp7mixz7lzcc40hvzljgnyz-mesa-noglu-17.3.6-dev/include -I/nix/store/y8a6bbf9n3zx70q3bpy9za4b9l5ckqyc-qtbase-5.10.1-dev/mkspecs/linux-g++ -o .obj/moc_qgeofiletilecachemapbox.o .moc/moc_qgeofiletilecachemapbox.cpp
building of '/nix/store/prbzppz8ylk9hypgqw6vlycn094k4hrq-qtlocation-5.10.1.drv' timed out after 3600 seconds
cannot build derivation '/nix/store/js8lmpmj03g9kk89xj9pv4rrbg88rjm4-qtwebengine-5.10.1.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/860bx1842lzhv844w363m4cch0jbfli4-qtwebkit-5.9.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/7jqg343ls0wbcj56kb1pjgl83fpaa8yd-python3.6-PyQt-5.10.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/v508klbhpap70g1hka2qnb595id5zj8i-qutebrowser-1.2.0.drv': 3 dependencies couldn't be built
�[31;1merror:�[0m build of '/nix/store/v508klbhpap70g1hka2qnb595id5zj8i-qutebrowser-1.2.0.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: qutebrowser

Partial log (click to expand)

/nix/store/b0xflafb31cxvb0ayjndaqzvsb768z75-qutebrowser-1.2.0/share/qutebrowser/userscripts/view_in_mpv: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/q1g0rl8zfmz7r371fp5p42p4acmv297d-bash-4.4-p19/bin/bash"
/nix/store/b0xflafb31cxvb0ayjndaqzvsb768z75-qutebrowser-1.2.0/share/qutebrowser/userscripts/cast: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/q1g0rl8zfmz7r371fp5p42p4acmv297d-bash-4.4-p19/bin/bash"
/nix/store/b0xflafb31cxvb0ayjndaqzvsb768z75-qutebrowser-1.2.0/share/qutebrowser/userscripts/readability: interpreter directive changed from "/usr/bin/env python" to "/nix/store/b8gd0cbvkm59x8flbc53bvsvmskyig5a-python3-3.6.4/bin/python"
/nix/store/b0xflafb31cxvb0ayjndaqzvsb768z75-qutebrowser-1.2.0/share/qutebrowser/scripts/dictcli.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/b8gd0cbvkm59x8flbc53bvsvmskyig5a-python3-3.6.4/bin/python3"
/nix/store/b0xflafb31cxvb0ayjndaqzvsb768z75-qutebrowser-1.2.0/share/qutebrowser/scripts/keytester.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/b8gd0cbvkm59x8flbc53bvsvmskyig5a-python3-3.6.4/bin/python3"
/nix/store/b0xflafb31cxvb0ayjndaqzvsb768z75-qutebrowser-1.2.0/share/qutebrowser/scripts/open_url_in_instance.sh: interpreter directive changed from "/bin/bash" to "/nix/store/q1g0rl8zfmz7r371fp5p42p4acmv297d-bash-4.4-p19/bin/bash"
/nix/store/b0xflafb31cxvb0ayjndaqzvsb768z75-qutebrowser-1.2.0/share/qutebrowser/scripts/importer.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/b8gd0cbvkm59x8flbc53bvsvmskyig5a-python3-3.6.4/bin/python3"
checking for references to /tmp/nix-build-qutebrowser-1.2.0.drv-0 in /nix/store/b0xflafb31cxvb0ayjndaqzvsb768z75-qutebrowser-1.2.0...
wrapping `/nix/store/b0xflafb31cxvb0ayjndaqzvsb768z75-qutebrowser-1.2.0/bin/.qutebrowser-wrapped'...
postPatchMkspecs

@magnetophon
Copy link
Member

@rnhmjoj
Thanks for doing this.

I tried to run

/nix/store/h7x5r5rsciscgwp86lnjyh3cyg77h42g-qutebrowser-1.2.0/share/qutebrowser/scripts/dictcli.py install en-US

but I got:

Installing en-US: English (United States)
/nix/store/cv836804w0lcbmpan1aljzlzq6v3f66z-qtbase-5.10.1/qtwebengine_dictionaries does not exist, creating the directory
Traceback (most recent call last):
  File "/nix/store/h7x5r5rsciscgwp86lnjyh3cyg77h42g-qutebrowser-1.2.0/share/qutebrowser/scripts/dictcli.py", line 281, in <module>
    main()
  File "/nix/store/h7x5r5rsciscgwp86lnjyh3cyg77h42g-qutebrowser-1.2.0/share/qutebrowser/scripts/dictcli.py", line 275, in main
    install(filter_languages(languages, args.language))
  File "/nix/store/h7x5r5rsciscgwp86lnjyh3cyg77h42g-qutebrowser-1.2.0/share/qutebrowser/scripts/dictcli.py", line 232, in install
    install_lang(lang)
  File "/nix/store/h7x5r5rsciscgwp86lnjyh3cyg77h42g-qutebrowser-1.2.0/share/qutebrowser/scripts/dictcli.py", line 220, in install_lang
    os.makedirs(spell.dictionary_dir())
  File "/nix/store/p1bp0kpmxi7nzrla7n7c4waqic0a2myk-python3-3.6.4/lib/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)
OSError: [Errno 30] Read-only file system: '/nix/store/cv836804w0lcbmpan1aljzlzq6v3f66z-qtbase-5.10.1/qtwebengine_dictionaries'

Did I run it correctly?
I manually copy-pasted your patch, and might have messed that up.

@rnhmjoj
Copy link
Contributor Author

rnhmjoj commented Mar 19, 2018

No, you did nothing wrong. I patched the scripts and they now run but this one is trying to write into the nix store. I'm not sure how to deal with this.

@rnhmjoj
Copy link
Contributor Author

rnhmjoj commented Mar 20, 2018

The path it tries to write to is QLibraryInfo::DataPath. I'm trying to patch this to use $XDG_DATA_HOME instead.

@rnhmjoj rnhmjoj force-pushed the qutefix branch 2 times, most recently from 1166714 to fe13916 Compare March 20, 2018 20:26
@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: qutebrowser

Partial log (click to expand)

make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile.ANGLE.DerivedSources:421: generated/glslang_tab.h] Illegal instruction: 4
make[2]: Leaving directory '/private/tmp/nix-build-qtwebkit-5.9.1.drv-0/qtwebkit-opensource-src-5.9.1/Source/ThirdParty/ANGLE'
make[1]: *** [Makefile.ANGLE:42: sub-DerivedSources-pri-make_first-ordered] Error 2
make[1]: Leaving directory '/private/tmp/nix-build-qtwebkit-5.9.1.drv-0/qtwebkit-opensource-src-5.9.1/Source/ThirdParty/ANGLE'
make: *** [Makefile:139: sub-Source-ThirdParty-ANGLE-ANGLE-pro-make_first-ordered] Error 2
builder for '/nix/store/lx504v5zpkyx3zqa4w75pvbk2zfn25mq-qtwebkit-5.9.1.drv' failed with exit code 2
cannot build derivation '/nix/store/llnnqm3xk8zgicmr4m84h3yjgixxr7xd-python3.6-PyQt-5.10.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/cgx24c03p30p1kwxsrvja9krafs6if5r-qutebrowser-1.2.0.drv': 2 dependencies couldn't be built
error: build of '/nix/store/cgx24c03p30p1kwxsrvja9krafs6if5r-qutebrowser-1.2.0.drv' failed

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Attempted: qutebrowser

Partial log (click to expand)

[6786/17597] CXX obj/skia/skia/SkRadialGradient.o
[6787/17597] CXX obj/skia/skia/SkTwoPointConicalGradient.o
[6788/17597] CXX obj/skia/skia/SkLinearGradient.o
[6789/17597] CXX obj/skia/skia/SkBase64.o
[6790/17597] CXX obj/skia/skia/SkTwoPointConicalGradient_gpu.o
building of '/nix/store/zvk6gw7arn169jxccw9sxmji9sg8ivlk-qtwebengine-5.10.1.drv' timed out after 3600 seconds
building of '/nix/store/55m2aczrfs7axs3s7nv8w5a0clrcyp8z-qtwebkit-5.9.1.drv' timed out after 3600 seconds
cannot build derivation '/nix/store/br7waf6dvmxvy1p8h29wmava3vwy1j28-python3.6-PyQt-5.10.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/1ab7wnrcwmdsrwfqpmyrfqac0naf8qik-qutebrowser-1.2.0.drv': 1 dependencies couldn't be built
error: build of '/nix/store/1ab7wnrcwmdsrwfqpmyrfqac0naf8qik-qutebrowser-1.2.0.drv' failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: qutebrowser

Partial log (click to expand)

[4396/17378] CXX obj/third_party/icu/bundled_icui18n/collationsettings.o
[4397/17378] CXX obj/third_party/icu/bundled_icui18n/coptccal.o
[4398/17378] CXX obj/third_party/hunspell/hunspell/affentry.o
[4399/17378] CXX obj/third_party/WebKit/Source/platform/wtf/wtf/strtod.o
[4400/17378] CXX obj/third_party/icu/bundled_icui18n/collationsets.o
[4401/17378] CXX obj/third_party/hunspell/hunspell/phonet.o
building of '/nix/store/irmwj8p8xq4j11jwqjw0xvsdgv6hxhwp-qtwebengine-5.10.1.drv' timed out after 3600 seconds
cannot build derivation '/nix/store/zj2h89iwzl5ic1jzwy2qpgflz6902q7b-python3.6-PyQt-5.10.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/d9l18rb9jvfskxb7s44pnml5cbgng069-qutebrowser-1.2.0.drv': 3 dependencies couldn't be built
�[31;1merror:�[0m build of '/nix/store/d9l18rb9jvfskxb7s44pnml5cbgng069-qutebrowser-1.2.0.drv' failed

@magnetophon
Copy link
Member

@rnhmjoj When I run
/nix/store/5bd16z932m2x2ndksifsxk7gna600rzv-qutebrowser-1.2.0/share/qutebrowser/scripts/dictcli.py install en-US

I get

Traceback (most recent call last):
  File "/nix/store/5bd16z932m2x2ndksifsxk7gna600rzv-qutebrowser-1.2.0/lib/python3.6/site-packages/qutebrowser/browser/webengine/spell.py", line 43, in dictionary_dir
    path = standarddir.data()
  File "/nix/store/5bd16z932m2x2ndksifsxk7gna600rzv-qutebrowser-1.2.0/lib/python3.6/site-packages/qutebrowser/utils/standarddir.py", line 139, in data
    return _locations[Location.data]
KeyError: <Location.data: 3>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/nix/store/5bd16z932m2x2ndksifsxk7gna600rzv-qutebrowser-1.2.0/share/qutebrowser/scripts/dictcli.py", line 281, in <module>
    main()
  File "/nix/store/5bd16z932m2x2ndksifsxk7gna600rzv-qutebrowser-1.2.0/share/qutebrowser/scripts/dictcli.py", line 264, in main
    languages = available_languages()
  File "/nix/store/5bd16z932m2x2ndksifsxk7gna600rzv-qutebrowser-1.2.0/share/qutebrowser/scripts/dictcli.py", line 184, in available_languages
    for code, name in lang_map.items()
  File "/nix/store/5bd16z932m2x2ndksifsxk7gna600rzv-qutebrowser-1.2.0/share/qutebrowser/scripts/dictcli.py", line 185, in <listcomp>
    if code in code2file
  File "<attrs generated init efad0138208ca86f2b346d11f55e255af25a51d5>", line 7, in __init__
  File "/nix/store/5bd16z932m2x2ndksifsxk7gna600rzv-qutebrowser-1.2.0/share/qutebrowser/scripts/dictcli.py", line 67, in __attrs_post_init__
    self.local_filename = spell.local_filename(self.code)
  File "/nix/store/5bd16z932m2x2ndksifsxk7gna600rzv-qutebrowser-1.2.0/lib/python3.6/site-packages/qutebrowser/browser/webengine/spell.py", line 69, in local_filename
    all_installed = local_files(code)
  File "/nix/store/5bd16z932m2x2ndksifsxk7gna600rzv-qutebrowser-1.2.0/lib/python3.6/site-packages/qutebrowser/browser/webengine/spell.py", line 53, in local_files
    pathname = os.path.join(dictionary_dir(), '{}*.bdic'.format(code))
  File "/nix/store/5bd16z932m2x2ndksifsxk7gna600rzv-qutebrowser-1.2.0/lib/python3.6/site-packages/qutebrowser/browser/webengine/spell.py", line 46, in dictionary_dir
    data = os.getenv('XDG_DATA_HOME', default)
NameError: name 'default' is not defined

@rnhmjoj
Copy link
Contributor Author

rnhmjoj commented Mar 21, 2018

Sorry, I didn't have time to test it yesterday. It should work now.

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: qutebrowser

Partial log (click to expand)

/nix/store/xgirxj0vfmysl4835xjwkki81wmj2ybq-qutebrowser-1.2.0/share/qutebrowser/userscripts/view_in_mpv: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/q1g0rl8zfmz7r371fp5p42p4acmv297d-bash-4.4-p19/bin/bash"
/nix/store/xgirxj0vfmysl4835xjwkki81wmj2ybq-qutebrowser-1.2.0/share/qutebrowser/userscripts/cast: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/q1g0rl8zfmz7r371fp5p42p4acmv297d-bash-4.4-p19/bin/bash"
/nix/store/xgirxj0vfmysl4835xjwkki81wmj2ybq-qutebrowser-1.2.0/share/qutebrowser/userscripts/readability: interpreter directive changed from "/usr/bin/env python" to "/nix/store/b8gd0cbvkm59x8flbc53bvsvmskyig5a-python3-3.6.4/bin/python"
/nix/store/xgirxj0vfmysl4835xjwkki81wmj2ybq-qutebrowser-1.2.0/share/qutebrowser/scripts/dictcli.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/b8gd0cbvkm59x8flbc53bvsvmskyig5a-python3-3.6.4/bin/python3"
/nix/store/xgirxj0vfmysl4835xjwkki81wmj2ybq-qutebrowser-1.2.0/share/qutebrowser/scripts/keytester.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/b8gd0cbvkm59x8flbc53bvsvmskyig5a-python3-3.6.4/bin/python3"
/nix/store/xgirxj0vfmysl4835xjwkki81wmj2ybq-qutebrowser-1.2.0/share/qutebrowser/scripts/open_url_in_instance.sh: interpreter directive changed from "/bin/bash" to "/nix/store/q1g0rl8zfmz7r371fp5p42p4acmv297d-bash-4.4-p19/bin/bash"
/nix/store/xgirxj0vfmysl4835xjwkki81wmj2ybq-qutebrowser-1.2.0/share/qutebrowser/scripts/importer.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/b8gd0cbvkm59x8flbc53bvsvmskyig5a-python3-3.6.4/bin/python3"
checking for references to /tmp/nix-build-qutebrowser-1.2.0.drv-0 in /nix/store/xgirxj0vfmysl4835xjwkki81wmj2ybq-qutebrowser-1.2.0...
wrapping `/nix/store/xgirxj0vfmysl4835xjwkki81wmj2ybq-qutebrowser-1.2.0/bin/.qutebrowser-wrapped'...
postPatchMkspecs

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: qutebrowser

Partial log (click to expand)

make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile.ANGLE.DerivedSources:428: generated/ExpressionParser_tab.h] Illegal instruction: 4
make[2]: Leaving directory '/private/tmp/nix-build-qtwebkit-5.9.1.drv-0/qtwebkit-opensource-src-5.9.1/Source/ThirdParty/ANGLE'
make[1]: *** [Makefile.ANGLE:42: sub-DerivedSources-pri-make_first-ordered] Error 2
make[1]: Leaving directory '/private/tmp/nix-build-qtwebkit-5.9.1.drv-0/qtwebkit-opensource-src-5.9.1/Source/ThirdParty/ANGLE'
make: *** [Makefile:139: sub-Source-ThirdParty-ANGLE-ANGLE-pro-make_first-ordered] Error 2
builder for '/nix/store/lx504v5zpkyx3zqa4w75pvbk2zfn25mq-qtwebkit-5.9.1.drv' failed with exit code 2
cannot build derivation '/nix/store/llnnqm3xk8zgicmr4m84h3yjgixxr7xd-python3.6-PyQt-5.10.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/7vg4j52mvbdbr6ffl16k168cxhzl4lzf-qutebrowser-1.2.0.drv': 2 dependencies couldn't be built
error: build of '/nix/store/7vg4j52mvbdbr6ffl16k168cxhzl4lzf-qutebrowser-1.2.0.drv' failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: qutebrowser

Partial log (click to expand)

[4545/17378] CXX obj/third_party/icu/bundled_icui18n/nfrs.o
[4546/17378] CXX obj/third_party/icu/bundled_icuuc/ucnv_set.o
[4547/17378] CXX obj/third_party/WebKit/Source/platform/wtf/wtf/TextEncodingRegistry.o
[4548/17378] CXX obj/third_party/icu/bundled_icuuc/wintz.o
[4549/17378] CXX obj/device/geolocation/public/interfaces/interfaces_blink/geolocation.mojom-blink.o
[4550/17378] CXX obj/third_party/icu/bundled_icuuc/utrie2.o
building of '/nix/store/irmwj8p8xq4j11jwqjw0xvsdgv6hxhwp-qtwebengine-5.10.1.drv' timed out after 3600 seconds
cannot build derivation '/nix/store/zj2h89iwzl5ic1jzwy2qpgflz6902q7b-python3.6-PyQt-5.10.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/qqc9k22480ir2fz5z2jfw5lafr36ccq2-qutebrowser-1.2.0.drv': 3 dependencies couldn't be built
�[31;1merror:�[0m build of '/nix/store/qqc9k22480ir2fz5z2jfw5lafr36ccq2-qutebrowser-1.2.0.drv' failed

@magnetophon
Copy link
Member

Thanks.
I installed some dictionaries, added them in my config an restarted the browser, but there's no spellchecking yet.
Qutebrowser seems to find the dictionaries, as it doesn't complain about them missing anymore.
Does it work for you?

@rnhmjoj
Copy link
Contributor Author

rnhmjoj commented Mar 21, 2018

No, I don't know how it's supposed to work. Maybe the path is hardcoded in qtwebengine...

@The-Compiler
Copy link
Contributor

It indeed used to be hardcoded in QtWebEngine - however, I added a patch to Qt 5.10 to add a QTWEBENGINE_DICTIONARIES_PATH environment variable. I haven't had the time to update qutebrowser accordingly yet, though.

So, as soon as NixOS updates to Qt >= 5.10, you should be able to set that to a custom path - until then, I don't think there's anything you can do.

@rnhmjoj
Copy link
Contributor Author

rnhmjoj commented Mar 21, 2018

@The-Compiler We actually have Qt 5.10! I tried it and seems to work, thank you.
I will wrap the binary with that variable as soon as I have some time.
I think qutebrowser should set it by default to somewhere in the user directory.

@The-Compiler
Copy link
Contributor

Huh, so is https://nixos.org/nixos/packages.html#qtwebengine outdated somehow?

I think qutebrowser should set it by default to somewhere in the user directory.

I agree, it's currently tracked as part of qutebrowser/qutebrowser#2939 - at that point, it should also be possible to install dictionaries from inside qutebrowser instead of having a separate script. But like I said above, I haven't had time to look at that yet 😉

@magnetophon
Copy link
Member

magnetophon commented Mar 21, 2018

@The-Compiler
Thanks for stepping by!
That link tracks the stable version, not the dev version.
Here we have 5.10.

@rnhmjoj
Copy link
Contributor Author

rnhmjoj commented Mar 21, 2018

Ok, it should be all set.

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: qutebrowser

Partial log (click to expand)

check flags: -j4 -l4 SHELL=/nix/store/8hdxjv3m14jgdnawi5l0mz2h59qkk2g9-bash-4.4-p19/bin/bash VERBOSE=y check
make: Nothing to be done for 'check'.
installing
install flags: install SHELL=/nix/store/8hdxjv3m14jgdnawi5l0mz2h59qkk2g9-bash-4.4-p19/bin/bash
make: Nothing to be done for 'install'.
/nix/store/w3k60lgxbkj1sj1zpyh50671qpky0v1w-stdenv-darwin/setup: line 106: /nix/store/44yykbanxjh3763w3zlh6hikzclvw4cj-qtwebengine-5.10.1/libexec/qt.conf: No such file or directory
builder for '/nix/store/75vsp0xwjhmkq9hmv0v86hdi7zx7qqc9-qtwebengine-5.10.1.drv' failed with exit code 1
cannot build derivation '/nix/store/li6s74fqn3nfnfgkln3zrc26h0fs3bn5-python3.6-PyQt-5.10.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/8a26pfm9xv6xqdgjnvl21772i5yv5f4q-qutebrowser-1.2.0.drv': 2 dependencies couldn't be built
error: build of '/nix/store/8a26pfm9xv6xqdgjnvl21772i5yv5f4q-qutebrowser-1.2.0.drv' failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: qutebrowser

Partial log (click to expand)

Building stage1 test artifacts (aarch64-unknown-linux-gnu -> aarch64-unknown-linux-gnu)
   Compiling term v0.0.0 (file:///build/rustc-1.24.0-src/src/libterm)
   Compiling getopts v0.2.15
building of '/nix/store/6mm6pr840z429p4l9mk62gh7mr6khj3k-rustc-1.24.0.drv' timed out after 3600 seconds
cannot build derivation '/nix/store/wsycxxpy4fin6rmfmx67n1b5pdzjww20-cargo-0.24.0.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/byqkqqkjq1m38ikbxxrirk81d0wr4qns-librsvg-2.42.2.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/r8xsh2fdvxhl6mhfa63aa4qfjqkhp6il-gst-plugins-bad-1.12.3.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/azb669rka042skzps2bpc7m7bs1r5afm-hook.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/vfri8ksih9xlk0w49aybyn73z57xq6zw-qutebrowser-1.2.0.drv': 2 dependencies couldn't be built
�[31;1merror:�[0m build of '/nix/store/vfri8ksih9xlk0w49aybyn73z57xq6zw-qutebrowser-1.2.0.drv' failed

@magnetophon
Copy link
Member

magnetophon commented May 21, 2018

To make this work on 1.3.0, use this commit.
This line has message, added.

@vcanadi
Copy link
Contributor

vcanadi commented May 27, 2018

@magnetophon Thanks. Finally, a spell checker in qutebrowser on nixos.

@laMudri
Copy link
Contributor

laMudri commented Jul 12, 2018

This commit has changed dictionary_dir, and I'm no longer sure what the desired behaviour is.

@The-Compiler
Copy link
Contributor

Upstream here - with that commit, at least setting QTWEBENGINE_DICTIONARIES_PATH and dictionaries-path.patch shouldn't be needed anymore. With Qt >= 5.10, qutebrowser will automatically load dictionaries from ~/.local/share/qutebrowser, and dictcli.py will store them there.

@rnhmjoj
Copy link
Contributor Author

rnhmjoj commented Jul 14, 2018

Ok, I removed the last commit.

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: qutebrowser

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: qutebrowser

Partial log (click to expand)

/nix/store/5fcbgljgivb1ckw0cgxl97zzrh1alxng-qutebrowser-1.4.1/share/qutebrowser/userscripts/getbib: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/pz8nl4cnppd3p1cykshcb40mqxjd5yvy-python3-3.6.5/bin/python3"
/nix/store/5fcbgljgivb1ckw0cgxl97zzrh1alxng-qutebrowser-1.4.1/share/qutebrowser/userscripts/ripbang: interpreter directive changed from "/usr/bin/env python" to "/nix/store/pz8nl4cnppd3p1cykshcb40mqxjd5yvy-python3-3.6.5/bin/python"
/nix/store/5fcbgljgivb1ckw0cgxl97zzrh1alxng-qutebrowser-1.4.1/share/qutebrowser/userscripts/rss: interpreter directive changed from "/bin/sh" to "/nix/store/8zkg9ac4s4alzyf4a8kfrig1j73z66dw-bash-4.4-p23/bin/sh"
/nix/store/5fcbgljgivb1ckw0cgxl97zzrh1alxng-qutebrowser-1.4.1/share/qutebrowser/userscripts/tor_identity: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/pz8nl4cnppd3p1cykshcb40mqxjd5yvy-python3-3.6.5/bin/python3"
/nix/store/5fcbgljgivb1ckw0cgxl97zzrh1alxng-qutebrowser-1.4.1/share/qutebrowser/userscripts/cast: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/8zkg9ac4s4alzyf4a8kfrig1j73z66dw-bash-4.4-p23/bin/bash"
/nix/store/5fcbgljgivb1ckw0cgxl97zzrh1alxng-qutebrowser-1.4.1/share/qutebrowser/userscripts/openfeeds: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/pz8nl4cnppd3p1cykshcb40mqxjd5yvy-python3-3.6.5/bin/python3"
/nix/store/5fcbgljgivb1ckw0cgxl97zzrh1alxng-qutebrowser-1.4.1/share/qutebrowser/userscripts/view_in_mpv: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/8zkg9ac4s4alzyf4a8kfrig1j73z66dw-bash-4.4-p23/bin/bash"
checking for references to /tmp/nix-build-qutebrowser-1.4.1.drv-0 in /nix/store/5fcbgljgivb1ckw0cgxl97zzrh1alxng-qutebrowser-1.4.1...
wrapping `/nix/store/5fcbgljgivb1ckw0cgxl97zzrh1alxng-qutebrowser-1.4.1/bin/.qutebrowser-wrapped'...
postPatchMkspecs

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: qutebrowser

Partial log (click to expand)

[6959/16620] CXX obj/third_party/webrtc/modules/video_coding/video_coding/packet.o
[6960/16620] CXX obj/third_party/pdfium/fpdfapi/fpdfapi_jumbo_16.o
[6961/16620] CXX obj/third_party/webrtc/rtc_base/rtc_base_approved_generic/pathutils.o
[6962/16620] AR obj/third_party/pdfium/libfpdfapi.a
[6963/16620] CXX obj/third_party/webrtc/rtc_base/rtc_base_approved_generic/histogram_percentile_counter.o
[6964/16620] CXX obj/third_party/webrtc/pc/rtc_pc_base/audiomonitor.o
building of '/nix/store/9xhc0p79i75c1qbaf4mi9wz78b3x209c-qtwebengine-5.11.1.drv' timed out after 3600 seconds
cannot build derivation '/nix/store/idylwdijvdbr7yda304j3qi8pvsaa6sb-python3.6-PyQt-5.10.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/9g1zvyqqwvynzknnnbnd9x1l08ggc019-qutebrowser-1.4.1.drv': 1 dependencies couldn't be built
error: build of '/nix/store/9g1zvyqqwvynzknnnbnd9x1l08ggc019-qutebrowser-1.4.1.drv' failed

@magnetophon
Copy link
Member

@vcanadi Thank you, but I hardly did anything.
This is @rnhmjoj's work!
Thanks @rnhmjoj!

@xeji
Copy link
Contributor

xeji commented Sep 5, 2018

Check the build again since there was a version bump
@GrahamcOfBorg build qutebrowser

@GrahamcOfBorg
Copy link

No attempt on x86_64-darwin (full log)

The following builds were skipped because they don't evaluate on x86_64-darwin: qutebrowser

Partial log (click to expand)


a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.


@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: qutebrowser

Partial log (click to expand)

/nix/store/bs42zlxwqwrda7rgyg3v5rlgxd40sfh7-qutebrowser-1.4.2/share/qutebrowser/userscripts/dmenu_qutebrowser: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/fqm2x6kiay1q4vg7pqp4wp17bdijlyc3-bash-4.4-p23/bin/bash"
/nix/store/bs42zlxwqwrda7rgyg3v5rlgxd40sfh7-qutebrowser-1.4.2/share/qutebrowser/userscripts/cast: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/fqm2x6kiay1q4vg7pqp4wp17bdijlyc3-bash-4.4-p23/bin/bash"
/nix/store/bs42zlxwqwrda7rgyg3v5rlgxd40sfh7-qutebrowser-1.4.2/share/qutebrowser/scripts/keytester.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/sb88r9crdhinhkm6vpxwzf5zmij86p8v-python3-3.6.6/bin/python3"
/nix/store/bs42zlxwqwrda7rgyg3v5rlgxd40sfh7-qutebrowser-1.4.2/share/qutebrowser/scripts/dictcli.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/sb88r9crdhinhkm6vpxwzf5zmij86p8v-python3-3.6.6/bin/python3"
/nix/store/bs42zlxwqwrda7rgyg3v5rlgxd40sfh7-qutebrowser-1.4.2/share/qutebrowser/scripts/importer.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/sb88r9crdhinhkm6vpxwzf5zmij86p8v-python3-3.6.6/bin/python3"
/nix/store/bs42zlxwqwrda7rgyg3v5rlgxd40sfh7-qutebrowser-1.4.2/share/qutebrowser/scripts/open_url_in_instance.sh: interpreter directive changed from "/bin/bash" to "/nix/store/fqm2x6kiay1q4vg7pqp4wp17bdijlyc3-bash-4.4-p23/bin/bash"
checking for references to /build in /nix/store/bs42zlxwqwrda7rgyg3v5rlgxd40sfh7-qutebrowser-1.4.2...
wrapping `/nix/store/bs42zlxwqwrda7rgyg3v5rlgxd40sfh7-qutebrowser-1.4.2/bin/.qutebrowser-wrapped'...
postPatchMkspecs
/nix/store/bs42zlxwqwrda7rgyg3v5rlgxd40sfh7-qutebrowser-1.4.2

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: qutebrowser

Partial log (click to expand)

/nix/store/7nr8cwg75hjjikaydg0hvrv7hg7digk5-qutebrowser-1.4.2/share/qutebrowser/userscripts/cast: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/czx8vkrb9jdgjyz8qfksh10vrnqa723l-bash-4.4-p23/bin/bash"
/nix/store/7nr8cwg75hjjikaydg0hvrv7hg7digk5-qutebrowser-1.4.2/share/qutebrowser/userscripts/readability: interpreter directive changed from "/usr/bin/env python" to "/nix/store/hy65mn4wjswqih75gfr6g4q3xgqdm325-python3-3.6.6/bin/python"
/nix/store/7nr8cwg75hjjikaydg0hvrv7hg7digk5-qutebrowser-1.4.2/share/qutebrowser/scripts/dictcli.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/hy65mn4wjswqih75gfr6g4q3xgqdm325-python3-3.6.6/bin/python3"
/nix/store/7nr8cwg75hjjikaydg0hvrv7hg7digk5-qutebrowser-1.4.2/share/qutebrowser/scripts/keytester.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/hy65mn4wjswqih75gfr6g4q3xgqdm325-python3-3.6.6/bin/python3"
/nix/store/7nr8cwg75hjjikaydg0hvrv7hg7digk5-qutebrowser-1.4.2/share/qutebrowser/scripts/open_url_in_instance.sh: interpreter directive changed from "/bin/bash" to "/nix/store/czx8vkrb9jdgjyz8qfksh10vrnqa723l-bash-4.4-p23/bin/bash"
/nix/store/7nr8cwg75hjjikaydg0hvrv7hg7digk5-qutebrowser-1.4.2/share/qutebrowser/scripts/importer.py: interpreter directive changed from "/usr/bin/env python3" to "/nix/store/hy65mn4wjswqih75gfr6g4q3xgqdm325-python3-3.6.6/bin/python3"
checking for references to /build in /nix/store/7nr8cwg75hjjikaydg0hvrv7hg7digk5-qutebrowser-1.4.2...
wrapping `/nix/store/7nr8cwg75hjjikaydg0hvrv7hg7digk5-qutebrowser-1.4.2/bin/.qutebrowser-wrapped'...
postPatchMkspecs
/nix/store/7nr8cwg75hjjikaydg0hvrv7hg7digk5-qutebrowser-1.4.2

@xeji xeji merged commit eadb7b1 into NixOS:master Sep 5, 2018
@magnetophon
Copy link
Member

Great, it's working!
Thanks @rnhmjoj and @xeji !

@teto
Copy link
Member

teto commented Oct 5, 2018

I am running qutebrowser with this patch. I was trying to use qute-pass but got this:

Process stderr:
unable to cache TLDs in file /nix/store/1wm58703hg8y59dfw70lp5abdiq08h0j-python3.6-tldextract-2.2.0/lib/python3.6/site-packages/tldextract/.tld_set: [Errno 30] Read-only file system: '/nix/store/1wm58703hg8y59dfw70lp5abdiq08h0j-python3.6-tldextract-2.2.0/lib/python3.6/site-packages/tldextract/.tld_set'
No pass candidates for URL 'https://www.amazon.com/ap/signin' found!

I am not sure if it's an error or warning (not being able to cache tlds should not be an error), in the end I have to rework my pass store to make it work with qute-pass so I am unsure if I will keep using it. Just wanted to mention it.

@rnhmjoj
Copy link
Contributor Author

rnhmjoj commented Oct 5, 2018

It looks like tldextract trying to write a cache in the nix store. Maybe it can be configured to to use adifferent path or just patched.

@xeji
Copy link
Contributor

xeji commented Oct 5, 2018

If a script tries to write in the nix store by default I would consider this a bug, and it should be patched to use a sensible default location instead.

@The-Compiler
Copy link
Contributor

The-Compiler commented Oct 5, 2018

That's not coming from one of qutebrowser's scripts, it's coming from tldextract - see e.g.
john-kurkowski/tldextract#149. It's just a warning though.

From a quick look at its source, it seems to be possible to set TLDEXTRACT_CACHE in the environment to a different path.

@rnhmjoj rnhmjoj deleted the qutefix branch February 23, 2019 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants