diff options
author | Jaka Hudoklin <offlinehacker@users.noreply.github.com> | 2017-04-19 02:01:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-19 02:01:54 +0200 |
commit | e0b0a07a74cabb2aa1b463787c605a47f44bf3de (patch) | |
tree | 2b64260ee2b396b2b01899c61880f1f752a03aab /pkgs | |
parent | 1dcb587d93e8a3f1de4c47939e4dd1e91c8546bc (diff) | |
parent | dc0e338e01a75a8c7f79961d76eb10d8e023806b (diff) | |
download | nixlib-e0b0a07a74cabb2aa1b463787c605a47f44bf3de.tar nixlib-e0b0a07a74cabb2aa1b463787c605a47f44bf3de.tar.gz nixlib-e0b0a07a74cabb2aa1b463787c605a47f44bf3de.tar.bz2 nixlib-e0b0a07a74cabb2aa1b463787c605a47f44bf3de.tar.lz nixlib-e0b0a07a74cabb2aa1b463787c605a47f44bf3de.tar.xz nixlib-e0b0a07a74cabb2aa1b463787c605a47f44bf3de.tar.zst nixlib-e0b0a07a74cabb2aa1b463787c605a47f44bf3de.zip |
Merge pull request #23073 from volth/libguestfs-1.34
libguestfs: 1.29.5 -> 1.36.3
Diffstat (limited to 'pkgs')
5 files changed, 44 insertions, 23 deletions
diff --git a/pkgs/development/libraries/hivex/default.nix b/pkgs/development/libraries/hivex/default.nix index 76836b69d2a8..eced02fd33e3 100644 --- a/pkgs/development/libraries/hivex/default.nix +++ b/pkgs/development/libraries/hivex/default.nix @@ -3,11 +3,11 @@ stdenv.mkDerivation rec { name = "hivex-${version}"; - version = "1.3.11"; + version = "1.3.14"; src = fetchurl { url = "http://libguestfs.org/download/hivex/${name}.tar.gz"; - sha256 = "0y3nqykwy58divxkv7gmsb067dasyfz3apbp437hl57rgrndyfn6"; + sha256 = "0aqv28prjcmc66znw0wgaxjijg5mjm44bgn1iil8a4dlbsgv4p7b"; }; patches = [ ./hivex-syms.patch ]; diff --git a/pkgs/development/libraries/hivex/hivex-syms.patch b/pkgs/development/libraries/hivex/hivex-syms.patch index 2280ade59a62..bacd34e8515d 100644 --- a/pkgs/development/libraries/hivex/hivex-syms.patch +++ b/pkgs/development/libraries/hivex/hivex-syms.patch @@ -1,6 +1,6 @@ -diff -rupN hivex-1.3.11/lib/Makefile.am hivex-1.3.11-new/lib/Makefile.am ---- hivex-1.3.11/lib/Makefile.am 2013-09-10 13:04:12.000000000 +0200 -+++ hivex-1.3.11-new/lib/Makefile.am 2014-11-06 01:31:05.956106861 +0100 +diff -rupN hivex-1.3.14/lib/Makefile.am hivex-1.3.14-new/lib/Makefile.am +--- hivex-1.3.14/lib/Makefile.am 2013-09-10 13:04:12.000000000 +0200 ++++ hivex-1.3.14-new/lib/Makefile.am 2014-11-06 01:31:05.956106861 +0100 @@ -40,8 +40,7 @@ libhivex_la_SOURCES = \ libhivex_la_LIBADD = ../gnulib/lib/libgnu.la $(LTLIBOBJS) diff --git a/pkgs/development/libraries/libguestfs/default.nix b/pkgs/development/libraries/libguestfs/default.nix index 02e75788d01e..7902cf67c8d1 100644 --- a/pkgs/development/libraries/libguestfs/default.nix +++ b/pkgs/development/libraries/libguestfs/default.nix @@ -1,32 +1,45 @@ { stdenv, fetchurl, pkgconfig, autoreconfHook, makeWrapper , ncurses, cpio, gperf, perl, cdrkit, flex, bison, qemu, pcre, augeas, libxml2 , acl, libcap, libcap_ng, libconfig, systemd, fuse, yajl, libvirt, hivex -, gmp, readline, file, libintlperl, GetoptLong, SysVirt, numactl, xen, libapparmor }: +, gmp, readline, file, libintlperl, GetoptLong, SysVirt, numactl, xen, libapparmor +, getopt, perlPackages, ocamlPackages }: stdenv.mkDerivation rec { name = "libguestfs-${version}"; - version = "1.29.5"; + version = "1.36.3"; appliance = fetchurl { - url = "http://libguestfs.org/download/binaries/appliance/appliance-1.26.0.tar.xz"; - sha256 = "1kzvgmy845kclvr93y6rdpss2q0p8yfqg14r0i1pi5r4zc68yvj4"; + url = "http://libguestfs.org/download/binaries/appliance/appliance-1.36.1.tar.xz"; + sha256 = "1klvr13gpg615hgjvviwpxlj839lbwwsrq7x100qg5zmmjfhl125"; }; src = fetchurl { - url = "http://libguestfs.org/download/1.29-development/libguestfs-${version}.tar.gz"; - sha256 = "1il0p3irwcyfdm83935hj4bvxsx0kdfn8dvqmg2lbzap17jvzj8h"; + url = "http://libguestfs.org/download/1.36-stable/libguestfs-${version}.tar.gz"; + sha256 = "0dhb69b7svjgnrmbyvizdz5vsgsrr95ypz0qvp3kz83jyj6sa76m"; }; buildInputs = [ makeWrapper pkgconfig autoreconfHook ncurses cpio gperf perl cdrkit flex bison qemu pcre augeas libxml2 acl libcap libcap_ng libconfig systemd fuse yajl libvirt gmp readline file hivex libintlperl GetoptLong - SysVirt numactl xen libapparmor - ]; + SysVirt numactl xen libapparmor getopt perlPackages.ModuleBuild + ] ++ (with ocamlPackages; [ ocaml findlib ocamlbuild ocaml_libvirt ocaml_gettext ounit ]); + prePatch = '' + # build-time scripts + substituteInPlace run.in --replace '#!/bin/bash' '#!/bin/sh' + substituteInPlace ocaml-link.sh --replace '#!/bin/bash' '#!/bin/sh' + + # $(OCAMLLIB) is read-only "${ocamlPackages.ocaml}/lib/ocaml" + substituteInPlace ocaml/Makefile.am --replace '$(DESTDIR)$(OCAMLLIB)' '$(out)/lib/ocaml' + substituteInPlace ocaml/Makefile.in --replace '$(DESTDIR)$(OCAMLLIB)' '$(out)/lib/ocaml' + substituteInPlace v2v/test-harness/Makefile.am --replace '$(DESTDIR)$(OCAMLLIB)' '$(out)/lib/ocaml' + substituteInPlace v2v/test-harness/Makefile.in --replace '$(DESTDIR)$(OCAMLLIB)' '$(out)/lib/ocaml' + ''; configureFlags = "--disable-appliance --disable-daemon"; patches = [ ./libguestfs-syms.patch ]; NIX_CFLAGS_COMPILE="-I${libxml2.dev}/include/libxml2/"; + installFlags = "REALLY_INSTALL=yes"; postInstall = '' for bin in $out/bin/*; do diff --git a/pkgs/development/libraries/libguestfs/libguestfs-syms.patch b/pkgs/development/libraries/libguestfs/libguestfs-syms.patch index 44cdc4e69b2e..09c4b1393ce7 100644 --- a/pkgs/development/libraries/libguestfs/libguestfs-syms.patch +++ b/pkgs/development/libraries/libguestfs/libguestfs-syms.patch @@ -1,7 +1,7 @@ -diff -rupN libguestfs-1.29.5/src/Makefile.am libguestfs-1.29.5-new/src/Makefile.am ---- libguestfs-1.29.5/src/Makefile.am 2014-11-05 16:43:08.000000000 +0100 -+++ libguestfs-1.29.5-new/src/Makefile.am 2014-11-05 20:07:45.760730596 +0100 -@@ -167,8 +167,7 @@ libguestfs_la_LIBADD = \ +diff --git a/lib/Makefile.am b/lib/Makefile.am +--- a/lib/Makefile.am ++++ b/lib/Makefile.am +@@ -168,8 +168,7 @@ libguestfs_la_LIBADD = \ # Force libtool to name the library 'libguestfs.so.0.$(MAX_PROC_NR).0'. # Include the version script to limit which symbols are exported. libguestfs_la_LDFLAGS = \ diff --git a/pkgs/development/ocaml-modules/ocaml-libvirt/default.nix b/pkgs/development/ocaml-modules/ocaml-libvirt/default.nix index 439beaa24ffc..0ad5d09d687c 100644 --- a/pkgs/development/ocaml-modules/ocaml-libvirt/default.nix +++ b/pkgs/development/ocaml-modules/ocaml-libvirt/default.nix @@ -1,20 +1,28 @@ -{ stdenv, fetchurl, libvirt, ocaml, findlib }: +{ stdenv, fetchgit, libvirt, autoconf, ocaml, findlib }: stdenv.mkDerivation rec { name = "ocaml-libvirt-${version}"; - version = "0.6.1.4"; + rev = "3169af3"; + version = "0.6.1.4-rev.${rev}"; # libguestfs-1.34 needs ocaml-libvirt newer than the latest release 0.6.1.4 - src = fetchurl { - url = "http://libvirt.org/sources/ocaml/ocaml-libvirt-${version}.tar.gz"; - sha256 = "06q2y36ckb34n179bwczxkl82y3wrba65xb2acg8i04jpiyxadjd"; + src = fetchgit { + url = "git://git.annexia.org/git/ocaml-libvirt.git"; + rev = rev; + sha256 = "0z8p6q6k42rdrvy248siq922m1yszny1hfklf6djynvk2viyqdbg"; }; propagatedBuildInputs = [ libvirt ]; - buildInputs = [ ocaml findlib ]; + nativeBuildInputs = [ autoconf findlib ]; + + buildInputs = [ ocaml ]; createFindlibDestdir = true; + preConfigure = '' + autoconf + ''; + buildPhase = if stdenv.cc.isClang then "make all opt CPPFLAGS=-Wno-error" else "make all opt"; installPhase = "make install-opt"; |