summary refs log tree commit diff
path: root/pkgs/development/libraries/gsoap
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2017-07-19 11:52:36 +0800
committerPeter Hoeg <peter@hoeg.com>2017-07-19 11:53:34 +0800
commitc9f487ac5d8a946cc51e7ece42d6590ef65994bc (patch)
tree10150ac9fee17ae01414a835e86c1e2639c14d81 /pkgs/development/libraries/gsoap
parentdb7260121cc2b172ea55bf6122003905727ca774 (diff)
downloadnixpkgs-c9f487ac5d8a946cc51e7ece42d6590ef65994bc.tar
nixpkgs-c9f487ac5d8a946cc51e7ece42d6590ef65994bc.tar.gz
nixpkgs-c9f487ac5d8a946cc51e7ece42d6590ef65994bc.tar.bz2
nixpkgs-c9f487ac5d8a946cc51e7ece42d6590ef65994bc.tar.lz
nixpkgs-c9f487ac5d8a946cc51e7ece42d6590ef65994bc.tar.xz
nixpkgs-c9f487ac5d8a946cc51e7ece42d6590ef65994bc.tar.zst
nixpkgs-c9f487ac5d8a946cc51e7ece42d6590ef65994bc.zip
gsoap: 2.8.42 -> 2.8.49
Fixes: CVE-2017-9765
Diffstat (limited to 'pkgs/development/libraries/gsoap')
-rw-r--r--pkgs/development/libraries/gsoap/default.nix27
1 files changed, 20 insertions, 7 deletions
diff --git a/pkgs/development/libraries/gsoap/default.nix b/pkgs/development/libraries/gsoap/default.nix
index 89abd93180d..07efe42b99d 100644
--- a/pkgs/development/libraries/gsoap/default.nix
+++ b/pkgs/development/libraries/gsoap/default.nix
@@ -1,15 +1,28 @@
-{ stdenv, fetchurl, unzip, m4, bison, flex, openssl, zlib }:
+{ stdenv, fetchurl, autoreconfHook, unzip, m4, bison, flex, openssl, zlib }:
 
-stdenv.mkDerivation rec {
+let
+  majorVersion = "2.8";
+
+in stdenv.mkDerivation rec {
   name = "gsoap-${version}";
-  version = "2.8.42";
+  version = "${majorVersion}.49";
 
   src = fetchurl {
-    url = "mirror://sourceforge/project/gsoap2/gsoap-2.8/gsoap_${version}.zip";
-    sha256 = "0fav4lhdibwggkf495pggmqna632jxkh6q2mi32b9hsn883pg5m7";
+    url = "mirror://sourceforge/project/gsoap2/gsoap-${majorVersion}/gsoap_${version}.zip";
+    sha256 = "0414q7zabkq3iiccl2yql3vbihbr7ach9d517b37zv3mp7nhj2aj";
   };
 
-  buildInputs = [ unzip m4 bison flex openssl zlib ];
+  buildInputs = [ openssl zlib ];
+  nativeBuildInputs = [ autoreconfHook bison flex m4 unzip ];
+  # Parallel building doesn't work as of 2.8.49
+  enableParallelBuilding = false;
+
+  # Future versions of automake require subdir-objects if the source is structured this way
+  # As of 2.8.49 (maybe earlier) this is needed to silence warnings
+  prePatch = ''
+    substituteInPlace configure.ac \
+      --replace 'AM_INIT_AUTOMAKE([foreign])' 'AM_INIT_AUTOMAKE([foreign subdir-objects])'
+  '';
 
   meta = with stdenv.lib; {
     description = "C/C++ toolkit for SOAP web services and XML-based applications";
@@ -27,6 +40,6 @@ stdenv.mkDerivation rec {
     #    restrictions)
     license = licenses.gpl2;
     platforms = platforms.linux;
-    maintainers = [ maintainers.bjornfor ];
+    maintainers = with maintainers; [ bjornfor ];
   };
 }