lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

xen: remove 4.4.1 + fixes compilation of 4.5.x, fixes #9572

authored by

Thomas Strobel and committed by
Rok Garbas
e80b41e9 b55a4df7

+50 -110
+5 -9
pkgs/applications/virtualization/xen/0000-qemu-seabios-enable-ATA_DMA.patch
··· 1 - diff --git a/src/Kconfig b/src/Kconfig 2 - index 45ca59c..faf8951 100644 3 - --- a/src/Kconfig 4 - +++ b/src/Kconfig 5 - @@ -144,13 +144,13 @@ menu "Hardware support" 1 + diff -uNr a/src/Kconfig b/src/Kconfig 2 + --- a/src/Kconfig 2015-08-31 10:15:13.231134858 +0200 3 + +++ b/src/Kconfig 2015-08-31 10:14:24.039180178 +0200 4 + @@ -144,13 +144,13 @@ 6 5 config ATA_DMA 7 6 depends on ATA 8 7 bool "ATA DMA" ··· 16 15 - default n 17 16 + default y 18 17 help 19 - Use 32bit PIO accesses on ATA (minor optimization on PCI 20 - transfers). 18 + Use 32bit PIO accesses on ATA (minor optimization on PCI transfers). 21 19 config AHCI 22 - -- 23 - 1.7.10.4
-50
pkgs/applications/virtualization/xen/4.4.1.nix
··· 1 - { callPackage, fetchurl, ... } @ args: 2 - 3 - let 4 - # Xen 4.4.1 5 - xenConfig = { 6 - name = "xen-4.4.1"; 7 - version = "4.4.1"; 8 - 9 - src = fetchurl { 10 - url = "http://bits.xensource.com/oss-xen/release/4.4.1/xen-4.4.1.tar.gz"; 11 - sha256 = "09gaqydqmy64s5pqnwgjyzhd3wc61xyghpqjfl97kmvm8ly9vd2m"; 12 - }; 13 - 14 - # Sources needed to build the xen tools and tools/firmware. 15 - toolsGits = 16 - [ # tag qemu-xen-4.4.1 17 - { git = { name = "qemu-xen"; 18 - url = git://xenbits.xen.org/qemu-upstream-4.4-testing.git; 19 - rev = "65fc9b78ba3d868a26952db0d8e51cecf01d47b4"; 20 - sha256 = "e24fb58f773fd9134c5aae6d3ca7e9f754dc9822de92b1eb2cedc76faf911f18"; 21 - }; 22 - } 23 - # tag xen-4.4.1 24 - { git = { name = "qemu-xen-traditional"; 25 - url = git://xenbits.xen.org/qemu-xen-4.4-testing.git; 26 - rev = "6ae4e588081620b141071eb010ec40aca7e12876"; 27 - sha256 = "b1ed1feb92fbe658273a8d6d38d6ea60b79c1658413dd93979d6d128d8554ded"; 28 - }; 29 - } 30 - ]; 31 - 32 - firmwareGits = 33 - [ # tag 1.7.3.1 34 - { git = { name = "seabios"; 35 - url = git://xenbits.xen.org/seabios.git; 36 - rev = "7d9cbe613694924921ed1a6f8947d711c5832eee"; 37 - sha256 = "c071282bbcb1dd0d98536ef90cd1410f5d8da19648138e0e3863bc540d954a87"; 38 - }; 39 - } 40 - { git = { name = "ovmf"; 41 - url = git://xenbits.xen.org/ovmf.git; 42 - rev = "447d264115c476142f884af0be287622cd244423"; 43 - sha256 = "7086f882495a8be1497d881074e8f1005dc283a5e1686aec06c1913c76a6319b"; 44 - }; 45 - } 46 - ]; 47 - 48 - }; 49 - 50 - in callPackage ./generic.nix (args // { xenConfig=xenConfig; })
+8 -7
pkgs/applications/virtualization/xen/4.5.0.nix
··· 58 58 } 59 59 ]; 60 60 61 - xenserverPatches = let 62 - patches = { 63 - url = https://github.com/ts468/xen-4.5.pg.git; 64 - rev = "3442b65b490f43c817cbc53369220d0b1ab9b785"; 65 - sha256 = "31436c15def0a300b3ea1a63b2208c4a3bcbb143db5c6488d4db370b3ceeb845"; 66 - }; 61 + xenserverPatches = 62 + let 63 + patches = { 64 + url = https://github.com/ts468/xen-4.5.pg.git; 65 + rev = "3442b65b490f43c817cbc53369220d0b1ab9b785"; 66 + sha256 = "31436c15def0a300b3ea1a63b2208c4a3bcbb143db5c6488d4db370b3ceeb845"; 67 + }; 67 68 in '' 68 69 cp -r ${fetchgit patches}/master patches 69 70 quilt push -a 70 71 substituteInPlace tools/xenguest/Makefile --replace "_BSD_SOURCE" "_DEFAULT_SOURCE" 71 - ''; 72 + ''; 72 73 73 74 xenPatches = [ ./0001-libxl-Spice-image-compression-setting-support-for-up.patch 74 75 ./0002-libxl-Spice-streaming-video-setting-support-for-upst.patch
+37 -43
pkgs/applications/virtualization/xen/generic.nix
··· 76 76 pythonPath = [ pythonPackages.curses ]; 77 77 78 78 patches = stdenv.lib.optionals ((xenserverPatched == false) && (builtins.hasAttr "xenPatches" xenConfig)) xenConfig.xenPatches; 79 - patchPhase = stdenv.lib.optional ((xenserverPatched == true) && (builtins.hasAttr "xenserverPatches" xenConfig)) xenConfig.xenserverPatches; 79 + 80 + postPatch = '' 81 + ${stdenv.lib.optionalString ((xenserverPatched == true) && (builtins.hasAttr "xenserverPatches" xenConfig)) xenConfig.xenserverPatches} 82 + 83 + # Xen's tools and firmares need various git repositories that it 84 + # usually checks out at time using git. We can't have that. 85 + ${flip concatMapStrings xenConfig.toolsGits (x: let src = fetchgit x.git; in '' 86 + cp -r ${src} tools/${src.name}-dir-remote 87 + chmod -R +w tools/${src.name}-dir-remote 88 + '' + stdenv.lib.optionalString (builtins.hasAttr "patches" x) '' 89 + ( cd tools/${src.name}-dir-remote; ${concatStringsSep "; " (map (p: "patch -p1 < ${p}") x.patches)} ) 90 + '')} 91 + ${flip concatMapStrings xenConfig.firmwareGits (x: let src = fetchgit x.git; in '' 92 + cp -r ${src} tools/firmware/${src.name}-dir-remote 93 + chmod -R +w tools/firmware/${src.name}-dir-remote 94 + '' + stdenv.lib.optionalString (builtins.hasAttr "patches" x) '' 95 + ( cd tools/firmware/${src.name}-dir-remote; ${concatStringsSep "; " (map (p: "patch -p1 < ${p}") x.patches)} ) 96 + '')} 97 + 98 + # Xen's stubdoms and firmwares need various sources that are usually fetched 99 + # at build time using wget. We can't have that, so we prefetch Xen's ext_files. 100 + mkdir xen_ext_files 101 + ${flip concatMapStrings xenExtfiles (x: let src = fetchurl x; in '' 102 + cp ${src} xen_ext_files/${src.name} 103 + '')} 104 + ''; 80 105 81 106 preConfigure = '' 82 107 # Fake wget: copy prefetched downloads instead ··· 89 114 export EXTRA_QEMUU_CONFIGURE_ARGS="--enable-spice --enable-usb-redir --enable-linux-aio" 90 115 ''; 91 116 92 - # TODO: Flask needs more testing before enabling it by default. 93 - #makeFlags = "XSM_ENABLE=y FLASK_ENABLE=y PREFIX=$(out) CONFIG_DIR=/etc XEN_EXTFILES_URL=\\$(XEN_ROOT)/xen_ext_files "; 94 - makeFlags = "PREFIX=$(out) CONFIG_DIR=/etc XEN_EXTFILES_URL=\\$(XEN_ROOT)/xen_ext_files "; 95 - 96 - buildFlags = "xen tools stubdom"; 97 - 98 - preBuild = 117 + postConfigure = 99 118 '' 100 119 substituteInPlace tools/libfsimage/common/fsimage_plugin.c \ 101 120 --replace /usr $out ··· 113 132 substituteInPlace tools/xenstat/Makefile \ 114 133 --replace /usr/include/curses.h ${ncurses}/include/curses.h 115 134 116 - substituteInPlace tools/ioemu-qemu-xen/xen-hooks.mak \ 135 + substituteInPlace tools/qemu-xen-traditional/xen-hooks.mak \ 136 + --replace /usr/include/pci ${pciutils}/include/pci 137 + 138 + substituteInPlace tools/qemu-xen-traditional-dir-remote/xen-hooks.mak \ 117 139 --replace /usr/include/pci ${pciutils}/include/pci 118 140 119 141 substituteInPlace tools/hotplug/Linux/xen-backend.rules \ ··· 127 149 substituteInPlace xen/Makefile \ 128 150 --replace '$(CC) $(CFLAGS) -v' '$(CC) -v' 129 151 130 - substituteInPlace tools/python/xen/xend/server/BlktapController.py \ 131 - --replace /usr/sbin/tapdisk2 $out/sbin/tapdisk2 132 - 133 - substituteInPlace tools/python/xen/xend/XendQCoWStorageRepo.py \ 134 - --replace /usr/sbin/qcow-create $out/sbin/qcow-create 135 - 136 - substituteInPlace tools/python/xen/remus/save.py \ 137 - --replace /usr/lib/xen/bin/xc_save $out/${libDir}/xen/bin/xc_save 138 - 139 - substituteInPlace tools/python/xen/remus/device.py \ 140 - --replace /usr/lib/xen/bin/imqebt $out/${libDir}/xen/bin/imqebt 141 - 142 152 # Allow the location of the xendomains config file to be 143 153 # overriden at runtime. 144 154 substituteInPlace tools/hotplug/Linux/init.d/xendomains \ ··· 150 160 substituteInPlace tools/hotplug/Linux/xendomains \ 151 161 --replace /bin/ls ls 152 162 153 - # Xen's tools and firmares need various git repositories that it 154 - # usually checks out at time using git. We can't have that. 155 - ${flip concatMapStrings xenConfig.toolsGits (x: let src = fetchgit x.git; in '' 156 - cp -r ${src} tools/${src.name}-dir-remote 157 - chmod -R +w tools/${src.name}-dir-remote 158 - '' + stdenv.lib.optionalString (builtins.hasAttr "patches" x) '' 159 - ( cd tools/${src.name}-dir-remote; ${concatStringsSep "; " (map (p: "patch -p1 < ${p}") x.patches)} ) 160 - '')} 161 - ${flip concatMapStrings xenConfig.firmwareGits (x: let src = fetchgit x.git; in '' 162 - cp -r ${src} tools/firmware/${src.name}-dir-remote 163 - chmod -R +w tools/firmware/${src.name}-dir-remote 164 - '' + stdenv.lib.optionalString (builtins.hasAttr "patches" x) '' 165 - ( cd tools/firmware/${src.name}-dir-remote; ${concatStringsSep "; " (map (p: "patch -p1 < ${p}") x.patches)} ) 166 - '')} 167 - 168 - # Xen's stubdoms and firmwares need various sources that are usually fetched 169 - # at build time using wget. We can't have that, so we prefetch Xen's ext_files. 170 - mkdir xen_ext_files 171 - ${flip concatMapStrings xenExtfiles (x: let src = fetchurl x; in '' 172 - cp ${src} xen_ext_files/${src.name} 173 - '')} 174 - 175 163 # Hack to get `gcc -m32' to work without having 32-bit Glibc headers. 176 164 mkdir -p tools/include/gnu 177 165 touch tools/include/gnu/stubs-32.h 178 166 ''; 167 + 168 + # TODO: Flask needs more testing before enabling it by default. 169 + #makeFlags = "XSM_ENABLE=y FLASK_ENABLE=y PREFIX=$(out) CONFIG_DIR=/etc XEN_EXTFILES_URL=\\$(XEN_ROOT)/xen_ext_files "; 170 + makeFlags = "PREFIX=$(out) CONFIG_DIR=/etc XEN_EXTFILES_URL=\\$(XEN_ROOT)/xen_ext_files "; 171 + 172 + buildFlags = "xen tools stubdom"; 179 173 180 174 postBuild = 181 175 ''
-1
pkgs/top-level/all-packages.nix
··· 13461 13461 13462 13462 xdotool = callPackage ../tools/X11/xdotool { }; 13463 13463 13464 - xen_4_4_1 = callPackage ../applications/virtualization/xen/4.4.1.nix { }; 13465 13464 xen_4_5_0 = callPackage ../applications/virtualization/xen/4.5.0.nix { }; 13466 13465 xen_4_5_1 = callPackage ../applications/virtualization/xen/4.5.1.nix { }; 13467 13466 xen_xenServer = callPackage ../applications/virtualization/xen/4.5.0.nix { xenserverPatched = true; };