twister: Fix build against GCC 6.x
This applies upstream commit miguelfreitas/twister-core@dd4f5a1769. Tested only by building and executing "twisterd --help", but no serious testing done otherwise. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
c905b7895c
commit
58c0d63100
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, autoconf, automake, libtool, pkgconfig, python2
|
{ stdenv, fetchurl, fetchpatch, autoconf, automake, libtool, pkgconfig, python2
|
||||||
, boost, db, openssl, geoip, libiconv, miniupnpc
|
, boost, db, openssl, geoip, libiconv, miniupnpc
|
||||||
, srcOnly, fetchgit
|
, srcOnly, fetchgit
|
||||||
}:
|
}:
|
||||||
@ -37,6 +37,12 @@ in stdenv.mkDerivation rec {
|
|||||||
boost db openssl geoip miniupnpc libiconv
|
boost db openssl geoip miniupnpc libiconv
|
||||||
];
|
];
|
||||||
|
|
||||||
|
patches = stdenv.lib.singleton (fetchpatch {
|
||||||
|
url = "https://github.com/miguelfreitas/twister-core/commit/"
|
||||||
|
+ "dd4f5a176958ea6ed855dc3fcef79680c1c0c92c.patch";
|
||||||
|
sha256 = "06fgmqnjyl83civ3ixiq673k8zjgm8n2w4w46nsh810nprqim8s6";
|
||||||
|
});
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i -e '/-htmldir/s|(default: [^)]*)|(default: ${twisterHTML})|' \
|
sed -i -e '/-htmldir/s|(default: [^)]*)|(default: ${twisterHTML})|' \
|
||||||
src/init.cpp
|
src/init.cpp
|
||||||
|
Loading…
Reference in New Issue
Block a user