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

Add setup-hooks for scons and waf #50293

Merged
merged 6 commits into from Nov 14, 2018

Conversation

matthewbauer
Copy link
Member

This adds some setup hooks to use in scons and waf build systems. This makes things more modular and easier to make changes with. I think I rewrote everything to use them but I could have missed some. I would appreciate any tips on missing packages. One of the biggest benefits of this, is that it should enable parallel building for a lot of packages that were not specifically passing NIX_BUILD_CORES previously. In addition, it should split the phases correctly. Overall we end up getting rid of about 400 lines of code with this change.

This is kind of a big PR. I am hoping it will be a good change, though, and I've left it as a mass diff. If requested, I can split it up into a few different PRs though.

Waf

The waf build system is python-based and hosted locally in each package in the executable file named "waf". Unlike CMake, it cannot generate makefiles so we end up having to override the configure, build, and install phases. I've tried to keep these as close to what's in setup.sh as possible. If there is no waf file in the root directory, then we just copy the one hosted in Nixpkgs. Otherwise the only thing you have to add to a package using Waf is "wafHook" into nativeBuildInputs. wafFlags controls the flags specifically passed to waf while configureFlags, buildFlags, and installFlags are still used as in the generic builder.

Scons

The scons build system is python-based and has a binary named scons. Unlike CMake, it cannot generate makefiles so we end up having to override the build, install, and check phases. I have added the setupHook to the scons package so that integration requires no unique steps - just putting scons in nativeBuildInputs should be enough. sconsFlags controls the flags specifically passed to scons while buildFlags, installFlags, and checkFlags should still be usable. Some packages use different names for the prefix flag. In those cases you will have to set "prefixKey" to something like "PREFIX=" as there are multiple names for the "prefix" used in scons.

Changed packages

Package affected by this due to using either Scons or Waf:

jackmix klick mixxx nova-filters rhvoice giv mypaint swift-im bombono mapnik serf pythonPackages.Nuitka pythonPackages.pyexiv2 godot hammer toluapp btanks dxx-rebirth endless-sky globulation2 the-powder-toy fceux gpsd mongodb mariadb lprof a2jmidid ams-lv2 ardour fomp guitarix ingen jalv mda_lv2 non patchage hamster-time-tracker kupfer xiphos xfce.xfce4-dockbarx-plugin xfce.xfce4-namebar-plugin dropbox clasp aubio lilv lv2 lvtk ntk raul sratom suil ganv ndn-cxx ns-3 serd sord termbox wxmupen64plus jackaudio pflask blockhash glmark2 weighttp stp ingen

Removed packages

Some old "unstable" packages have gone outdated. I've gone though any package older than 1 year and removed it from Nixpkgs. The stable version can still be used. Here is the list of packages:

  • ingen-unstable
  • cataract-unstable
  • isyncUnstable
  • lv2Unstable
  • bspwm-unstable
  • sxhkd-unstable
  • minisatUnstable
  • dosbox-unstable
  • xdeltaUnstable

@matthewbauer
Copy link
Member Author

@GrahamcOfBorg build jackmix klick mixxx nova-filters rhvoice giv mypaint swift-im bombono mapnik serf pythonPackages.Nuitka pythonPackages.pyexiv2 godot hammer toluapp btanks dxx-rebirth endless-sky globulation2 the-powder-toy fceux gpsd mongodb mariadb lprof a2jmidid ams-lv2 ardour fomp guitarix ingen jalv mda_lv2 non patchage hamster-time-tracker kupfer xiphos xfce.xfce4-dockbarx-plugin xfce.xfce4-namebar-plugin dropbox clasp aubio lilv lv2 lvtk ntk raul sratom suil ganv ndn-cxx ns-3 serd sord termbox wxmupen64plus jackaudio pflask blockhash glmark2 weighttp stp ingen

@GrahamcOfBorg
Copy link

Unexpected error: unexpected build failure on aarch64-linux (full log)

Attempted: jackmix, klick, mixxx, nova-filters, rhvoice, giv, mypaint, swift-im, bombono, mapnik, serf, pythonPackages.Nuitka, hammer, toluapp, btanks, dxx-rebirth, endless-sky, globulation2, fceux, gpsd, mongodb, mariadb, lprof, ams-lv2, ardour, fomp, guitarix, ingen, jalv, mda_lv2, non, patchage, hamster-time-tracker, kupfer, xiphos, xfce.xfce4-dockbarx-plugin, xfce.xfce4-namebar-plugin, clasp, aubio, lilv, lv2, lvtk, ntk, raul, sratom, suil, ganv, ndn-cxx, ns-3, serd, sord, termbox, wxmupen64plus, pflask, blockhash, glmark2, weighttp, stp, ingen

The following builds were skipped because they don't evaluate on aarch64-linux: pythonPackages.pyexiv2, godot, the-powder-toy, a2jmidid, dropbox, jackaudio

Partial log (click to expand)

In file included from ./boost/shared_ptr.hpp:17:0,
                 from ./boost/spirit/home/classic/utility/chset.hpp:13,
                 from ./boost/spirit/include/classic_chset.hpp:11,
                 from ./boost/archive/impl/basic_xml_grammar.hpp:59,
                 from libs/serialization/src/xml_wgrammar.cpp:18:
./boost/smart_ptr/shared_ptr.hpp:534:34: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     shared_ptr & operator=( std::auto_ptr<Y> && r )
                                  ^~~~~~~~
In file included from /nix/store/1jyb1xfb97wgmy0k3qwfa30vzbv646n6-gcc-7.3.0/include/c++/7.3.0/memory:80:0,
                 from ./boost/smart_ptr/scoped_ptr.hpp:21,

@GrahamcOfBorg
Copy link

Timed out, unknown build status on x86_64-darwin (full log)

Attempted: btanks, mongodb, scons, wafHook

The following builds were skipped because they don't evaluate on x86_64-darwin: gpsd, swift-im, swiften, wxmupen64plus

Partial log (click to expand)

clang++ -o build/nixos/third_party/s2/s2edgeutil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -std=c++11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -Wno-mismatched-tags -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/third_party/s2/s2edgeutil.cc
clang++ -o build/nixos/third_party/s2/s2latlngrect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -std=c++11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -Wno-mismatched-tags -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/third_party/s2/s2latlngrect.cc
clang++ -o build/nixos/third_party/s2/s2loop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -std=c++11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -Wno-mismatched-tags -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/third_party/s2/s2loop.cc
clang++ -o build/nixos/third_party/s2/s2pointregion.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -std=c++11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -Wno-mismatched-tags -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/third_party/s2/s2pointregion.cc
clang++ -o build/nixos/third_party/s2/s2polygon.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -std=c++11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -Wno-mismatched-tags -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/third_party/s2/s2polygon.cc
clang++ -o build/nixos/third_party/s2/s2polygonbuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -std=c++11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -Wno-mismatched-tags -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/third_party/s2/s2polygonbuilder.cc
clang++ -o build/nixos/third_party/s2/s2polyline.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -std=c++11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -Wno-mismatched-tags -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/third_party/s2/s2polyline.cc
clang++ -o build/nixos/third_party/s2/s2r2rect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -std=c++11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -Wno-mismatched-tags -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/third_party/s2/s2r2rect.cc
building of '/nix/store/8xkh7l37js6f4l8lscpnc39072jw0swq-mongodb-3.4.10.drv' timed out after 1800 seconds
error: build of '/nix/store/8xkh7l37js6f4l8lscpnc39072jw0swq-mongodb-3.4.10.drv', '/nix/store/n5lryflxyx345bkk5dm8cw4v6cn4d226-battle-tanks-0.9.8083.drv' failed

@GrahamcOfBorg
Copy link

Timed out, unknown build status on x86_64-darwin (full log)

Attempted: rhvoice, mapnik, serf, pythonPackages.Nuitka, toluapp, btanks, the-powder-toy, mongodb, mariadb, clasp, ndn-cxx, ns-3, termbox, blockhash, weighttp

The following builds were skipped because they don't evaluate on x86_64-darwin: jackmix, klick, mixxx, nova-filters, giv, mypaint, swift-im, bombono, pythonPackages.pyexiv2, godot, hammer, dxx-rebirth, endless-sky, globulation2, fceux, gpsd, lprof, a2jmidid, ams-lv2, ardour, fomp, guitarix, ingen, jalv, mda_lv2, non, patchage, hamster-time-tracker, kupfer, xiphos, xfce.xfce4-dockbarx-plugin, xfce.xfce4-namebar-plugin, dropbox, aubio, lilv, lv2, lvtk, ntk, raul, sratom, suil, ganv, serd, sord, wxmupen64plus, jackaudio, pflask, glmark2, stp, ingen

Partial log (click to expand)

clang -o build/nixos/third_party/wiredtiger/src/config/config_check.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_CRC32_HARDWARE -Ibuild/nixos/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/nixos/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/nixos/third_party/wiredtiger/build_darwin -Isrc/third_party/wiredtiger/build_darwin src/third_party/wiredtiger/src/config/config_check.c
clang -o build/nixos/third_party/wiredtiger/src/config/config_collapse.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_CRC32_HARDWARE -Ibuild/nixos/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/nixos/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/nixos/third_party/wiredtiger/build_darwin -Isrc/third_party/wiredtiger/build_darwin src/third_party/wiredtiger/src/config/config_collapse.c
clang -o build/nixos/third_party/wiredtiger/src/config/config_def.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_CRC32_HARDWARE -Ibuild/nixos/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/nixos/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/nixos/third_party/wiredtiger/build_darwin -Isrc/third_party/wiredtiger/build_darwin src/third_party/wiredtiger/src/config/config_def.c
clang -o build/nixos/third_party/wiredtiger/src/config/config_ext.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_CRC32_HARDWARE -Ibuild/nixos/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/nixos/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/nixos/third_party/wiredtiger/build_darwin -Isrc/third_party/wiredtiger/build_darwin src/third_party/wiredtiger/src/config/config_ext.c
clang -o build/nixos/third_party/wiredtiger/src/config/config_upgrade.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_CRC32_HARDWARE -Ibuild/nixos/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/nixos/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/nixos/third_party/wiredtiger/build_darwin -Isrc/third_party/wiredtiger/build_darwin src/third_party/wiredtiger/src/config/config_upgrade.c
clang -o build/nixos/third_party/wiredtiger/src/conn/api_strerror.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_CRC32_HARDWARE -Ibuild/nixos/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/nixos/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/nixos/third_party/wiredtiger/build_darwin -Isrc/third_party/wiredtiger/build_darwin src/third_party/wiredtiger/src/conn/api_strerror.c
clang -o build/nixos/third_party/wiredtiger/src/conn/api_version.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_CRC32_HARDWARE -Ibuild/nixos/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/nixos/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/nixos/third_party/wiredtiger/build_darwin -Isrc/third_party/wiredtiger/build_darwin src/third_party/wiredtiger/src/conn/api_version.c
clang -o build/nixos/third_party/wiredtiger/src/conn/conn_api.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_CRC32_HARDWARE -Ibuild/nixos/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/nixos/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/nixos/third_party/wiredtiger/build_darwin -Isrc/third_party/wiredtiger/build_darwin src/third_party/wiredtiger/src/conn/conn_api.c
building of '/nix/store/8xkh7l37js6f4l8lscpnc39072jw0swq-mongodb-3.4.10.drv' timed out after 3600 seconds
error: build of '/nix/store/3q2jxi1jbwljrlzdsp789ss471lmmagw-the-powder-toy-92.5.drv', '/nix/store/8xkh7l37js6f4l8lscpnc39072jw0swq-mongodb-3.4.10.drv', '/nix/store/bwvk48hbd08bmwjp9kbfhaq68hbi7dv2-ns-3.28.drv', '/nix/store/n5lryflxyx345bkk5dm8cw4v6cn4d226-battle-tanks-0.9.8083.drv', '/nix/store/srn8dmdyfk9s4c5mf9p8mnrl8s2f4sjq-rhvoice-unstable-2018-02-10.drv' failed

@teto
Copy link
Member

teto commented Nov 13, 2018

I think you missed ns-3 but that's lucky since I've changed the package a bit, I can take care of updating it. I've meant to do something like this for waf but never found the time. Very happy you did it. Waf does break its interface on a regular basis, how easy is it to specify a different waf version ?
I will try to review it this week.

@GrahamcOfBorg
Copy link

Timed out, unknown build status on x86_64-linux (full log)

Attempted: btanks, gpsd, mongodb, scons, swift-im, swiften, wafHook, wxmupen64plus

Partial log (click to expand)

  AR Swiften/libSwiften.a
  RANLIB Swiften/libSwiften.a
  LINK Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot0x
/nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/ld: cannot find -lssl
/nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
scons: *** [Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot0x] Error 1
scons: building terminated because of errors.
builder for '/nix/store/4db2j944pk6wvb2490w4jz41ql4wndq5-swiften-4.0.2.drv' failed with exit code 2
error: build of '/nix/store/4db2j944pk6wvb2490w4jz41ql4wndq5-swiften-4.0.2.drv', '/nix/store/69d4ghn6aqbwi2h4sgcdkv4jnc3hdw0m-mongodb-3.4.10.drv', '/nix/store/a6n9am38a1kqc3byi2fkxqaqa6ddk0rl-swift-im-4.0.2.drv' failed

@GrahamcOfBorg
Copy link

Timed out, unknown build status on aarch64-linux (full log)

Attempted: btanks, gpsd, mongodb, scons, swift-im, swiften, wafHook, wxmupen64plus

Partial log (click to expand)

  GEN Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot2.cpp.xml
  CXX Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot3.o
  LINK Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot3
  GEN Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot3.cpp.xml
  CXX Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot4.o
  LINK Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot4
  GEN Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot4.cpp.xml
  CXX Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot5.o
building of '/nix/store/9c7wyqnv0a9vgv3rhc2ndvyr9pjig78b-swift-im-4.0.2.drv' timed out after 3600 seconds
error: build of '/nix/store/08lbjgyp1dw92y1nmg72sygbvbrn394l-wxmupen64plus-0.3.drv', '/nix/store/64vfm5537g14zrgjfhchbl17f7qix7yl-mongodb-3.4.10.drv', '/nix/store/72x6s01wi94nfqimj7nqhj49j6yf19jk-swiften-4.0.2.drv', '/nix/store/9c7wyqnv0a9vgv3rhc2ndvyr9pjig78b-swift-im-4.0.2.drv' failed

Copy link
Contributor

@orivej orivej left a comment

Choose a reason for hiding this comment

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

Thank you for factoring out scons and waf hooks!

Deletion of unstable packages should have been done in another PR for more visibility.

@@ -21983,7 +21978,6 @@ with pkgs;
dell-530cdn = callPackage ../misc/drivers/dell-530cdn {};

dosbox = callPackage ../misc/emulators/dosbox { };
dosbox-unstable = callPackage ../misc/emulators/dosbox/unstable.nix { };
Copy link
Contributor

Choose a reason for hiding this comment

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

ok, dosbox is newer.

@@ -21533,7 +21529,6 @@ with pkgs;
mcrl2 = callPackage ../applications/science/logic/mcrl2 { };

minisat = callPackage ../applications/science/logic/minisat {};
minisatUnstable = callPackage ../applications/science/logic/minisat/unstable.nix {};
Copy link
Contributor

Choose a reason for hiding this comment

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

No, minisutUnstable is newer than the latest minisat release.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok I can leave this in.

@@ -18227,8 +18225,6 @@ with pkgs;

sxhkd = callPackage ../applications/window-managers/sxhkd { };

sxhkd-unstable = callPackage ../applications/window-managers/sxhkd/unstable.nix { };
Copy link
Contributor

Choose a reason for hiding this comment

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

OK, sxhkd is newer.

@@ -15983,8 +15983,6 @@ with pkgs;

bspwm = callPackage ../applications/window-managers/bspwm { };

bspwm-unstable = callPackage ../applications/window-managers/bspwm/unstable.nix { };
Copy link
Contributor

Choose a reason for hiding this comment

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

OK, bspwm is newer.

@@ -12158,7 +12159,6 @@ with pkgs;
lilv = callPackage ../development/libraries/audio/lilv { };

lv2 = callPackage ../development/libraries/audio/lv2 { };
lv2Unstable = callPackage ../development/libraries/audio/lv2/unstable.nix { };
Copy link
Contributor

Choose a reason for hiding this comment

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

No, lv2Unstable is newer.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok I can leave this in.

@@ -3490,7 +3489,6 @@ with pkgs;
ispike = callPackage ../development/libraries/science/robotics/ispike { };

isync = callPackage ../tools/networking/isync { };
isyncUnstable = callPackage ../tools/networking/isync/unstable.nix { };
Copy link
Contributor

Choose a reason for hiding this comment

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

OK, isync is newer.

@@ -1092,7 +1092,6 @@ with pkgs;
};

cataract = callPackage ../applications/misc/cataract { };
cataract-unstable = callPackage ../applications/misc/cataract/unstable.nix { };
Copy link
Contributor

Choose a reason for hiding this comment

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

No, cataract-unstable is newer.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok I can leave this in.

fi

if [ -z "${checkTarget:-}" ]; then
echo "no check/test target in ${makefile:-Makefile}, doing nothing"
Copy link
Contributor

Choose a reason for hiding this comment

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

What Makefile?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, fixed.

if scons check >/dev/null 2>&1; then
checkTarget=check
elif scons test >/dev/null 2>&1; then
checkTarget=test
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this run tests, and assume that they don't exist if they fail?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch! Just need a -n flag to do a dry run.

buildFlags="${prefixKey:-prefix=}$prefix $buildFlags"
fi

# Old bash empty array hack
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think the old bash empty array hack should be carried around any more. (You can replace ${sconsFlagsArray+"${sconsFlagsArray[@]}"} with ${sconsFlagsArray[@]}"}.)

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok

Copy link
Contributor

@orivej orivej left a comment

Choose a reason for hiding this comment

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

^

@GrahamcOfBorg
Copy link

Timed out, unknown build status on x86_64-linux (full log)

Attempted: jackmix, klick, mixxx, nova-filters, rhvoice, giv, mypaint, swift-im, bombono, mapnik, serf, pythonPackages.Nuitka, godot, hammer, toluapp, btanks, dxx-rebirth, endless-sky, globulation2, the-powder-toy, fceux, gpsd, mongodb, mariadb, lprof, a2jmidid, ams-lv2, ardour, fomp, guitarix, ingen, jalv, mda_lv2, non, patchage, hamster-time-tracker, kupfer, xiphos, xfce.xfce4-dockbarx-plugin, xfce.xfce4-namebar-plugin, clasp, aubio, lilv, lv2, lvtk, ntk, raul, sratom, suil, ganv, ndn-cxx, ns-3, serd, sord, termbox, wxmupen64plus, pflask, blockhash, glmark2, weighttp, stp, ingen

The following builds were skipped because they don't evaluate on x86_64-linux: pythonPackages.pyexiv2, dropbox, jackaudio

Partial log (click to expand)

          ^
[6/6] cshlib: build/src/namebar.c.1.o build/src/preferences.c.1.o build/src/theme.c.1.o -> build/libnamebar.so
Waf: Leaving directory `/build/source/build'
'build' finished successfully (1.220s)
glibPreInstallPhase
installing
install flags: gsettingsschemadir=/nix/store/g4h96wqq1rsasi7858vrqwx0hbqn0l3w-xfce4-namebar-plugin-0.3.1/share/gsettings-schemas/xfce4-namebar-plugin-0.3.1/glib-2.0/schemas/ install
No function gsettingsschemadir=/nix/store/g4h96wqq1rsasi7858vrqwx0hbqn0l3w-xfce4-namebar-plugin-0.3.1/share/gsettings-schemas/xfce4-namebar-plugin-0.3.1/glib-2.0/schemas/ defined in /build/source/wscript
builder for '/nix/store/845rbxkb3hx5f3lpbf98cv3sq93sj498-xfce4-namebar-plugin-0.3.1.drv' failed with exit code 1
error: build of '/nix/store/24dkx9qj8q4achnwfm3ffkj7zfvxj8nk-dxx-rebirth-0.59.100.drv', '/nix/store/2ff4f8ahp6pdnpq710vwdy0ivp1cr8xn-hamster-time-tracker-1.04.drv', '/nix/store/31621lwmhb329g9rrr5a03i9fgyzh3hn-xiphos-4.0.7.drv', '/nix/store/3y3vgczf87630q75sg0k9k92ip7zi2c2-mapnik-3.0.21.drv', '/nix/store/517lgagk3hm9fy5mzn13bwgi886df57v-ams-lv2-1.2.1.drv', '/nix/store/70qs092wm7d0nl7p0vz33zkir7kd212x-guitarix-0.37.3.drv', '/nix/store/845rbxkb3hx5f3lpbf98cv3sq93sj498-xfce4-namebar-plugin-0.3.1.drv', '/nix/store/8y4qf3ip966bijp4fj25wbbcgkmcjihq-xfce4-dockbarx-plugin-0.5-a2dcb66.drv', '/nix/store/90kzpfd5rfmrsv6sg1n2h0p9p1iimmnp-stp-2.2.0.drv', '/nix/store/a6n9am38a1kqc3byi2fkxqaqa6ddk0rl-swift-im-4.0.2.drv', '/nix/store/adygjwgcjhanf97m2i9sr6ymnfrjla1g-ingen-unstable-2017-07-22.drv', '/nix/store/c02yky9d7ah8rpisvmm9xkmi8jx5l9gg-ardour-5.12.drv', '/nix/store/lnp809ffpxjlvd1z0g4zankz6y9dcaqm-kupfer-319.drv', '/nix/store/vnaz6zxxsn8f12my4vknzkjds5cam8na-lvtk-1.2.0.drv' failed

wafHook = makeSetupHook {
deps = [ python ];
substitutions = { inherit waf; };
} ../development/tools/build-managers/waf/setup-hook.sh;
Copy link
Member

Choose a reason for hiding this comment

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

should wafHook live in pythonPackages ? or provide waf2Hook for python2 ? Maybe it's ok if you had no problem so far but I know at least one waf-based program (outside nixpkgs) that only supports python2

Copy link
Member Author

Choose a reason for hiding this comment

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

waf is usually vendored so I would think it would always support python2? Not 100% sure but I had no problems doing it this way here.

@GrahamcOfBorg
Copy link

Timed out, unknown build status on x86_64-darwin (full log)

Attempted: btanks, mongodb, scons, wafHook

The following builds were skipped because they don't evaluate on x86_64-darwin: gpsd, swift-im, swiften, wxmupen64plus

Partial log (click to expand)

clang -o build/nixos/third_party/wiredtiger/src/schema/schema_util.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_CRC32_HARDWARE -Ibuild/nixos/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/nixos/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/nixos/third_party/wiredtiger/build_darwin -Isrc/third_party/wiredtiger/build_darwin src/third_party/wiredtiger/src/schema/schema_util.c
clang -o build/nixos/third_party/wiredtiger/src/schema/schema_worker.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_CRC32_HARDWARE -Ibuild/nixos/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/nixos/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/nixos/third_party/wiredtiger/build_darwin -Isrc/third_party/wiredtiger/build_darwin src/third_party/wiredtiger/src/schema/schema_worker.c
clang -o build/nixos/third_party/wiredtiger/src/session/session_api.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_CRC32_HARDWARE -Ibuild/nixos/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/nixos/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/nixos/third_party/wiredtiger/build_darwin -Isrc/third_party/wiredtiger/build_darwin src/third_party/wiredtiger/src/session/session_api.c
clang -o build/nixos/third_party/wiredtiger/src/session/session_compact.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_CRC32_HARDWARE -Ibuild/nixos/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/nixos/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/nixos/third_party/wiredtiger/build_darwin -Isrc/third_party/wiredtiger/build_darwin src/third_party/wiredtiger/src/session/session_compact.c
clang -o build/nixos/third_party/wiredtiger/src/session/session_dhandle.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_CRC32_HARDWARE -Ibuild/nixos/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/nixos/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/nixos/third_party/wiredtiger/build_darwin -Isrc/third_party/wiredtiger/build_darwin src/third_party/wiredtiger/src/session/session_dhandle.c
clang -o build/nixos/third_party/wiredtiger/src/session/session_salvage.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_CRC32_HARDWARE -Ibuild/nixos/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/nixos/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/nixos/third_party/wiredtiger/build_darwin -Isrc/third_party/wiredtiger/build_darwin src/third_party/wiredtiger/src/session/session_salvage.c
clang -o build/nixos/third_party/wiredtiger/src/support/cond_auto.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_CRC32_HARDWARE -Ibuild/nixos/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/nixos/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/nixos/third_party/wiredtiger/build_darwin -Isrc/third_party/wiredtiger/build_darwin src/third_party/wiredtiger/src/support/cond_auto.c
clang -o build/nixos/third_party/wiredtiger/src/support/crypto.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -DHAVE_VERBOSE -DHAVE_X86INTRIN_H -DHAVE_BUILTIN_EXTENSION_ZLIB -DHAVE_BUILTIN_EXTENSION_SNAPPY -DHAVE_CRC32_HARDWARE -Ibuild/nixos/third_party/wiredtiger -Isrc/third_party/wiredtiger -Ibuild/nixos/third_party/wiredtiger/src/include -Isrc/third_party/wiredtiger/src/include -Ibuild/nixos/third_party/wiredtiger/build_darwin -Isrc/third_party/wiredtiger/build_darwin src/third_party/wiredtiger/src/support/crypto.c
building of '/nix/store/kn3fpd1nbs6f39qmqdrw1yy15j2nhf46-mongodb-3.4.10.drv' timed out after 1800 seconds
error: build of '/nix/store/6lb6xf5phbqj5n2zi76il0wg47nr0lng-battle-tanks-0.9.8083.drv', '/nix/store/kn3fpd1nbs6f39qmqdrw1yy15j2nhf46-mongodb-3.4.10.drv' failed

@matthewbauer
Copy link
Member Author

@GrahamcOfBorg build jackmix klick mixxx nova-filters rhvoice giv mypaint swift-im bombono mapnik serf pythonPackages.Nuitka pythonPackages.pyexiv2 godot hammer toluapp btanks dxx-rebirth endless-sky globulation2 the-powder-toy fceux gpsd mongodb mariadb lprof a2jmidid ams-lv2 ardour fomp guitarix ingen jalv mda_lv2 non patchage hamster-time-tracker kupfer xiphos xfce.xfce4-dockbarx-plugin xfce.xfce4-namebar-plugin dropbox clasp aubio lilv lv2 lvtk ntk raul sratom suil ganv ndn-cxx ns-3 serd sord termbox wxmupen64plus jackaudio pflask blockhash glmark2 weighttp stp ingen

@GrahamcOfBorg
Copy link

Unexpected error: unexpected build failure on aarch64-linux (full log)

Attempted: jackmix, klick, mixxx, nova-filters, rhvoice, giv, mypaint, swift-im, bombono, mapnik, serf, pythonPackages.Nuitka, hammer, toluapp, btanks, dxx-rebirth, endless-sky, globulation2, fceux, gpsd, mongodb, mariadb, lprof, ams-lv2, ardour, fomp, guitarix, ingen, jalv, mda_lv2, non, patchage, hamster-time-tracker, kupfer, xiphos, xfce.xfce4-dockbarx-plugin, xfce.xfce4-namebar-plugin, clasp, aubio, lilv, lv2, lvtk, ntk, raul, sratom, suil, ganv, ndn-cxx, ns-3, serd, sord, termbox, wxmupen64plus, pflask, blockhash, glmark2, weighttp, stp, ingen

The following builds were skipped because they don't evaluate on aarch64-linux: pythonPackages.pyexiv2, godot, the-powder-toy, a2jmidid, dropbox, jackaudio

Partial log (click to expand)

Install file: "images/planet/rock18.png" as "/nix/store/4z3ql3j0jn6lhnk9mzk7wjqq9r4jdb6h-endless-sky-0.9.8/share/games/endless-sky/images/planet/rock18.png"
Install file: "images/planet/rock19.png" as "/nix/store/4z3ql3j0jn6lhnk9mzk7wjqq9r4jdb6h-endless-sky-0.9.8/share/games/endless-sky/images/planet/rock19.png"
Install file: "images/planet/rock2.png" as "/nix/store/4z3ql3j0jn6lhnk9mzk7wjqq9r4jdb6h-endless-sky-0.9.8/share/games/endless-sky/images/planet/rock2.png"
Install file: "images/planet/rock3.png" as "/nix/store/4z3ql3j0jn6lhnk9mzk7wjqq9r4jdb6h-endless-sky-0.9.8/share/games/endless-sky/images/planet/rock3.png"
Install file: "images/planet/rock4.png" as "/nix/store/4z3ql3j0jn6lhnk9mzk7wjqq9r4jdb6h-endless-sky-0.9.8/share/games/endless-sky/images/planet/rock4.png"
Install file: "images/planet/rock5.png" as "/nix/store/4z3ql3j0jn6lhnk9mzk7wjqq9r4jdb6h-endless-sky-0.9.8/share/games/endless-sky/images/planet/rock5.png"
Install file: "images/planet/rock6.png" as "/nix/store/4z3ql3j0jn6lhnk9mzk7wjqq9r4jdb6h-endless-sky-0.9.8/share/games/endless-sky/images/planet/rock6.png"
Install file: "images/planet/rock7.png" as "/nix/store/4z3ql3j0jn6lhnk9mzk7wjqq9r4jdb6h-endless-sky-0.9.8/share/games/endless-sky/images/planet/rock7.png"
Install file: "images/planet/rock8.png" as "/nix/store/4z3ql3j0jn6lhnk9mzk7wjqq9r4jdb6h-endless-sky-0.9.8/share/games/endless-sky/images/planet/rock8.png"
Install file: "images/planet/rock9.png" as "/nix/store/4z3ql3j0jn6lhnk9mzk7wjqq9r4jdb6h-endless-sky-0.9.8/share/games/endless-sky/images/planet/rock9.png"

@GrahamcOfBorg
Copy link

Timed out, unknown build status on aarch64-linux (full log)

Attempted: btanks, gpsd, mongodb, scons, swift-im, swiften, wafHook, wxmupen64plus

Partial log (click to expand)

  CXX Swiften/Component/Component.o
  CXX Swiften/Component/ComponentXMLTracer.o
  CXX Swiften/AdHoc/OutgoingAdHocCommandSession.o
  AR Swiften/libSwiften.a
  RANLIB Swiften/libSwiften.a
  LINK Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot0x
  GEN Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot0x.cpp.xml
  CXX Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot1.o
building of '/nix/store/dag2lbqlckl4z9z2p3z7b3aqkjj82md8-swift-im-4.0.2.drv' timed out after 3600 seconds
error: build of '/nix/store/2spwp3xaf4drd5n2cfrwdk7gg87w57mm-swiften-4.0.2.drv', '/nix/store/a1llj0jx67lal3pfc5gy2zvf006jd088-mongodb-3.4.10.drv', '/nix/store/dag2lbqlckl4z9z2p3z7b3aqkjj82md8-swift-im-4.0.2.drv', '/nix/store/sgfaqz7m7lr2d347khjpwyylhz84ab5f-wxmupen64plus-0.3.drv' failed

@GrahamcOfBorg
Copy link

Timed out, unknown build status on x86_64-linux (full log)

Attempted: btanks, gpsd, mongodb, scons, swift-im, swiften, wafHook, wxmupen64plus

Partial log (click to expand)

Skipping ranlib for build/nixos/mongo/db/librange_arithmetic.a
g++ -o build/nixos/mongo/db/range_deleter.o -c -Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -Isrc/third_party/asio-asio-1-11-0/asio/include -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/db/range_deleter.cpp
building of '/nix/store/y76iqbq6qd7j7rs6nigj4w5qj06qkmpy-mongodb-3.4.10.drv' timed out after 3600 seconds
  CXX Swiften/Network/ProxyProvider.o
  CXX Swiften/Network/NullProxyProvider.o
  CXX Swiften/Network/NATTraverser.o
  CXX Swiften/Network/NullNATTraverser.o
  CXX Swiften/Network/NATTraversalGetPublicIPRequest.o
building of '/nix/store/3m3d28j7qnmy22yzh8v6hhdxg0pb9h1b-swift-im-4.0.2.drv' timed out after 3600 seconds
error: build of '/nix/store/3m3d28j7qnmy22yzh8v6hhdxg0pb9h1b-swift-im-4.0.2.drv', '/nix/store/9c1mi89n3vq09wdsrzrmna5gsz1y98l3-swiften-4.0.2.drv', '/nix/store/y76iqbq6qd7j7rs6nigj4w5qj06qkmpy-mongodb-3.4.10.drv' failed

@matthewbauer matthewbauer changed the base branch from master to staging-next November 14, 2018 00:58
The waf build system is python-based and hosted locally in each package in the executable file named "waf". Unlike CMake, it cannot generate makefiles so we end up having to override the configure, build, and install phases. I've tried to keep these as close to what's in setup.sh as possible. If there is no waf file in the root directory, then we just copy the one hosted in Nixpkgs. Otherwise the only thing you have to add to a package using Waf is "wafHook" into nativeBuildInputs. wafFlags controls the flags specifically passed to waf while configureFlags, buildFlags, and installFlags are still used as in the generic builder.
Replace "waf" phases with wafHook that manages everything
automatically. Should make things more modular.

Packages affected here are:

- a2jmidid
- ams-lv2
- ardour
- fomp
- guitarix
- ingen
- jalv
- mda-lv2
- non
- patchage
- hamster-time-tracker
- kupfer
- xiphos
- xfce4-dockbarx-plugin
- xfce4-namebar-plugin
- dropbox
- clasp
- aubio
- liliv
- lv2
- lvtk
- ntk
- raul
- sratom
- suil
- ganv
- ndn-cxx
- ns3
- serd
- sord
- termbox
- wxmupen64plus
- jackaudio
- pflask
- blockhash
- glmark2
- weighttp
The scons build system is python-based and has a binary named scons. Unlike CMake, it cannot generate makefiles so we end up having to override the build, install, and check phases. I have added the setupHook to the scons package so that integration requires no unique steps - just putting scons in nativeBuildInputs should be enough. sconsFlags controls the flags specifically passed to scons while buildFlags, installFlags, and checkFlags should still be usable. Some packages use different names for the prefix flag. In those cases you will have to set "prefixKey" to something like "PREFIX=" as there are multiple names for the "prefix" used in scons.
Lots of packages can use it. Here is the list:

- jackmix
- klick
- mixx
- nova-filters
- rhvoice
- giv
- mypaint
- swift-im
- bombono
- mapnik
- serf
- nuitka
- pyexiv2
- godot
- hammer
- toluapp
- btanks
- dxx-rebirth
- endless-sky
- globulation
- the-powder-toy
- fceux
- gpsd
- mongodb
- rippled
- mariadb
- lprof
There’s nothing wrong with unstable packages when they are maintained
and frequently updated. However, when they become out-of-date, as many
do, it is usually best to just get rid of them as the stable version
is become newer than the unstable version. This removes any packages
called "unstable" that have not been updated in over 1 year. Affected
packages include:

- isyncUnstable
- sxhkd-unstable
- dosbox-unstable

Revert "treewide: remove unstable packages"

This reverts commit df01b0b.
This flag seems to make things work again.
@GrahamcOfBorg
Copy link

Timed out, unknown build status on x86_64-darwin (full log)

Attempted: rhvoice, mapnik, serf, pythonPackages.Nuitka, toluapp, btanks, the-powder-toy, mongodb, mariadb, clasp, ndn-cxx, ns-3, termbox, blockhash, weighttp

The following builds were skipped because they don't evaluate on x86_64-darwin: jackmix, klick, mixxx, nova-filters, giv, mypaint, swift-im, bombono, pythonPackages.pyexiv2, godot, hammer, dxx-rebirth, endless-sky, globulation2, fceux, gpsd, lprof, a2jmidid, ams-lv2, ardour, fomp, guitarix, ingen, jalv, mda_lv2, non, patchage, hamster-time-tracker, kupfer, xiphos, xfce.xfce4-dockbarx-plugin, xfce.xfce4-namebar-plugin, dropbox, aubio, lilv, lv2, lvtk, ntk, raul, sratom, suil, ganv, serd, sord, wxmupen64plus, jackaudio, pflask, glmark2, stp, ingen

Partial log (click to expand)

clang++ -o build/nixos/third_party/s2/strings/split.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -std=c++11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/third_party/s2/strings/split.cc
clang++ -o build/nixos/third_party/s2/strings/stringprintf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -std=c++11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/third_party/s2/strings/stringprintf.cc
clang++ -o build/nixos/third_party/s2/strings/strutil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -std=c++11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/third_party/s2/strings/strutil.cc
Generating placeholder library build/nixos/third_party/s2/strings/libstrings.a
Skipping ranlib for build/nixos/third_party/s2/strings/libstrings.a
clang++ -o build/nixos/third_party/s2/util/coding/coder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -std=c++11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -Isrc/third_party/gflags-2.0/src -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/third_party/s2/util/coding/coder.cc
clang++ -o build/nixos/third_party/s2/util/coding/varint.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -std=c++11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -Isrc/third_party/gflags-2.0/src -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/third_party/s2/util/coding/varint.cc
Generating placeholder library build/nixos/third_party/s2/util/coding/libcoding.a
building of '/nix/store/kn3fpd1nbs6f39qmqdrw1yy15j2nhf46-mongodb-3.4.10.drv' timed out after 3600 seconds
error: build of '/nix/store/1d1gia9vhhqwjdyj1f3llyd13ifzvkqd-the-powder-toy-92.5.drv', '/nix/store/6lb6xf5phbqj5n2zi76il0wg47nr0lng-battle-tanks-0.9.8083.drv', '/nix/store/81625n8csm13bzaxv50x7h9fpqxyhh45-rhvoice-unstable-2018-02-10.drv', '/nix/store/kn3fpd1nbs6f39qmqdrw1yy15j2nhf46-mongodb-3.4.10.drv', '/nix/store/xd8pn1fngy07dwn4c334j9zqf5s213yd-ns-3.28.drv' failed

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: scons, wafHook, wxmupen64plus

Partial log (click to expand)

post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/nwcpvyip3jc2yjj7agjysgk0wzr2lq58-wxmupen64plus-0.3
shrinking /nix/store/nwcpvyip3jc2yjj7agjysgk0wzr2lq58-wxmupen64plus-0.3/bin/wxmupen64plus
strip is /nix/store/rpbg8gmqxhz8g61p1plz5d2srs84pvmv-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/nwcpvyip3jc2yjj7agjysgk0wzr2lq58-wxmupen64plus-0.3/bin
patching script interpreter paths in /nix/store/nwcpvyip3jc2yjj7agjysgk0wzr2lq58-wxmupen64plus-0.3
checking for references to /build in /nix/store/nwcpvyip3jc2yjj7agjysgk0wzr2lq58-wxmupen64plus-0.3...
/nix/store/vj19628jhb1nhxxizz5d71bicm63ffq3-scons-3.0.1
/nix/store/3y6r8nbwcddp2cvxf34xhw4kfb0zw9fl-hook
/nix/store/nwcpvyip3jc2yjj7agjysgk0wzr2lq58-wxmupen64plus-0.3

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: scons, wafHook

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

Partial log (click to expand)

reading manifest file 'engine/scons.egg-info/SOURCES.txt'
writing manifest file 'engine/scons.egg-info/SOURCES.txt'
running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
/nix/store/fggjl23nqvlpvrhf4jkvc1vz28sdm39c-scons-3.0.1
/nix/store/9n0jcspanh03ncklxz5bjvnl2sygaxry-hook

@GrahamcOfBorg
Copy link

Timed out, unknown build status on x86_64-linux (full log)

Attempted: btanks, gpsd, mongodb, scons, swift-im, swiften, wafHook, wxmupen64plus

Partial log (click to expand)

Skipping ranlib for build/nixos/mongo/db/librange_deleter.a
g++ -o build/nixos/mongo/db/run_commands.o -c -Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_FORTIFY_SOURCE=2 -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -Isrc/third_party/asio-asio-1-11-0/asio/include -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/db/run_commands.cpp
building of '/nix/store/9rxrg3c7wz5p69dnf92n7lh7gf90f1yc-mongodb-3.4.10.drv' timed out after 3600 seconds
  CXX Swiften/Network/NATTraverser.o
  CXX Swiften/Network/NullNATTraverser.o
  CXX Swiften/Network/NATTraversalGetPublicIPRequest.o
  CXX Swiften/Network/NATTraversalForwardPortRequest.o
  CXX Swiften/Network/NATTraversalRemovePortForwardingRequest.o
building of '/nix/store/62sfxw2gg0b8s8i1zfjzbp5a46d1vxm0-swift-im-4.0.2.drv' timed out after 3600 seconds
error: build of '/nix/store/62sfxw2gg0b8s8i1zfjzbp5a46d1vxm0-swift-im-4.0.2.drv', '/nix/store/9rxrg3c7wz5p69dnf92n7lh7gf90f1yc-mongodb-3.4.10.drv', '/nix/store/jxlc3qplb0589df1skxz9g64cfkx0hbd-gpsd-3.16.drv', '/nix/store/rgljy92dnvv41i7bk4n96i5cmvvqn000-swiften-4.0.2.drv' failed

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: scons, wafHook, wxmupen64plus

Partial log (click to expand)

configuring
no configure script, doing nothing
building
************************************ Building core library
make: Entering directory '/build/mupen64plus-bundle-src-2.5/source/mupen64plus-core/projects/unix'
Makefile:127: *** CPU type "aarch64" not supported.  Please file bug report at 'http://code.google.com/p/mupen64plus/issues'.  Stop.
make: Leaving directory '/build/mupen64plus-bundle-src-2.5/source/mupen64plus-core/projects/unix'
builder for '/nix/store/2q1q0d60qw0iv5lpk33mwkiapgidhzyh-mupen64plus-2.5.drv' failed with exit code 2
cannot build derivation '/nix/store/dxpdqsq795anzqkab8cip82w61d79ipd-wxmupen64plus-0.3.drv': 1 dependencies couldn't be built
error: build of '/nix/store/dxpdqsq795anzqkab8cip82w61d79ipd-wxmupen64plus-0.3.drv' failed

@GrahamcOfBorg
Copy link

Timed out, unknown build status on x86_64-darwin (full log)

Attempted: btanks, mongodb, scons, wafHook

The following builds were skipped because they don't evaluate on x86_64-darwin: gpsd, swift-im, swiften, wxmupen64plus

Partial log (click to expand)

clang++ -o build/nixos/mongo/s/commands/run_on_all_shards_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -std=c++11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -Isrc/third_party/asio-asio-1-11-0/asio/include -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/s/commands/run_on_all_shards_cmd.cpp
clang++ -o build/nixos/mongo/s/commands/sharded_command_processing.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -std=c++11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -Isrc/third_party/asio-asio-1-11-0/asio/include -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/s/commands/sharded_command_processing.cpp
clang++ -o build/nixos/mongo/s/commands/strategy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -std=c++11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -Isrc/third_party/asio-asio-1-11-0/asio/include -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/s/commands/strategy.cpp
Generating placeholder library build/nixos/mongo/s/commands/libcluster_commands.a
Skipping ranlib for build/nixos/mongo/s/commands/libcluster_commands.a
clang++ -o build/nixos/mongo/s/cluster_cursor_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -std=c++11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -Isrc/third_party/asio-asio-1-11-0/asio/include -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/s/cluster_cursor_stats.cpp
clang++ -o build/nixos/mongo/s/mongos_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -std=c++11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -Isrc/third_party/asio-asio-1-11-0/asio/include -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/s/mongos_options.cpp
clang++ -o build/nixos/mongo/s/s_only.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-undefined-var-template -std=c++11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-unused-private-field -Wno-deprecated-declarations -Wno-tautological-constant-out-of-range-compare -Wno-unused-const-variable -Wno-missing-braces -Wno-inconsistent-missing-override -Wno-potentially-evaluated-expression -fstack-protector-strong -fno-builtin-memcmp -DNDEBUG -DBOOST_THREAD_VERSION=4 -DBOOST_THREAD_DONT_PROVIDE_VARIADIC_THREAD -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_OPTIONAL_USE_SINGLETON_DEFINITION_OF_NONE -Isrc/third_party/asio-asio-1-11-0/asio/include -Isrc/third_party/s2 -Ibuild/nixos -Isrc src/mongo/s/s_only.cpp
building of '/nix/store/7q47d2dwa95w0bbxy5h77jpjrk8xzs30-mongodb-3.4.10.drv' timed out after 3600 seconds
error: build of '/nix/store/7q47d2dwa95w0bbxy5h77jpjrk8xzs30-mongodb-3.4.10.drv', '/nix/store/7zbnf7xvc7s21xsba76k669igr2lq399-battle-tanks-0.9.8083.drv' failed

@GrahamcOfBorg
Copy link

Timed out, unknown build status on x86_64-linux (full log)

Attempted: jackmix, klick, mixxx, nova-filters, rhvoice, giv, mypaint, swift-im, bombono, mapnik, serf, pythonPackages.Nuitka, godot, hammer, toluapp, btanks, dxx-rebirth, endless-sky, globulation2, the-powder-toy, fceux, gpsd, mongodb, mariadb, lprof, a2jmidid, ams-lv2, ardour, fomp, guitarix, ingen, jalv, mda_lv2, non, patchage, hamster-time-tracker, kupfer, xiphos, xfce.xfce4-dockbarx-plugin, xfce.xfce4-namebar-plugin, clasp, aubio, lilv, lv2, lvtk, ntk, raul, sratom, suil, ganv, ndn-cxx, ns-3, serd, sord, termbox, wxmupen64plus, pflask, blockhash, glmark2, weighttp, stp, ingen

The following builds were skipped because they don't evaluate on x86_64-linux: pythonPackages.pyexiv2, dropbox, jackaudio

Partial log (click to expand)

          ^
[6/6] cshlib: build/src/namebar.c.1.o build/src/preferences.c.1.o build/src/theme.c.1.o -> build/libnamebar.so
Waf: Leaving directory `/build/source/build'
'build' finished successfully (1.159s)
glibPreInstallPhase
installing
install flags: gsettingsschemadir=/nix/store/nd5293icsncz2w541628khwxncw51kdi-xfce4-namebar-plugin-0.3.1/share/gsettings-schemas/xfce4-namebar-plugin-0.3.1/glib-2.0/schemas/ install
No function gsettingsschemadir=/nix/store/nd5293icsncz2w541628khwxncw51kdi-xfce4-namebar-plugin-0.3.1/share/gsettings-schemas/xfce4-namebar-plugin-0.3.1/glib-2.0/schemas/ defined in /build/source/wscript
builder for '/nix/store/ckw4flhny613k744dzxck4ymh8zcqbdd-xfce4-namebar-plugin-0.3.1.drv' failed with exit code 1
error: build of '/nix/store/3m3d28j7qnmy22yzh8v6hhdxg0pb9h1b-swift-im-4.0.2.drv', '/nix/store/5rggrg2dqxs1qxdamrvnbzqif6dc5rp7-lvtk-1.2.0.drv', '/nix/store/6awx8k8h8h62zfapdya1ch493pd84vag-ardour-5.12.drv', '/nix/store/a74har80mwzjhfqmf56vybrh6lh7bkpq-mapnik-3.0.21.drv', '/nix/store/adi6plgjzhf5c7hg1gmycn2mq1s6yj1i-dxx-rebirth-0.59.100.drv', '/nix/store/ckw4flhny613k744dzxck4ymh8zcqbdd-xfce4-namebar-plugin-0.3.1.drv', '/nix/store/f8viv317lpn5gxbr8dhblnpsp91700xd-kupfer-319.drv', '/nix/store/hpqna13zf7gmsp7gpy4dby5ns9qa57za-xiphos-4.0.7.drv', '/nix/store/krqrahlafs5y4dr1m491c04zsjcpii88-xfce4-dockbarx-plugin-0.5-a2dcb66.drv', '/nix/store/njp4zx1kkymy7s732lql1n60b9f5f9zd-ams-lv2-1.2.1.drv', '/nix/store/xsawbi3bw02wmy4jgl2dv4y1lvfjzd7d-guitarix-0.37.3.drv', '/nix/store/ylql44xkzydxkax7rljnzyj0ql7mc5hr-hamster-time-tracker-1.04.drv' failed

@GrahamcOfBorg
Copy link

Timed out, unknown build status on aarch64-linux (full log)

Attempted: btanks, gpsd, mongodb, scons, swift-im, swiften, wafHook, wxmupen64plus

Partial log (click to expand)

  CXX Swiften/FileTransfer/SOCKS5BytestreamClientSession.o
  CXX Swiften/FileTransfer/SOCKS5BytestreamProxiesManager.o
  CXX Swiften/FileTransfer/SOCKS5BytestreamProxyFinder.o
  CXX Swiften/FileTransfer/SOCKS5BytestreamRegistry.o
  CXX Swiften/FileTransfer/SOCKS5BytestreamServer.o
  CXX Swiften/FileTransfer/SOCKS5BytestreamServerManager.o
  CXX Swiften/FileTransfer/SOCKS5BytestreamServerPortForwardingUser.o
  CXX Swiften/FileTransfer/SOCKS5BytestreamServerResourceUser.o
building of '/nix/store/0d5z29a5f1akg7348zkxcnqyy2im64wk-swift-im-4.0.2.drv' timed out after 3600 seconds
error: build of '/nix/store/0d5z29a5f1akg7348zkxcnqyy2im64wk-swift-im-4.0.2.drv', '/nix/store/dxpdqsq795anzqkab8cip82w61d79ipd-wxmupen64plus-0.3.drv', '/nix/store/qz800kh01mz70982s64846j60qqpphf5-swiften-4.0.2.drv', '/nix/store/s3c4jv6666nwvdgbvypfa3w4qyvnq2yn-gpsd-3.16.drv', '/nix/store/ypiagr05942x5wcpfmgqlcl23bph48xp-mongodb-3.4.10.drv' failed

matthewbauer added a commit that referenced this pull request Nov 14, 2018

if ! [ -f ./waf ]; then
cp @waf@ waf
fi
Copy link
Contributor

Choose a reason for hiding this comment

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

Out of curiosity, why did you elect to use cp instead of ln?

Copy link
Member Author

Choose a reason for hiding this comment

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

I can't remember tbh. ln might have been a better idea but I think I had a package that was already doing this in configurePhase that used cp.

@matthewbauer matthewbauer deleted the cleanups2 branch February 22, 2019 04:23
@infinisil infinisil mentioned this pull request May 28, 2019
10 tasks
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

5 participants