git.iko.soy/typeable/nixpkgs
on master help sign in
python.pkgs.pysideShiboken: fix gcc6 build
commit48f337a882a46bb5a9105ed592db05776ad1a507 authorJörg Thalheim <joerg@thalheim.io> dateSat 26 Aug 2017, 09:14 (9 years ago) parenta580bed
2 files changed+22−1
pkgs/development/python-modules/pyside/gcc6.patch+18 pkgs/development/python-modules/pyside/shiboken.nix+4−1
pkgs/development/python-modules/pyside/gcc6.patchnew file+18
@@ -0,0 +1,18 @@
1+--- Shiboken-1.2.4.org/tests/libsample/simplefile.cpp 2017-08-26 09:06:27.216859143 +0100
2++++ Shiboken-1.2.4/tests/libsample/simplefile.cpp 2017-08-26 09:05:40.037029652 +0100
3+@@ -90,13 +90,13 @@
4+ SimpleFile::exists() const
5+ {
6+ std::ifstream ifile(p->m_filename);
7+- return ifile;
8++ return (bool)ifile;
9+ }
10+
11+ bool
12+ SimpleFile::exists(const char* filename)
13+ {
14+ std::ifstream ifile(filename);
15+- return ifile;
16++ return (bool)ifile;
17+ }
18+
pkgs/development/python-modules/pyside/shiboken.nix+4−1
@@ -14,6 +14,7 @@ buildPythonPackage rec {
1414 sha256 = "1536f73a3353296d97a25e24f9554edf3e6a48126886f8d21282c3645ecb96a4";
1515 };
1616
17+
1718 enableParallelBuilding = true;
1819
1920 buildInputs = [ cmake libxml2 libxslt pysideApiextractor pysideGeneratorrunner python sphinx qt4 ];
@@ -23,7 +24,9 @@ buildPythonPackage rec {
2324 substituteInPlace generator/CMakeLists.txt --replace \
2425 \"$\{GENERATORRUNNER_PLUGIN_DIR}\" lib/generatorrunner/
2526 '';
26− patches = if (isPy35 || isPy36) then [ ./shiboken_py35.patch ] else null;
27+
28+ # gcc6 patch was also sent upstream: https://github.com/pyside/Shiboken/pull/86
29+ patches = [ ./gcc6.patch ] ++ (lib.optional (isPy35 || isPy36) ./shiboken_py35.patch);
2730
2831 cmakeFlags = if isPy3k then "-DUSE_PYTHON3=TRUE" else null;
2932